@bynder/compact-view 4.3.1 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*
3
- * bynder-compactview v4.3.1
4
- * (c) 2024 Bynder
3
+ * bynder-compactview v4.3.3
4
+ * (c) 2025 Bynder
5
5
  */
6
6
 
7
7
  import*as e from"react";import t,{createContext as n,useContext as r,useState as o,useMemo as i,useEffect as a,createElement as s,useRef as l,useCallback as c,forwardRef as u,useLayoutEffect as d,useReducer as p,cloneElement as f}from"react";import h,{createPortal as m}from"react-dom";var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var b,w,x={};function E(){if(w)return b;w=1;var e=function(e){return e&&e.Math===Math&&e};return b=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof g&&g)||e("object"==typeof b&&b)||function(){return this}()||Function("return this")()}var C,k,S,I,T,_,O,j,A={};function P(){return k?C:(k=1,C=function(e){try{return!!e()}catch(e){return!0}})}function B(){if(I)return S;I=1;var e=P();return S=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function N(){if(_)return T;_=1;var e=P();return T=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),T}function D(){if(j)return O;j=1;var e=N(),t=Function.prototype.call;return O=e?t.bind(t):function(){return t.apply(t,arguments)},O}var z,M,R,F,L,$,H,U,V,W,q,Z,G,Y,K,X,J,Q,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,he,me,ge,ve,ye,be,we,xe,Ee,Ce={};function ke(){return R?M:(R=1,M=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Se(){if(L)return F;L=1;var e=N(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return F=e?r:function(e){return function(){return n.apply(e,arguments)}},F}function Ie(){if(H)return $;H=1;var e=Se(),t=e({}.toString),n=e("".slice);return $=function(e){return n(t(e),8,-1)},$}function Te(){if(V)return U;V=1;var e=Se(),t=P(),n=Ie(),r=Object,o=e("".split);return U=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,U}function _e(){return q||(q=1,W=function(e){return null==e}),W}function Oe(){if(G)return Z;G=1;var e=_e(),t=TypeError;return Z=function(n){if(e(n))throw new t("Can't call method on "+n);return n},Z}function je(){if(K)return Y;K=1;var e=Te(),t=Oe();return Y=function(n){return e(t(n))},Y}function Ae(){if(J)return X;J=1;var e="object"==typeof document&&document.all;return X=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Pe(){if(ee)return Q;ee=1;var e=Ae();return Q=function(t){return"object"==typeof t?null!==t:e(t)},Q}function Be(){if(ne)return te;ne=1;var e=E(),t=Ae();return te=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},te}function Ne(){if(ue)return ce;ue=1;var e=function(){if(le)return se;le=1;var e,t,n=E(),r=ae?ie:(ae=1,ie="undefined"!=typeof navigator&&String(navigator.userAgent)||""),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),se=t}(),t=P(),n=E().String;return ce=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function De(){if(pe)return de;pe=1;var e=Ne();return de=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function ze(){if(he)return fe;he=1;var e=Be(),t=Ae(),n=function(){if(oe)return re;oe=1;var e=Se();return re=e({}.isPrototypeOf)}(),r=De(),o=Object;return fe=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))},fe}function Me(){if(ge)return me;ge=1;var e=String;return me=function(t){try{return e(t)}catch(e){return"Object"}}}function Re(){if(ye)return ve;ye=1;var e=Ae(),t=Me(),n=TypeError;return ve=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Fe(){if(we)return be;we=1;var e=Re(),t=_e();return be=function(n,r){var o=n[r];return t(o)?void 0:e(o)},be}function Le(){if(Ee)return xe;Ee=1;var e=D(),t=Ae(),n=Pe(),r=TypeError;return xe=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},xe}var $e,He,Ue,Ve,We,qe,Ze,Ge,Ye,Ke,Xe,Je,Qe,et,tt,nt,rt,ot,it,at,st,lt,ct,ut,dt={exports:{}};function pt(){if(Ve)return Ue;Ve=1;var e=E(),t=Object.defineProperty;return Ue=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function ft(){if(qe)return We;qe=1;var e=E(),t=pt(),n="__core-js_shared__",r=e[n]||t(n,{});return We=r}function ht(){if(Ze)return dt.exports;Ze=1;var e=He?$e:(He=1,$e=!1),t=ft();return(dt.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.35.1",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"}),dt.exports}function mt(){if(Ye)return Ge;Ye=1;var e=Oe(),t=Object;return Ge=function(n){return t(e(n))}}function gt(){if(Xe)return Ke;Xe=1;var e=Se(),t=mt(),n=e({}.hasOwnProperty);return Ke=Object.hasOwn||function(e,r){return n(t(e),r)},Ke}function vt(){if(Qe)return Je;Qe=1;var e=Se(),t=0,n=Math.random(),r=e(1..toString);return Je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function yt(){if(tt)return et;tt=1;var e=E(),t=ht(),n=gt(),r=vt(),o=Ne(),i=De(),a=e.Symbol,s=t("wks"),l=i?a.for||a:a&&a.withoutSetter||r;return et=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:l("Symbol."+e)),s[e]}}function bt(){if(rt)return nt;rt=1;var e=D(),t=Pe(),n=ze(),r=Fe(),o=Le(),i=yt(),a=TypeError,s=i("toPrimitive");return nt=function(i,l){if(!t(i)||n(i))return i;var c,u=r(i,s);if(u){if(void 0===l&&(l="default"),c=e(u,i,l),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===l&&(l="number"),o(i,l)}}function wt(){if(it)return ot;it=1;var e=bt(),t=ze();return ot=function(n){var r=e(n,"string");return t(r)?r:r+""}}function xt(){if(st)return at;st=1;var e=E(),t=Pe(),n=e.document,r=t(n)&&t(n.createElement);return at=function(e){return r?n.createElement(e):{}},at}function Et(){if(ct)return lt;ct=1;var e=B(),t=P(),n=xt();return lt=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Ct(){if(ut)return A;ut=1;var e=B(),t=D(),n=function(){if(z)return Ce;z=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Ce.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Ce}(),r=ke(),o=je(),i=wt(),a=gt(),s=Et(),l=Object.getOwnPropertyDescriptor;return A.f=e?l:function(e,c){if(e=o(e),c=i(c),s)try{return l(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},A}var kt,St,It,Tt,_t,Ot,jt,At={};function Pt(){if(St)return kt;St=1;var e=B(),t=P();return kt=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function Bt(){if(Tt)return It;Tt=1;var e=Pe(),t=String,n=TypeError;return It=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function Nt(){if(_t)return At;_t=1;var e=B(),t=Et(),n=Pt(),r=Bt(),o=wt(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return At.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&u in n&&!n[u]){var i=s(e,t);i&&i[u]&&(e[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:l in n?n[l]:i[l],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},At}function Dt(){if(jt)return Ot;jt=1;var e=B(),t=Nt(),n=ke();return Ot=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var zt,Mt,Rt,Ft,Lt,$t,Ht,Ut,Vt,Wt,qt,Zt,Gt,Yt,Kt,Xt={exports:{}};function Jt(){if(Ft)return Rt;Ft=1;var e=Se(),t=Ae(),n=ft(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Rt=n.inspectSource}function Qt(){if(Ut)return Ht;Ut=1;var e=ht(),t=vt(),n=e("keys");return Ht=function(e){return n[e]||(n[e]=t(e))}}function en(){return Wt?Vt:(Wt=1,Vt={})}function tn(){if(Gt)return Xt.exports;Gt=1;var e=Se(),t=P(),n=Ae(),r=gt(),o=B(),i=function(){if(Mt)return zt;Mt=1;var e=B(),t=gt(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return zt={EXISTS:o,PROPER:i,CONFIGURABLE:a}}().CONFIGURABLE,a=Jt(),s=function(){if(Zt)return qt;Zt=1;var e,t,n,r=function(){if($t)return Lt;$t=1;var e=E(),t=Ae(),n=e.WeakMap;return Lt=t(n)&&/native code/.test(String(n))}(),o=E(),i=Pe(),a=Dt(),s=gt(),l=ft(),c=Qt(),u=en(),d="Object already initialized",p=o.TypeError,f=o.WeakMap;if(r||l.state){var h=l.state||(l.state=new f);h.get=h.get,h.has=h.has,h.set=h.set,e=function(e,t){if(h.has(e))throw new p(d);return t.facade=e,h.set(e,t),t},t=function(e){return h.get(e)||{}},n=function(e){return h.has(e)}}else{var m=c("state");u[m]=!0,e=function(e,t){if(s(e,m))throw new p(d);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return qt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}},qt}(),l=s.enforce,c=s.get,u=String,d=Object.defineProperty,p=e("".slice),f=e("".replace),h=e([].join),m=o&&!t((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),v=Xt.exports=function(e,t,n){"Symbol("===p(u(t),0,7)&&(t="["+f(u(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=l(e);return r(a,"source")||(a.source=h(g,"string"==typeof t?t:"")),e};return Function.prototype.toString=v((function(){return n(this)&&c(this).source||a(this)}),"toString"),Xt.exports}function nn(){if(Kt)return Yt;Kt=1;var e=Ae(),t=Nt(),n=tn(),r=pt();return Yt=function(o,i,a,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&n(a,c,s),s.global)l?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(l=!0):delete o[i]}catch(e){}l?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Yt}var rn,on,an,sn,ln,cn,un,dn,pn,fn,hn,mn,gn,vn,yn,bn,wn,xn={};function En(){if(sn)return an;sn=1;var e=function(){if(on)return rn;on=1;var e=Math.ceil,t=Math.floor;return rn=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},rn}();return an=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Cn(){if(cn)return ln;cn=1;var e=En(),t=Math.max,n=Math.min;return ln=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)},ln}function kn(){if(dn)return un;dn=1;var e=En(),t=Math.min;return un=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Sn(){if(fn)return pn;fn=1;var e=kn();return pn=function(t){return e(t.length)}}function In(){if(vn)return gn;vn=1;var e=Se(),t=gt(),n=je(),r=function(){if(mn)return hn;mn=1;var e=je(),t=Cn(),n=Sn(),r=function(r){return function(o,i,a){var s,l=e(o),c=n(l),u=t(a,c);if(r&&i!=i){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((r||u in l)&&l[u]===i)return r||u||0;return!r&&-1}};return hn={includes:r(!0),indexOf:r(!1)}}().indexOf,o=en(),i=e([].push);return gn=function(e,a){var s,l=n(e),c=0,u=[];for(s in l)!t(o,s)&&t(l,s)&&i(u,s);for(;a.length>c;)t(l,s=a[c++])&&(~r(u,s)||i(u,s));return u},gn}function Tn(){return bn?yn:(bn=1,yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var _n,On,jn,An,Pn,Bn,Nn,Dn,zn,Mn,Rn,Fn,Ln,$n,Hn,Un,Vn,Wn,qn,Zn,Gn,Yn,Kn,Xn,Jn,Qn,er,tr={};function nr(){if(Pn)return An;Pn=1;var e=gt(),t=function(){if(jn)return On;jn=1;var e=Be(),t=Se(),n=function(){if(wn)return xn;wn=1;var e=In(),t=Tn().concat("length","prototype");return xn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},xn}(),r=(_n||(_n=1,tr.f=Object.getOwnPropertySymbols),tr),o=Bt(),i=t([].concat);return On=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},On}(),n=Ct(),r=Nt();return An=function(o,i,a){for(var s=t(i),l=r.f,c=n.f,u=0;u<s.length;u++){var d=s[u];e(o,d)||a&&e(a,d)||l(o,d,c(i,d))}},An}function rr(){if(qn)return Wn;qn=1;var e=function(){if(Vn)return Un;Vn=1;var e={};return e[yt()("toStringTag")]="z",Un="[object z]"===String(e)}(),t=Ae(),n=Ie(),r=yt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Wn=e?n:function(e){var a,s,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),r))?s:i?n(a):"Object"===(l=n(a))&&t(a.callee)?"Arguments":l},Wn}function or(){if(Gn)return Zn;Gn=1;var e=Se(),t=P(),n=Ae(),r=rr(),o=Be(),i=Jt(),a=function(){},s=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),u=!l.test(a),d=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},p=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!c(l,i(e))}catch(e){return!0}};return p.sham=!0,Zn=!s||t((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?p:d}function ir(){if(Kn)return Yn;Kn=1;var e=function(){if(Hn)return $n;Hn=1;var e=Ie();return $n=Array.isArray||function(t){return"Array"===e(t)}}(),t=or(),n=Pe(),r=yt()("species"),o=Array;return Yn=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?o:a},Yn}function ar(){if(Jn)return Xn;Jn=1;var e=ir();return Xn=function(t,n){return new(e(t))(0===n?0:n)},Xn}var sr,lr,cr,ur,dr,pr,fr,hr,mr,gr,vr,yr,br,wr,xr,Er,Cr,kr,Sr,Ir,Tr,_r,Or={};function jr(){if(lr)return sr;lr=1;var e=In(),t=Tn();return sr=Object.keys||function(n){return e(n,t)},sr}function Ar(){if(dr)return ur;dr=1;var e=Be();return ur=e("document","documentElement")}function Pr(){if(mr)return hr;mr=1;var e=yt(),t=function(){if(fr)return pr;fr=1;var e,t=Bt(),n=function(){if(cr)return Or;cr=1;var e=B(),t=Pt(),n=Nt(),r=Bt(),o=je(),i=jr();return Or.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),l=i(t),c=l.length,u=0;c>u;)n.f(e,a=l[u++],s[a]);return e},Or}(),r=Tn(),o=en(),i=Ar(),a=xt(),s=Qt(),l="prototype",c="script",u=s("IE_PROTO"),d=function(){},p=function(e){return"<"+c+">"+e+"</"+c+">"},f=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;h="undefined"!=typeof document?document.domain&&e?f(e):(n=a("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):f(e);for(var s=r.length;s--;)delete h[l][r[s]];return h()};return o[u]=!0,pr=Object.create||function(e,r){var o;return null!==e?(d[l]=t(e),o=new d,d[l]=null,o[u]=e):o=h(),void 0===r?o:n.f(o,r)},pr}(),n=Nt().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),hr=function(e){o[r][e]=!0}}function Br(){if(gr)return x;gr=1;var e=function(){if(zn)return Dn;zn=1;var e=E(),t=Ct().f,n=Dt(),r=nn(),o=pt(),i=nr(),a=function(){if(Nn)return Bn;Nn=1;var e=P(),t=Ae(),n=/#|\.prototype\./,r=function(n,r){var l=i[o(n)];return l===s||l!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return Bn=r}();return Dn=function(s,l){var c,u,d,p,f,h=s.target,m=s.global,g=s.stat;if(c=m?e:g?e[h]||o(h,{}):e[h]&&e[h].prototype)for(u in l){if(p=l[u],d=s.dontCallGetSet?(f=t(c,u))&&f.value:c[u],!a(m?u:h+(g?".":"#")+u,s.forced)&&void 0!==d){if(typeof p==typeof d)continue;i(p,d)}(s.sham||d&&d.sham)&&n(p,"sham",!0),r(c,u,p,s)}}}(),t=function(){if(er)return Qn;er=1;var e=function(){if(Ln)return Fn;Ln=1;var e=function(){if(Rn)return Mn;Rn=1;var e=Ie(),t=Se();return Mn=function(n){if("Function"===e(n))return t(n)},Mn}(),t=Re(),n=N(),r=e(e.bind);return Fn=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},Fn}(),t=Se(),n=Te(),r=mt(),o=Sn(),i=ar(),a=t([].push),s=function(t){var s=1===t,l=2===t,c=3===t,u=4===t,d=6===t,p=7===t,f=5===t||d;return function(h,m,g,v){for(var y,b,w=r(h),x=n(w),E=o(x),C=e(m,g),k=0,S=v||i,I=s?S(h,E):l||p?S(h,0):void 0;E>k;k++)if((f||k in x)&&(b=C(y=x[k],k,w),t))if(s)I[k]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:a(I,y)}else switch(t){case 4:return!1;case 7:a(I,y)}return d?-1:c||u?u:I}};return Qn={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}().find,n=Pr(),r="find",o=!0;return r in[]&&Array(1)[r]((function(){o=!1})),e({target:"Array",proto:!0,forced:o},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r),x}function Nr(){if(yr)return vr;yr=1;var e=E(),t=Se();return vr=function(n,r){return t(e[n].prototype[r])}}Tr||(Tr=1,function(){if(Ir)return Sr;Ir=1;var e=function(){if(kr)return Cr;kr=1;var e=function(){if(Er)return xr;Er=1;var e=function(){if(wr)return br;wr=1,Br();var e=Nr();return br=e("Array","find")}();return xr=e}();return Cr=e}();Sr=e}()),_r||(_r=1,function(){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(e){for(var t=window.document,n=o(t);n;)n=o(t=n.ownerDocument);return t}(),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,r=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,n){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!==n[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 n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).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",r,!0)),l(t,"scroll",r,!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 n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){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||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=c(o),s=this._rootContainsTarget(o),l=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,a,t),d=null;this._rootContainsTarget(o)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:d,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,h,m,g,v=o,y=f(t),b=!1;!b&&y;){var w=null,x=1==y.nodeType?window.getComputedStyle(y):{};if("none"==x.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,w=null,v=null):w=r:w=i;else{var E=f(y),C=E&&c(E),k=E&&this._computeTargetAndRootIntersection(E,C,i);C&&k?(y=E,w=d(C,k)):(y=null,v=null)}else{var S=y.ownerDocument;y!=S.body&&y!=S.documentElement&&"visible"!=x.overflow&&(w=c(y))}if(w&&(a=w,s=v,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),g=u-l,v=(m=(h=Math.min(a.right,s.right))-p)>=0&&g>=0&&{top:l,bottom:u,left:p,right:h,width:m,height:g}||null),!v)break;y=y&&f(y)}return v}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=c(this.root);else{var n=h(this.root)?this.root:e,r=n.documentElement,o=n.body;t={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return p(n,t)&&(!this.root||n==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,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}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 d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function h(e){return e&&9===e.nodeType}}());const Dr=Object.prototype.toString;function zr(e){switch(Dr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Vr(e,Error)}}function Mr(e,t){return Dr.call(e)===`[object ${t}]`}function Rr(e){return Mr(e,"ErrorEvent")}function Fr(e){return Mr(e,"DOMError")}function Lr(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function $r(e){return Mr(e,"Object")}function Hr(e){return"undefined"!=typeof Event&&Vr(e,Event)}function Ur(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Vr(e,t){try{return e instanceof t}catch(e){return!1}}function Wr(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function qr(e){return e&&e.Math==Math?e:void 0}const Zr="object"==typeof globalThis&&qr(globalThis)||"object"==typeof window&&qr(window)||"object"==typeof self&&qr(self)||"object"==typeof global&&qr(global)||function(){return this}()||{};function Gr(e,t,n){const r=n||Zr,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const Yr=Zr,Kr=80;function Xr(e,t){const n=e,r=[];let o,i,a,s,l;if(!n||!n.tagName)return"";if(Yr.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&Mr(o,"String"))for(i=o.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}const Jr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Qr=["debug","info","warn","error","log","assert","trace"],eo={};function to(e){if(!("console"in Zr))return e();const t=Zr.console,n={},r=Object.keys(eo);r.forEach((e=>{const r=eo[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const no=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Jr?Qr.forEach((n=>{t[n]=(...t)=>{e&&to((()=>{Zr.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Qr.forEach((e=>{t[e]=()=>{}})),t}(),ro=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oo(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function io(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}class ao extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function so(e){if(zr(e))return{message:e.message,name:e.name,stack:e.stack,...co(e)};if(Hr(e)){const t={type:e.type,target:lo(e.target),currentTarget:lo(e.currentTarget),...co(e)};return"undefined"!=typeof CustomEvent&&Vr(e,CustomEvent)&&(t.detail=e.detail),t}return e}function lo(e){try{return"undefined"!=typeof Element&&Vr(e,Element)?function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Kr;for(;n&&i++<r&&(c=Xr(n,u),!("html"===c||i>1&&a+o.length*l+c.length>=d));)o.push(c),a+=c.length,n=n.parentNode;return o.reverse().join(s)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function co(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function uo(e){return po(e,new Map)}function po(e,t){if(function(e){if(!$r(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=po(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(po(e,t))})),r}return e}const fo=/\(error: (.*)\)/,ho=/captureMessage|captureException/,mo="<anonymous>";function go(){const e=Zr,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function vo(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function yo(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function bo(e){if(e&&e.__sentry_captured__)return!0;try{!function(e,t,n){try{Object.defineProperty(e,t,{value:!0,writable:!0,configurable:!0})}catch(n){Jr&&no.log(`Failed to add non-enumerable property "${t}" to object`,e)}}(e,"__sentry_captured__")}catch(e){}return!1}function wo(e,t=100,n=1/0){try{return Eo("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function xo(e,t=3,n=102400){const r=wo(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?xo(e,t-1,n):r;var o}function Eo(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(s=t)||s==s))return t;var s;const l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}(t))return"[VueViewModel]";if(function(e){return $r(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${function(e){try{return e&&"function"==typeof e&&e.name||mo}catch(e){return mo}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return Eo("",u.toJSON(),c-1,r,o)}catch(e){}const d=Array.isArray(t)?[]:{};let p=0;const f=so(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(p>=r){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=Eo(e,t,c-1,r,o),p++}return a(t),d}var Co;function ko(e){return new Io((t=>{t(e)}))}function So(e){return new Io(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Co||(Co={}));class Io{constructor(e){Io.prototype.__init.call(this),Io.prototype.__init2.call(this),Io.prototype.__init3.call(this),Io.prototype.__init4.call(this),this._state=Co.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Io(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Io(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Co.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Co.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Co.PENDING&&(Ur(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Co.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Co.RESOLVED&&e[1](this._value),this._state===Co.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const To=1e3;function _o(){return Date.now()/To}const Oo=function(){const{performance:e}=Zr;if(!e||!e.now)return _o;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/To}();function jo(e,t=[]){return[e,t]}function Ao(e,t){const[n,r]=e;return[n,[...r,t]]}function Po(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Bo(e,t){return(t||new TextEncoder).encode(e)}function No(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[Bo(o,t),e]:o.push("string"==typeof e?Bo(e,t):e)}for(const e of r){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(wo(n))}i(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function Do(e,t){const n="string"==typeof e.data?Bo(e.data,t):e.data;return[uo({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(()=>{const{performance:e}=Zr;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;(i||s<t)&&o<=s&&e.timeOrigin})();const zo={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Mo(e){return zo[e]}function Ro(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const Fo=6e4;const Lo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,$o="production";function Ho(){return Gr("globalEventProcessors",(()=>[]))}function Uo(e){Ho().push(e)}function Vo(e,t,n,r=0){return new Io(((o,i)=>{const a=e[r];if(null===t||"function"!=typeof a)o(t);else{const s=a({...t},n);Lo&&a.id&&null===s&&no.log(`Event processor "${a.id}" dropped event`),Ur(s)?s.then((t=>Vo(e,t,n,r+1).then(o))).then(null,i):Vo(e,s,n,r+1).then(o).then(null,i)}}))}function Wo(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Oo(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:go()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const qo=1;function Zo(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,tags:s,origin:l}=Go(e);return uo({data:r,op:o,parent_span_id:i,span_id:t,status:a,tags:s,trace_id:n,origin:l})}function Go(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}const Yo=new WeakMap;function Ko(){return pi().getClient()}function Xo(e){return e.transaction}function Jo(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},a=uo({environment:r.environment||$o,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function Qo(e){const t=Ko();if(!t)return{};const n=Jo(Go(e).trace_id||"",t,pi().getScope()),r=Xo(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:a}=r.metadata;null!=i&&(n.sample_rate=`${i}`);const s=Go(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&qo)}(r)),t.emit&&t.emit("createDsc",n),n}function ei(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,l=uo(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=uo(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=uo(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=uo(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Zo(t),...e.contexts};const n=Xo(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Qo(t),...e.sdkProcessingMetadata};const r=Go(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){var n;e.fingerprint=e.fingerprint?(n=e.fingerprint,Array.isArray(n)?n:[n]):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function ti(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:f,span:h}=t;ni(e,"extra",n),ni(e,"tags",r),ni(e,"user",o),ni(e,"contexts",i),ni(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function ni(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let ri;class oi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ii()}static clone(e){return e?e.clone():new oi}clone(){const e=new oi;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Wo(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof oi){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if($r(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=ii(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:_o(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){return ei(e,this.getScopeData()),Vo([...n,...Ho(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:go();if(!this._client)return no.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:go();if(!this._client)return no.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:go();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(no.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function ii(){return{traceId:go(),spanId:go().substring(16)}}const ai="7.119.2",si=parseFloat(ai),li=100;class ci{constructor(e,t,n,r=si){let o,i;this._version=r,t?o=t:(o=new oi,o.setClient(e)),n?i=n:(i=new oi,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return Ur(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:go(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:go(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:go();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=li}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const a={timestamp:_o(),...e},s=o?to((()=>o(a,t))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=di(this);try{e(this)}finally{di(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Lo&&no.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Lo&&!n&&(this.getClient()?no.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):no.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Wo(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=$o}=n&&n.getOptions()||{},{userAgent:i}=Zr.navigator||{},a=function(e){const t=Oo(),n={sid:go(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return uo({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Wo(n,e),n}({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&Wo(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=ui().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Lo&&no.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ui(){return Zr.__SENTRY__=Zr.__SENTRY__||{extensions:{},hub:void 0},Zr}function di(e){const t=ui(),n=fi(t);return hi(t,e),n}function pi(){const e=ui();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=ui()){var t;return(t=e)&&t.__SENTRY__&&t.__SENTRY__.hub&&!fi(e).isOlderThan(si)||hi(e,new ci),fi(e)}(e)}function fi(e){return Gr("hub",(()=>new ci),e)}function hi(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const mi=[];function gi(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function vi(e,t,n){if(n[t.name])Lo&&no.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===mi.indexOf(t.name)&&(t.setupOnce(Uo,pi),mi.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Lo&&no.log(`Integration installed: ${t.name}`)}}const yi="Not capturing exception because it's already been captured.";class bi{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=ro.exec(e);if(!t)return void to((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return io({host:i,pass:o,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):io(e);if(t&&function(e){if(!Jr)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(no.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(no.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(no.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(no.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Lo&&no.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(bo(e))return void(Lo&&no.log(yi));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=Lr(e)?e:String(e),a=null===(s=e)||Lr(s)||"object"!=typeof s&&"function"!=typeof s?this.eventFromMessage(i,t,n):this.eventFromException(e,n);var s;return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&bo(t.originalException))return void(Lo&&no.log(yi));let r=t&&t.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?Lo&&no.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Wo(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):ko(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Lo&&no.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];vi(this,e,this._integrations),t||gi(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=Ro(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:oo(r)},...o&&{trace:uo({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,jo(a,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Ao(n,Do(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=Ro(n);return jo({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:oo(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;Lo&&no.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}captureAggregateMetrics(e){Lo&&no.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=oo(t));const i=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return jo(o,[i])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&vi(e,t,n)})),n}(this,e),gi(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Wo(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Io((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=function(){return pi().getIsolationScope()}()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),function(e,t,n,r,o,i){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||go(),timestamp:t.timestamp||_o()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:$o),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Wr(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Wr(a.value,i));const s=e.request;s&&s.url&&(s.url=Wr(s.url,i))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=Zr._sentryDebugIds;if(!n)return;let r;const o=Yo.get(t);o?r=o:(r=new Map,Yo.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(l,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new oi;return n.update(t),n}(r,n.captureContext);n.mechanism&&yo(l,n.mechanism);const d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(ri||(ri=new oi),ri).getScopeData();i&&ti(p,i.getScopeData()),u&&ti(p,u.getScopeData());const f=[...n.attachments||[],...p.attachments];return f.length&&(n.attachments=f),ei(l,p),Vo([...d,...Ho(),...p.eventProcessors],l,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:wo(e.data,t,n)}})))},...e.user&&{user:wo(e.user,t,n)},...e.contexts&&{contexts:wo(e.contexts,t,n)},...e.extra&&{extra:wo(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=wo(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=Go(e).data;return r&&(e.data=wo(r,t,n)),e}))),r}(e,a,s):e)))}(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const s=a||Jo(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Lo){const t=e;"log"===t.logLevel?no.log(t.message):no.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=xi(e),a=wi(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),So(new ao(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c="replay_event"===s?"replay":s,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new ao("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if(wi(t)&&r)return r(t,n);if(xi(t)&&o){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ur(e))return e.then((e=>{if(!$r(e)&&null!==e)throw new ao(n);return e}),(e=>{throw new ao(`${t} rejected with ${e}`)}));if(!$r(e)&&null!==e)throw new ao(n);return e}(o,l)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new ao(`${l} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof ao)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ao(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Lo&&no.error("Error while sending event:",e)}));Lo&&no.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function wi(e){return void 0===e.type}function xi(e){return"transaction"===e.type}function Ei(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return So(new ao("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new Io(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{ko(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};function o(o){const i=[];if(Po(o,((t,n)=>{const o=Mo(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=Ci(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return ko();const a=jo(o[0],i),s=t=>{Po(a,((n,r)=>{const o=Ci(n,r);e.recordDroppedEvent(t,Mo(r),o)}))};return n.add((()=>t({body:No(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Lo&&no.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+s);else o.all=r+s}else a?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Fo:r-t}(a,r):429===t&&(o.all=r+6e4);return o}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof ao)return Lo&&no.error("Skipped sending event because buffer is full."),s("queue_overflow"),ko();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function Ci(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const ki=Zr,Si="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Ii(e,t){const n=_i(e,t),r={type:t&&t.name,value:ji(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ti(e,t){return{exception:{values:[Ii(e,t)]}}}function _i(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Oi.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const Oi=/Minified React error #\d+;/i;function ji(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ai(e,t,n,r){const o={};if(r&&n){const r=_i(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Lr(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Pi(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(so(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Wr(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Wr(r,t)}return""}(e),r=t?"promise rejection":"exception";if(Rr(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(Hr(e)){const t=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}let Bi;const Ni="?";function Di(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const zi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mi=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ri=[30,e=>{const t=zi.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Mi.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Wi(t[1]||Ni,t[2]);return Di(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Fi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Li=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$i=[50,e=>{const t=Fi.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Li.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Ni;return[n,e]=Wi(n,e),Di(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Hi=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ui=[40,e=>{const t=Hi.exec(e);return t?Di(t[2],t[1]||Ni,+t[3],t[4]?+t[4]:void 0):void 0}],Vi=function(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e<o.length;e++){const n=o[e];if(n.length>1024)continue;const i=fo.test(n)?n.replace(fo,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),ho.test(t[t.length-1].function||"")&&(t.pop(),ho.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}(Ri,$i,Ui),Wi=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ni,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var qi=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Zi=qi.Provider,Gi=function(){return r(qi)},Yi=function(){return Gi().assetFilter},Ki=function(){return Gi().selectionMode},Xi=function(){return Gi().hideSwitch},Ji=n(null),Qi={field:"CREATED_AT",direction:"DESC"};function ea(e){var n=o(Qi),r=n[0],a=n[1],s=o(Qi),l=s[0],c=s[1],u=o(Qi),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?c(t):p(t)}function h(){a(Qi),c(Qi),p(Qi)}var m=i((function(){return{assets:r,collections:l,collection:d,setOrdering:f,reset:h}}),[r,d,l]);return t.createElement(Ji.Provider,{value:m},e.children)}function ta(e){var t=function(){var e=r(Ji);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(n){return t.setOrdering(e,n)}]}var na=function(e,t){return na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},na(e,t)},ra=function(){return ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ra.apply(this,arguments)};function oa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ia(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function aa(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function sa(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function la(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ca=n(null);function ua(e){var n=o({page:"assets"});return t.createElement(ca.Provider,{value:n},e.children)}function da(){var e=r(ca);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var pa=n(null),fa={assets:"",collection:"",collections:"",isLoading:!1};function ha(e){var n=o(fa),r=n[0],s=n[1],l=da()[0];function c(e,t){var n=""!==t;s((function(r){var o;return ra(ra({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){s((function(t){return ra(ra({},t),{isLoading:e})}))}function d(){s(fa)}a((function(){var t;c("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){s((function(e){return ra(ra({},e),{collection:""})}))}),[l]);var p=i((function(){return ra(ra({},r),{setSearch:c,setIsLoading:u,clear:d})}),[r]);return t.createElement(pa.Provider,{value:p},e.children)}function ma(){var e=r(pa);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function ga(e){var t=ma();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}var va,ya,ba={error:console.error},wa=n(null),xa=wa.Provider,Ea=function(){var e=r(wa);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},Ca=v(ya?va:(ya=1,va=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0})),ka="-ms-",Sa="-moz-",Ia="-webkit-",Ta="comm",_a="rule",Oa="decl",ja="@import",Aa="@keyframes",Pa="@layer",Ba=Math.abs,Na=String.fromCharCode,Da=Object.assign;function za(e){return e.trim()}function Ma(e,t){return(e=t.exec(e))?e[0]:e}function Ra(e,t,n){return e.replace(t,n)}function Fa(e,t,n){return e.indexOf(t,n)}function La(e,t){return 0|e.charCodeAt(t)}function $a(e,t,n){return e.slice(t,n)}function Ha(e){return e.length}function Ua(e){return e.length}function Va(e,t){return t.push(e),e}function Wa(e,t){return e.filter((function(e){return!Ma(e,t)}))}var qa=1,Za=1,Ga=0,Ya=0,Ka=0,Xa="";function Ja(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:qa,column:Za,length:a,return:"",siblings:s}}function Qa(e,t){return Da(Ja("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function es(e){for(;e.root;)e=Qa(e.root,{children:[e]});Va(e,e.siblings)}function ts(){return Ka=Ya>0?La(Xa,--Ya):0,Za--,10===Ka&&(Za=1,qa--),Ka}function ns(){return Ka=Ya<Ga?La(Xa,Ya++):0,Za++,10===Ka&&(Za=1,qa++),Ka}function rs(){return La(Xa,Ya)}function os(){return Ya}function is(e,t){return $a(Xa,e,t)}function as(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ss(e){return za(is(Ya-1,us(91===e?e+2:40===e?e+1:e)))}function ls(e){for(;(Ka=rs())&&Ka<33;)ns();return as(e)>2||as(Ka)>3?"":" "}function cs(e,t){for(;--t&&ns()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return is(e,os()+(t<6&&32==rs()&&32==ns()))}function us(e){for(;ns();)switch(Ka){case e:return Ya;case 34:case 39:34!==e&&39!==e&&us(Ka);break;case 40:41===e&&us(e);break;case 92:ns()}return Ya}function ds(e,t){for(;ns()&&e+Ka!==57&&(e+Ka!==84||47!==rs()););return"/*"+is(t,Ya-1)+"*"+Na(47===e?e:ns())}function ps(e){for(;!as(rs());)ns();return is(e,Ya)}function fs(e){return function(e){return Xa="",e}(hs("",null,null,null,[""],e=function(e){return qa=Za=1,Ga=Ha(Xa=e),Ya=0,[]}(e),0,[0],e))}function hs(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,E=r,C=b;g;)switch(h=y,y=ns()){case 40:if(108!=h&&58==La(C,d-1)){-1!=Fa(C+=Ra(ss(y),"&","&\f"),"&\f",Ba(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=ss(y);break;case 9:case 10:case 13:case 32:C+=ls(h);break;case 92:C+=cs(os()-1,7);continue;case 47:switch(rs()){case 42:case 47:Va(gs(ds(ns(),os()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[c++]=Ha(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(C=Ra(C,/\f/g,"")),f>0&&Ha(C)-d&&Va(f>32?vs(C+";",r,n,d-1,l):vs(Ra(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Va(E=ms(C,t,n,c,u,o,s,b,w=[],x=[],d,i),i),123===y)if(0===u)hs(C,t,E,E,w,i,d,s,x);else switch(99===p&&110===La(C,3)?100:p){case 100:case 108:case 109:case 115:hs(e,E,E,r&&Va(ms(e,E,E,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:hs(C,E,E,E,[""],x,0,s,x)}}c=u=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Ha(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ts())continue;switch(C+=Na(y),y*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Ha(C)-1)*v,v=1;break;case 64:45===rs()&&(C+=ss(ns())),p=rs(),u=d=Ha(b=C+=ps(os())),y++;break;case 45:45===h&&2==Ha(C)&&(m=0)}}return i}function ms(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=Ua(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=$a(e,p+1,p=Ba(g=a[m])),w=e;y<h;++y)(w=za(g>0?f[y]+" "+b:Ra(b,/&\f/g,f[y])))&&(l[v++]=w);return Ja(e,t,n,0===o?_a:s,l,c,u,d)}function gs(e,t,n,r){return Ja(e,t,n,Ta,Na(Ka),$a(e,2,-2),0,r)}function vs(e,t,n,r,o){return Ja(e,t,n,Oa,$a(e,0,r),$a(e,r+1,-1),r,o)}function ys(e,t,n){switch(function(e,t){return 45^La(e,0)?(((t<<2^La(e,0))<<2^La(e,1))<<2^La(e,2))<<2^La(e,3):0}(e,t)){case 5103:return Ia+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ia+e+e;case 4789:return Sa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ia+e+Sa+e+ka+e+e;case 5936:switch(La(e,t+11)){case 114:return Ia+e+ka+Ra(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ia+e+ka+Ra(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ia+e+ka+Ra(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ia+e+ka+e+e;case 6165:return Ia+e+ka+"flex-"+e+e;case 5187:return Ia+e+Ra(e,/(\w+).+(:[^]+)/,Ia+"box-$1$2"+ka+"flex-$1$2")+e;case 5443:return Ia+e+ka+"flex-item-"+Ra(e,/flex-|-self/g,"")+(Ma(e,/flex-|baseline/)?"":ka+"grid-row-"+Ra(e,/flex-|-self/g,""))+e;case 4675:return Ia+e+ka+"flex-line-pack"+Ra(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ia+e+ka+Ra(e,"shrink","negative")+e;case 5292:return Ia+e+ka+Ra(e,"basis","preferred-size")+e;case 6060:return Ia+"box-"+Ra(e,"-grow","")+Ia+e+ka+Ra(e,"grow","positive")+e;case 4554:return Ia+Ra(e,/([^-])(transform)/g,"$1"+Ia+"$2")+e;case 6187:return Ra(Ra(Ra(e,/(zoom-|grab)/,Ia+"$1"),/(image-set)/,Ia+"$1"),e,"")+e;case 5495:case 3959:return Ra(e,/(image-set\([^]*)/,Ia+"$1$`$1");case 4968:return Ra(Ra(e,/(.+:)(flex-)?(.*)/,Ia+"box-pack:$3"+ka+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ia+e+e;case 4200:if(!Ma(e,/flex-|baseline/))return ka+"grid-column-align"+$a(e,t)+e;break;case 2592:case 3360:return ka+Ra(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Ma(e.props,/grid-\w+-end/)}))?~Fa(e+(n=n[t].value),"span",0)?e:ka+Ra(e,"-start","")+e+ka+"grid-row-span:"+(~Fa(n,"span",0)?Ma(n,/\d+/):+Ma(n,/\d+/)-+Ma(e,/\d+/))+";":ka+Ra(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Ma(e.props,/grid-\w+-start/)}))?e:ka+Ra(Ra(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ra(e,/(.+)-inline(.+)/,Ia+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ha(e)-1-t>6)switch(La(e,t+1)){case 109:if(45!==La(e,t+4))break;case 102:return Ra(e,/(.+:)(.+)-([^]+)/,"$1"+Ia+"$2-$3$1"+Sa+(108==La(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Fa(e,"stretch",0)?ys(Ra(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ra(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return ka+n+":"+r+s+(o?ka+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===La(e,t+6))return Ra(e,":",":"+Ia)+e;break;case 6444:switch(La(e,45===La(e,14)?18:11)){case 120:return Ra(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ia+(45===La(e,14)?"inline-":"")+"box$3$1"+Ia+"$2$3$1"+ka+"$2box$3")+e;case 100:return Ra(e,":",":"+ka)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ra(e,"scroll-","scroll-snap-")+e}return e}function bs(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ws(e,t,n,r){switch(e.type){case Pa:if(e.children.length)break;case ja:case Oa:return e.return=e.return||e.value;case Ta:return"";case Aa:return e.return=e.value+"{"+bs(e.children,r)+"}";case _a:if(!Ha(e.value=e.props.join(",")))return""}return Ha(n=bs(e.children,r))?e.return=e.value+"{"+n+"}":""}function xs(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oa:return void(e.return=ys(e.value,e.length,n));case Aa:return bs([Qa(e,{value:Ra(e.value,"@","@"+Ia)})],r);case _a:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Ma(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":es(Qa(e,{props:[Ra(t,/:(read-\w+)/,":"+Sa+"$1")]})),es(Qa(e,{props:[t]})),Da(e,{props:Wa(n,r)});break;case"::placeholder":es(Qa(e,{props:[Ra(t,/:(plac\w+)/,":"+Ia+"input-$1")]})),es(Qa(e,{props:[Ra(t,/:(plac\w+)/,":"+Sa+"$1")]})),es(Qa(e,{props:[Ra(t,/:(plac\w+)/,ka+"input-$1")]})),es(Qa(e,{props:[t]})),Da(e,{props:Wa(n,r)})}return""}))}}var Es={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cs="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ks="active",Ss="data-styled-version",Is="6.1.13",Ts="/*!sc*/\n",_s="undefined"!=typeof window&&"HTMLElement"in window,Os=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),js={},As=Object.freeze([]),Ps=Object.freeze({});function Bs(e,t,n){return void 0===n&&(n=Ps),e.theme!==n.theme&&e.theme||t||n.theme}var Ns=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ds=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zs=/(^-|-$)/g;function Ms(e){return e.replace(Ds,"-").replace(zs,"")}var Rs=/(a)(d)/gi,Fs=52,Ls=function(e){return String.fromCharCode(e+(e>25?39:97))};function $s(e){var t,n="";for(t=Math.abs(e);t>Fs;t=t/Fs|0)n=Ls(t%Fs)+n;return(Ls(t%Fs)+n).replace(Rs,"$1-$2")}var Hs,Us=5381,Vs=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ws=function(e){return Vs(Us,e)};function qs(e){return $s(Ws(e)>>>0)}function Zs(e){return"string"==typeof e&&!0}var Gs="function"==typeof Symbol&&Symbol.for,Ys=Gs?Symbol.for("react.memo"):60115,Ks=Gs?Symbol.for("react.forward_ref"):60112,Xs={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Js={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},el=((Hs={})[Ks]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hs[Ys]=Qs,Hs);function tl(e){return("type"in(t=e)&&t.type.$$typeof)===Ys?Qs:"$$typeof"in e?el[e.$$typeof]:Xs;var t}var nl=Object.defineProperty,rl=Object.getOwnPropertyNames,ol=Object.getOwnPropertySymbols,il=Object.getOwnPropertyDescriptor,al=Object.getPrototypeOf,sl=Object.prototype;function ll(e,t,n){if("string"!=typeof t){if(sl){var r=al(t);r&&r!==sl&&ll(e,r,n)}var o=rl(t);ol&&(o=o.concat(ol(t)));for(var i=tl(e),a=tl(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Js||n&&n[l]||a&&l in a||i&&l in i)){var c=il(t,l);try{nl(e,l,c)}catch(e){}}}}return e}function cl(e){return"function"==typeof e}function ul(e){return"object"==typeof e&&"styledComponentId"in e}function dl(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function pl(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function fl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function hl(e,t,n){if(void 0===n&&(n=!1),!n&&!fl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=hl(e[r],t[r]);else if(fl(t))for(var r in t)e[r]=hl(e[r],t[r]);return e}function ml(e,t){Object.defineProperty(e,"toString",{value:t})}function gl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var vl=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw gl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Ts);return t},e}(),yl=new Map,bl=new Map,wl=1,xl=function(e){if(yl.has(e))return yl.get(e);for(;bl.has(wl);)wl++;var t=wl++;return yl.set(e,t),bl.set(t,e),t},El=function(e,t){wl=t+1,yl.set(e,t),bl.set(t,e)},Cl="style[".concat(Cs,"][").concat(Ss,'="').concat(Is,'"]'),kl=new RegExp("^".concat(Cs,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Sl=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Il=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ts),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(kl);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(El(u,c),Sl(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Tl=function(e){for(var t=document.querySelectorAll(Cl),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Cs)!==ks&&(Il(e,o),o.parentNode&&o.parentNode.removeChild(o))}},_l=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Cs,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Cs,ks),r.setAttribute(Ss,Is);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ol=function(){function e(e){this.element=_l(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw gl(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),jl=function(){function e(e){this.element=_l(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Al=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Pl=_s,Bl={isServer:!_s,useCSSOMInjection:!Os},Nl=function(){function e(e,t,n){void 0===e&&(e=Ps),void 0===t&&(t={});var r=this;this.options=ra(ra({},Bl),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&_s&&Pl&&(Pl=!1,Tl(this)),ml(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return bl.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Cs,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Ts)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return xl(e)},e.prototype.rehydrate=function(){!this.server&&_s&&Tl(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ra(ra({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Al(n):t?new Ol(n):new jl(n)}(this.options),new vl(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(xl(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(xl(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(xl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dl=/&/g,zl=/^\s*\/\/.*$/gm;function Ml(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ml(e.children,t)),e}))}function Rl(e){var t,n,r,o=void 0===e?Ps:e,i=o.options,a=void 0===i?Ps:i,s=o.plugins,l=void 0===s?As:s,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===_a&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Dl,n).replace(r,c))})),a.prefix&&u.push(xs),u.push(ws);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(zl,""),c=fs(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=Ml(c,a.namespace));var d,p=[];return bs(c,function(e){var t=Ua(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||gl(15),Vs(e,t.name)}),Us).toString():"",d}var Fl=new Nl,Ll=Rl(),$l=t.createContext({shouldForwardProp:void 0,styleSheet:Fl,stylis:Ll}),Hl=t.createContext(void 0);function Ul(){return r($l)}function Vl(e){var n=o(e.stylisPlugins),r=n[0],s=n[1],l=Ul().styleSheet,c=i((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,l]),u=i((function(){return Rl({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);a((function(){Ca(r,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]);var d=i((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:u}}),[e.shouldForwardProp,c,u]);return t.createElement($l.Provider,{value:d},t.createElement(Hl.Provider,{value:u},e.children))}var Wl=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ll);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ml(this,(function(){throw gl(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ll),this.name+e.hash},e}(),ql=function(e){return e>="A"&&e<="Z"};function Zl(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ql(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Gl=function(e){return null==e||!1===e||""===e},Yl=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Gl(i)&&(Array.isArray(i)&&i.isCss||cl(i)?r.push("".concat(Zl(o),":"),i,";"):fl(i)?r.push.apply(r,sa(sa(["".concat(o," {")],Yl(i),!1),["}"],!1)):r.push("".concat(Zl(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Es||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Kl(e,t,n,r){return Gl(e)?[]:ul(e)?[".".concat(e.styledComponentId)]:cl(e)?!cl(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Kl(e(t),t,n,r):e instanceof Wl?n?(e.inject(n,r),[e.getName(r)]):[e]:fl(e)?Yl(e):Array.isArray(e)?Array.prototype.concat.apply(As,e.map((function(e){return Kl(e,t,n,r)}))):[e.toString()];var o}function Xl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(cl(n)&&!ul(n))return!1}return!0}var Jl=Ws(Is),Ql=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Xl(e),this.componentId=t,this.baseHash=Vs(Jl,t),this.baseStyle=n,Nl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=dl(r,this.staticRulesId);else{var o=pl(Kl(this.rules,e,t,n)),i=$s(Vs(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=dl(r,i),this.staticRulesId=i}else{for(var s=Vs(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=pl(Kl(u,e,t,n));s=Vs(s,d+c),l+=d}}if(l){var p=$s(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=dl(r,p)}}return r},e}(),ec=t.createContext(void 0),tc={};function nc(e,n,r){var o=ul(e),i=e,a=!Zs(e),l=n.attrs,c=void 0===l?As:l,u=n.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Ms(e);tc[n]=(tc[n]||0)+1;var r="".concat(n,"-").concat(qs(Is+n+tc[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):u,p=n.displayName,f=void 0===p?function(e){return Zs(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=n.displayName&&n.componentId?"".concat(Ms(n.displayName),"-").concat(n.componentId):n.componentId||d,m=o&&i.attrs?i.attrs.concat(c).filter(Boolean):c,g=n.shouldForwardProp;if(o&&i.shouldForwardProp){var v=i.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new Ql(r,h,o?i.componentStyle:void 0);function w(e,n){return function(e,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,u=e.target,d=t.useContext(ec),p=Ul(),f=e.shouldForwardProp||p.shouldForwardProp,h=Bs(n,d,a)||Ps,m=function(e,t,n){for(var r,o=ra(ra({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=cl(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?dl(o[s],a[s]):"style"===s?ra(ra({},o[s]),a[s]):a[s]}return t.className&&(o.className=dl(o.className,t.className)),o}(o,n,h),g=m.as||u,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var n=Ul();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(i,m),w=dl(l,c);return b&&(w+=" "+b),m.className&&(w+=" "+m.className),v[Zs(g)&&!Ns.has(g)?"class":"className"]=w,v.ref=r,s(g,v)}(x,e,n)}w.displayName=f;var x=t.forwardRef(w);return x.attrs=m,x.componentStyle=b,x.displayName=f,x.shouldForwardProp=g,x.foldedComponentIds=o?dl(i.foldedComponentIds,i.styledComponentId):"",x.styledComponentId=h,x.target=o?i.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)hl(e,o[r],!0);return e}({},i.defaultProps,e):e}}),ml(x,(function(){return".".concat(x.styledComponentId)})),a&&ll(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function rc(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var oc=function(e){return Object.assign(e,{isCss:!0})};function ic(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(cl(e)||fl(e))return oc(Kl(rc(As,sa([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Kl(r):oc(Kl(rc(r,t)))}function ac(e,t,n){if(void 0===n&&(n=Ps),!t)throw gl(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ic.apply(void 0,sa([r],o,!1)))};return r.attrs=function(r){return ac(e,t,ra(ra({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ac(e,t,ra(ra({},n),r))},r}var sc=function(e){return ac(nc,e)},lc=sc;Ns.forEach((function(e){lc[e]=sc(e)}));var cc=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Xl(e),Nl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(pl(Kl(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Nl.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function uc(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=ic.apply(void 0,sa([e],n,!1)),i="sc-global-".concat(qs(JSON.stringify(o))),a=new cc(o,i),s=function(e){var n=Ul(),r=t.useContext(ec),o=t.useRef(n.styleSheet.allocateGSInstance(i)).current;return n.styleSheet.server&&l(o,e,n.styleSheet,r,n.stylis),t.useLayoutEffect((function(){if(!n.styleSheet.server)return l(o,e,n.styleSheet,r,n.stylis),function(){return a.removeStyles(o,n.styleSheet)}}),[o,e,n.styleSheet,r,n.stylis]),null};function l(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,js,n,o);else{var i=ra(ra({},t),{theme:Bs(t,r,s.defaultProps)});a.renderStyles(e,i,n,o)}}return t.memo(s)}function dc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=pl(ic.apply(void 0,sa([e],t,!1))),o=qs(r);return new Wl(o,r)}var pc,fc,hc={exports:{}},mc={},gc=(fc||(fc=1,hc.exports=function(){if(pc)return mc;pc=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return mc.Fragment=r,mc.jsx=s,mc.jsxs=s,mc}()),hc.exports);const vc="v7.6.0".replace(/\./g,"-");function yc(e){return`var(--${e}-${vc})`}const bc={white:yc("white"),"white-rgb":yc("white-rgb"),gray1000:yc("gray1000"),"gray1000-rgb":yc("gray1000-rgb"),gray900:yc("gray900"),gray800:yc("gray800"),gray700:yc("gray700"),gray600:yc("gray600"),gray500:yc("gray500"),gray400:yc("gray400"),gray300:yc("gray300"),gray200:yc("gray200"),gray100:yc("gray100"),gray75:yc("gray75"),gray50:yc("gray50"),gray25:yc("gray25"),gray10:yc("gray10"),blue1000:yc("blue1000"),blue900:yc("blue900"),blue800:yc("blue800"),blue700:yc("blue700"),blue600:yc("blue600"),blue500:yc("blue500"),"blue500-rgb":yc("blue500-rgb"),blue500a10:yc("blue500a10"),blue400:yc("blue400"),blue300:yc("blue300"),blue200:yc("blue200"),blue100:yc("blue100"),red400:yc("red400"),red500:yc("red500"),"red500-rgb":yc("red500-rgb"),red500a10:yc("red500a10"),red500a50:yc("red500a50"),red600:yc("red600"),red700:yc("red700"),yellow500:yc("yellow500"),"yellow500-rgb":yc("yellow500-rgb"),yellow500a10:yc("yellow500a10"),yellow600:yc("yellow600"),yellow700:yc("yellow700"),green500:yc("green500"),purple1000:yc("purple1000"),purple900:yc("purple900"),purple800:yc("purple800"),purple700:yc("purple700"),purple600:yc("purple600"),purple500:yc("purple500"),purple400:yc("purple400"),purple300:yc("purple300"),purple200:yc("purple200"),purple100:yc("purple100"),magenta1000:yc("magenta1000"),magenta900:yc("magenta900"),magenta800:yc("magenta800"),magenta700:yc("magenta700"),magenta600:yc("magenta600"),magenta500:yc("magenta500"),magenta400:yc("magenta400"),magenta300:yc("magenta300"),magenta200:yc("magenta200"),magenta100:yc("magenta100"),teal1000:yc("teal1000"),teal900:yc("teal900"),teal800:yc("teal800"),teal700:yc("teal700"),teal600:yc("teal600"),teal500:yc("teal500"),"teal500-rgb":yc("teal500-rgb"),teal500a10:yc("teal500a10"),teal400:yc("teal400"),teal300:yc("teal300"),teal200:yc("teal200"),teal100:yc("teal100"),brandPrimary700:yc("brandPrimary700"),brandPrimary600:yc("brandPrimary600"),brandPrimary500:yc("brandPrimary500"),"brandPrimary500-rgb":yc("brandPrimary500-rgb"),brandPrimary300:yc("brandPrimary300"),brandPrimary100:yc("brandPrimary100"),spacing1:yc("spacing1"),spacing2:yc("spacing2"),spacing3:yc("spacing3"),spacing4:yc("spacing4"),spacing5:yc("spacing5"),spacing6:yc("spacing6"),spacing7:yc("spacing7"),spacing8:yc("spacing8"),spacing9:yc("spacing9"),layoutSpacing1:yc("layoutSpacing1"),layoutSpacing2:yc("layoutSpacing2"),layoutSpacing3:yc("layoutSpacing3"),layoutSpacing4:yc("layoutSpacing4"),layoutSpacing5:yc("layoutSpacing5"),layoutSpacing6:yc("layoutSpacing6"),layoutSpacing7:yc("layoutSpacing7"),radiusSmall:yc("radiusSmall"),radiusMedium:yc("radiusMedium"),radiusLarge:yc("radiusLarge"),radiusCircle:yc("radiusCircle"),radiusPill:yc("radiusPill"),radiusBase:yc("radiusBase"),brandRadiusBase:yc("brandRadiusBase"),fontStackBase:yc("fontStackBase"),brandFontStackBase:yc("brandFontStackBase"),fontSize25:yc("fontSize25"),fontSize50:yc("fontSize50"),fontSize75:yc("fontSize75"),fontSize100:yc("fontSize100"),fontSize200:yc("fontSize200"),fontSize300:yc("fontSize300"),fontSize400:yc("fontSize400"),fontSize500:yc("fontSize500"),fontSize600:yc("fontSize600"),fontSize700:yc("fontSize700"),fontSize800:yc("fontSize800"),fontSize900:yc("fontSize900"),fontSize1000:yc("fontSize1000"),fontSizeBase:yc("fontSizeBase"),lineHeightBase:yc("lineHeightBase"),lineHeightHeading:yc("lineHeightHeading"),lineHeightText:yc("lineHeightText"),gray900a:yc("gray900a"),gray800a:yc("gray800a"),gray700a:yc("gray700a"),gray600a:yc("gray600a"),gray500a:yc("gray500a"),gray400a:yc("gray400a"),gray300a:yc("gray300a"),gray200a:yc("gray200a"),gray100a:yc("gray100a"),gray75a:yc("gray75a"),gray50a:yc("gray50a"),gray25a:yc("gray25a"),colorText:yc("colorText"),colorTextMuted:yc("colorTextMuted"),colorTextDisabled:yc("colorTextDisabled"),focusRingWidth:yc("focusRingWidth"),focusRingColorPrimary:yc("focusRingColorPrimary"),focusRingColorSecondary:yc("focusRingColorSecondary"),colorShadow:yc("colorShadow"),elevationStatic:yc("elevationStatic"),elevation1:yc("elevation1"),elevation2:yc("elevation2"),elevation4:yc("elevation4"),elevation8:yc("elevation8"),elevation12:yc("elevation12"),elevation16:yc("elevation16"),elevation24:yc("elevation24"),componentButtonPrimaryBorderHover:yc("componentButtonPrimaryBorderHover"),componentButtonPrimaryBorderActive:yc("componentButtonPrimaryBorderActive"),componentButtonPrimaryBorderFocus:yc("componentButtonPrimaryBorderFocus"),componentButtonPrimaryBorderDisabled:yc("componentButtonPrimaryBorderDisabled"),componentButtonPrimaryColor:yc("componentButtonPrimaryColor"),componentButtonPrimaryColorHover:yc("componentButtonPrimaryColorHover"),componentButtonPrimaryColorActive:yc("componentButtonPrimaryColorActive"),componentButtonPrimaryColorFocus:yc("componentButtonPrimaryColorFocus"),componentButtonPrimaryColorDisabled:yc("componentButtonPrimaryColorDisabled"),componentButtonPrimaryFill:yc("componentButtonPrimaryFill"),componentButtonPrimaryFillHover:yc("componentButtonPrimaryFillHover"),componentButtonPrimaryFillActive:yc("componentButtonPrimaryFillActive"),componentButtonPrimaryFillFocus:yc("componentButtonPrimaryFillFocus"),componentButtonPrimaryFillDisabled:yc("componentButtonPrimaryFillDisabled"),componentButtonPrimaryFocusRing:yc("componentButtonPrimaryFocusRing"),componentButtonSecondaryBorder:yc("componentButtonSecondaryBorder"),componentButtonSecondaryBorderHover:yc("componentButtonSecondaryBorderHover"),componentButtonSecondaryBorderActive:yc("componentButtonSecondaryBorderActive"),componentButtonSecondaryBorderFocus:yc("componentButtonSecondaryBorderFocus"),componentButtonSecondaryBorderDisabled:yc("componentButtonSecondaryBorderDisabled"),componentButtonSecondaryColor:yc("componentButtonSecondaryColor"),componentButtonSecondaryColorHover:yc("componentButtonSecondaryColorHover"),componentButtonSecondaryColorActive:yc("componentButtonSecondaryColorActive"),componentButtonSecondaryColorFocus:yc("componentButtonSecondaryColorFocus"),componentButtonSecondaryColorDisabled:yc("componentButtonSecondaryColorDisabled"),componentButtonSecondaryFill:yc("componentButtonSecondaryFill"),componentButtonSecondaryFillHover:yc("componentButtonSecondaryFillHover"),componentButtonSecondaryFillActive:yc("componentButtonSecondaryFillActive"),componentButtonSecondaryFillFocus:yc("componentButtonSecondaryFillFocus"),componentButtonSecondaryFillDisabled:yc("componentButtonSecondaryFillDisabled"),componentButtonSecondaryFocusRing:yc("componentButtonSecondaryFocusRing"),componentButtonCleanBorderFocus:yc("componentButtonCleanBorderFocus"),componentButtonCleanBorderActive:yc("componentButtonCleanBorderActive"),componentButtonCleanColor:yc("componentButtonCleanColor"),componentButtonCleanColorHover:yc("componentButtonCleanColorHover"),componentButtonCleanColorActive:yc("componentButtonCleanColorActive"),componentButtonCleanColorFocus:yc("componentButtonCleanColorFocus"),componentButtonCleanColorDisabled:yc("componentButtonCleanColorDisabled"),componentButtonCleanFill:yc("componentButtonCleanFill"),componentButtonCleanFillHover:yc("componentButtonCleanFillHover"),componentButtonCleanFillActive:yc("componentButtonCleanFillActive"),componentButtonCleanFillFocus:yc("componentButtonCleanFillFocus"),componentButtonCleanFillDisabled:yc("componentButtonCleanFillDisabled"),componentButtonCleanFocusRing:yc("componentButtonCleanFocusRing"),componentButtonDangerBorderHover:yc("componentButtonDangerBorderHover"),componentButtonDangerBorderActive:yc("componentButtonDangerBorderActive"),componentButtonDangerBorderFocus:yc("componentButtonDangerBorderFocus"),componentButtonDangerBorderDisabled:yc("componentButtonDangerBorderDisabled"),componentButtonDangerColor:yc("componentButtonDangerColor"),componentButtonDangerColorHover:yc("componentButtonDangerColorHover"),componentButtonDangerColorActive:yc("componentButtonDangerColorActive"),componentButtonDangerColorFocus:yc("componentButtonDangerColorFocus"),componentButtonDangerColorDisabled:yc("componentButtonDangerColorDisabled"),componentButtonDangerFill:yc("componentButtonDangerFill"),componentButtonDangerFillHover:yc("componentButtonDangerFillHover"),componentButtonDangerFillActive:yc("componentButtonDangerFillActive"),componentButtonDangerFillFocus:yc("componentButtonDangerFillFocus"),componentButtonDangerFillDisabled:yc("componentButtonDangerFillDisabled"),componentButtonDangerFocusRing:yc("componentButtonDangerFocusRing"),componentDividerColor:yc("componentDividerColor"),componentCheckboxBorderUnchecked:yc("componentCheckboxBorderUnchecked"),componentCheckboxBorderUncheckedHover:yc("componentCheckboxBorderUncheckedHover"),componentCheckboxBorderUncheckedFocus:yc("componentCheckboxBorderUncheckedFocus"),componentCheckboxFillDisabled:yc("componentCheckboxFillDisabled"),componentCheckboxCheckmarkColorDisabled:yc("componentCheckboxCheckmarkColorDisabled"),componentRadioBorderUnchecked:yc("componentRadioBorderUnchecked"),componentRadioFillDisabled:yc("componentRadioFillDisabled"),componentRadioCheckmarkColorDisabled:yc("componentRadioCheckmarkColorDisabled"),componentRadioBorderUncheckedHover:yc("componentRadioBorderUncheckedHover"),componentPaginationBackground:yc("componentPaginationBackground"),componentPaginationElevation:yc("componentPaginationElevation"),componentTooltipBackground:yc("componentTooltipBackground"),componentTooltipShadow:yc("componentTooltipShadow"),componentTooltipTitleColor:yc("componentTooltipTitleColor"),componentTooltipSecondaryTextColor:yc("componentTooltipSecondaryTextColor"),componentTooltipTextColor:yc("componentTooltipTextColor"),componentTabsBackgroundColor:yc("componentTabsBackgroundColor"),componentTabsTabBackgroundColorActive:yc("componentTabsTabBackgroundColorActive")};function wc({children:e,color:t="brand",hasBorder:n=!1,isPillShaped:r=!1,icon:o,isSmall:i=!1,isSecondary:a=!1,...s}){return gc.jsxs(xc,{$color:t,$hasBorder:n,$isPillShaped:r,$isSecondary:a,$isSmall:i,...s,children:[o&&gc.jsx(Ec,{$isSmall:i,children:o}),e]})}const xc=lc.div.withConfig({displayName:"BadgeStyled",componentId:"sc-1qqwh9d-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.$isSmall?"20px":"24px"),(e=>e.$isSmall?bc.spacing2:"6px"),(e=>e.$isPillShaped?bc.radiusPill:bc.radiusMedium),bc.white,bc.fontSize50,(e=>{if(!e.$isSecondary&&e.$color){const t={brand:bc.brandPrimary500,gray:bc.gray400,black:bc.gray900,"black-alpha":bc.gray600a,green:bc.green500,blue:bc.blue500,red:bc.red400};return e.$hasBorder?ic(["border-color:",";color:",";"],t[e.$color],t[e.$color]):ic(["background-color:",";"],t[e.$color])}if(e.$isSecondary)return ic(["border-color:",";background-color:",";color:",";"],e.$hasBorder?bc.gray100:"transparent",e.$hasBorder?bc.white:bc.gray100,bc.gray800)})),Ec=lc.div.withConfig({displayName:"IconHolder",componentId:"sc-1qqwh9d-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.$isSmall?bc.spacing1:bc.spacing2),bc.spacing1),Cc=ic(["color:",";font-size:",";font-family:",";line-height:",";"],bc.colorText,bc.fontSizeBase,bc.brandFontStackBase,bc.lineHeightBase);lc.div.withConfig({displayName:"BaseStyles",componentId:"sc-9qrbu4-0"})(["",""],Cc);const kc="undefined"!=typeof document?t.useLayoutEffect:()=>{},Sc=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Ic=e=>e&&"window"in e&&e.window===e?e:Sc(e).defaultView||window;function Tc(e){let t=null;return()=>(null==t&&(t=e()),t)}const _c=Tc((function(){return"undefined"!=typeof window&&null!=window.navigator&&/^Mac/i.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform);var e})),Oc=Tc((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)}));class jc{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Ac(e){let t=l({isFocused:!1,observer:null});kc((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=l(null);return kc((()=>{t.current=e}),[e]),c(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new jc("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let Pc=null,Bc=new Set,Nc=new Map,Dc=!1,zc=!1;const Mc={Tab:!0,Escape:!0};function Rc(e,t){for(let n of Bc)n(e,t)}function Fc(e){Dc=!0,function(e){return!(e.metaKey||!_c()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Pc="keyboard",Rc("keyboard",e))}function Lc(e){Pc="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Dc=!0,Rc("pointer",e))}function $c(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Oc()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Dc=!0,Pc="virtual")}function Hc(e){e.target!==window&&e.target!==document&&(Dc||zc||(Pc="virtual",Rc("virtual",e)),Dc=!1,zc=!1)}function Uc(){Dc=!1,zc=!0}function Vc(e){if("undefined"==typeof window||Nc.get(Ic(e)))return;const t=Ic(e),n=Sc(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Dc=!0,r.apply(this,arguments)},n.addEventListener("keydown",Fc,!0),n.addEventListener("keyup",Fc,!0),n.addEventListener("click",$c,!0),t.addEventListener("focus",Hc,!0),t.addEventListener("blur",Uc,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Lc,!0),n.addEventListener("pointermove",Lc,!0),n.addEventListener("pointerup",Lc,!0)):(n.addEventListener("mousedown",Lc,!0),n.addEventListener("mousemove",Lc,!0),n.addEventListener("mouseup",Lc,!0)),t.addEventListener("beforeunload",(()=>{Wc(e)}),{once:!0}),Nc.set(t,{focus:r})}const Wc=(e,t)=>{const n=Ic(e),r=Sc(e);t&&r.removeEventListener("DOMContentLoaded",t),Nc.has(n)&&(n.HTMLElement.prototype.focus=Nc.get(n).focus,r.removeEventListener("keydown",Fc,!0),r.removeEventListener("keyup",Fc,!0),r.removeEventListener("click",$c,!0),n.removeEventListener("focus",Hc,!0),n.removeEventListener("blur",Uc,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Lc,!0),r.removeEventListener("pointermove",Lc,!0),r.removeEventListener("pointerup",Lc,!0)):(r.removeEventListener("mousedown",Lc,!0),r.removeEventListener("mousemove",Lc,!0),r.removeEventListener("mouseup",Lc,!0)),Nc.delete(n))};function qc(){return"pointer"!==Pc}"undefined"!=typeof document&&function(e){const t=Sc(e);let n;"loading"!==t.readyState?Vc(e):(n=()=>{Vc(e)},t.addEventListener("DOMContentLoaded",n))}();const Zc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Gc=!1,Yc=0;function Kc(){Gc=!0,setTimeout((()=>{Gc=!1}),50)}function Xc(e){"touch"===e.pointerType&&Kc()}function Jc(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Xc):document.addEventListener("touchend",Kc),Yc++,()=>{Yc--,Yc>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Xc):document.removeEventListener("touchend",Kc))}}function Qc(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=l({isFocused:!1,isFocusVisible:t||qc()}),[s,u]=o(!1),[d,p]=o((()=>i.current.isFocused&&i.current.isFocusVisible)),f=c((()=>p(i.current.isFocused&&i.current.isFocusVisible)),[]),h=c((e=>{i.current.isFocused=e,u(e),f()}),[f]);!function(e,t,n){Vc(),a((()=>{let t=(t,r)=>{(function(e,t,n){var r;const o="undefined"!=typeof window?Ic(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?Ic(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Ic(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Ic(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!Zc.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!Mc[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(qc())};return Bc.add(t),()=>{Bc.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=c((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=Ac(i),s=c((e=>{const t=Sc(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:r,onFocusChange:h}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=l({isFocusWithin:!1}),a=c((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),s=Ac(a),u=c((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e))}),[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:h});return{isFocused:s,isFocusVisible:d,focusProps:r?g:m}}const eu=lc.button.withConfig({displayName:"ButtonStyled",componentId:"sc-t3fck2-0"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentcolor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],bc.brandRadiusBase,bc.fontSizeBase,bc.brandFontStackBase,bc.lineHeightBase,(e=>e.$isFullWidth&&"width: 100%;"),(e=>e.$isSmall?ic(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],bc.spacing4,bc.fontSize75):ic(["height:40px !important;padding:0 "," !important;"],bc.spacing5)),(e=>{if("primary"===e.$variant){const t=ic(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],bc.componentButtonPrimaryBorderActive,bc.componentButtonPrimaryFillActive,bc.componentButtonPrimaryColorActive);return ic(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],bc.componentButtonPrimaryFill,bc.componentButtonPrimaryColor,e.$isPressed&&t,bc.componentButtonPrimaryBorderHover,bc.componentButtonPrimaryFillHover,bc.componentButtonPrimaryColorHover,bc.elevation1,bc.componentButtonPrimaryBorderFocus,bc.componentButtonPrimaryFillFocus,bc.componentButtonPrimaryColorFocus,bc.componentButtonPrimaryFocusRing,t,bc.componentButtonPrimaryBorderDisabled,bc.componentButtonPrimaryFillDisabled,bc.componentButtonPrimaryColorDisabled)}if("secondary"===e.$variant){const t=ic(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],bc.componentButtonSecondaryBorderActive,bc.componentButtonSecondaryFillActive,bc.componentButtonSecondaryColorActive);return ic(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],bc.componentButtonSecondaryBorder,bc.componentButtonSecondaryFill,bc.componentButtonSecondaryColor,e.$isPressed&&t,bc.componentButtonSecondaryBorderHover,bc.componentButtonSecondaryFillHover,bc.componentButtonSecondaryColorHover,bc.elevation1,bc.componentButtonSecondaryBorderFocus,bc.componentButtonSecondaryFillFocus,bc.componentButtonSecondaryColorFocus,bc.componentButtonSecondaryFocusRing,t,bc.componentButtonSecondaryBorderDisabled,bc.componentButtonSecondaryFillDisabled,bc.componentButtonSecondaryColorDisabled)}if("clean"===e.$variant){const t=ic(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],bc.componentButtonCleanBorderActive,bc.componentButtonCleanFillActive,bc.componentButtonCleanColorActive);return ic(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&&&:disabled{background-color:"," !important;color:"," !important;}"],bc.componentButtonCleanFill,bc.componentButtonCleanColor,e.$isPressed&&t,bc.componentButtonCleanFillHover,bc.componentButtonCleanColorHover,bc.componentButtonCleanBorderFocus,bc.componentButtonCleanColorFocus,bc.componentButtonCleanFocusRing,t,bc.componentButtonCleanFillDisabled,bc.componentButtonCleanColorDisabled)}if("danger"===e.$variant){const t=ic(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],bc.componentButtonDangerBorderActive,bc.componentButtonDangerFillActive,bc.componentButtonDangerColorActive);return ic(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&&&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],bc.componentButtonDangerFill,bc.componentButtonDangerColor,bc.elevation1,e.$isPressed&&t,bc.componentButtonDangerBorderHover,bc.componentButtonDangerFillHover,bc.componentButtonDangerColorHover,bc.elevation2,bc.componentButtonDangerBorderFocus,bc.componentButtonDangerColorFocus,bc.componentButtonDangerFocusRing,t,bc.componentButtonDangerBorderDisabled,bc.componentButtonDangerFillDisabled,bc.componentButtonDangerColorDisabled)}return""})),tu=lc.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1s1egyn-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],bc.brandRadiusBase,bc.fontSizeBase,bc.brandFontStackBase,bc.lineHeightBase,(e=>e.$isFullWidth&&"width: 100%;"),(e=>e.$isSmall?ic(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],bc.spacing4,bc.fontSize75):ic(["height:40px;padding:0 ",";"],bc.spacing5)),(e=>{if("primary"===e.$variant){const t=ic(["border-color:",";background-color:",";color:",";box-shadow:none;"],bc.componentButtonPrimaryBorderActive,bc.componentButtonPrimaryFillActive,bc.componentButtonPrimaryColorActive);return ic(["border-color:transparent;background-color:",";color:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],bc.componentButtonPrimaryFill,bc.componentButtonPrimaryColor,e.$isPressed&&t,bc.componentButtonPrimaryBorderHover,bc.componentButtonPrimaryFillHover,bc.componentButtonPrimaryColorHover,bc.elevation1,t,e.$isFocusVisible&&ic(["background-color:",";color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],bc.componentButtonPrimaryFillFocus,bc.componentButtonPrimaryColorFocus,bc.componentButtonPrimaryBorderFocus,bc.componentButtonPrimaryFocusRing),bc.componentButtonPrimaryBorderDisabled,bc.componentButtonPrimaryFillDisabled,bc.componentButtonPrimaryColorDisabled)}if("secondary"===e.$variant){const t=ic(["border-color:",";background-color:",";color:",";box-shadow:none;"],bc.componentButtonSecondaryBorderActive,bc.componentButtonSecondaryFillActive,bc.componentButtonSecondaryColorActive);return ic(["border-color:",";background-color:",";color:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],bc.componentButtonSecondaryBorder,bc.componentButtonSecondaryFill,bc.componentButtonSecondaryColor,e.$isPressed&&t,bc.componentButtonSecondaryBorderHover,bc.componentButtonSecondaryFillHover,bc.componentButtonSecondaryColorHover,bc.elevation1,t,e.$isFocusVisible&&ic(["background-color:",";color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],bc.componentButtonSecondaryFillFocus,bc.componentButtonSecondaryColorFocus,bc.componentButtonSecondaryBorderFocus,bc.componentButtonSecondaryFocusRing),bc.componentButtonSecondaryBorderDisabled,bc.componentButtonSecondaryFillDisabled,bc.componentButtonSecondaryColorDisabled)}if("clean"===e.$variant){const t=ic(["border-color:",";background-color:",";color:",";box-shadow:none;"],bc.componentButtonCleanBorderActive,bc.componentButtonCleanFillActive,bc.componentButtonCleanColorActive);return ic(["background-color:",";color:",";"," &&:hover{background-color:",";color:",";box-shadow:none;}&&:active{","}"," &&:disabled{background-color:",";color:",";}"],bc.componentButtonCleanFill,bc.componentButtonCleanColor,e.$isPressed&&t,bc.componentButtonCleanFillHover,bc.componentButtonCleanColorHover,t,e.$isFocusVisible&&ic(["color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],bc.componentButtonCleanColorFocus,bc.componentButtonCleanBorderFocus,bc.componentButtonCleanFocusRing),bc.componentButtonCleanFillDisabled,bc.componentButtonCleanColorDisabled)}if("danger"===e.$variant){const t=ic(["border-color:",";background-color:",";color:",";box-shadow:none;"],bc.componentButtonDangerBorderActive,bc.componentButtonDangerFillActive,bc.componentButtonDangerColorActive);return ic(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],bc.componentButtonDangerFill,bc.componentButtonDangerColor,bc.elevation1,e.$isPressed&&t,bc.componentButtonDangerBorderHover,bc.componentButtonDangerFillHover,bc.componentButtonDangerColorHover,bc.elevation2,t,e.$isFocusVisible&&ic(["background-color:",";color:",";box-shadow:none;&&,&&:hover{border-color:",";box-shadow:",";}"],bc.componentButtonDangerFillFocus,bc.componentButtonDangerColorFocus,bc.componentButtonDangerBorderFocus,bc.componentButtonDangerFocusRing),bc.componentButtonDangerBorderDisabled,bc.componentButtonDangerFillDisabled,bc.componentButtonDangerColorDisabled)}return""})),nu=lc.div.withConfig({displayName:"Icon",componentId:"sc-1s1egyn-1"})(["display:flex;align-items:center;height:100%;"]),ru=lc(nu).withConfig({displayName:"LeftIcon",componentId:"sc-1s1egyn-2"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.$lastChild?`calc(${bc.spacing2} * -1) `:bc.spacing3),bc.spacing2),ou=lc(nu).withConfig({displayName:"RightIcon",componentId:"sc-1s1egyn-3"})(["margin-right:calc("," * -1);margin-left:",";"],bc.spacing2,bc.spacing3);function iu(e){return gc.jsx(lu,{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:gc.jsx(cu,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"})})}const au=dc`
@@ -23,7 +23,7 @@ import*as e from"react";import t,{createContext as n,useContext as r,useState as
23
23
  stroke-dasharray: 80, 100;
24
24
  stroke-dashoffset: -48;
25
25
  }
26
- `,lu=lc.svg.withConfig({displayName:"Svg",componentId:"sc-5lftme-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],au),cu=lc.circle.withConfig({displayName:"Circle",componentId:"sc-5lftme-1"})(["stroke:currentcolor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],su),uu=u((({children:e,className:t="",rightIcon:n,type:r="button","aria-label":o,isFullWidth:i=!1,icon:a,variant:s="secondary",isSmall:l=!1,isDisabled:c=!1,isPressed:u=!1,isLoading:d=!1,...p},f)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:t,variant:s,isSmall:l,icon:a,isDisabled:c});return gc.jsx(eu,{"aria-label":o||p.title,className:h,disabled:c||d,type:r,$variant:s,$isPressed:u,$isSmall:l,$isFullWidth:i,as:p.href?"a":"button",ref:f,...p,children:d?gc.jsxs(gc.Fragment,{children:[gc.jsx(ru,{$lastChild:!e,children:gc.jsx(iu,{})}),e]}):gc.jsxs(gc.Fragment,{children:[a&&gc.jsx(ru,{$lastChild:!e,children:a}),e,n&&gc.jsx(ou,{children:n})]})})})),du=n("modern"),pu=u((({children:e,variant:t="secondary",isSmall:n=!1,icon:r,rightIcon:o,isDisabled:i=!1,isLoading:a=!1,type:s="button",isPressed:l=!1,isFullWidth:c=!1,...u},d)=>{const{isFocusVisible:p,focusProps:f}=Qc();return gc.jsx(tu,{$variant:t,$isSmall:n,$isPressed:l,$isFullWidth:c,disabled:a||i,type:s,as:u.href?"a":"button",$isFocusVisible:p,ref:d,...f,...u,children:a?gc.jsxs(gc.Fragment,{children:[gc.jsx(ru,{"data-testid":"ds-button-loading-icon",$lastChild:!e,children:gc.jsx(iu,{})}),e]}):gc.jsxs(gc.Fragment,{children:[r&&gc.jsx(ru,{$lastChild:!e,children:r}),e,o&&gc.jsx(ou,{children:o})]})})})),fu=u(((e,t)=>"legacy"===(r(du)||"modern")?gc.jsx(uu,{ref:t,...e}):gc.jsx(pu,{ref:t,...e}))),hu=Object.assign(fu,{VersionProvider:du.Provider});function mu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 9h2V7h4V5h-4V3h-2v6ZM7 9v2H3v2h4v2h2V9H7Zm6 10v2h-2v-6h2v2h8v2h-8ZM3 19v-2h6v2H3Zm18-8v2H11v-2h10Zm-8-6H3v1.99h10V5Z",clipRule:"evenodd"})})}function gu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27ZM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5ZM5.12 5l.81-1h12l.94 1H5.12Z"})})}function vu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41Z"})})}function yu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z"})})}function bu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5v-5ZM7 9h3V7H5v5h2V9Zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16.01H3V4.99h18v14.02Z"})})}function wu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[gc.jsx("path",{fill:"currentColor",d:"M15.2 12a3.2 3.2 0 1 1-6.4 0 3.2 3.2 0 0 1 6.4 0Z"}),gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.17 4 9 2h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3.17ZM7 12c0 2.76 2.24 5 5 5s5-2.24 5-5-2.24-5-5-5-5 2.24-5 5Z",clipRule:"evenodd"})]})}function xu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"})})}function Eu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m7 10 5 5 5-5H7Z"})})}function Cu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17Z"})})}function ku({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59Z"})})}function Su({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2Zm-11-4 2.03 2.71L16 11l4 5H8l3-4Zm-9 8V6h2v14h14v2H4c-1.1 0-2-.9-2-2Z",clipRule:"evenodd"})})}function Iu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1v16h16v2h-4v4h-2v-4H7c-1.1 0-2-.9-2-2V7H1V5h4V1h2Zm12 14h-2V7H9V5h8c1.1 0 2 .9 2 2v8Z",clipRule:"evenodd"})})}function Tu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59ZM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z"})})}function _u({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6Zm7 7V3.5L18.5 9H13Z"})})}function Ou({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.01 3.87 1.41-1.42L21.15 20.2l-1.41 1.41-3.43-3.43c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5.77-1.97 2.06-3.67 3.69-4.95L2.01 3.87ZM17 11.5c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L8.36 4.57C9.51 4.2 10.73 4 12 4c5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46Zm-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5Zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64Z",clipRule:"evenodd"})})}function ju({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14Zm-8 13.51L8.5 13.5 5 18h14l-4.5-6-3.5 4.51Z",clipRule:"evenodd"})})}function Au({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z"})})}function Pu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 5v14h14v-7h2v7c0 1.1-.9 2-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7v2H5Zm9 0V3h7v7h-2V6.41l-9.83 9.83-1.41-1.41L17.59 5H14Z",clipRule:"evenodd"})})}function Bu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"})})}function Nu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5ZM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5Zm-3-5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3Z",clipRule:"evenodd"})})}function Du({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6v2h18V6H3Zm0 12h6v-2H3v2Zm12-5H3v-2h12v2Z",clipRule:"evenodd"})})}function zu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.41 2.58 9 9c.36.36.59.87.59 1.42 0 .55-.22 1.05-.59 1.41l-7 7c-.36.37-.86.59-1.41.59-.55 0-1.05-.22-1.41-.58l-9-9C2.22 12.05 2 11.55 2 11V4c0-1.1.9-2 2-2h7c.55 0 1.05.22 1.41.58ZM4 5.5C4 6.33 4.67 7 5.5 7S7 6.33 7 5.5 6.33 4 5.5 4 4 4.67 4 5.5Z",clipRule:"evenodd"})})}function Mu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4Z"})})}function Ru({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02ZM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77Z"})})}const Fu=n(null);function Lu(){const e=r(Fu);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const $u=lc.div.withConfig({displayName:"FrameStyled",componentId:"sc-1bnqt8s-0"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.$isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":bc.gray25),(e=>"fixed"===e.$height&&ic(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),Hu=lc.div.withConfig({displayName:"FocusRing",componentId:"sc-1bnqt8s-1"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),Uu=lc.div.withConfig({displayName:"Children",componentId:"sc-1bnqt8s-2"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.$height&&ic(["position:absolute;inset:0;"]))),Vu=lc.div.withConfig({displayName:"Overlay",componentId:"sc-1bnqt8s-3"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),Wu=lc.div.withConfig({displayName:"BadgeContainer",componentId:"sc-1bnqt8s-4"})(["position:absolute;right:",";bottom:",";"],bc.spacing4,bc.spacing4),qu=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1bnqt8s-5"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],bc.spacing4,bc.spacing4,bc.white,bc.gray100a),Zu=lc.div.withConfig({displayName:"ProgressContainer",componentId:"sc-1bnqt8s-6"})(["position:absolute;bottom:0;left:0;width:100%;"]);function Gu(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function Yu(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Ku(){return Ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(this,arguments)}function Xu(e,t){return Xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xu(e,t)}function Ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ju(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ju(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ed(e){var t=l(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var td="undefined"!=typeof window?d:a;function nd(e){return parseFloat(e.replace("px",""))}function rd(e,t,n){return e<t?t:e>n?n:e}function od(e){return null!=e}function id(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=Qu(t);!(n=r()).done;){var o=n.value;o&&("function"==typeof o?o(e):o.current=e)}}}function ad(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,ad(e.parentElement,t))}function sd(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function ld(e){var t=e.enabled,n=e.onChange,r=e.environment,o=e.ResizeObserverPolyfill,s=e.overflowContainer,u=e.triggerOption,d=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(r,o);a((function(){}),[d]);var p,f,h=l(null),m=Boolean(u),g=(f=l({scrollContainers:[],trigger:null,layer:null}),i((function(){return[function(){return f.current},function(e){f.current="function"==typeof e?e(f.current):e}]}),[])),v=g[0],y=g[1],b=(p=l([]),i((function(){return{hasEventSubscriptions:function(){return p.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=Qu(p.current);!(e=t()).done;)(0,e.value)();p.current=[]},addEventSubscription:function(e){p.current.push(e)}}}),[])),w=b.hasEventSubscriptions,x=b.addEventSubscription,E=b.removeAllEventSubscriptions,C=c((function(){var e=v(),t=e.layer,o=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(sd("layer"));if(!o&&!m)throw new Error(sd("trigger"));var s={top:0,left:0};if(a){var l=a.scrollLeft;s={top:a.scrollTop,left:l}}else{var c=r.scrollX;s={top:r.scrollY,left:c}}var u={left:0,top:0};if(a){var d=r.getComputedStyle(a),p=d.borderLeftWidth,f=d.borderTopWidth;u={left:nd(p)||0,top:nd(f)||0}}n({layer:t,trigger:o,scrollContainers:i,arrow:h.current},s,u)}),[v,n,r,h,m]),k=c((function(){var e=v(),t=e.trigger,n=e.layer,o=e.scrollContainers;if(!n)throw new Error(sd("layer"));if(!t&&!m)throw new Error(sd("trigger"));if(d){for(var i=!1,a=new d((function(){i?C():i=!0})),s=0,l=[t,n,document.body];s<l.length;s++){var c=l[s];c&&a.observe(c)}x((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var u,p=function(){var e=u.value;e.addEventListener("scroll",C),x((function(){return e.removeEventListener("scroll",C)}))},f=Qu([r].concat(o));!(u=f()).done;)p()}),[v,x,C,r,d,m]),S=c((function(e,n){t&&e&&e!==n&&(E(),k(),C())}),[E,k,C,t]),I=ed(c((function(e){var t=v().layer;y((function(t){return Ku({},t,{layer:e})})),S(t,e)}),[v,y,S])),T=c((function(e){var t=ad(e,r),n=t[0];if(n){var o=r.getComputedStyle(n).position;["relative","absolute","fixed"].includes(o)||s||(n.style.position="relative")}return t}),[r,s]),_=ed(c((function(e){var t=T(e),n=v().trigger;y((function(n){return Ku({},n,{trigger:e,scrollContainers:t})})),S(n,e)}),[v,y,S,T])),O=null==u||null==u.getParent?void 0:u.getParent();return td((function(){O&&y((function(e){return Ku({},e,{scrollContainers:T(O)})}))}),[O,y,T]),td((function(){return t&&(w()||k()),function(){w()&&E()}}),[t,w,k,E]),td((function(){t&&C()})),{triggerRef:_,layerRef:I,arrowRef:h,closestScrollContainer:v().scrollContainers[0]||null}}var cd=n({});function ud(e){var t=e.children,n=e.registrations,r=c((function(e){return n.current.add(e),function(){return n.current.delete(e)}}),[n]);return s(cd.Provider,{value:r},t)}var dd={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},pd=function(){function e(e,t,n,r,o,i,a,s,l){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=s,this.isPush=l}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function fd(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new pd(e,t?fd(dd[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var hd={top:fd("top"),bottom:fd("bottom"),left:fd("left"),right:fd("right")},md=Ku({},hd,{center:fd("center")}),gd=["top","left","bottom","right"],vd=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(gd.map((function(e){return[e,n[e]]}))),a=Qu(r);!(o=a()).done;)for(var s,l=o.value,c=Qu(gd);!(s=c()).done;){var u=s.value;i[u]=Math.min(i[u],l[u])}return new e(i)},Yu(e,[{key:"allSidesArePositive",get:function(){var e=this;return gd.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(gd.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function yd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?nd(t):0)}),0)}function bd(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var wd={top:0,left:0,right:0,bottom:0,width:0,height:0},xd=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,wd,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,s=void 0===a?window:a,l=r.withScrollbars,c=void 0===l||l,u=new e(bd(t.getBoundingClientRect()));if(!i){var d=s.getComputedStyle(t),p=d.width,f=d.height,h=d.boxSizing,m=d.borderLeft,g=d.borderRight,v=d.borderTop,y=d.borderBottom,b=d.paddingLeft,w=d.paddingRight,x=d.paddingTop,E=d.paddingBottom;u=new e(Ku({},u,{width:"border-box"===h?nd(p):yd(p,m,g,b,w),height:"border-box"===h?nd(f):yd(f,v,y,x,E)}))}if(!c){var C=u.width-t.clientWidth,k=u.height-t.clientHeight;return u.substract({right:C,bottom:k})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n,r=null!=(n=null==t?void 0:t.document.scrollingElement)?n:null==t?void 0:t.document.documentElement,o=null!=r?r:{},i=o.clientWidth,a=void 0===i?0:i,s=o.clientHeight,l=void 0===s?0:s;return new e({width:a,height:l,right:a,bottom:l})};var t=e.prototype;return t.toObject=function(){return bd(this)},t.merge=function(t){var n=this.toObject();return new e(Ku({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];if(a in hd){var l=hd[a];n[a]+=l.factor(s),n[l.isHorizontal?"width":"height"]-=s}else n[a]-=s||0}return new e(n)},t.offsetsTo=function(e){return new vd({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(hd);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Yu(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),Ed=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Ku({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,s=t.isHorizontal,l=t.oppositeCssProp,c=t.oppositeSizeProp,u=t.prop,d=t.opposite,p=xd.empty();p[d.prop]=o[u]-t.factor(this.offsets.trigger),p[u]=p[d.prop]-t.factor(i[t.sizeProp]);var f=2*this.offsets.arrow,h=o[l]-(i[c]-a[c])+f,m=o[l]+(o[c]-a[c])-f;if(n.isPush||(h+=i[c],m+=i[c]),n.isCenter){var g=(s?hd.top:hd.left).prop,v=(s?hd.bottom:hd.right).prop;p[g]=rd(o[g]+o[c]/2-i[c]/2+e,h,m),p[v]=p[g]+i[c]}else{var y=n,b=o[y.prop],w=b<h?h-b:b>m?m-b:0;p[y.prop]=rd(b+e+w,h,m),p[y.opposite.prop]=p[y.prop]+n.factor(i[c])}p.width=p.right-p.left,p.height=p.bottom-p.top;var x=xd.create(p);return 0===e&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=vd.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Yu(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets(),o=null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[hd[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[];return o[0]||null}}]),e}(),Cd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Xu(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=xd.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(Ed),kd={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},Sd=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=hd[n];return[o,"center"===r?md.center:o.isHorizontal?"start"===r?md.top:md.bottom:"start"===r?md.left:md.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],s=i[1],l=hd[a.isHorizontal?n.preferY:n.preferX],c=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function u(e,o){return new Ed(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=u(a,s),d[1]=u(a,s.isCenter?l:md.center),d[2]=u(a,md[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d[3]=u(l,c?a:md[a.opposite.prop]),d[4]=u(l,md.center),d[5]=u(l,c?md[a.opposite.prop]:a),d[6]=u(hd[l.opposite.prop],c?a:md[a.opposite.prop]),d[7]=u(hd[l.opposite.prop],md.center),d[8]=u(hd[l.opposite.prop],c?md[a.opposite.prop]:a),d[9]=u(hd[a.opposite.prop],s),d[10]=u(hd[a.opposite.prop],s.isCenter?l:md.center),d[11]=u(hd[a.opposite.prop],md[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new Cd(md.center,md.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof Cd)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var s,l=e.getContainerOffsets(),c=e.secondary;return s=e.triggerIsBigger||i===e?a.isPush?-1:1:c===md.left||[md.top,md.center].includes(c)&&a.isPush?-1:1,l[a.prop]*s},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return kd;var o=e.layer,i=e.trigger,a=e.arrow,s=t.primary.oppositeSizeProp,l=i[s]>o[s],c=n+a[s]/2,u=o[s]-a[s]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,s=t.primary.isHorizontal?["top","bottom"]:["left","right"],l=s[0],c=s[1],u=r[l]+r[a]/2-o[l]-i[a]/2-n,d=r[c]-r[a]/2-o[c]+i[a]/2+n;return(u<0?-u:0)+(d>0?-d:0)}(e,t,n),p=t.primary.prop,f=t.primary.oppositeCssProp,h=l?o[s]/2+d:i[f]+i[s]/2-o[f];return Ku({},kd,((r={})[p]="100%",r[f]=rd(h,c,u),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Ku({},o,{position:"fixed",top:e.top,left:e.left}):Ku({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=vd.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[hd[n].sizeProp]}))?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),Id=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,s,l){var c=xd.fromWindow(t);return new e({layer:xd.fromElement(n,{environment:t,withTransform:!1}),trigger:l?xd.create(bd(l())):xd.fromElement(r),arrow:i?xd.fromElement(i):xd.empty(),parent:o?xd.fromElement(o):c,window:c,scrollContainers:[c].concat(a.map((function(e){return xd.fromElement(e,{withScrollbars:!1})})))},s)};var t=e.prototype;return t.merge=function(t){return new e(Ku({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Yu(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),Td=null,_d={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function Od(e){var t,n=e.isOpen,i=void 0!==n&&n,u=e.overflowContainer,d=void 0===u?_d.overflowContainer:u,p=e.environment,f=void 0===p?"undefined"!=typeof window?window:void 0:p,h=e.ResizeObserver,g=e.placement,v=void 0===g?_d.placement:g,y=e.possiblePlacements,b=void 0===y?_d.possiblePlacements:y,w=e.preferX,x=void 0===w?_d.preferX:w,E=e.preferY,C=void 0===E?_d.preferY:E,k=e.auto,S=void 0===k?_d.auto:k,I=e.snap,T=void 0===I?_d.snap:I,_=e.triggerOffset,O=void 0===_?_d.triggerOffset:_,j=e.containerOffset,A=void 0===j?_d.containerOffset:j,P=e.arrowOffset,B=void 0===P?_d.arrowOffset:P,N=e.container,D=void 0===N?_d.container:N,z=e.layerDimensions,M=void 0===z?null:z,R=e.onDisappear,F=e.onOutsideClick,L=e.onParentClose,$=e.trigger,H=o((function(){return{layerSide:"center"===v?"center":Sd.getSidesFromPlacementType(v)[0].prop,styles:{layer:{position:d?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),U=H[0],V=H[1],W=l(null),q=function(e,t){var n=l(e);return t?(n.current=e,n):(n.current=null,n)}(U,i),Z=l({cancelled:!1});a((function(){return function(){Z.current.cancelled=!0}}),[]);var G=c((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,a=e.trigger,s=i[0],l=Id.create(f,o,a,s,r,i,d,null==$?void 0:$.getBounds),c={placement:v,possiblePlacements:b,auto:S,layerDimensions:M,arrowOffset:B,containerOffset:A,triggerOffset:O,preferX:x,preferY:C,snap:T,overflowContainer:d},u=Sd.create(l,c).result(t,n),p=u.hasDisappeared,h={layerSide:u.layerSide,styles:u.styles};if(!q.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(q.current,h)){q.current=h,Z.current.cancelled=!0;var m={cancelled:!1};Z.current=m,Promise.resolve().then((function(){m.cancelled||V(h)}))}od(p)&&od(R)&&R(p)}),[B,S,A,f,M,R,d,v,b,x,C,T,O,q,$]),Y=ld({ResizeObserverPolyfill:h,environment:f,enabled:i,overflowContainer:d,onChange:G,triggerOption:$}),K=Y.triggerRef,X=Y.layerRef,J=Y.arrowRef,Q=Y.closestScrollContainer,ee=function(e){var t=e.isOpen,n=e.onOutsideClick,o=e.onParentClose,i=l(null),s=l(null),u=l(new Set),d=r(cd),p=c((function(e){var t=e.target,n=i.current&&i.current.contains(t),r=s.current&&s.current.contains(t),o=function(e,t){for(var n,r=Qu(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(u.current,e);return r&&o&&u.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&o}),[i,s,u]);return a((function(){if("function"==typeof d)return d({shouldCloseWhenClickedOutside:p,closeChild:function(){o&&o()}})}),[d,p,o,u]),a((function(){if(t&&n&&"function"!=typeof d)return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){p(e)&&n()}}),[t,n,p,d]),a((function(){t||u.current.forEach((function(e){return(0,e.closeChild)()}))}),[t]),{closeOnOutsideClickRefs:{trigger:i,layer:s},registrations:u}}({isOpen:i,onOutsideClick:F,onParentClose:L}),te=ee.closeOnOutsideClickRefs,ne=ee.registrations,re={triggerProps:Boolean($)?{}:{ref:id(K,te.trigger,W)},layerProps:{ref:id(X,te.layer),style:U.styles.layer},arrowProps:{ref:J,style:U.styles.arrow,layerSide:U.layerSide},layerSide:U.layerSide,triggerBounds:i?$?$.getBounds():null==(t=W.current)?void 0:t.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?m(s(ud,{registrations:ne,children:e}),d||!Q?function(e){var t;if("function"==typeof e){if(!((t=e())&&t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(Td instanceof HTMLElement)return Td;(t=document.getElementById(Pd))||((t=document.createElement("div")).id=Pd,t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(D):Q):null}};return re}var jd,Ad,Pd="layers";function Bd(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}(Ad=jd||(jd={}))[Ad.ENTERING=0]="ENTERING",Ad[Ad.LEAVING=1]="LEAVING",Ad[Ad.IDLE=2]="IDLE";const Nd={"--white":"#ffffff","--white-rgb":Bd("#ffffff"),"--gray1000":"#031026","--gray1000-rgb":Bd("#031026"),"--gray900":"#1c283c","--gray800":"#354051","--gray700":"#4f5867","--gray600":"#68707d","--gray500":"#818793","--gray400":"#9a9fa8","--gray300":"#b3b7be","--gray200":"#cdcfd4","--gray100":"#e6e7e9","--gray75":"#edeef0","--gray50":"#f2f3f4","--gray25":"#f8f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":Bd("#0099ff"),"--blue500a10":`rgb(${bc["blue500-rgb"]} / 10%)`,"--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":Bd("#f23e0d"),"--red500a10":`rgb(${bc["red500-rgb"]} / 10%)`,"--red500a50":`rgb(${bc["red500-rgb"]} / 50%)`,"--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":Bd("#fea900"),"--yellow500a10":`rgb(${bc["yellow500-rgb"]} / 10%)`,"--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal500-rgb":Bd("#22ccaa"),"--teal500a10":`rgb(${bc["teal500-rgb"]} / 10%)`,"--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":Wd("brandPrimary700","#0087e0"),"--brandPrimary600":Wd("brandPrimary600","#0095eb"),"--brandPrimary500":Wd("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":Wd("brandPrimary500-rgb",Bd("#00aaff")),"--brandPrimary300":Wd("brandPrimary300","#b3e6ff"),"--brandPrimary100":Wd("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":bc.radiusMedium,"--brandRadiusBase":bc.radiusBase,"--fontStackBase":'"Source Sans 3", "Source Sans Pro", SourceSansPro, system-ui, sans-serif',"--brandFontStackBase":Wd("brandFontStackBase","inherit"),"--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":bc.fontSize100,"--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":`rgb(${bc["gray1000-rgb"]} / 90%)`,"--gray800a":`rgb(${bc["gray1000-rgb"]} / 80%)`,"--gray700a":`rgb(${bc["gray1000-rgb"]} / 70%)`,"--gray600a":`rgb(${bc["gray1000-rgb"]} / 60%)`,"--gray500a":`rgb(${bc["gray1000-rgb"]} / 50%)`,"--gray400a":`rgb(${bc["gray1000-rgb"]} / 40%)`,"--gray300a":`rgb(${bc["gray1000-rgb"]} / 30%)`,"--gray200a":`rgb(${bc["gray1000-rgb"]} / 20%)`,"--gray100a":`rgb(${bc["gray1000-rgb"]} / 10%)`,"--gray75a":`rgb(${bc["gray1000-rgb"]} / 7%)`,"--gray50a":`rgb(${bc["gray1000-rgb"]} / 5%)`,"--gray25a":`rgb(${bc["gray1000-rgb"]} / 3%)`,"--colorText":bc.gray800,"--colorTextMuted":bc.gray600,"--colorTextDisabled":bc.gray400,"--focusRingWidth":"2px","--focusRingColorPrimary":bc.blue500,"--focusRingColorSecondary":bc.gray200,"--colorShadow":bc.gray100a,"--elevationStatic":`0 0 0 1px ${bc.colorShadow}`,"--elevation1":`0 1px 4px -1px ${bc.colorShadow}`,"--elevation2":`0 2px 4px -1px ${bc.colorShadow}`,"--elevation4":`0 4px 6px -2px ${bc.colorShadow}`,"--elevation8":`0 8px 12px -2px ${bc.colorShadow}`,"--elevation12":`0 12px 12px -2px ${bc.colorShadow}`,"--elevation16":`0 16px 12px -2px ${bc.colorShadow}`,"--elevation24":`0 24px 12px -2px ${bc.colorShadow}`,"--componentButtonPrimaryBorderHover":bc.brandPrimary600,"--componentButtonPrimaryBorderActive":bc.brandPrimary700,"--componentButtonPrimaryBorderFocus":bc.brandPrimary500,"--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":bc.white,"--componentButtonPrimaryColorHover":bc.white,"--componentButtonPrimaryColorActive":bc.white,"--componentButtonPrimaryColorFocus":bc.white,"--componentButtonPrimaryColorDisabled":bc.white,"--componentButtonPrimaryFill":bc.brandPrimary500,"--componentButtonPrimaryFillHover":bc.brandPrimary600,"--componentButtonPrimaryFillActive":bc.brandPrimary700,"--componentButtonPrimaryFillFocus":bc.brandPrimary500,"--componentButtonPrimaryFillDisabled":bc.brandPrimary300,"--componentButtonPrimaryFocusRing":`0 0 0 3px rgb(${bc["brandPrimary500-rgb"]} / 30%)`,"--componentButtonSecondaryBorder":bc.gray100,"--componentButtonSecondaryBorderHover":bc.gray200,"--componentButtonSecondaryBorderActive":bc.gray300,"--componentButtonSecondaryBorderFocus":bc.gray300,"--componentButtonSecondaryBorderDisabled":bc.gray50,"--componentButtonSecondaryColor":bc.gray800,"--componentButtonSecondaryColorHover":bc.gray800,"--componentButtonSecondaryColorActive":bc.gray800,"--componentButtonSecondaryColorFocus":bc.gray800,"--componentButtonSecondaryColorDisabled":bc.gray300,"--componentButtonSecondaryFill":bc.gray25,"--componentButtonSecondaryFillHover":bc.gray50,"--componentButtonSecondaryFillActive":bc.gray75,"--componentButtonSecondaryFillFocus":bc.gray25,"--componentButtonSecondaryFillDisabled":bc.gray25,"--componentButtonSecondaryFocusRing":`0 0 0 3px ${bc.gray50a}`,"--componentButtonCleanBorderFocus":bc.gray200,"--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":bc.gray600,"--componentButtonCleanColorHover":bc.gray900,"--componentButtonCleanColorActive":bc.gray900,"--componentButtonCleanColorFocus":bc.gray900,"--componentButtonCleanColorDisabled":bc.gray300,"--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":bc.gray25a,"--componentButtonCleanFillActive":bc.gray50a,"--componentButtonCleanFillFocus":bc.gray25a,"--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":`0 0 0 3px ${bc.gray50a}`,"--componentButtonDangerBorderHover":bc.red600,"--componentButtonDangerBorderActive":bc.red700,"--componentButtonDangerBorderFocus":bc.red500,"--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":bc.white,"--componentButtonDangerColorHover":bc.white,"--componentButtonDangerColorActive":bc.white,"--componentButtonDangerColorFocus":bc.white,"--componentButtonDangerColorDisabled":bc.white,"--componentButtonDangerFill":bc.red500,"--componentButtonDangerFillHover":bc.red600,"--componentButtonDangerFillActive":bc.red700,"--componentButtonDangerFillFocus":bc.red500,"--componentButtonDangerFillDisabled":bc.red500a50,"--componentButtonDangerFocusRing":`0 0 0 3px rgb(${bc["red500-rgb"]} / 30%)`,"--componentDividerColor":bc.gray100a,"--componentCheckboxBorderUnchecked":bc.gray300,"--componentCheckboxBorderUncheckedHover":bc.gray500,"--componentCheckboxBorderUncheckedFocus":bc.gray500,"--componentCheckboxFillDisabled":bc.gray100,"--componentCheckboxCheckmarkColorDisabled":bc.gray500,"--componentRadioBorderUnchecked":bc.gray300,"--componentRadioFillDisabled":bc.gray100,"--componentRadioCheckmarkColorDisabled":bc.gray500,"--componentRadioBorderUncheckedHover":bc.gray500,"--componentPaginationBackground":"none","--componentPaginationElevation":`${bc.elevationStatic}, ${bc.elevation2}`,"--componentTooltipBackground":bc.gray10,"--componentTooltipShadow":`${bc.elevation2}, ${bc.elevationStatic}`,"--componentTooltipTitleColor":bc.colorText,"--componentTooltipSecondaryTextColor":bc.colorTextMuted,"--componentTooltipTextColor":bc.colorTextMuted,"--componentTabsBackgroundColor":bc.gray50a,"--componentTabsTabBackgroundColorActive":bc.white},Dd={"--fontStackBase":'Inter, "Source Sans 3", "Source Sans Pro", SourceSansPro, system-ui, sans-serif',"--brandPrimary700":Wd("brandPrimary700","#093986"),"--brandPrimary600":Wd("brandPrimary600","#0d51bc"),"--brandPrimary500":Wd("brandPrimary500","#126dfe"),"--brandPrimary500-rgb":Wd("brandPrimary500-rgb",Bd("#126dfe")),"--brandPrimary300":Wd("brandPrimary300","#94bdff"),"--brandPrimary100":Wd("brandPrimary100","#dae8ff"),"--gray900":"#132034","--gray800":"#212c40","--gray700":"#343e50","--gray600":"#4f5867","--gray500":"#6f7783","--gray400":"#8b919b","--gray300":"#b8bcc2","--gray200":"#d5d7da","--gray100":"#e6e7e9","--gray75":"#edeef0","--gray50":"#f2f3f4","--gray25":"#f8f8f9","--gray10":"#ffffff","--gray900a":`rgb(${bc["gray1000-rgb"]} / 93%)`,"--gray800a":`rgb(${bc["gray1000-rgb"]} / 88%)`,"--gray700a":`rgb(${bc["gray1000-rgb"]} / 81%)`,"--gray600a":`rgb(${bc["gray1000-rgb"]} / 70%)`,"--gray500a":`rgb(${bc["gray1000-rgb"]} / 57%)`,"--gray400a":`rgb(${bc["gray1000-rgb"]} / 46%)`,"--gray300a":`rgb(${bc["gray1000-rgb"]} / 28%)`,"--gray200a":`rgb(${bc["gray1000-rgb"]} / 17%)`,"--gray100a":`rgb(${bc["gray1000-rgb"]} / 10%)`,"--gray75a":`rgb(${bc["gray1000-rgb"]} / 7%)`,"--gray50a":`rgb(${bc["gray1000-rgb"]} / 5%)`,"--gray25a":`rgb(${bc["gray1000-rgb"]} / 3%)`,"--blue1000":"#031025","--blue900":"#051e46","--blue800":"#072961","--blue700":"#093986","--blue600":"#0d51bc","--blue500":"#126dfe","--blue500-rgb":Bd("#126dfe"),"--blue400":"#488fff","--blue300":"#94bdff","--blue200":"#c0d8ff","--blue100":"#dae8ff","--red700":"#71221c","--red600":"#9e3028","--red500":"#d54035","--red500-rgb":Bd("#d54035"),"--red400":"#e16e66","--green500":"#038922","--purple1000":"#100e20","--purple900":"#1e1b3e","--purple800":"#2a2656","--purple700":"#3b3478","--purple600":"#534aa9","--purple500":"#7064e4","--purple400":"#8d84ea","--purple300":"#bab5f3","--purple200":"#d6d3f8","--purple100":"#e7e5fb","--magenta1000":"#1f0910","--magenta900":"#3b101e","--magenta800":"#511729","--magenta700":"#701f39","--magenta600":"#9d2c50","--magenta500":"#d33b6c","--magenta400":"#e2688f","--magenta300":"#eea8be","--magenta200":"#f5ccd9","--magenta100":"#f9e1e9","--teal1000":"#00140e","--teal900":"#00251b","--teal800":"#003325","--teal700":"#004734","--teal600":"#006449","--teal500":"#008762","--teal500-rgb":Bd("#008762"),"--teal400":"#35a284","--teal300":"#88c8b7","--teal200":"#b9dfd4","--teal100":"#d6ece6"},zd={"--gray1000":"#ffffff","--gray1000-rgb":Bd("#ffffff"),"--gray900":"#e6e7e9","--gray800":"#cdcfd4","--gray700":"#b3b7be","--gray600":"#9a9fa8","--gray500":"#818793","--gray400":"#68707d","--gray300":"#4f5867","--gray200":"#354051","--gray100":"#1c283c","--gray75":"#152135","--gray50":"#101c31","--gray25":"#0b172c","--gray10":"#031026","--componentDividerColor":bc.gray100a,"--focusRingColorSecondary":bc.gray200a,"--componentCheckboxBorderUnchecked":bc.gray300a,"--componentCheckboxBorderUncheckedHover":bc.gray500a,"--componentCheckboxBorderUncheckedFocus":bc.gray500a,"--componentCheckboxFillDisabled":bc.gray100a,"--componentCheckboxCheckmarkColorDisabled":bc.gray500a,"--componentRadioBorderUnchecked":bc.gray300a,"--componentRadioFillDisabled":bc.gray100a,"--componentRadioCheckmarkColorDisabled":bc.gray500a,"--componentRadioBorderUncheckedHover":bc.gray500a,"--componentPaginationBackground":bc.gray50a,"--componentPaginationElevation":"none","--componentTooltipBackground":bc.gray100,"--componentTooltipShadow":"0 2px 4px -1px rgb(3 16 38 / 10%), 0 0 0 1px rgb(3 16 38 / 10%)","--componentTooltipTitleColor":bc.gray1000,"--componentTooltipSecondaryTextColor":bc.gray600,"--componentTooltipTextColor":bc.gray800,"--componentTabsBackgroundColor":bc.gray10,"--componentTabsTabBackgroundColorActive":bc.gray100},Md={"--gray1000":"#ffffff","--gray1000-rgb":Bd("#ffffff"),"--gray900":"#e6e7e9","--gray800":"#cdcfd4","--gray700":"#b3b7be","--gray600":"#9a9fa8","--gray500":"#818793","--gray400":"#68707d","--gray300":"#4f5867","--gray200":"#354051","--gray100":"#1c283c","--gray75":"#152135","--gray50":"#101c31","--gray25":"#0b172c","--gray10":"#031026"},Rd="ds-light-theme",Fd="ds-dark-theme",Ld=Boolean(document.querySelector('[data-b-ds-new-branding="on"]')),$d=Ld?{...Nd,...Dd}:Nd,Hd=Ld?{...zd,...Md}:zd,Ud=uc`${ic([":root,:host,.",",.","{","}.","{","}"],Rd,Fd,Vd($d),Fd,Vd(Hd))}`;function Vd(e){return Object.entries(e).map((([e,t])=>`${e}-${vc}: ${t}`)).join(";")+";"}function Wd(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}function qd({className:e,children:t,...n}){return gc.jsx("div",{className:Rd+(e?` ${e}`:""),...n,children:t})}function Zd({className:e,children:t,...n}){return gc.jsx("div",{className:Fd+(e?` ${e}`:""),...n,children:t})}const Gd={paragraphS:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize75,bc.lineHeightText),paragraphM:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize100,bc.lineHeightText),paragraphL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize200,bc.lineHeightText),uiTextXS:ic(["font-weight:normal;font-size:",";line-height:20px;"],bc.fontSize50),uiTextS:ic(["font-weight:normal;font-size:",";line-height:20px;"],bc.fontSize75),uiTextM:ic(["font-weight:normal;font-size:",";line-height:20px;"],bc.fontSize100),uiTextL:ic(["font-weight:normal;font-size:",";line-height:24px;"],bc.fontSize200),headingXS:ic(["font-weight:600;font-size:",";line-height:",";"],bc.fontSize100,bc.lineHeightHeading),headingS:ic(["font-weight:600;font-size:",";line-height:",";"],bc.fontSize200,bc.lineHeightHeading),headingM:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize400,bc.lineHeightHeading),headingL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize600,bc.lineHeightHeading),headingXL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize800,bc.lineHeightHeading),headingXXL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize1000,bc.lineHeightHeading)};function Yd({children:e,direction:t="row",wrap:n="nowrap",justifyContent:r="flex-start",alignItems:o="stretch",gap:i,...a}){return gc.jsx(Kd,{$direction:t,$wrap:n,$justifyContent:r,$alignItems:o,$gap:i,...a,children:e})}const Kd=lc.div.withConfig({displayName:"FlexStyled",componentId:"sc-duap7b-0"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.$direction),(e=>e.$wrap),(e=>e.$gap?bc[`spacing${e.$gap}`]:void 0),(e=>e.$justifyContent),(e=>e.$alignItems)),Xd=(e,t,n)=>{const r=e[t];return r?"function"==typeof r?r():Promise.resolve(r):new Promise(((e,r)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))}))};class Jd{constructor(e){this.input=e,this.index=0,this.done=!1,this.value="",this.value=this.input.charAt(0)}next(){return++this.index>=this.input.length&&(this.done=!0),this.value=this.input.charAt(this.index)}croak(){throw new Error(`[${this.input}]. Unexpected character "${this.value}" on position ${this.index}.`)}}var Qd;!function(e){e[e.Plural=0]="Plural",e[e.Select=1]="Select",e[e.Text=2]="Text",e[e.Variable=3]="Variable"}(Qd||(Qd={}));const ep="{",tp="}",np=",",rp=[ep,tp,np];class op{constructor(e){this.input=new Jd(e)}next(){return this.input.value===ep?this.readVariable():this.readText()}skip(e){e!==this.input.value&&this.input.croak(),this.input.next()}readWhile(e){let t="";for(;!this.input.done&&e(this.input.value);)t+=this.input.value,this.input.next();return t}readVariable(){this.skip(ep);const e=this.readWhile((e=>!function(e){return rp.includes(e)}(e))).trim();if(0===e.length&&this.input.croak(),this.input.value===tp)return this.skip(tp),{type:Qd.Variable,value:e};this.skip(np);const t=this.readVariableType();return{options:this.readVariableOptions(),type:t,value:e}}readText(){return{type:Qd.Text,value:this.readWhile((e=>e!==ep&&e!==tp))}}readVariableType(){const e=this.readWhile((e=>e!==np)).trim();return"plural"===e?Qd.Plural:"select"===e?Qd.Select:void this.input.croak()}readVariableOptions(){this.skip(np);const e={};for(;this.input.value!==tp;)e[this.readText().value.trim()]=this.readExpression();return this.skip(tp),e}readExpression(){const e=[];for(this.skip(ep);this.input.value!==tp;)e.push(this.next());return this.skip(tp),e}}const ip=["campaigns","Campaigns","Campaign","campaign","Collection","collections","collection","Collections","limitedUsage","LIMITED","jobs","Jobs","job","Job","Guidelines","WorkflowCalendar","AssetBank","Brandstore","Reporter","Brand","brands","categories","Brands","brand","Asset","Subbrand","subbrands","Assets","assets","asset","subbrand","Subbrands","category","task","Stage","accountable","tasks","stage","Categories","Category","stages","Task","Stages","Tasks","Accountable"];class ap{constructor(e,t,n){this.memo={},this.onError=console.error,this.translateParts=(e,t)=>{const n=this.getTranslationById(e);try{return function({locale:e,translation:t,values:n,wordReplacements:r}){const o=new op(t),i=[];for(;!o.input.done;)a(o.next());return i;function a({options:t,type:o,value:s}){if(o===Qd.Variable)return ip.includes(s)?void(r[s]?i.push(r[s]):i.push(s)):void i.push(n[s]);if(!t)return void i.push(s);if(o===Qd.Select)return void t[n[s]].map(a);const l=e.replace("_","-");t[new Intl.PluralRules(l).select(n[s])].map(a)}}({locale:this.locale,translation:n,values:t,wordReplacements:this.wordReplacements})}catch(e){return this.onError(e),[n]}},this.translate=(e,t={})=>this.translateParts(e,t).join(""),this.getTranslationById=e=>{if(!this.memo[e]){let t=this.translations[e];"string"!=typeof t&&(this.onError(new Error(`Localization: Missing translation with ID "${e}"`)),t=e),this.memo[e]=t}return this.memo[e]},this.locale=function(e){return e||"en_US"}(t),n?(this.translations={...e,...n.translations},this.wordReplacements=n.wordReplacements):(this.translations={...e},this.wordReplacements={})}}const sp={"colorpicker.opacity-input":"Opacity","datepicker.clear-date":"Clear date","datepicker.next-month":"Next month","datepicker.open-calendar":"Open calendar","datepicker.previous-month":"Previous month","input.clear":"Clear input","input.hide-password":"Hide password","input.show-password":"Show password","modal.close":"Close","multiselectchips.add-value":"Add ‘{value}’","multiselectchips.remove-all":"Remove all","pagination.next-page":"Next page","pagination.previous-page":"Previous page"};var lp=Object.freeze({__proto__:null,default:sp});const cp=["de_DE","en_US","es_ES","es_MX","fr_FR","it_IT","ja_JP","ko_KR","nl_NL","pl_PL","pt_BR","ru_RU","tr_TR","zh_CN","zh_TW"],up=t.createContext(void 0);function dp({children:e,locale:t="en_US"}){const[n,r]=o(void 0);if(a((()=>{cp.includes(t)?Xd(Object.assign({"../../i18n/de_DE.json":()=>Promise.resolve().then((function(){return gL})),"../../i18n/en_US.json":()=>Promise.resolve().then((function(){return lp})),"../../i18n/es_ES.json":()=>Promise.resolve().then((function(){return vL})),"../../i18n/es_MX.json":()=>Promise.resolve().then((function(){return yL})),"../../i18n/fr_FR.json":()=>Promise.resolve().then((function(){return bL})),"../../i18n/it_IT.json":()=>Promise.resolve().then((function(){return wL})),"../../i18n/ja_JP.json":()=>Promise.resolve().then((function(){return xL})),"../../i18n/ko_KR.json":()=>Promise.resolve().then((function(){return EL})),"../../i18n/nl_NL.json":()=>Promise.resolve().then((function(){return CL})),"../../i18n/pl_PL.json":()=>Promise.resolve().then((function(){return kL})),"../../i18n/pt_BR.json":()=>Promise.resolve().then((function(){return SL})),"../../i18n/ru_RU.json":()=>Promise.resolve().then((function(){return IL})),"../../i18n/tr_TR.json":()=>Promise.resolve().then((function(){return TL})),"../../i18n/zh_CN.json":()=>Promise.resolve().then((function(){return _L})),"../../i18n/zh_TW.json":()=>Promise.resolve().then((function(){return OL}))}),`../../i18n/${t}.json`,4).then((e=>{r(e.default)})):Promise.resolve().then((function(){return lp})).then((e=>{r(e.default)}))}),[t]),!n)return null;const i=new ap(n,t);return gc.jsx(up.Provider,{value:i,children:e})}const pp=1031,fp=t.createContext({zIndexBase:pp});function hp({children:e,noTheme:t,zIndexBase:n=pp,buttonVersion:r="modern",dateFnsLocale:o,locale:a="en_US"}){const s=i((()=>({zIndexBase:n,dateFnsLocale:o})),[o,n]);return gc.jsx(fp.Provider,{value:s,children:gc.jsx(dp,{locale:a,children:gc.jsxs(hu.VersionProvider,{value:r,children:[!t&&gc.jsx(Ud,{}),e]})})})}const mp=["modal","dropdown","datepicker","tooltip","colorpicker","listDragAndDrop"];function gp(e){return r(fp).zIndexBase+mp.indexOf(e)}const vp=lc.div.withConfig({displayName:"ImageHolder",componentId:"sc-1m204zj-0"})(["margin:calc("," * -1) calc("," * -1) ",";"],bc.spacing4,bc.spacing5,bc.spacing3),yp=lc.img.withConfig({displayName:"StyledImage",componentId:"sc-1m204zj-1"})(["vertical-align:top;width:100%;border-bottom:1px solid ",";border-radius:var(--ds-tooltip-border-radius) var(--ds-tooltip-border-radius) 0 0;"],bc.gray100a),bp=lc.div.withConfig({displayName:"StyledText",componentId:"sc-16o2twi-0"})([""," padding-block:",";color:",";"],Gd.paragraphS,bc.spacing3,bc.componentTooltipTextColor),wp=lc.div.withConfig({displayName:"ItemStyled",componentId:"sc-17jheit-0"})(["display:flex;gap:",";align-items:center;margin-inline:calc("," * -1);padding:"," ",";"],bc.spacing3,bc.spacing5,bc.spacing3,bc.spacing5),xp=lc.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-17jheit-1"})(["flex:none;"]),Ep=lc.div.withConfig({displayName:"Content",componentId:"sc-17jheit-2"})([""," flex:1;min-width:0;"],Gd.uiTextM),Cp=lc.div.withConfig({displayName:"Subtext",componentId:"sc-17jheit-3"})([""," color:",";"],Gd.uiTextS,bc.componentTooltipSecondaryTextColor);function kp({position:e="top-center",timing:t="instant",size:n="small",isLightTheme:r=!1,className:i,icon:s,secondaryText:u,badge:d,content:p,...f}){const[h,m]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,r=void 0===n?0:n,i=t.delayLeave,s=void 0===i?0:i,u=t.hideOnScroll,d=void 0===u||u,p=o(!1),f=p[0],h=p[1],m=l(null),g=l(jd.IDLE),v=l(!1),y=c((function(){clearTimeout(m.current),m.current=null,g.current=jd.IDLE}),[]);function b(e,t){if(g.current===jd.ENTERING&&m.current&&y(),f){if(t)return h(!1),m.current=null,void(g.current=jd.IDLE);g.current=jd.LEAVING,m.current=window.setTimeout((function(){h(!1),m.current=null,g.current=jd.IDLE}),s)}}return a((function(){function e(){f&&d&&(y(),h(!1))}return window.addEventListener("scroll",e,!0),function(){window.removeEventListener("scroll",e,!0),m.current&&clearTimeout(m.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===jd.LEAVING&&m.current&&y(),f||(g.current=jd.ENTERING,m.current=window.setTimeout((function(){h(!0),m.current=null,g.current=jd.IDLE}),r))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||h(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===t?800:0}),{isFocusVisible:g,focusProps:v}=Qc(),y=gp("tooltip"),b=void 0===f.isOpen?h||g:f.isOpen,{triggerProps:w,layerProps:x,renderLayer:E}=Od({isOpen:b,auto:!0,snap:!0,placement:Sp(e),possiblePlacements:Ip(e),triggerOffset:8,containerOffset:8});return gc.jsxs(gc.Fragment,{children:["function"==typeof f.children?f.children({...w,...m,...v}):gc.jsx("div",{...w,...m,...v,children:f.children}),b&&E(gc.jsx(Tp,{isLightTheme:r,children:gc.jsx(_p,{...x,$zIndex:y,className:i,$size:n,children:gc.jsxs(Yd,{alignItems:"center",gap:"3",children:[s&&gc.jsx(Op,{$size:n,children:s}),gc.jsx("div",{children:p}),u&&gc.jsx(jp,{children:u}),d]})})}))]})}function Sp(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function Ip(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}function Tp({isLightTheme:e,children:t}){return e?gc.jsx(qd,{children:t}):gc.jsx(Zd,{children:t})}kp.Image=function({src:e,alt:t=""}){return gc.jsx(vp,{children:gc.jsx(yp,{src:e,alt:t,"data-testid":"ds-tooltip-image"})})},kp.Text=function({children:e}){return gc.jsx(bp,{children:e})},kp.ListItem=function({children:e,subtext:t,thumbnail:n,rightElements:r,...o}){return gc.jsxs(wp,{...o,children:[n&&gc.jsx(xp,{children:n}),gc.jsxs(Ep,{children:[e,t?gc.jsx(Cp,{children:t}):null]}),r]})};const _p=lc.div.withConfig({displayName:"TooltipContainer",componentId:"sc-xel4md-0"})(["--ds-tooltip-border-radius:",";z-index:",";display:flex;box-sizing:border-box;border-radius:var(--ds-tooltip-border-radius);background:",";color:",";box-shadow:",";word-break:break-word;",";"],bc.radiusBase,(e=>e.$zIndex),bc.componentTooltipBackground,bc.componentTooltipTitleColor,bc.componentTooltipShadow,(e=>"small"===e.$size?ic([""," max-width:240px;padding:"," ",";"],Gd.uiTextS,bc.spacing3,bc.spacing4):"medium"===e.$size?ic([""," max-width:256px;padding:"," ",";"],Gd.uiTextM,bc.spacing3,bc.spacing5):void 0)),Op=lc.span.withConfig({displayName:"IconContainer",componentId:"sc-xel4md-1"})(["display:flex;align-items:center;width:24px;height:24px;margin-block:calc("," * -1);margin-left:",";"],bc.spacing1,(e=>"medium"===e.$size?`calc(${bc.spacing3} * -1)`:`calc(${bc.spacing2} * -1)`)),jp=lc.span.withConfig({displayName:"SecondaryTextContainer",componentId:"sc-xel4md-2"})([""," color:",";"],Gd.uiTextS,bc.componentTooltipSecondaryTextColor),Ap=lc.div.withConfig({displayName:"InputWrapper",componentId:"sc-f6zlz-0"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.$isSmall?ic(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],bc.spacing4,bc.spacing2):ic(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],bc.spacing5,bc.spacing3)),(e=>e.$isInvalid?bc.red500:bc.gray100),bc.radiusMedium,bc.gray10,(e=>e.$isInvalid?bc.red600:bc.gray200),bc.elevation1,(e=>e.$isInvalid?bc.red500:bc.gray300),bc.gray100,(e=>e.$isDisabled&&ic(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],bc.gray100,bc.gray25,bc.gray600,bc.gray100)),(e=>"clean"===e.$variant&&ic(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],bc.gray25a,bc.gray50a))),Pp=lc.input.withConfig({displayName:"InputStyled",componentId:"sc-f6zlz-1"})(["&&&{flex:1;width:auto;min-width:0;height:100%;margin:0 !important;padding:0 !important;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],bc.colorText,bc.brandFontStackBase,Gd.uiTextM,bc.gray400,bc.gray600,bc.gray400),Bp=lc.div.withConfig({displayName:"LeftItems",componentId:"sc-f6zlz-2"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);&:empty{display:none;}"]),Np=lc.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-f6zlz-3"})(["flex:none;margin-left:calc("," * -1);color:",";"],bc.spacing2,bc.gray600),Dp=lc.div.withConfig({displayName:"PrefixContainer",componentId:"sc-f6zlz-4"})(["color:",";"],(e=>e.$isDisabled?bc.gray400:bc.gray600)),zp=lc.div.withConfig({displayName:"RightItems",componentId:"sc-f6zlz-5"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);&:empty{display:none;}"],bc.spacing2),Mp=lc.div.withConfig({displayName:"SuffixContainer",componentId:"sc-f6zlz-6"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.$isDisabled?bc.gray400:bc.gray600),bc.spacing2),Rp=lc.div.withConfig({displayName:"IconRightContainer",componentId:"sc-f6zlz-7"})(["display:grid;flex:none;align-items:center;color:",";"],bc.gray600),Fp=lc.button.withConfig({displayName:"ClearButton",componentId:"sc-f6zlz-8"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],bc.gray200a,bc.gray300a,bc.gray400a);function Lp({children:e,tooltipPosition:t="top-left",...n}){const[r,s]=o(!1),u=l(null);function p(){if(u.current){const e=u.current.offsetWidth<u.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=l(void 0);n.current=t;var r=e.round||Math.round,s=l(),u=o({width:void 0,height:void 0}),d=u[0],p=u[1],f=l(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var h=l({width:void 0,height:void 0}),m=function(e,t){var n=l(null),r=l(null);r.current=t;var o=l(null);a((function(){i()}));var i=c((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),c((function(e){o.current=e,i()}),[i])}(c((function(t){return s.current&&s.current.box===e.box&&s.current.round===r||(s.current={box:e.box,round:r,instance:new ResizeObserver((function(t){var o=t[0],i="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Gu(o,i,"inlineSize"),s=Gu(o,i,"blockSize"),l=a?r(a):void 0,c=s?r(s):void 0;if(h.current.width!==l||h.current.height!==c){var u={width:l,height:c};h.current.width=l,h.current.height=c,n.current?n.current(u):f.current||p(u)}}))}),s.current.instance.observe(t,{box:e.box}),function(){s.current&&s.current.instance.unobserve(t)}}),[e.box,r]),e.ref);i((function(){return{ref:m,width:d.width,height:d.height}}),[m,d.width,d.height])}({ref:u,onResize:()=>{p()}}),d((()=>{p()}),[]),gc.jsx($p,{ref:u,...n,children:r?gc.jsx(kp,{content:e,position:t,timing:"delay",children:t=>gc.jsx("span",{...t,children:e})}):e})}const $p=lc.span.withConfig({displayName:"StyledText",componentId:"sc-b6pp4c-0"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;&::after{content:'';display:block;}&:has(","){overflow:visible;}"],Ap),Hp=lc.div.withConfig({displayName:"HeaderStyled",componentId:"sc-1pov1j3-0"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Up=lc.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1pov1j3-1"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],bc.spacing4),Vp=lc.div.withConfig({displayName:"Title",componentId:"sc-1pov1j3-2"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],Gd.uiTextM,bc.colorText),Wp=lc.div.withConfig({displayName:"Detail",componentId:"sc-1pov1j3-3"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],Gd.uiTextS,bc.spacing2,bc.colorTextMuted),qp=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1pov1j3-4"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],bc.spacing2,bc.gray600),Zp=lc.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-kuakuj-0"})([""," padding:",";border-top:1px solid ",";color:",";"],Gd.uiTextS,(e=>"all"===e.$padding?"var(--card-content-padding)":"0"),bc.gray100a,bc.colorText),Gp=u((({children:e,isDisabled:t=!1,isPressed:n=!1,tooltip:r,"aria-label":o,...i},a)=>{const{isFocusVisible:s,focusProps:l}=Qc(),c=gc.jsx(Yp,{disabled:t,type:"button",$isFocusVisible:s,ref:a,$isPressed:n,"aria-label":o,...l,...i,children:e});return r?gc.jsx(kp,{timing:"delay",content:r,children:c}):c})),Yp=lc.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-yl6ibh-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],bc.spacing3,bc.brandRadiusBase,bc.gray100a,bc.fontSize75,bc.brandFontStackBase,bc.lineHeightBase,(e=>{const t=ic(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],bc.gray10,bc.gray800,bc.gray100a);return ic(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],bc["white-rgb"],bc.gray600a,e.$isPressed&&t,bc.gray10,bc.gray800,bc.elevation1,bc.elevationStatic,t,bc["white-rgb"],bc.gray200a,bc.gray100a)})),Kp=lc.div.withConfig({displayName:"ImagesStyled",componentId:"sc-v41o6p-0"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;&:has(:first-child:last-child){display:flex;}"],bc.spacing1),Xp=lc.img.withConfig({displayName:"ImgStyled",componentId:"sc-v41o6p-1"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.$contentResize?"cover":"scale-down")),Jp=lc.div.withConfig({displayName:"Placeholder",componentId:"sc-1qwqjbg-0"})(["display:grid;place-items:center;min-height:100px;"]),Qp=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1qwqjbg-1"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],bc.brandRadiusBase,bc.gray10,bc.gray600);let ef=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};function tf(e){return i((()=>e+"-"+ef()),[e])}const nf=lc.div.withConfig({displayName:"Placeholder",componentId:"sc-qax8fp-0"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";color:",";svg{width:48px;height:48px;}"],(e=>e.$backgroundColor),(e=>e.$iconColor)),rf=lc.div.withConfig({displayName:"StatsStyled",componentId:"sc-a5kvvv-0"})(["display:flex;flex-wrap:wrap;row-gap:",";padding:var(--card-content-padding);border-top:1px solid ",";column-gap:",";"],bc.spacing4,bc.gray100a,bc.spacing5),of=lc.div.withConfig({displayName:"StatItemStyled",componentId:"sc-7uwt82-0"})([""," display:flex;align-items:center;color:",";column-gap:",";"],Gd.uiTextS,bc.colorTextMuted,bc.spacing2);function af({children:e,variant:t="outlined",isSelected:n=!1,contextAction:r,onClick:o,onSelect:a,as:s="button",href:l,to:c,noMinWidth:u,selectButtonAriaLabel:d,"aria-label":p,isDisabled:f=!1,...h}){const m=tf("card-title"),g=i((()=>({variant:t,isSelected:n,cardTitleId:m})),[n,t,m]),v=f?"div":s;return gc.jsx(Fu.Provider,{value:g,children:gc.jsxs(sf,{$variant:t,$isSelected:n,$noMinWidth:u,$isDisabled:f,...h,children:[gc.jsx(lf,{as:v,to:f?void 0:c,href:"a"===v?l:void 0,type:"button"===v?"button":void 0,onClick:function(e){if(!f)return a&&(e.metaKey||e.ctrlKey||e.shiftKey)?(a(e),void e.preventDefault()):void(null==o||o(e))},"aria-labelledby":p?void 0:m,"aria-label":p,$isDisabled:f,children:e}),r&&!f?gc.jsx(uf,{children:r}):null,a?gc.jsx(cf,{type:"button",$isSelected:n,onClick:a,"aria-label":d,disabled:f,$isDisabled:f,children:gc.jsx(Cu,{})}):null]})})}af.Frame=function({children:e,progressBar:t,badge:n,icon:r,isCheckeredBackground:o=!1,height:i="fixed",...a}){const{variant:s,isSelected:l}=Lu();return gc.jsxs($u,{$isCheckeredBackground:o,$height:i,...a,children:["clean"===s&&l&&gc.jsx(Hu,{}),gc.jsx(Uu,{$height:i,children:e}),gc.jsx(Vu,{}),t?gc.jsx(Zu,{children:t}):null,n?gc.jsx(Wu,{children:gc.jsx(wc,{color:"black-alpha",children:n})}):null,r?gc.jsx(qu,{children:r}):null]})},af.Header=function({thumbnail:e,title:t,detail:n,icon:r,isNotTruncated:o=!1,...i}){const{cardTitleId:a}=Lu();return gc.jsxs(Hp,{...i,children:[e?gc.jsx(Up,{children:e}):null,gc.jsx(Vp,{id:a,children:o?t:gc.jsx(Lp,{children:t})}),n?gc.jsx(Wp,{children:o?n:gc.jsx(Lp,{children:n})}):null,r?gc.jsx(qp,{children:r}):null]})},af.AdditionalInfo=function({children:e,padding:t="all",...n}){return gc.jsx(Zp,{$padding:t,...n,children:e})},af.ContextActionButton=Gp,af.Images=function({children:e,...t}){return gc.jsx(Kp,{...t,children:e})},af.Img=function({src:e,contentResize:t="fill",alt:n="",onError:r,...o}){return gc.jsx(Xp,{src:e,alt:n,$contentResize:t,onError:r,...o})},af.FilePlaceholder=function({children:e,...t}){return gc.jsx(Jp,{...t,children:gc.jsx(Qp,{children:e})})},af.IconPlaceholder=function({children:e,backgroundColor:t=bc.gray25,iconColor:n=bc.gray400a,...r}){return gc.jsx(nf,{$backgroundColor:t,$iconColor:n,...r,children:e})},af.Stats=function({children:e,...t}){return gc.jsx(rf,{...t,children:e})},af.StatsItem=function({icon:e,children:t,title:n,...r}){return t&&t.toString().length,gc.jsx(kp,{content:n,timing:"delay",children:n=>gc.jsxs(of,{...r,...n,children:[gc.jsx("div",{children:e}),t?gc.jsx("span",{children:t}):null]})})};const sf=lc.div.withConfig({displayName:"Container",componentId:"sc-1tqtj7t-0"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:",";--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:",";border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);pointer-events:",";"],bc.radiusBase,bc.gray100a,(e=>e.$isDisabled?bc.gray400:bc.brandPrimary500),(e=>e.$isDisabled?"0 0 0 transparent":bc.elevation1),bc.gray100a,(e=>"outlined"===e.$variant?ic(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],bc.spacing4,bc.spacing5,bc.gray200a,bc.elevation2,e.$isSelected?ic(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):ic(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],bc.spacing3)),(e=>e.$noMinWidth?"auto":"224px"),bc.gray10,(e=>e.$isDisabled?"none":"initial")),lf=lc.button.withConfig({displayName:"MainAction",componentId:"sc-1tqtj7t-1"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:",";"],(e=>e.$isDisabled?"default":"pointer")),cf=lc.button.withConfig({displayName:"SelectButton",componentId:"sc-1tqtj7t-2"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb("," / 80%);border-radius:",";background:none;color:transparent;opacity:",";pointer-events:",";&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],bc.spacing4,bc.spacing4,bc["white-rgb"],bc.radiusCircle,(e=>e.$isSelected?"1":"var(--card-actions-opacity)"),(e=>e.$isDisabled?"none":"initial"),bc.white,bc.white,(e=>e.$isSelected&&ic(["border:none;background:",";color:",";&:hover{background:",";box-shadow:",";}&:active{background:",";box-shadow:none;}"],e.$isDisabled?bc.gray400:bc.brandPrimary500,bc.white,bc.brandPrimary600,bc.elevation1,bc.brandPrimary700))),uf=lc.div.withConfig({displayName:"ActionContainer",componentId:"sc-1tqtj7t-3"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],bc.spacing4,bc.spacing4);function df(){return gc.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:gc.jsx("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"})})}const pf="ds-checkbox__pointer-events-wrapper";function ff({isChecked:e=!1,isDisabled:t=!1,isIndeterminate:n=!1,inputProps:r,subtext:o,children:i,onChange:a=(()=>{}),id:s,...l}){const{isFocusVisible:c,focusProps:u}=Qc();return gc.jsxs(hf,{$isIndeterminate:n,$isDisabled:t,$isChecked:e,className:pf,...l,children:[gc.jsx(vf,{type:"checkbox",ref:e=>{e&&(e.indeterminate=n)},"aria-checked":n?"mixed":e,disabled:t,checked:e,onChange:a,id:s,...u,...r}),gc.jsx(mf,{children:gc.jsxs(gf,{$isFocusVisible:c,$isIndeterminate:n,$isDisabled:t,$isChecked:e,children:[e&&gc.jsx(df,{}),n&&gc.jsx(yf,{})]})}),i&&gc.jsxs(bf,{$isDisabled:t,children:[i,o&&gc.jsx(wf,{$isDisabled:t,children:o})]})]})}ff.pointerEventsClassname=pf;const hf=lc.label.withConfig({displayName:"Container",componentId:"sc-1xpfd3x-0"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],Gd.uiTextM,bc.spacing1,(e=>!e.$isDisabled&&"pointer")),mf=lc.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-1xpfd3x-1"})(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]),gf=lc.div.withConfig({displayName:"Indicator",componentId:"sc-1xpfd3x-2"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &&,",":focus-visible &&{"," background-color:",";}"],bc.componentCheckboxBorderUnchecked,bc.radiusMedium,bc.focusRingWidth,bc.radiusMedium,(e=>e.$isFocusVisible&&ic(["border-color:",";&::before{border-color:",";}"],bc.componentCheckboxBorderUncheckedFocus,e.$isChecked||e.$isIndeterminate?bc.focusRingColorPrimary:bc.focusRingColorSecondary)),(e=>e.$isChecked&&ic(["border-color:transparent;background-color:",";fill:#fff;"],bc.blue500)),(e=>e.$isIndeterminate&&ic(["border-color:transparent;background-color:",";"],bc.blue500)),(e=>e.$isDisabled&&ic(["border-color:transparent;background-color:",";fill:",";"],bc.componentCheckboxFillDisabled,bc.componentCheckboxCheckmarkColorDisabled)),"."+pf,"."+pf,(e=>!e.$isChecked&&!e.$isIndeterminate&&!e.$isDisabled&&`border-color: ${bc.componentCheckboxBorderUncheckedHover};`),(e=>!e.$isChecked&&!e.$isIndeterminate||e.$isDisabled?void 0:bc.blue600)),vf=lc.input.withConfig({displayName:"Input",componentId:"sc-1xpfd3x-3"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),yf=lc.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-1xpfd3x-4"})(["width:8px;height:2px;border-radius:",";background-color:",";"],bc.radiusPill,bc.white),bf=lc.div.withConfig({displayName:"Label",componentId:"sc-1xpfd3x-5"})(["display:block;margin-left:8px;color:",";"],(e=>e.$isDisabled?bc.colorTextDisabled:bc.colorText)),wf=lc.span.withConfig({displayName:"SubtextHolder",componentId:"sc-1xpfd3x-6"})(["display:block;color:",";font-size:",";"],(e=>e.$isDisabled?bc.colorTextDisabled:bc.colorTextMuted),bc.fontSize75),xf=u((({size:e="m",isDisabled:t=!1,thumbnail:n,children:r,icon:o,onClick:i,onDelete:a,...s},l)=>{const{isFocusVisible:c,focusProps:u}=Qc(),d=Boolean(i||a);return gc.jsxs(Cf,{$size:e,$isDisabled:t,disabled:t&&d,onClick:i,onKeyDown:function(e){i&&"Enter"===e.key?i():!a||"Backspace"!==e.key&&"Delete"!==e.key||a()},$isFocusVisible:c,as:d?"button":"span",ref:l,...u,...s,children:[n&&gc.jsx(kf,{children:n}),o&&gc.jsx(_f,{children:o}),gc.jsx("span",{children:r}),a&&gc.jsx(Ef,{$isDisabled:t,onClick:function(e){e.stopPropagation(),a&&a()},"data-testid":"ds-chip-delete-button",children:gc.jsx(xu,{size:"18px"})})]})})),Ef=lc.span.withConfig({displayName:"DeleteButton",componentId:"sc-1ymu8i6-0"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],bc.spacing3,bc.spacing3,bc.radiusCircle,(e=>e.$isDisabled?bc.gray400:bc.gray600),bc.gray50a,bc.gray800,bc.gray100a),Cf=lc.button.withConfig({displayName:"ChipStyled",componentId:"sc-1ymu8i6-1"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],bc.radiusPill,bc.gray50,bc.colorText,bc.brandFontStackBase,(e=>e.onClick&&ic(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],bc.gray75,Ef,bc.gray800,bc.gray100)),(e=>e.$isFocusVisible&&ic(["background:",";box-shadow:inset ",";outline:0;"],bc.gray25,bc.elevationStatic)),(e=>"m"===e.$size&&If),(e=>"s"===e.$size&&Sf),(e=>e.$isDisabled&&Tf)),kf=lc.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1ymu8i6-2"})(["display:block;"]),Sf=ic([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],Gd.uiTextS,kf,bc.spacing3,bc.spacing3),If=ic([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],Gd.uiTextM,kf,bc.spacing3,bc.spacing4),Tf=ic(["background-color:",";color:",";pointer-events:none;"],bc.gray25,bc.colorTextDisabled),_f=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1ymu8i6-3"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],bc.spacing2,bc.spacing3);function Of(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}function jf(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Af(e){if(!e||!jf(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Pf(){return(Pf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Bf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function Nf(e){var t=l(e),n=l((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Df=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},zf=function(e){return"touches"in e},Mf=function(e){return e&&e.ownerDocument.defaultView||self},Rf=function(e,t,n){var r=e.getBoundingClientRect(),o=zf(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Df((o.pageX-(r.left+Mf(e).pageXOffset))/r.width),top:Df((o.pageY-(r.top+Mf(e).pageYOffset))/r.height)}},Ff=function(e){!zf(e)&&e.preventDefault()},Lf=t.memo((function(e){var n=e.onMove,r=e.onKey,o=Bf(e,["onMove","onKey"]),s=l(null),c=Nf(n),u=Nf(r),d=l(null),p=l(!1),f=i((function(){var e=function(e){Ff(e),(zf(e)?e.touches.length>0:e.buttons>0)&&s.current?c(Rf(s.current,e,d.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=p.current,o=Mf(s.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=s.current;if(r&&(Ff(t),!function(e,t){return t&&!zf(e)}(t,p.current)&&r)){if(zf(t)){p.current=!0;var o=t.changedTouches||[];o.length&&(d.current=o[0].identifier)}r.focus(),c(Rf(r,t,d.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),u({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[u,c]),h=f[0],m=f[1],g=f[2];return a((function(){return g}),[g]),t.createElement("div",Pf({},o,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:s,onKeyDown:m,tabIndex:0,role:"slider"}))})),$f=function(e){return e.filter(Boolean).join(" ")},Hf=function(e){var n=e.color,r=e.left,o=e.top,i=void 0===o?.5:o,a=$f(["react-colorful__pointer",e.className]);return t.createElement("div",{className:a,style:{top:100*i+"%",left:100*r+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},Uf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Vf=function(e){return Qf(Wf(e))},Wf=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Uf(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Uf(parseInt(e.substring(6,8),16)/255,2):1}},qf=function(e){return Jf(Kf(e))},Zf=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Uf(e.h),s:Uf(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Uf(o/2),a:Uf(r,2)}},Gf=function(e){var t=Zf(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Yf=function(e){var t=Zf(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Kf=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:Uf(255*[r,s,a,a,l,r][c]),g:Uf(255*[l,r,r,s,a,a][c]),b:Uf(255*[a,a,l,r,r,s][c]),a:Uf(o,2)}},Xf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Jf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Xf(Uf(255*o)):"";return"#"+Xf(t)+Xf(n)+Xf(r)+i},Qf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:Uf(60*(s<0?s+6:s)),s:Uf(i?a/i*100:0),v:Uf(i/255*100),a:o}},eh=t.memo((function(e){var n=e.hue,r=e.onChange,o=$f(["react-colorful__hue",e.className]);return t.createElement("div",{className:o},t.createElement(Lf,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:Df(n+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Uf(n),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(Hf,{className:"react-colorful__hue-pointer",left:n/360,color:Gf({h:n,s:100,v:100,a:1})})))})),th=t.memo((function(e){var n=e.hsva,r=e.onChange,o={backgroundColor:Gf({h:n.h,s:100,v:100,a:1})};return t.createElement("div",{className:"react-colorful__saturation",style:o},t.createElement(Lf,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:Df(n.s+100*e.left,0,100),v:Df(n.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Uf(n.s)+"%, Brightness "+Uf(n.v)+"%"},t.createElement(Hf,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:Gf(n)})))})),nh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},rh=function(e,t){return e.toLowerCase()===t.toLowerCase()||nh(Wf(e),Wf(t))};function oh(e,t,n){var r=Nf(n),i=o((function(){return e.toHsva(t)})),s=i[0],u=i[1],d=l({color:t,hsva:s});a((function(){if(!e.equal(t,d.current.color)){var n=e.toHsva(t);d.current={hsva:n,color:t},u(n)}}),[t,e]),a((function(){var t;nh(s,d.current.hsva)||e.equal(t=e.fromHsva(s),d.current.color)||(d.current={hsva:s,color:t},r(t))}),[s,e,r]);var p=c((function(e){u((function(t){return Object.assign({},t,e)}))}),[]);return[s,p]}var ih="undefined"!=typeof window?d:a,ah=new Map,sh=function(e){ih((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!ah.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',ah.set(t,n);var r="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},lh=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=Bf(e,["className","colorModel","color","onChange"]),c=l(null);sh(c);var u=oh(r,i,a),d=u[0],p=u[1],f=$f(["react-colorful",n]);return t.createElement("div",Pf({},s,{ref:c,className:f}),t.createElement(th,{hsva:d,onChange:p}),t.createElement(eh,{hue:d.h,onChange:p,className:"react-colorful__last-control"}))},ch={defaultColor:"000",toHsva:Vf,fromHsva:function(e){return qf({h:e.h,s:e.s,v:e.v,a:1})},equal:rh},uh=function(e){return t.createElement(lh,Pf({},e,{colorModel:ch}))},dh=function(e){var n=e.className,r=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Yf(Object.assign({},r,{a:0}))+", "+Yf(Object.assign({},r,{a:1}))+")"},a=$f(["react-colorful__alpha",n]),s=Uf(100*r.a);return t.createElement("div",{className:a},t.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),t.createElement(Lf,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:Df(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},t.createElement(Hf,{className:"react-colorful__alpha-pointer",left:r.a,color:Yf(r)})))},ph=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=Bf(e,["className","colorModel","color","onChange"]),c=l(null);sh(c);var u=oh(r,i,a),d=u[0],p=u[1],f=$f(["react-colorful",n]);return t.createElement("div",Pf({},s,{ref:c,className:f}),t.createElement(th,{hsva:d,onChange:p}),t.createElement(eh,{hue:d.h,onChange:p}),t.createElement(dh,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},fh={defaultColor:"0001",toHsva:Vf,fromHsva:qf,equal:rh},hh=function(e){return t.createElement(ph,Pf({},e,{colorModel:fh}))};function mh(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const gh=u((({icon:e,onClick:t,isTooltipShown:n=!1,label:r,isDisabled:o=!1,tabIndex:i,...a},s)=>{const{isFocusVisible:l,focusProps:c}=Qc();return n?gc.jsx(kp,{content:r,isOpen:!!l||void 0,children:n=>gc.jsx(vh,{...a,...n,...c,ref:mh(s,n.ref),onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:l,tabIndex:i,children:e})}):gc.jsx(vh,{ref:s,...a,...c,onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:l,tabIndex:i,children:e})})),vh=lc.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-1ieyeg1-0"})(["vertical-align:middle;width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],bc.gray600,bc.gray800,bc.gray200,(e=>e.$isFocusVisible&&ic(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],bc.gray800,bc.gray200))),yh=new ap(sp);function bh(){return{translate:(r(up)||yh).translate}}const wh=u((({hasClearButton:e=!1,icon:t,iconRight:n,id:r,name:i,isDisabled:a=!1,isReadOnly:s=!1,isInvalid:c=!1,isSmall:u=!1,onBlur:d,onChange:p,onFocus:f,onKeyDown:h,onClean:m,placeholder:g,type:v="text",value:y,variant:b="outlined","aria-label":w,"aria-labelledby":x,"aria-describedby":E,"aria-haspopup":C,"aria-expanded":k,"aria-controls":S,"aria-autocomplete":I,"aria-activedescendant":T,inputRef:_,maxLength:O,prefix:j,suffix:A,autoFocus:P=!1,role:B,autoComplete:N="off",...D},z)=>{const[M,R]=o(!1),F=l(null),L=_||F,{translate:$}=bh(),H=e&&y.length>0&&"number"!==v&&"password"!==v,U="password"===v?M?"text":"password":v;function V(){var e;null==(e=null==L?void 0:L.current)||e.focus()}const W="password"===v;return gc.jsxs(Ap,{...D,$isDisabled:a,$isInvalid:c,$isSmall:u,onClick:V,ref:z,$variant:b,children:[gc.jsxs(Bp,{"data-testid":"ds-input-left-items",children:[t&&gc.jsx(Np,{children:t}),j&&gc.jsx(Dp,{$isDisabled:a,children:j})]}),gc.jsx(Pp,{autoComplete:N,autoCorrect:"off",disabled:a,$isDisabled:a,readOnly:s,onBlur:d,onChange:function(e){const t=e.currentTarget.value;null==p||p(t)},onFocus:f,onKeyDown:h,placeholder:g,ref:L,spellCheck:!1,type:U,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,"aria-haspopup":C,"aria-expanded":k,"aria-controls":S,"aria-autocomplete":I,"aria-activedescendant":T,"aria-invalid":c,role:B,id:r,name:i,maxLength:O,autoFocus:P}),gc.jsxs(zp,{"data-testid":"ds-input-right-items",children:[A&&gc.jsx(Mp,{$isDisabled:a,children:A}),W&&!a&&gc.jsx(gh,{"data-testid":"ds-password-visibility-toggle",onClick:()=>(R((e=>!e)),void V()),label:$(M?"input.hide-password":"input.show-password"),icon:M?gc.jsx(Nu,{}):gc.jsx(Ou,{}),isTooltipShown:!0}),H&&!a&&gc.jsx(Fp,{onClick:function(){null==p||p(""),null==m||m(),V()},type:"button","aria-label":$("input.clear"),children:gc.jsx(ku,{})}),n&&gc.jsx(Rp,{children:n})]})]})})),xh="ds-thumbnail__pointer-events-wrapper",Eh=lc.div.withConfig({displayName:"OverlayStyled",componentId:"sc-1l4hoyu-0"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-overlay-indicator-cutout);mask-image:var(--ds-thumbnail-overlay-indicator-cutout);",""],bc.gray200a,bc.gray10,(e=>e.$isConcealed&&ic(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+xh,"."+xh))),Ch={indicator:{square:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},circle:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}}},status:{square:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}},circle:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},kh=ic(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),Sh=lc.svg.withConfig({displayName:"SvgIcon",componentId:"sc-18umtiy-0"})(["",""],kh),Ih=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-18umtiy-1"})([""," display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:",";color:",";svg{width:12px;height:12px;}"],kh,(({$backgroundColor:e})=>bc[e]),(({$iconColor:e})=>bc[e])),Th={draft:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.gray400,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"})]})},error:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.red400,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),gc.jsx("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"})]})},loading:function({...e}){return gc.jsx(Sh,{...e,viewBox:"0 0 14 14","aria-hidden":"true",fill:bc.gray400,children:gc.jsx(Oh,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"})})},negative:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.red400,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"})]})},positive:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.teal500,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"})]})}},_h=dc`
26
+ `,lu=lc.svg.withConfig({displayName:"Svg",componentId:"sc-5lftme-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],au),cu=lc.circle.withConfig({displayName:"Circle",componentId:"sc-5lftme-1"})(["stroke:currentcolor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],su),uu=u((({children:e,className:t="",rightIcon:n,type:r="button","aria-label":o,isFullWidth:i=!1,icon:a,variant:s="secondary",isSmall:l=!1,isDisabled:c=!1,isPressed:u=!1,isLoading:d=!1,...p},f)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:t,variant:s,isSmall:l,icon:a,isDisabled:c});return gc.jsx(eu,{"aria-label":o||p.title,className:h,disabled:c||d,type:r,$variant:s,$isPressed:u,$isSmall:l,$isFullWidth:i,as:p.href?"a":"button",ref:f,...p,children:d?gc.jsxs(gc.Fragment,{children:[gc.jsx(ru,{$lastChild:!e,children:gc.jsx(iu,{})}),e]}):gc.jsxs(gc.Fragment,{children:[a&&gc.jsx(ru,{$lastChild:!e,children:a}),e,n&&gc.jsx(ou,{children:n})]})})})),du=n("modern"),pu=u((({children:e,variant:t="secondary",isSmall:n=!1,icon:r,rightIcon:o,isDisabled:i=!1,isLoading:a=!1,type:s="button",isPressed:l=!1,isFullWidth:c=!1,...u},d)=>{const{isFocusVisible:p,focusProps:f}=Qc();return gc.jsx(tu,{$variant:t,$isSmall:n,$isPressed:l,$isFullWidth:c,disabled:a||i,type:s,as:u.href?"a":"button",$isFocusVisible:p,ref:d,...f,...u,children:a?gc.jsxs(gc.Fragment,{children:[gc.jsx(ru,{"data-testid":"ds-button-loading-icon",$lastChild:!e,children:gc.jsx(iu,{})}),e]}):gc.jsxs(gc.Fragment,{children:[r&&gc.jsx(ru,{$lastChild:!e,children:r}),e,o&&gc.jsx(ou,{children:o})]})})})),fu=u(((e,t)=>"legacy"===(r(du)||"modern")?gc.jsx(uu,{ref:t,...e}):gc.jsx(pu,{ref:t,...e}))),hu=Object.assign(fu,{VersionProvider:du.Provider});function mu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 9h2V7h4V5h-4V3h-2v6ZM7 9v2H3v2h4v2h2V9H7Zm6 10v2h-2v-6h2v2h8v2h-8ZM3 19v-2h6v2H3Zm18-8v2H11v-2h10Zm-8-6H3v1.99h10V5Z",clipRule:"evenodd"})})}function gu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27ZM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5ZM5.12 5l.81-1h12l.94 1H5.12Z"})})}function vu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41Z"})})}function yu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z"})})}function bu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5v-5ZM7 9h3V7H5v5h2V9Zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16.01H3V4.99h18v14.02Z"})})}function wu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[gc.jsx("path",{fill:"currentColor",d:"M15.2 12a3.2 3.2 0 1 1-6.4 0 3.2 3.2 0 0 1 6.4 0Z"}),gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.17 4 9 2h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3.17ZM7 12c0 2.76 2.24 5 5 5s5-2.24 5-5-2.24-5-5-5-5 2.24-5 5Z",clipRule:"evenodd"})]})}function xu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"})})}function Eu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m7 10 5 5 5-5H7Z"})})}function Cu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17Z"})})}function ku({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59Z"})})}function Su({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2Zm-11-4 2.03 2.71L16 11l4 5H8l3-4Zm-9 8V6h2v14h14v2H4c-1.1 0-2-.9-2-2Z",clipRule:"evenodd"})})}function Iu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1v16h16v2h-4v4h-2v-4H7c-1.1 0-2-.9-2-2V7H1V5h4V1h2Zm12 14h-2V7H9V5h8c1.1 0 2 .9 2 2v8Z",clipRule:"evenodd"})})}function Tu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59ZM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z"})})}function _u({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6Zm7 7V3.5L18.5 9H13Z"})})}function Ou({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.01 3.87 1.41-1.42L21.15 20.2l-1.41 1.41-3.43-3.43c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5.77-1.97 2.06-3.67 3.69-4.95L2.01 3.87ZM17 11.5c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L8.36 4.57C9.51 4.2 10.73 4 12 4c5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46Zm-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5Zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64Z",clipRule:"evenodd"})})}function ju({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14Zm-8 13.51L8.5 13.5 5 18h14l-4.5-6-3.5 4.51Z",clipRule:"evenodd"})})}function Au({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z"})})}function Pu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 5v14h14v-7h2v7c0 1.1-.9 2-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7v2H5Zm9 0V3h7v7h-2V6.41l-9.83 9.83-1.41-1.41L17.59 5H14Z",clipRule:"evenodd"})})}function Bu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"})})}function Nu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5ZM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5Zm-3-5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3Z",clipRule:"evenodd"})})}function Du({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6v2h18V6H3Zm0 12h6v-2H3v2Zm12-5H3v-2h12v2Z",clipRule:"evenodd"})})}function zu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.41 2.58 9 9c.36.36.59.87.59 1.42 0 .55-.22 1.05-.59 1.41l-7 7c-.36.37-.86.59-1.41.59-.55 0-1.05-.22-1.41-.58l-9-9C2.22 12.05 2 11.55 2 11V4c0-1.1.9-2 2-2h7c.55 0 1.05.22 1.41.58ZM4 5.5C4 6.33 4.67 7 5.5 7S7 6.33 7 5.5 6.33 4 5.5 4 4 4.67 4 5.5Z",clipRule:"evenodd"})})}function Mu({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4Z"})})}function Ru({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02ZM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77Z"})})}const Fu=n(null);function Lu(){const e=r(Fu);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const $u=lc.div.withConfig({displayName:"FrameStyled",componentId:"sc-1bnqt8s-0"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.$isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":bc.gray25),(e=>"fixed"===e.$height&&ic(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),Hu=lc.div.withConfig({displayName:"FocusRing",componentId:"sc-1bnqt8s-1"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),Uu=lc.div.withConfig({displayName:"Children",componentId:"sc-1bnqt8s-2"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.$height&&ic(["position:absolute;inset:0;"]))),Vu=lc.div.withConfig({displayName:"Overlay",componentId:"sc-1bnqt8s-3"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),Wu=lc.div.withConfig({displayName:"BadgeContainer",componentId:"sc-1bnqt8s-4"})(["position:absolute;right:",";bottom:",";"],bc.spacing4,bc.spacing4),qu=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1bnqt8s-5"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],bc.spacing4,bc.spacing4,bc.white,bc.gray100a),Zu=lc.div.withConfig({displayName:"ProgressContainer",componentId:"sc-1bnqt8s-6"})(["position:absolute;bottom:0;left:0;width:100%;"]);function Gu(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function Yu(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Ku(){return Ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(this,arguments)}function Xu(e,t){return Xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xu(e,t)}function Ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ju(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ju(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ed(e){var t=l(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var td="undefined"!=typeof window?d:a;function nd(e){return parseFloat(e.replace("px",""))}function rd(e,t,n){return e<t?t:e>n?n:e}function od(e){return null!=e}function id(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=Qu(t);!(n=r()).done;){var o=n.value;o&&("function"==typeof o?o(e):o.current=e)}}}function ad(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,ad(e.parentElement,t))}function sd(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function ld(e){var t=e.enabled,n=e.onChange,r=e.environment,o=e.ResizeObserverPolyfill,s=e.overflowContainer,u=e.triggerOption,d=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(r,o);a((function(){}),[d]);var p,f,h=l(null),m=Boolean(u),g=(f=l({scrollContainers:[],trigger:null,layer:null}),i((function(){return[function(){return f.current},function(e){f.current="function"==typeof e?e(f.current):e}]}),[])),v=g[0],y=g[1],b=(p=l([]),i((function(){return{hasEventSubscriptions:function(){return p.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=Qu(p.current);!(e=t()).done;)(0,e.value)();p.current=[]},addEventSubscription:function(e){p.current.push(e)}}}),[])),w=b.hasEventSubscriptions,x=b.addEventSubscription,E=b.removeAllEventSubscriptions,C=c((function(){var e=v(),t=e.layer,o=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(sd("layer"));if(!o&&!m)throw new Error(sd("trigger"));var s={top:0,left:0};if(a){var l=a.scrollLeft;s={top:a.scrollTop,left:l}}else{var c=r.scrollX;s={top:r.scrollY,left:c}}var u={left:0,top:0};if(a){var d=r.getComputedStyle(a),p=d.borderLeftWidth,f=d.borderTopWidth;u={left:nd(p)||0,top:nd(f)||0}}n({layer:t,trigger:o,scrollContainers:i,arrow:h.current},s,u)}),[v,n,r,h,m]),k=c((function(){var e=v(),t=e.trigger,n=e.layer,o=e.scrollContainers;if(!n)throw new Error(sd("layer"));if(!t&&!m)throw new Error(sd("trigger"));if(d){for(var i=!1,a=new d((function(){i?C():i=!0})),s=0,l=[t,n,document.body];s<l.length;s++){var c=l[s];c&&a.observe(c)}x((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var u,p=function(){var e=u.value;e.addEventListener("scroll",C),x((function(){return e.removeEventListener("scroll",C)}))},f=Qu([r].concat(o));!(u=f()).done;)p()}),[v,x,C,r,d,m]),S=c((function(e,n){t&&e&&e!==n&&(E(),k(),C())}),[E,k,C,t]),I=ed(c((function(e){var t=v().layer;y((function(t){return Ku({},t,{layer:e})})),S(t,e)}),[v,y,S])),T=c((function(e){var t=ad(e,r),n=t[0];if(n){var o=r.getComputedStyle(n).position;["relative","absolute","fixed"].includes(o)||s||(n.style.position="relative")}return t}),[r,s]),_=ed(c((function(e){var t=T(e),n=v().trigger;y((function(n){return Ku({},n,{trigger:e,scrollContainers:t})})),S(n,e)}),[v,y,S,T])),O=null==u||null==u.getParent?void 0:u.getParent();return td((function(){O&&y((function(e){return Ku({},e,{scrollContainers:T(O)})}))}),[O,y,T]),td((function(){return t&&(w()||k()),function(){w()&&E()}}),[t,w,k,E]),td((function(){t&&C()})),{triggerRef:_,layerRef:I,arrowRef:h,closestScrollContainer:v().scrollContainers[0]||null}}var cd=n({});function ud(e){var t=e.children,n=e.registrations,r=c((function(e){return n.current.add(e),function(){return n.current.delete(e)}}),[n]);return s(cd.Provider,{value:r},t)}var dd={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},pd=function(){function e(e,t,n,r,o,i,a,s,l){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=s,this.isPush=l}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function fd(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new pd(e,t?fd(dd[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var hd={top:fd("top"),bottom:fd("bottom"),left:fd("left"),right:fd("right")},md=Ku({},hd,{center:fd("center")}),gd=["top","left","bottom","right"],vd=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(gd.map((function(e){return[e,n[e]]}))),a=Qu(r);!(o=a()).done;)for(var s,l=o.value,c=Qu(gd);!(s=c()).done;){var u=s.value;i[u]=Math.min(i[u],l[u])}return new e(i)},Yu(e,[{key:"allSidesArePositive",get:function(){var e=this;return gd.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(gd.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function yd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?nd(t):0)}),0)}function bd(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var wd={top:0,left:0,right:0,bottom:0,width:0,height:0},xd=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,wd,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,s=void 0===a?window:a,l=r.withScrollbars,c=void 0===l||l,u=new e(bd(t.getBoundingClientRect()));if(!i){var d=s.getComputedStyle(t),p=d.width,f=d.height,h=d.boxSizing,m=d.borderLeft,g=d.borderRight,v=d.borderTop,y=d.borderBottom,b=d.paddingLeft,w=d.paddingRight,x=d.paddingTop,E=d.paddingBottom;u=new e(Ku({},u,{width:"border-box"===h?nd(p):yd(p,m,g,b,w),height:"border-box"===h?nd(f):yd(f,v,y,x,E)}))}if(!c){var C=u.width-t.clientWidth,k=u.height-t.clientHeight;return u.substract({right:C,bottom:k})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n,r=null!=(n=null==t?void 0:t.document.scrollingElement)?n:null==t?void 0:t.document.documentElement,o=null!=r?r:{},i=o.clientWidth,a=void 0===i?0:i,s=o.clientHeight,l=void 0===s?0:s;return new e({width:a,height:l,right:a,bottom:l})};var t=e.prototype;return t.toObject=function(){return bd(this)},t.merge=function(t){var n=this.toObject();return new e(Ku({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];if(a in hd){var l=hd[a];n[a]+=l.factor(s),n[l.isHorizontal?"width":"height"]-=s}else n[a]-=s||0}return new e(n)},t.offsetsTo=function(e){return new vd({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(hd);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Yu(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),Ed=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Ku({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,s=t.isHorizontal,l=t.oppositeCssProp,c=t.oppositeSizeProp,u=t.prop,d=t.opposite,p=xd.empty();p[d.prop]=o[u]-t.factor(this.offsets.trigger),p[u]=p[d.prop]-t.factor(i[t.sizeProp]);var f=2*this.offsets.arrow,h=o[l]-(i[c]-a[c])+f,m=o[l]+(o[c]-a[c])-f;if(n.isPush||(h+=i[c],m+=i[c]),n.isCenter){var g=(s?hd.top:hd.left).prop,v=(s?hd.bottom:hd.right).prop;p[g]=rd(o[g]+o[c]/2-i[c]/2+e,h,m),p[v]=p[g]+i[c]}else{var y=n,b=o[y.prop],w=b<h?h-b:b>m?m-b:0;p[y.prop]=rd(b+e+w,h,m),p[y.opposite.prop]=p[y.prop]+n.factor(i[c])}p.width=p.right-p.left,p.height=p.bottom-p.top;var x=xd.create(p);return 0===e&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=vd.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Yu(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets(),o=null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[hd[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[];return o[0]||null}}]),e}(),Cd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Xu(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=xd.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(Ed),kd={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},Sd=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=hd[n];return[o,"center"===r?md.center:o.isHorizontal?"start"===r?md.top:md.bottom:"start"===r?md.left:md.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],s=i[1],l=hd[a.isHorizontal?n.preferY:n.preferX],c=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function u(e,o){return new Ed(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=u(a,s),d[1]=u(a,s.isCenter?l:md.center),d[2]=u(a,md[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d[3]=u(l,c?a:md[a.opposite.prop]),d[4]=u(l,md.center),d[5]=u(l,c?md[a.opposite.prop]:a),d[6]=u(hd[l.opposite.prop],c?a:md[a.opposite.prop]),d[7]=u(hd[l.opposite.prop],md.center),d[8]=u(hd[l.opposite.prop],c?md[a.opposite.prop]:a),d[9]=u(hd[a.opposite.prop],s),d[10]=u(hd[a.opposite.prop],s.isCenter?l:md.center),d[11]=u(hd[a.opposite.prop],md[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new Cd(md.center,md.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof Cd)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var s,l=e.getContainerOffsets(),c=e.secondary;return s=e.triggerIsBigger||i===e?a.isPush?-1:1:c===md.left||[md.top,md.center].includes(c)&&a.isPush?-1:1,l[a.prop]*s},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return kd;var o=e.layer,i=e.trigger,a=e.arrow,s=t.primary.oppositeSizeProp,l=i[s]>o[s],c=n+a[s]/2,u=o[s]-a[s]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,s=t.primary.isHorizontal?["top","bottom"]:["left","right"],l=s[0],c=s[1],u=r[l]+r[a]/2-o[l]-i[a]/2-n,d=r[c]-r[a]/2-o[c]+i[a]/2+n;return(u<0?-u:0)+(d>0?-d:0)}(e,t,n),p=t.primary.prop,f=t.primary.oppositeCssProp,h=l?o[s]/2+d:i[f]+i[s]/2-o[f];return Ku({},kd,((r={})[p]="100%",r[f]=rd(h,c,u),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Ku({},o,{position:"fixed",top:e.top,left:e.left}):Ku({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=vd.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[hd[n].sizeProp]}))?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),Id=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,s,l){var c=xd.fromWindow(t);return new e({layer:xd.fromElement(n,{environment:t,withTransform:!1}),trigger:l?xd.create(bd(l())):xd.fromElement(r),arrow:i?xd.fromElement(i):xd.empty(),parent:o?xd.fromElement(o):c,window:c,scrollContainers:[c].concat(a.map((function(e){return xd.fromElement(e,{withScrollbars:!1})})))},s)};var t=e.prototype;return t.merge=function(t){return new e(Ku({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Yu(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),Td=null,_d={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function Od(e){var t,n=e.isOpen,i=void 0!==n&&n,u=e.overflowContainer,d=void 0===u?_d.overflowContainer:u,p=e.environment,f=void 0===p?"undefined"!=typeof window?window:void 0:p,h=e.ResizeObserver,g=e.placement,v=void 0===g?_d.placement:g,y=e.possiblePlacements,b=void 0===y?_d.possiblePlacements:y,w=e.preferX,x=void 0===w?_d.preferX:w,E=e.preferY,C=void 0===E?_d.preferY:E,k=e.auto,S=void 0===k?_d.auto:k,I=e.snap,T=void 0===I?_d.snap:I,_=e.triggerOffset,O=void 0===_?_d.triggerOffset:_,j=e.containerOffset,A=void 0===j?_d.containerOffset:j,P=e.arrowOffset,B=void 0===P?_d.arrowOffset:P,N=e.container,D=void 0===N?_d.container:N,z=e.layerDimensions,M=void 0===z?null:z,R=e.onDisappear,F=e.onOutsideClick,L=e.onParentClose,$=e.trigger,H=o((function(){return{layerSide:"center"===v?"center":Sd.getSidesFromPlacementType(v)[0].prop,styles:{layer:{position:d?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),U=H[0],V=H[1],W=l(null),q=function(e,t){var n=l(e);return t?(n.current=e,n):(n.current=null,n)}(U,i),Z=l({cancelled:!1});a((function(){return function(){Z.current.cancelled=!0}}),[]);var G=c((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,a=e.trigger,s=i[0],l=Id.create(f,o,a,s,r,i,d,null==$?void 0:$.getBounds),c={placement:v,possiblePlacements:b,auto:S,layerDimensions:M,arrowOffset:B,containerOffset:A,triggerOffset:O,preferX:x,preferY:C,snap:T,overflowContainer:d},u=Sd.create(l,c).result(t,n),p=u.hasDisappeared,h={layerSide:u.layerSide,styles:u.styles};if(!q.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(q.current,h)){q.current=h,Z.current.cancelled=!0;var m={cancelled:!1};Z.current=m,Promise.resolve().then((function(){m.cancelled||V(h)}))}od(p)&&od(R)&&R(p)}),[B,S,A,f,M,R,d,v,b,x,C,T,O,q,$]),Y=ld({ResizeObserverPolyfill:h,environment:f,enabled:i,overflowContainer:d,onChange:G,triggerOption:$}),K=Y.triggerRef,X=Y.layerRef,J=Y.arrowRef,Q=Y.closestScrollContainer,ee=function(e){var t=e.isOpen,n=e.onOutsideClick,o=e.onParentClose,i=l(null),s=l(null),u=l(new Set),d=r(cd),p=c((function(e){var t=e.target,n=i.current&&i.current.contains(t),r=s.current&&s.current.contains(t),o=function(e,t){for(var n,r=Qu(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(u.current,e);return r&&o&&u.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&o}),[i,s,u]);return a((function(){if("function"==typeof d)return d({shouldCloseWhenClickedOutside:p,closeChild:function(){o&&o()}})}),[d,p,o,u]),a((function(){if(t&&n&&"function"!=typeof d)return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){p(e)&&n()}}),[t,n,p,d]),a((function(){t||u.current.forEach((function(e){return(0,e.closeChild)()}))}),[t]),{closeOnOutsideClickRefs:{trigger:i,layer:s},registrations:u}}({isOpen:i,onOutsideClick:F,onParentClose:L}),te=ee.closeOnOutsideClickRefs,ne=ee.registrations,re={triggerProps:Boolean($)?{}:{ref:id(K,te.trigger,W)},layerProps:{ref:id(X,te.layer),style:U.styles.layer},arrowProps:{ref:J,style:U.styles.arrow,layerSide:U.layerSide},layerSide:U.layerSide,triggerBounds:i?$?$.getBounds():null==(t=W.current)?void 0:t.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?m(s(ud,{registrations:ne,children:e}),d||!Q?function(e){var t;if("function"==typeof e){if(!((t=e())&&t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(Td instanceof HTMLElement)return Td;(t=document.getElementById(Pd))||((t=document.createElement("div")).id=Pd,t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(D):Q):null}};return re}var jd,Ad,Pd="layers";function Bd(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}(Ad=jd||(jd={}))[Ad.ENTERING=0]="ENTERING",Ad[Ad.LEAVING=1]="LEAVING",Ad[Ad.IDLE=2]="IDLE";const Nd={"--white":"#ffffff","--white-rgb":Bd("#ffffff"),"--gray1000":"#031026","--gray1000-rgb":Bd("#031026"),"--gray900":"#1c283c","--gray800":"#354051","--gray700":"#4f5867","--gray600":"#68707d","--gray500":"#818793","--gray400":"#9a9fa8","--gray300":"#b3b7be","--gray200":"#cdcfd4","--gray100":"#e6e7e9","--gray75":"#edeef0","--gray50":"#f2f3f4","--gray25":"#f8f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":Bd("#0099ff"),"--blue500a10":`rgb(${bc["blue500-rgb"]} / 10%)`,"--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":Bd("#f23e0d"),"--red500a10":`rgb(${bc["red500-rgb"]} / 10%)`,"--red500a50":`rgb(${bc["red500-rgb"]} / 50%)`,"--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":Bd("#fea900"),"--yellow500a10":`rgb(${bc["yellow500-rgb"]} / 10%)`,"--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal500-rgb":Bd("#22ccaa"),"--teal500a10":`rgb(${bc["teal500-rgb"]} / 10%)`,"--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":Wd("brandPrimary700","#0087e0"),"--brandPrimary600":Wd("brandPrimary600","#0095eb"),"--brandPrimary500":Wd("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":Wd("brandPrimary500-rgb",Bd("#00aaff")),"--brandPrimary300":Wd("brandPrimary300","#b3e6ff"),"--brandPrimary100":Wd("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":bc.radiusMedium,"--brandRadiusBase":bc.radiusBase,"--fontStackBase":'"Source Sans 3", "Source Sans Pro", SourceSansPro, system-ui, sans-serif',"--brandFontStackBase":Wd("brandFontStackBase","inherit"),"--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":bc.fontSize100,"--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":`rgb(${bc["gray1000-rgb"]} / 90%)`,"--gray800a":`rgb(${bc["gray1000-rgb"]} / 80%)`,"--gray700a":`rgb(${bc["gray1000-rgb"]} / 70%)`,"--gray600a":`rgb(${bc["gray1000-rgb"]} / 60%)`,"--gray500a":`rgb(${bc["gray1000-rgb"]} / 50%)`,"--gray400a":`rgb(${bc["gray1000-rgb"]} / 40%)`,"--gray300a":`rgb(${bc["gray1000-rgb"]} / 30%)`,"--gray200a":`rgb(${bc["gray1000-rgb"]} / 20%)`,"--gray100a":`rgb(${bc["gray1000-rgb"]} / 10%)`,"--gray75a":`rgb(${bc["gray1000-rgb"]} / 7%)`,"--gray50a":`rgb(${bc["gray1000-rgb"]} / 5%)`,"--gray25a":`rgb(${bc["gray1000-rgb"]} / 3%)`,"--colorText":bc.gray800,"--colorTextMuted":bc.gray600,"--colorTextDisabled":bc.gray400,"--focusRingWidth":"2px","--focusRingColorPrimary":bc.blue500,"--focusRingColorSecondary":bc.gray200,"--colorShadow":bc.gray100a,"--elevationStatic":`0 0 0 1px ${bc.colorShadow}`,"--elevation1":`0 1px 4px -1px ${bc.colorShadow}`,"--elevation2":`0 2px 4px -1px ${bc.colorShadow}`,"--elevation4":`0 4px 6px -2px ${bc.colorShadow}`,"--elevation8":`0 8px 12px -2px ${bc.colorShadow}`,"--elevation12":`0 12px 12px -2px ${bc.colorShadow}`,"--elevation16":`0 16px 12px -2px ${bc.colorShadow}`,"--elevation24":`0 24px 12px -2px ${bc.colorShadow}`,"--componentButtonPrimaryBorderHover":bc.brandPrimary600,"--componentButtonPrimaryBorderActive":bc.brandPrimary700,"--componentButtonPrimaryBorderFocus":bc.brandPrimary500,"--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":bc.white,"--componentButtonPrimaryColorHover":bc.white,"--componentButtonPrimaryColorActive":bc.white,"--componentButtonPrimaryColorFocus":bc.white,"--componentButtonPrimaryColorDisabled":bc.white,"--componentButtonPrimaryFill":bc.brandPrimary500,"--componentButtonPrimaryFillHover":bc.brandPrimary600,"--componentButtonPrimaryFillActive":bc.brandPrimary700,"--componentButtonPrimaryFillFocus":bc.brandPrimary500,"--componentButtonPrimaryFillDisabled":bc.brandPrimary300,"--componentButtonPrimaryFocusRing":`0 0 0 3px rgb(${bc["brandPrimary500-rgb"]} / 30%)`,"--componentButtonSecondaryBorder":bc.gray100,"--componentButtonSecondaryBorderHover":bc.gray200,"--componentButtonSecondaryBorderActive":bc.gray300,"--componentButtonSecondaryBorderFocus":bc.gray300,"--componentButtonSecondaryBorderDisabled":bc.gray50,"--componentButtonSecondaryColor":bc.gray800,"--componentButtonSecondaryColorHover":bc.gray800,"--componentButtonSecondaryColorActive":bc.gray800,"--componentButtonSecondaryColorFocus":bc.gray800,"--componentButtonSecondaryColorDisabled":bc.gray300,"--componentButtonSecondaryFill":bc.gray25,"--componentButtonSecondaryFillHover":bc.gray50,"--componentButtonSecondaryFillActive":bc.gray75,"--componentButtonSecondaryFillFocus":bc.gray25,"--componentButtonSecondaryFillDisabled":bc.gray25,"--componentButtonSecondaryFocusRing":`0 0 0 3px ${bc.gray50a}`,"--componentButtonCleanBorderFocus":bc.gray200,"--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":bc.gray600,"--componentButtonCleanColorHover":bc.gray900,"--componentButtonCleanColorActive":bc.gray900,"--componentButtonCleanColorFocus":bc.gray900,"--componentButtonCleanColorDisabled":bc.gray300,"--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":bc.gray25a,"--componentButtonCleanFillActive":bc.gray50a,"--componentButtonCleanFillFocus":bc.gray25a,"--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":`0 0 0 3px ${bc.gray50a}`,"--componentButtonDangerBorderHover":bc.red600,"--componentButtonDangerBorderActive":bc.red700,"--componentButtonDangerBorderFocus":bc.red500,"--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":bc.white,"--componentButtonDangerColorHover":bc.white,"--componentButtonDangerColorActive":bc.white,"--componentButtonDangerColorFocus":bc.white,"--componentButtonDangerColorDisabled":bc.white,"--componentButtonDangerFill":bc.red500,"--componentButtonDangerFillHover":bc.red600,"--componentButtonDangerFillActive":bc.red700,"--componentButtonDangerFillFocus":bc.red500,"--componentButtonDangerFillDisabled":bc.red500a50,"--componentButtonDangerFocusRing":`0 0 0 3px rgb(${bc["red500-rgb"]} / 30%)`,"--componentDividerColor":bc.gray100a,"--componentCheckboxBorderUnchecked":bc.gray300,"--componentCheckboxBorderUncheckedHover":bc.gray500,"--componentCheckboxBorderUncheckedFocus":bc.gray500,"--componentCheckboxFillDisabled":bc.gray100,"--componentCheckboxCheckmarkColorDisabled":bc.gray500,"--componentRadioBorderUnchecked":bc.gray300,"--componentRadioFillDisabled":bc.gray100,"--componentRadioCheckmarkColorDisabled":bc.gray500,"--componentRadioBorderUncheckedHover":bc.gray500,"--componentPaginationBackground":"none","--componentPaginationElevation":`${bc.elevationStatic}, ${bc.elevation2}`,"--componentTooltipBackground":bc.gray10,"--componentTooltipShadow":`${bc.elevation2}, ${bc.elevationStatic}`,"--componentTooltipTitleColor":bc.colorText,"--componentTooltipSecondaryTextColor":bc.colorTextMuted,"--componentTooltipTextColor":bc.colorTextMuted,"--componentTabsBackgroundColor":bc.gray50a,"--componentTabsTabBackgroundColorActive":bc.white},Dd={"--fontStackBase":'Inter, "Source Sans 3", "Source Sans Pro", SourceSansPro, system-ui, sans-serif',"--brandPrimary700":Wd("brandPrimary700","#093986"),"--brandPrimary600":Wd("brandPrimary600","#0d51bc"),"--brandPrimary500":Wd("brandPrimary500","#126dfe"),"--brandPrimary500-rgb":Wd("brandPrimary500-rgb",Bd("#126dfe")),"--brandPrimary300":Wd("brandPrimary300","#94bdff"),"--brandPrimary100":Wd("brandPrimary100","#dae8ff"),"--gray900":"#132034","--gray800":"#212c40","--gray700":"#343e50","--gray600":"#4f5867","--gray500":"#6f7783","--gray400":"#8b919b","--gray300":"#b8bcc2","--gray200":"#d5d7da","--gray100":"#e6e7e9","--gray75":"#edeef0","--gray50":"#f2f3f4","--gray25":"#f8f8f9","--gray10":"#ffffff","--gray900a":`rgb(${bc["gray1000-rgb"]} / 93%)`,"--gray800a":`rgb(${bc["gray1000-rgb"]} / 88%)`,"--gray700a":`rgb(${bc["gray1000-rgb"]} / 81%)`,"--gray600a":`rgb(${bc["gray1000-rgb"]} / 70%)`,"--gray500a":`rgb(${bc["gray1000-rgb"]} / 57%)`,"--gray400a":`rgb(${bc["gray1000-rgb"]} / 46%)`,"--gray300a":`rgb(${bc["gray1000-rgb"]} / 28%)`,"--gray200a":`rgb(${bc["gray1000-rgb"]} / 17%)`,"--gray100a":`rgb(${bc["gray1000-rgb"]} / 10%)`,"--gray75a":`rgb(${bc["gray1000-rgb"]} / 7%)`,"--gray50a":`rgb(${bc["gray1000-rgb"]} / 5%)`,"--gray25a":`rgb(${bc["gray1000-rgb"]} / 3%)`,"--blue1000":"#031025","--blue900":"#051e46","--blue800":"#072961","--blue700":"#093986","--blue600":"#0d51bc","--blue500":"#126dfe","--blue500-rgb":Bd("#126dfe"),"--blue400":"#488fff","--blue300":"#94bdff","--blue200":"#c0d8ff","--blue100":"#dae8ff","--red700":"#71221c","--red600":"#9e3028","--red500":"#d54035","--red500-rgb":Bd("#d54035"),"--red400":"#e16e66","--green500":"#038922","--purple1000":"#100e20","--purple900":"#1e1b3e","--purple800":"#2a2656","--purple700":"#3b3478","--purple600":"#534aa9","--purple500":"#7064e4","--purple400":"#8d84ea","--purple300":"#bab5f3","--purple200":"#d6d3f8","--purple100":"#e7e5fb","--magenta1000":"#1f0910","--magenta900":"#3b101e","--magenta800":"#511729","--magenta700":"#701f39","--magenta600":"#9d2c50","--magenta500":"#d33b6c","--magenta400":"#e2688f","--magenta300":"#eea8be","--magenta200":"#f5ccd9","--magenta100":"#f9e1e9","--teal1000":"#00140e","--teal900":"#00251b","--teal800":"#003325","--teal700":"#004734","--teal600":"#006449","--teal500":"#008762","--teal500-rgb":Bd("#008762"),"--teal400":"#35a284","--teal300":"#88c8b7","--teal200":"#b9dfd4","--teal100":"#d6ece6"},zd={"--gray1000":"#ffffff","--gray1000-rgb":Bd("#ffffff"),"--gray900":"#e6e7e9","--gray800":"#cdcfd4","--gray700":"#b3b7be","--gray600":"#9a9fa8","--gray500":"#818793","--gray400":"#68707d","--gray300":"#4f5867","--gray200":"#354051","--gray100":"#1c283c","--gray75":"#152135","--gray50":"#101c31","--gray25":"#0b172c","--gray10":"#031026","--componentDividerColor":bc.gray100a,"--focusRingColorSecondary":bc.gray200a,"--componentCheckboxBorderUnchecked":bc.gray300a,"--componentCheckboxBorderUncheckedHover":bc.gray500a,"--componentCheckboxBorderUncheckedFocus":bc.gray500a,"--componentCheckboxFillDisabled":bc.gray100a,"--componentCheckboxCheckmarkColorDisabled":bc.gray500a,"--componentRadioBorderUnchecked":bc.gray300a,"--componentRadioFillDisabled":bc.gray100a,"--componentRadioCheckmarkColorDisabled":bc.gray500a,"--componentRadioBorderUncheckedHover":bc.gray500a,"--componentPaginationBackground":bc.gray50a,"--componentPaginationElevation":"none","--componentTooltipBackground":bc.gray100,"--componentTooltipShadow":"0 2px 4px -1px rgb(3 16 38 / 10%), 0 0 0 1px rgb(3 16 38 / 10%)","--componentTooltipTitleColor":bc.gray1000,"--componentTooltipSecondaryTextColor":bc.gray600,"--componentTooltipTextColor":bc.gray800,"--componentTabsBackgroundColor":bc.gray10,"--componentTabsTabBackgroundColorActive":bc.gray100},Md={"--gray1000":"#ffffff","--gray1000-rgb":Bd("#ffffff"),"--gray900":"#e6e7e9","--gray800":"#cdcfd4","--gray700":"#b3b7be","--gray600":"#9a9fa8","--gray500":"#818793","--gray400":"#68707d","--gray300":"#4f5867","--gray200":"#354051","--gray100":"#1c283c","--gray75":"#152135","--gray50":"#101c31","--gray25":"#0b172c","--gray10":"#031026"},Rd="ds-light-theme",Fd="ds-dark-theme",Ld=Boolean(document.querySelector('[data-b-ds-new-branding="on"]')),$d=Ld?{...Nd,...Dd}:Nd,Hd=Ld?{...zd,...Md}:zd,Ud=uc`${ic([":root,:host,.",",.","{","}.","{","}"],Rd,Fd,Vd($d),Fd,Vd(Hd))}`;function Vd(e){return Object.entries(e).map((([e,t])=>`${e}-${vc}: ${t}`)).join(";")+";"}function Wd(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}function qd({className:e,children:t,...n}){return gc.jsx("div",{className:Rd+(e?` ${e}`:""),...n,children:t})}function Zd({className:e,children:t,...n}){return gc.jsx("div",{className:Fd+(e?` ${e}`:""),...n,children:t})}const Gd={paragraphS:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize75,bc.lineHeightText),paragraphM:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize100,bc.lineHeightText),paragraphL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize200,bc.lineHeightText),uiTextXS:ic(["font-weight:normal;font-size:",";line-height:20px;"],bc.fontSize50),uiTextS:ic(["font-weight:normal;font-size:",";line-height:20px;"],bc.fontSize75),uiTextM:ic(["font-weight:normal;font-size:",";line-height:20px;"],bc.fontSize100),uiTextL:ic(["font-weight:normal;font-size:",";line-height:24px;"],bc.fontSize200),headingXS:ic(["font-weight:600;font-size:",";line-height:",";"],bc.fontSize100,bc.lineHeightHeading),headingS:ic(["font-weight:600;font-size:",";line-height:",";"],bc.fontSize200,bc.lineHeightHeading),headingM:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize400,bc.lineHeightHeading),headingL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize600,bc.lineHeightHeading),headingXL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize800,bc.lineHeightHeading),headingXXL:ic(["font-weight:normal;font-size:",";line-height:",";"],bc.fontSize1000,bc.lineHeightHeading)};function Yd({children:e,direction:t="row",wrap:n="nowrap",justifyContent:r="flex-start",alignItems:o="stretch",gap:i,...a}){return gc.jsx(Kd,{$direction:t,$wrap:n,$justifyContent:r,$alignItems:o,$gap:i,...a,children:e})}const Kd=lc.div.withConfig({displayName:"FlexStyled",componentId:"sc-duap7b-0"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.$direction),(e=>e.$wrap),(e=>e.$gap?bc[`spacing${e.$gap}`]:void 0),(e=>e.$justifyContent),(e=>e.$alignItems)),Xd=(e,t,n)=>{const r=e[t];return r?"function"==typeof r?r():Promise.resolve(r):new Promise(((e,r)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))}))};class Jd{constructor(e){this.input=e,this.index=0,this.done=!1,this.value="",this.value=this.input.charAt(0)}next(){return++this.index>=this.input.length&&(this.done=!0),this.value=this.input.charAt(this.index)}croak(){throw new Error(`[${this.input}]. Unexpected character "${this.value}" on position ${this.index}.`)}}var Qd;!function(e){e[e.Plural=0]="Plural",e[e.Select=1]="Select",e[e.Text=2]="Text",e[e.Variable=3]="Variable"}(Qd||(Qd={}));const ep="{",tp="}",np=",",rp=[ep,tp,np];class op{constructor(e){this.input=new Jd(e)}next(){return this.input.value===ep?this.readVariable():this.readText()}skip(e){e!==this.input.value&&this.input.croak(),this.input.next()}readWhile(e){let t="";for(;!this.input.done&&e(this.input.value);)t+=this.input.value,this.input.next();return t}readVariable(){this.skip(ep);const e=this.readWhile((e=>!function(e){return rp.includes(e)}(e))).trim();if(0===e.length&&this.input.croak(),this.input.value===tp)return this.skip(tp),{type:Qd.Variable,value:e};this.skip(np);const t=this.readVariableType();return{options:this.readVariableOptions(),type:t,value:e}}readText(){return{type:Qd.Text,value:this.readWhile((e=>e!==ep&&e!==tp))}}readVariableType(){const e=this.readWhile((e=>e!==np)).trim();return"plural"===e?Qd.Plural:"select"===e?Qd.Select:void this.input.croak()}readVariableOptions(){this.skip(np);const e={};for(;this.input.value!==tp;)e[this.readText().value.trim()]=this.readExpression();return this.skip(tp),e}readExpression(){const e=[];for(this.skip(ep);this.input.value!==tp;)e.push(this.next());return this.skip(tp),e}}const ip=["campaigns","Campaigns","Campaign","campaign","Collection","collections","collection","Collections","limitedUsage","LIMITED","jobs","Jobs","job","Job","Guidelines","WorkflowCalendar","AssetBank","Brandstore","Reporter","Brand","brands","categories","Brands","brand","Asset","Subbrand","subbrands","Assets","assets","asset","subbrand","Subbrands","category","task","Stage","accountable","tasks","stage","Categories","Category","stages","Task","Stages","Tasks","Accountable"];class ap{constructor(e,t,n){this.memo={},this.onError=console.error,this.translateParts=(e,t)=>{const n=this.getTranslationById(e);try{return function({locale:e,translation:t,values:n,wordReplacements:r}){const o=new op(t),i=[];for(;!o.input.done;)a(o.next());return i;function a({options:t,type:o,value:s}){if(o===Qd.Variable)return ip.includes(s)?void(r[s]?i.push(r[s]):i.push(s)):void i.push(n[s]);if(!t)return void i.push(s);if(o===Qd.Select)return void t[n[s]].map(a);const l=e.replace("_","-");t[new Intl.PluralRules(l).select(n[s])].map(a)}}({locale:this.locale,translation:n,values:t,wordReplacements:this.wordReplacements})}catch(e){return this.onError(e),[n]}},this.translate=(e,t={})=>this.translateParts(e,t).join(""),this.getTranslationById=e=>{if(!this.memo[e]){let t=this.translations[e];"string"!=typeof t&&(this.onError(new Error(`Localization: Missing translation with ID "${e}"`)),t=e),this.memo[e]=t}return this.memo[e]},this.locale=function(e){return e||"en_US"}(t),n?(this.translations={...e,...n.translations},this.wordReplacements=n.wordReplacements):(this.translations={...e},this.wordReplacements={})}}const sp={"colorpicker.opacity-input":"Opacity","datepicker.clear-date":"Clear date","datepicker.next-month":"Next month","datepicker.open-calendar":"Open calendar","datepicker.previous-month":"Previous month","input.clear":"Clear input","input.hide-password":"Hide password","input.show-password":"Show password","modal.close":"Close","multiselectchips.add-value":"Add ‘{value}’","multiselectchips.remove-all":"Remove all","pagination.next-page":"Next page","pagination.previous-page":"Previous page"};var lp=Object.freeze({__proto__:null,default:sp});const cp=["de_DE","en_US","es_ES","es_MX","fr_FR","it_IT","ja_JP","ko_KR","nl_NL","pl_PL","pt_BR","ru_RU","tr_TR","zh_CN","zh_TW"],up=t.createContext(void 0);function dp({children:e,locale:t="en_US"}){const[n,r]=o(void 0);if(a((()=>{cp.includes(t)?Xd(Object.assign({"../../i18n/de_DE.json":()=>Promise.resolve().then((function(){return bL})),"../../i18n/en_US.json":()=>Promise.resolve().then((function(){return lp})),"../../i18n/es_ES.json":()=>Promise.resolve().then((function(){return wL})),"../../i18n/es_MX.json":()=>Promise.resolve().then((function(){return xL})),"../../i18n/fr_FR.json":()=>Promise.resolve().then((function(){return EL})),"../../i18n/it_IT.json":()=>Promise.resolve().then((function(){return CL})),"../../i18n/ja_JP.json":()=>Promise.resolve().then((function(){return kL})),"../../i18n/ko_KR.json":()=>Promise.resolve().then((function(){return SL})),"../../i18n/nl_NL.json":()=>Promise.resolve().then((function(){return IL})),"../../i18n/pl_PL.json":()=>Promise.resolve().then((function(){return TL})),"../../i18n/pt_BR.json":()=>Promise.resolve().then((function(){return _L})),"../../i18n/ru_RU.json":()=>Promise.resolve().then((function(){return OL})),"../../i18n/tr_TR.json":()=>Promise.resolve().then((function(){return jL})),"../../i18n/zh_CN.json":()=>Promise.resolve().then((function(){return AL})),"../../i18n/zh_TW.json":()=>Promise.resolve().then((function(){return PL}))}),`../../i18n/${t}.json`,4).then((e=>{r(e.default)})):Promise.resolve().then((function(){return lp})).then((e=>{r(e.default)}))}),[t]),!n)return null;const i=new ap(n,t);return gc.jsx(up.Provider,{value:i,children:e})}const pp=1031,fp=t.createContext({zIndexBase:pp});function hp({children:e,noTheme:t,zIndexBase:n=pp,buttonVersion:r="modern",dateFnsLocale:o,locale:a="en_US"}){const s=i((()=>({zIndexBase:n,dateFnsLocale:o})),[o,n]);return gc.jsx(fp.Provider,{value:s,children:gc.jsx(dp,{locale:a,children:gc.jsxs(hu.VersionProvider,{value:r,children:[!t&&gc.jsx(Ud,{}),e]})})})}const mp=["modal","dropdown","datepicker","tooltip","colorpicker","listDragAndDrop"];function gp(e){return r(fp).zIndexBase+mp.indexOf(e)}const vp=lc.div.withConfig({displayName:"ImageHolder",componentId:"sc-1m204zj-0"})(["margin:calc("," * -1) calc("," * -1) ",";"],bc.spacing4,bc.spacing5,bc.spacing3),yp=lc.img.withConfig({displayName:"StyledImage",componentId:"sc-1m204zj-1"})(["vertical-align:top;width:100%;border-bottom:1px solid ",";border-radius:var(--ds-tooltip-border-radius) var(--ds-tooltip-border-radius) 0 0;"],bc.gray100a),bp=lc.div.withConfig({displayName:"StyledText",componentId:"sc-16o2twi-0"})([""," padding-block:",";color:",";"],Gd.paragraphS,bc.spacing3,bc.componentTooltipTextColor),wp=lc.div.withConfig({displayName:"ItemStyled",componentId:"sc-17jheit-0"})(["display:flex;gap:",";align-items:center;margin-inline:calc("," * -1);padding:"," ",";"],bc.spacing3,bc.spacing5,bc.spacing3,bc.spacing5),xp=lc.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-17jheit-1"})(["flex:none;"]),Ep=lc.div.withConfig({displayName:"Content",componentId:"sc-17jheit-2"})([""," flex:1;min-width:0;"],Gd.uiTextM),Cp=lc.div.withConfig({displayName:"Subtext",componentId:"sc-17jheit-3"})([""," color:",";"],Gd.uiTextS,bc.componentTooltipSecondaryTextColor);function kp({position:e="top-center",timing:t="instant",size:n="small",isLightTheme:r=!1,className:i,icon:s,secondaryText:u,badge:d,content:p,...f}){const[h,m]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,r=void 0===n?0:n,i=t.delayLeave,s=void 0===i?0:i,u=t.hideOnScroll,d=void 0===u||u,p=o(!1),f=p[0],h=p[1],m=l(null),g=l(jd.IDLE),v=l(!1),y=c((function(){clearTimeout(m.current),m.current=null,g.current=jd.IDLE}),[]);function b(e,t){if(g.current===jd.ENTERING&&m.current&&y(),f){if(t)return h(!1),m.current=null,void(g.current=jd.IDLE);g.current=jd.LEAVING,m.current=window.setTimeout((function(){h(!1),m.current=null,g.current=jd.IDLE}),s)}}return a((function(){function e(){f&&d&&(y(),h(!1))}return window.addEventListener("scroll",e,!0),function(){window.removeEventListener("scroll",e,!0),m.current&&clearTimeout(m.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===jd.LEAVING&&m.current&&y(),f||(g.current=jd.ENTERING,m.current=window.setTimeout((function(){h(!0),m.current=null,g.current=jd.IDLE}),r))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||h(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===t?800:0}),{isFocusVisible:g,focusProps:v}=Qc(),y=gp("tooltip"),b=void 0===f.isOpen?h||g:f.isOpen,{triggerProps:w,layerProps:x,renderLayer:E}=Od({isOpen:b,auto:!0,snap:!0,placement:Sp(e),possiblePlacements:Ip(e),triggerOffset:8,containerOffset:8});return gc.jsxs(gc.Fragment,{children:["function"==typeof f.children?f.children({...w,...m,...v}):gc.jsx("div",{...w,...m,...v,children:f.children}),b&&E(gc.jsx(Tp,{isLightTheme:r,children:gc.jsx(_p,{...x,$zIndex:y,className:i,$size:n,children:gc.jsxs(Yd,{alignItems:"center",gap:"3",children:[s&&gc.jsx(Op,{$size:n,children:s}),gc.jsx("div",{children:p}),u&&gc.jsx(jp,{children:u}),d]})})}))]})}function Sp(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function Ip(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}function Tp({isLightTheme:e,children:t}){return e?gc.jsx(qd,{children:t}):gc.jsx(Zd,{children:t})}kp.Image=function({src:e,alt:t=""}){return gc.jsx(vp,{children:gc.jsx(yp,{src:e,alt:t,"data-testid":"ds-tooltip-image"})})},kp.Text=function({children:e}){return gc.jsx(bp,{children:e})},kp.ListItem=function({children:e,subtext:t,thumbnail:n,rightElements:r,...o}){return gc.jsxs(wp,{...o,children:[n&&gc.jsx(xp,{children:n}),gc.jsxs(Ep,{children:[e,t?gc.jsx(Cp,{children:t}):null]}),r]})};const _p=lc.div.withConfig({displayName:"TooltipContainer",componentId:"sc-xel4md-0"})(["--ds-tooltip-border-radius:",";z-index:",";display:flex;box-sizing:border-box;border-radius:var(--ds-tooltip-border-radius);background:",";color:",";box-shadow:",";word-break:break-word;",";"],bc.radiusBase,(e=>e.$zIndex),bc.componentTooltipBackground,bc.componentTooltipTitleColor,bc.componentTooltipShadow,(e=>"small"===e.$size?ic([""," max-width:240px;padding:"," ",";"],Gd.uiTextS,bc.spacing3,bc.spacing4):"medium"===e.$size?ic([""," max-width:256px;padding:"," ",";"],Gd.uiTextM,bc.spacing3,bc.spacing5):void 0)),Op=lc.span.withConfig({displayName:"IconContainer",componentId:"sc-xel4md-1"})(["display:flex;align-items:center;width:24px;height:24px;margin-block:calc("," * -1);margin-left:",";"],bc.spacing1,(e=>"medium"===e.$size?`calc(${bc.spacing3} * -1)`:`calc(${bc.spacing2} * -1)`)),jp=lc.span.withConfig({displayName:"SecondaryTextContainer",componentId:"sc-xel4md-2"})([""," color:",";"],Gd.uiTextS,bc.componentTooltipSecondaryTextColor),Ap=lc.div.withConfig({displayName:"InputWrapper",componentId:"sc-f6zlz-0"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.$isSmall?ic(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],bc.spacing4,bc.spacing2):ic(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],bc.spacing5,bc.spacing3)),(e=>e.$isInvalid?bc.red500:bc.gray100),bc.radiusMedium,bc.gray10,(e=>e.$isInvalid?bc.red600:bc.gray200),bc.elevation1,(e=>e.$isInvalid?bc.red500:bc.gray300),bc.gray100,(e=>e.$isDisabled&&ic(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],bc.gray100,bc.gray25,bc.gray600,bc.gray100)),(e=>"clean"===e.$variant&&ic(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],bc.gray25a,bc.gray50a))),Pp=lc.input.withConfig({displayName:"InputStyled",componentId:"sc-f6zlz-1"})(["&&&{flex:1;width:auto;min-width:0;height:100%;margin:0 !important;padding:0 !important;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],bc.colorText,bc.brandFontStackBase,Gd.uiTextM,bc.gray400,bc.gray600,bc.gray400),Bp=lc.div.withConfig({displayName:"LeftItems",componentId:"sc-f6zlz-2"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);&:empty{display:none;}"]),Np=lc.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-f6zlz-3"})(["flex:none;margin-left:calc("," * -1);color:",";"],bc.spacing2,bc.gray600),Dp=lc.div.withConfig({displayName:"PrefixContainer",componentId:"sc-f6zlz-4"})(["color:",";"],(e=>e.$isDisabled?bc.gray400:bc.gray600)),zp=lc.div.withConfig({displayName:"RightItems",componentId:"sc-f6zlz-5"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);&:empty{display:none;}"],bc.spacing2),Mp=lc.div.withConfig({displayName:"SuffixContainer",componentId:"sc-f6zlz-6"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.$isDisabled?bc.gray400:bc.gray600),bc.spacing2),Rp=lc.div.withConfig({displayName:"IconRightContainer",componentId:"sc-f6zlz-7"})(["display:grid;flex:none;align-items:center;color:",";"],bc.gray600),Fp=lc.button.withConfig({displayName:"ClearButton",componentId:"sc-f6zlz-8"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],bc.gray200a,bc.gray300a,bc.gray400a);function Lp({children:e,tooltipPosition:t="top-left",...n}){const[r,s]=o(!1),u=l(null);function p(){if(u.current){const e=u.current.offsetWidth<u.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=l(void 0);n.current=t;var r=e.round||Math.round,s=l(),u=o({width:void 0,height:void 0}),d=u[0],p=u[1],f=l(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var h=l({width:void 0,height:void 0}),m=function(e,t){var n=l(null),r=l(null);r.current=t;var o=l(null);a((function(){i()}));var i=c((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),c((function(e){o.current=e,i()}),[i])}(c((function(t){return s.current&&s.current.box===e.box&&s.current.round===r||(s.current={box:e.box,round:r,instance:new ResizeObserver((function(t){var o=t[0],i="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Gu(o,i,"inlineSize"),s=Gu(o,i,"blockSize"),l=a?r(a):void 0,c=s?r(s):void 0;if(h.current.width!==l||h.current.height!==c){var u={width:l,height:c};h.current.width=l,h.current.height=c,n.current?n.current(u):f.current||p(u)}}))}),s.current.instance.observe(t,{box:e.box}),function(){s.current&&s.current.instance.unobserve(t)}}),[e.box,r]),e.ref);i((function(){return{ref:m,width:d.width,height:d.height}}),[m,d.width,d.height])}({ref:u,onResize:()=>{p()}}),d((()=>{p()}),[]),gc.jsx($p,{ref:u,...n,children:r?gc.jsx(kp,{content:e,position:t,timing:"delay",children:t=>gc.jsx("span",{...t,children:e})}):e})}const $p=lc.span.withConfig({displayName:"StyledText",componentId:"sc-b6pp4c-0"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;&::after{content:'';display:block;}&:has(","){overflow:visible;}"],Ap),Hp=lc.div.withConfig({displayName:"HeaderStyled",componentId:"sc-1pov1j3-0"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Up=lc.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1pov1j3-1"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],bc.spacing4),Vp=lc.div.withConfig({displayName:"Title",componentId:"sc-1pov1j3-2"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],Gd.uiTextM,bc.colorText),Wp=lc.div.withConfig({displayName:"Detail",componentId:"sc-1pov1j3-3"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],Gd.uiTextS,bc.spacing2,bc.colorTextMuted),qp=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1pov1j3-4"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],bc.spacing2,bc.gray600),Zp=lc.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-kuakuj-0"})([""," padding:",";border-top:1px solid ",";color:",";"],Gd.uiTextS,(e=>"all"===e.$padding?"var(--card-content-padding)":"0"),bc.gray100a,bc.colorText),Gp=u((({children:e,isDisabled:t=!1,isPressed:n=!1,tooltip:r,"aria-label":o,...i},a)=>{const{isFocusVisible:s,focusProps:l}=Qc(),c=gc.jsx(Yp,{disabled:t,type:"button",$isFocusVisible:s,ref:a,$isPressed:n,"aria-label":o,...l,...i,children:e});return r?gc.jsx(kp,{timing:"delay",content:r,children:c}):c})),Yp=lc.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-yl6ibh-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],bc.spacing3,bc.brandRadiusBase,bc.gray100a,bc.fontSize75,bc.brandFontStackBase,bc.lineHeightBase,(e=>{const t=ic(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],bc.gray10,bc.gray800,bc.gray100a);return ic(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],bc["white-rgb"],bc.gray600a,e.$isPressed&&t,bc.gray10,bc.gray800,bc.elevation1,bc.elevationStatic,t,bc["white-rgb"],bc.gray200a,bc.gray100a)})),Kp=lc.div.withConfig({displayName:"ImagesStyled",componentId:"sc-v41o6p-0"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;&:has(:first-child:last-child){display:flex;}"],bc.spacing1),Xp=lc.img.withConfig({displayName:"ImgStyled",componentId:"sc-v41o6p-1"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.$contentResize?"cover":"scale-down")),Jp=lc.div.withConfig({displayName:"Placeholder",componentId:"sc-1qwqjbg-0"})(["display:grid;place-items:center;min-height:100px;"]),Qp=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1qwqjbg-1"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],bc.brandRadiusBase,bc.gray10,bc.gray600);let ef=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};function tf(e){return i((()=>e+"-"+ef()),[e])}const nf=lc.div.withConfig({displayName:"Placeholder",componentId:"sc-qax8fp-0"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";color:",";svg{width:48px;height:48px;}"],(e=>e.$backgroundColor),(e=>e.$iconColor)),rf=lc.div.withConfig({displayName:"StatsStyled",componentId:"sc-a5kvvv-0"})(["display:flex;flex-wrap:wrap;row-gap:",";padding:var(--card-content-padding);border-top:1px solid ",";column-gap:",";"],bc.spacing4,bc.gray100a,bc.spacing5),of=lc.div.withConfig({displayName:"StatItemStyled",componentId:"sc-7uwt82-0"})([""," display:flex;align-items:center;color:",";column-gap:",";"],Gd.uiTextS,bc.colorTextMuted,bc.spacing2);function af({children:e,variant:t="outlined",isSelected:n=!1,contextAction:r,onClick:o,onSelect:a,as:s="button",href:l,to:c,noMinWidth:u,selectButtonAriaLabel:d,"aria-label":p,isDisabled:f=!1,...h}){const m=tf("card-title"),g=i((()=>({variant:t,isSelected:n,cardTitleId:m})),[n,t,m]),v=f?"div":s;return gc.jsx(Fu.Provider,{value:g,children:gc.jsxs(sf,{$variant:t,$isSelected:n,$noMinWidth:u,$isDisabled:f,...h,children:[gc.jsx(lf,{as:v,to:f?void 0:c,href:"a"===v?l:void 0,type:"button"===v?"button":void 0,onClick:function(e){if(!f)return a&&(e.metaKey||e.ctrlKey||e.shiftKey)?(a(e),void e.preventDefault()):void(null==o||o(e))},"aria-labelledby":p?void 0:m,"aria-label":p,$isDisabled:f,children:e}),r&&!f?gc.jsx(uf,{children:r}):null,a?gc.jsx(cf,{type:"button",$isSelected:n,onClick:a,"aria-label":d,disabled:f,$isDisabled:f,children:gc.jsx(Cu,{})}):null]})})}af.Frame=function({children:e,progressBar:t,badge:n,icon:r,isCheckeredBackground:o=!1,height:i="fixed",...a}){const{variant:s,isSelected:l}=Lu();return gc.jsxs($u,{$isCheckeredBackground:o,$height:i,...a,children:["clean"===s&&l&&gc.jsx(Hu,{}),gc.jsx(Uu,{$height:i,children:e}),gc.jsx(Vu,{}),t?gc.jsx(Zu,{children:t}):null,n?gc.jsx(Wu,{children:gc.jsx(wc,{color:"black-alpha",children:n})}):null,r?gc.jsx(qu,{children:r}):null]})},af.Header=function({thumbnail:e,title:t,detail:n,icon:r,isNotTruncated:o=!1,...i}){const{cardTitleId:a}=Lu();return gc.jsxs(Hp,{...i,children:[e?gc.jsx(Up,{children:e}):null,gc.jsx(Vp,{id:a,children:o?t:gc.jsx(Lp,{children:t})}),n?gc.jsx(Wp,{children:o?n:gc.jsx(Lp,{children:n})}):null,r?gc.jsx(qp,{children:r}):null]})},af.AdditionalInfo=function({children:e,padding:t="all",...n}){return gc.jsx(Zp,{$padding:t,...n,children:e})},af.ContextActionButton=Gp,af.Images=function({children:e,...t}){return gc.jsx(Kp,{...t,children:e})},af.Img=function({src:e,contentResize:t="fill",alt:n="",onError:r,...o}){return gc.jsx(Xp,{src:e,alt:n,$contentResize:t,onError:r,...o})},af.FilePlaceholder=function({children:e,...t}){return gc.jsx(Jp,{...t,children:gc.jsx(Qp,{children:e})})},af.IconPlaceholder=function({children:e,backgroundColor:t=bc.gray25,iconColor:n=bc.gray400a,...r}){return gc.jsx(nf,{$backgroundColor:t,$iconColor:n,...r,children:e})},af.Stats=function({children:e,...t}){return gc.jsx(rf,{...t,children:e})},af.StatsItem=function({icon:e,children:t,title:n,...r}){return t&&t.toString().length,gc.jsx(kp,{content:n,timing:"delay",children:n=>gc.jsxs(of,{...r,...n,children:[gc.jsx("div",{children:e}),t?gc.jsx("span",{children:t}):null]})})};const sf=lc.div.withConfig({displayName:"Container",componentId:"sc-1tqtj7t-0"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:",";--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:",";border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);pointer-events:",";"],bc.radiusBase,bc.gray100a,(e=>e.$isDisabled?bc.gray400:bc.brandPrimary500),(e=>e.$isDisabled?"0 0 0 transparent":bc.elevation1),bc.gray100a,(e=>"outlined"===e.$variant?ic(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],bc.spacing4,bc.spacing5,bc.gray200a,bc.elevation2,e.$isSelected?ic(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):ic(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],bc.spacing3)),(e=>e.$noMinWidth?"auto":"224px"),bc.gray10,(e=>e.$isDisabled?"none":"initial")),lf=lc.button.withConfig({displayName:"MainAction",componentId:"sc-1tqtj7t-1"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:",";"],(e=>e.$isDisabled?"default":"pointer")),cf=lc.button.withConfig({displayName:"SelectButton",componentId:"sc-1tqtj7t-2"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb("," / 80%);border-radius:",";background:none;color:transparent;opacity:",";pointer-events:",";&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],bc.spacing4,bc.spacing4,bc["white-rgb"],bc.radiusCircle,(e=>e.$isSelected?"1":"var(--card-actions-opacity)"),(e=>e.$isDisabled?"none":"initial"),bc.white,bc.white,(e=>e.$isSelected&&ic(["border:none;background:",";color:",";&:hover{background:",";box-shadow:",";}&:active{background:",";box-shadow:none;}"],e.$isDisabled?bc.gray400:bc.brandPrimary500,bc.white,bc.brandPrimary600,bc.elevation1,bc.brandPrimary700))),uf=lc.div.withConfig({displayName:"ActionContainer",componentId:"sc-1tqtj7t-3"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],bc.spacing4,bc.spacing4);function df(){return gc.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:gc.jsx("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"})})}const pf="ds-checkbox__pointer-events-wrapper";function ff({isChecked:e=!1,isDisabled:t=!1,isIndeterminate:n=!1,inputProps:r,subtext:o,children:i,onChange:a=(()=>{}),id:s,...l}){const{isFocusVisible:c,focusProps:u}=Qc();return gc.jsxs(hf,{$isIndeterminate:n,$isDisabled:t,$isChecked:e,className:pf,...l,children:[gc.jsx(vf,{type:"checkbox",ref:e=>{e&&(e.indeterminate=n)},"aria-checked":n?"mixed":e,disabled:t,checked:e,onChange:a,id:s,...u,...r}),gc.jsx(mf,{children:gc.jsxs(gf,{$isFocusVisible:c,$isIndeterminate:n,$isDisabled:t,$isChecked:e,children:[e&&gc.jsx(df,{}),n&&gc.jsx(yf,{})]})}),i&&gc.jsxs(bf,{$isDisabled:t,children:[i,o&&gc.jsx(wf,{$isDisabled:t,children:o})]})]})}ff.pointerEventsClassname=pf;const hf=lc.label.withConfig({displayName:"Container",componentId:"sc-1xpfd3x-0"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],Gd.uiTextM,bc.spacing1,(e=>!e.$isDisabled&&"pointer")),mf=lc.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-1xpfd3x-1"})(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]),gf=lc.div.withConfig({displayName:"Indicator",componentId:"sc-1xpfd3x-2"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &&,",":focus-visible &&{"," background-color:",";}"],bc.componentCheckboxBorderUnchecked,bc.radiusMedium,bc.focusRingWidth,bc.radiusMedium,(e=>e.$isFocusVisible&&ic(["border-color:",";&::before{border-color:",";}"],bc.componentCheckboxBorderUncheckedFocus,e.$isChecked||e.$isIndeterminate?bc.focusRingColorPrimary:bc.focusRingColorSecondary)),(e=>e.$isChecked&&ic(["border-color:transparent;background-color:",";fill:#fff;"],bc.blue500)),(e=>e.$isIndeterminate&&ic(["border-color:transparent;background-color:",";"],bc.blue500)),(e=>e.$isDisabled&&ic(["border-color:transparent;background-color:",";fill:",";"],bc.componentCheckboxFillDisabled,bc.componentCheckboxCheckmarkColorDisabled)),"."+pf,"."+pf,(e=>!e.$isChecked&&!e.$isIndeterminate&&!e.$isDisabled&&`border-color: ${bc.componentCheckboxBorderUncheckedHover};`),(e=>!e.$isChecked&&!e.$isIndeterminate||e.$isDisabled?void 0:bc.blue600)),vf=lc.input.withConfig({displayName:"Input",componentId:"sc-1xpfd3x-3"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),yf=lc.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-1xpfd3x-4"})(["width:8px;height:2px;border-radius:",";background-color:",";"],bc.radiusPill,bc.white),bf=lc.div.withConfig({displayName:"Label",componentId:"sc-1xpfd3x-5"})(["display:block;margin-left:8px;color:",";"],(e=>e.$isDisabled?bc.colorTextDisabled:bc.colorText)),wf=lc.span.withConfig({displayName:"SubtextHolder",componentId:"sc-1xpfd3x-6"})(["display:block;color:",";font-size:",";"],(e=>e.$isDisabled?bc.colorTextDisabled:bc.colorTextMuted),bc.fontSize75),xf=u((({size:e="m",isDisabled:t=!1,thumbnail:n,children:r,icon:o,onClick:i,onDelete:a,...s},l)=>{const{isFocusVisible:c,focusProps:u}=Qc(),d=Boolean(i||a);return gc.jsxs(Cf,{$size:e,$isDisabled:t,disabled:t&&d,onClick:i,onKeyDown:function(e){i&&"Enter"===e.key?i():!a||"Backspace"!==e.key&&"Delete"!==e.key||a()},$isFocusVisible:c,as:d?"button":"span",ref:l,...u,...s,children:[n&&gc.jsx(kf,{children:n}),o&&gc.jsx(_f,{children:o}),gc.jsx("span",{children:r}),a&&gc.jsx(Ef,{$isDisabled:t,onClick:function(e){e.stopPropagation(),a&&a()},"data-testid":"ds-chip-delete-button",children:gc.jsx(xu,{size:"18px"})})]})})),Ef=lc.span.withConfig({displayName:"DeleteButton",componentId:"sc-1ymu8i6-0"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],bc.spacing3,bc.spacing3,bc.radiusCircle,(e=>e.$isDisabled?bc.gray400:bc.gray600),bc.gray50a,bc.gray800,bc.gray100a),Cf=lc.button.withConfig({displayName:"ChipStyled",componentId:"sc-1ymu8i6-1"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],bc.radiusPill,bc.gray50,bc.colorText,bc.brandFontStackBase,(e=>e.onClick&&ic(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],bc.gray75,Ef,bc.gray800,bc.gray100)),(e=>e.$isFocusVisible&&ic(["background:",";box-shadow:inset ",";outline:0;"],bc.gray25,bc.elevationStatic)),(e=>"m"===e.$size&&If),(e=>"s"===e.$size&&Sf),(e=>e.$isDisabled&&Tf)),kf=lc.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1ymu8i6-2"})(["display:block;"]),Sf=ic([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],Gd.uiTextS,kf,bc.spacing3,bc.spacing3),If=ic([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],Gd.uiTextM,kf,bc.spacing3,bc.spacing4),Tf=ic(["background-color:",";color:",";pointer-events:none;"],bc.gray25,bc.colorTextDisabled),_f=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1ymu8i6-3"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],bc.spacing2,bc.spacing3);function Of(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}function jf(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Af(e){if(!e||!jf(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Pf(){return(Pf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Bf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function Nf(e){var t=l(e),n=l((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Df=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},zf=function(e){return"touches"in e},Mf=function(e){return e&&e.ownerDocument.defaultView||self},Rf=function(e,t,n){var r=e.getBoundingClientRect(),o=zf(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Df((o.pageX-(r.left+Mf(e).pageXOffset))/r.width),top:Df((o.pageY-(r.top+Mf(e).pageYOffset))/r.height)}},Ff=function(e){!zf(e)&&e.preventDefault()},Lf=t.memo((function(e){var n=e.onMove,r=e.onKey,o=Bf(e,["onMove","onKey"]),s=l(null),c=Nf(n),u=Nf(r),d=l(null),p=l(!1),f=i((function(){var e=function(e){Ff(e),(zf(e)?e.touches.length>0:e.buttons>0)&&s.current?c(Rf(s.current,e,d.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=p.current,o=Mf(s.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=s.current;if(r&&(Ff(t),!function(e,t){return t&&!zf(e)}(t,p.current)&&r)){if(zf(t)){p.current=!0;var o=t.changedTouches||[];o.length&&(d.current=o[0].identifier)}r.focus(),c(Rf(r,t,d.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),u({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[u,c]),h=f[0],m=f[1],g=f[2];return a((function(){return g}),[g]),t.createElement("div",Pf({},o,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:s,onKeyDown:m,tabIndex:0,role:"slider"}))})),$f=function(e){return e.filter(Boolean).join(" ")},Hf=function(e){var n=e.color,r=e.left,o=e.top,i=void 0===o?.5:o,a=$f(["react-colorful__pointer",e.className]);return t.createElement("div",{className:a,style:{top:100*i+"%",left:100*r+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},Uf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Vf=function(e){return Qf(Wf(e))},Wf=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Uf(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Uf(parseInt(e.substring(6,8),16)/255,2):1}},qf=function(e){return Jf(Kf(e))},Zf=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Uf(e.h),s:Uf(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Uf(o/2),a:Uf(r,2)}},Gf=function(e){var t=Zf(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Yf=function(e){var t=Zf(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Kf=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:Uf(255*[r,s,a,a,l,r][c]),g:Uf(255*[l,r,r,s,a,a][c]),b:Uf(255*[a,a,l,r,r,s][c]),a:Uf(o,2)}},Xf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Jf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Xf(Uf(255*o)):"";return"#"+Xf(t)+Xf(n)+Xf(r)+i},Qf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:Uf(60*(s<0?s+6:s)),s:Uf(i?a/i*100:0),v:Uf(i/255*100),a:o}},eh=t.memo((function(e){var n=e.hue,r=e.onChange,o=$f(["react-colorful__hue",e.className]);return t.createElement("div",{className:o},t.createElement(Lf,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:Df(n+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Uf(n),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(Hf,{className:"react-colorful__hue-pointer",left:n/360,color:Gf({h:n,s:100,v:100,a:1})})))})),th=t.memo((function(e){var n=e.hsva,r=e.onChange,o={backgroundColor:Gf({h:n.h,s:100,v:100,a:1})};return t.createElement("div",{className:"react-colorful__saturation",style:o},t.createElement(Lf,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:Df(n.s+100*e.left,0,100),v:Df(n.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Uf(n.s)+"%, Brightness "+Uf(n.v)+"%"},t.createElement(Hf,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:Gf(n)})))})),nh=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},rh=function(e,t){return e.toLowerCase()===t.toLowerCase()||nh(Wf(e),Wf(t))};function oh(e,t,n){var r=Nf(n),i=o((function(){return e.toHsva(t)})),s=i[0],u=i[1],d=l({color:t,hsva:s});a((function(){if(!e.equal(t,d.current.color)){var n=e.toHsva(t);d.current={hsva:n,color:t},u(n)}}),[t,e]),a((function(){var t;nh(s,d.current.hsva)||e.equal(t=e.fromHsva(s),d.current.color)||(d.current={hsva:s,color:t},r(t))}),[s,e,r]);var p=c((function(e){u((function(t){return Object.assign({},t,e)}))}),[]);return[s,p]}var ih="undefined"!=typeof window?d:a,ah=new Map,sh=function(e){ih((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!ah.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',ah.set(t,n);var r="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},lh=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=Bf(e,["className","colorModel","color","onChange"]),c=l(null);sh(c);var u=oh(r,i,a),d=u[0],p=u[1],f=$f(["react-colorful",n]);return t.createElement("div",Pf({},s,{ref:c,className:f}),t.createElement(th,{hsva:d,onChange:p}),t.createElement(eh,{hue:d.h,onChange:p,className:"react-colorful__last-control"}))},ch={defaultColor:"000",toHsva:Vf,fromHsva:function(e){return qf({h:e.h,s:e.s,v:e.v,a:1})},equal:rh},uh=function(e){return t.createElement(lh,Pf({},e,{colorModel:ch}))},dh=function(e){var n=e.className,r=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Yf(Object.assign({},r,{a:0}))+", "+Yf(Object.assign({},r,{a:1}))+")"},a=$f(["react-colorful__alpha",n]),s=Uf(100*r.a);return t.createElement("div",{className:a},t.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),t.createElement(Lf,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:Df(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},t.createElement(Hf,{className:"react-colorful__alpha-pointer",left:r.a,color:Yf(r)})))},ph=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=Bf(e,["className","colorModel","color","onChange"]),c=l(null);sh(c);var u=oh(r,i,a),d=u[0],p=u[1],f=$f(["react-colorful",n]);return t.createElement("div",Pf({},s,{ref:c,className:f}),t.createElement(th,{hsva:d,onChange:p}),t.createElement(eh,{hue:d.h,onChange:p}),t.createElement(dh,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},fh={defaultColor:"0001",toHsva:Vf,fromHsva:qf,equal:rh},hh=function(e){return t.createElement(ph,Pf({},e,{colorModel:fh}))};function mh(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const gh=u((({icon:e,onClick:t,isTooltipShown:n=!1,label:r,isDisabled:o=!1,tabIndex:i,...a},s)=>{const{isFocusVisible:l,focusProps:c}=Qc();return n?gc.jsx(kp,{content:r,isOpen:!!l||void 0,children:n=>gc.jsx(vh,{...a,...n,...c,ref:mh(s,n.ref),onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:l,tabIndex:i,children:e})}):gc.jsx(vh,{ref:s,...a,...c,onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:l,tabIndex:i,children:e})})),vh=lc.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-1ieyeg1-0"})(["vertical-align:middle;width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],bc.gray600,bc.gray800,bc.gray200,(e=>e.$isFocusVisible&&ic(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],bc.gray800,bc.gray200))),yh=new ap(sp);function bh(){return{translate:(r(up)||yh).translate}}const wh=u((({hasClearButton:e=!1,icon:t,iconRight:n,id:r,name:i,isDisabled:a=!1,isReadOnly:s=!1,isInvalid:c=!1,isSmall:u=!1,onBlur:d,onChange:p,onFocus:f,onKeyDown:h,onClean:m,placeholder:g,type:v="text",value:y,variant:b="outlined","aria-label":w,"aria-labelledby":x,"aria-describedby":E,"aria-haspopup":C,"aria-expanded":k,"aria-controls":S,"aria-autocomplete":I,"aria-activedescendant":T,inputRef:_,maxLength:O,prefix:j,suffix:A,autoFocus:P=!1,role:B,autoComplete:N="off",...D},z)=>{const[M,R]=o(!1),F=l(null),L=_||F,{translate:$}=bh(),H=e&&y.length>0&&"number"!==v&&"password"!==v,U="password"===v?M?"text":"password":v;function V(){var e;null==(e=null==L?void 0:L.current)||e.focus()}const W="password"===v;return gc.jsxs(Ap,{...D,$isDisabled:a,$isInvalid:c,$isSmall:u,onClick:V,ref:z,$variant:b,children:[gc.jsxs(Bp,{"data-testid":"ds-input-left-items",children:[t&&gc.jsx(Np,{children:t}),j&&gc.jsx(Dp,{$isDisabled:a,children:j})]}),gc.jsx(Pp,{autoComplete:N,autoCorrect:"off",disabled:a,$isDisabled:a,readOnly:s,onBlur:d,onChange:function(e){const t=e.currentTarget.value;null==p||p(t)},onFocus:f,onKeyDown:h,placeholder:g,ref:L,spellCheck:!1,type:U,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,"aria-haspopup":C,"aria-expanded":k,"aria-controls":S,"aria-autocomplete":I,"aria-activedescendant":T,"aria-invalid":c,role:B,id:r,name:i,maxLength:O,autoFocus:P}),gc.jsxs(zp,{"data-testid":"ds-input-right-items",children:[A&&gc.jsx(Mp,{$isDisabled:a,children:A}),W&&!a&&gc.jsx(gh,{"data-testid":"ds-password-visibility-toggle",onClick:()=>(R((e=>!e)),void V()),label:$(M?"input.hide-password":"input.show-password"),icon:M?gc.jsx(Nu,{}):gc.jsx(Ou,{}),isTooltipShown:!0}),H&&!a&&gc.jsx(Fp,{onClick:function(){null==p||p(""),null==m||m(),V()},type:"button","aria-label":$("input.clear"),children:gc.jsx(ku,{})}),n&&gc.jsx(Rp,{children:n})]})]})})),xh="ds-thumbnail__pointer-events-wrapper",Eh=lc.div.withConfig({displayName:"OverlayStyled",componentId:"sc-1l4hoyu-0"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-overlay-indicator-cutout);mask-image:var(--ds-thumbnail-overlay-indicator-cutout);",""],bc.gray200a,bc.gray10,(e=>e.$isConcealed&&ic(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+xh,"."+xh))),Ch={indicator:{square:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},circle:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}}},status:{square:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}},circle:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},kh=ic(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),Sh=lc.svg.withConfig({displayName:"SvgIcon",componentId:"sc-18umtiy-0"})(["",""],kh),Ih=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-18umtiy-1"})([""," display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:",";color:",";svg{width:12px;height:12px;}"],kh,(({$backgroundColor:e})=>bc[e]),(({$iconColor:e})=>bc[e])),Th={draft:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.gray400,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"})]})},error:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.red400,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),gc.jsx("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"})]})},loading:function({...e}){return gc.jsx(Sh,{...e,viewBox:"0 0 14 14","aria-hidden":"true",fill:bc.gray400,children:gc.jsx(Oh,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"})})},negative:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.red400,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"})]})},positive:function({...e}){return gc.jsxs(Sh,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:bc.teal500,children:[gc.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),gc.jsx("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"})]})}},_h=dc`
27
27
  0% {
28
28
  transform: rotate(0deg);
29
29
  stroke-dashoffset: 6.6;
@@ -109,4 +109,4 @@ to {
109
109
  > * {
110
110
  pointer-events: auto;
111
111
  }
112
- `;const Ov=lc.div.withConfig({displayName:"BaloonStyled",componentId:"sc-1yjr5hd-0"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Cc,bc.spacing5,bc.radiusLarge,bc.white,bc.elevationStatic,bc.elevation2),jv=lc.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-1yjr5hd-1"})(["flex:none;margin-right:",";"],bc.spacing5),Av=lc.div.withConfig({displayName:"Text",componentId:"sc-1yjr5hd-2"})(["flex:1;align-self:center;"]),Pv=lc.h2.withConfig({displayName:"Title",componentId:"sc-1yjr5hd-3"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),Bv=lc.p.withConfig({displayName:"Description",componentId:"sc-1yjr5hd-4"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],bc.spacing2,bc.colorTextMuted,bc.fontSize75),Nv=lc.div.withConfig({displayName:"Action",componentId:"sc-1yjr5hd-5"})(["flex:none;"]),Dv=lc.div.withConfig({displayName:"Progress",componentId:"sc-1yjr5hd-6"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],bc.brandPrimary500),zv=8e3,Mv=288e5;function Rv({isPersistent:e,button:t,id:n=ef(),variant:r,thumbnail:o,...i}){return Tv((e=>gc.jsx(_v,{thumbnail:Fv(o,r),...i,button:t?f(t,{variant:"clean",onClick(){var n,r;null==(r=(n=t.props).onClick)||r.call(n),Tv.dismiss(e.id)}}):gc.jsx(hu,{variant:"clean",onClick:()=>{Tv.dismiss(e.id)},icon:gc.jsx(xu,{}),title:"Close"})})),{id:n,duration:e?Mv:zv})}function Fv(e,t){return e||(t?{loading:gc.jsx(Ah,{shape:"circle",backgroundColor:"transparent",icon:gc.jsx(iu,{})}),success:gc.jsx(Ah,{shape:"circle",backgroundColor:"green500",icon:gc.jsx(Cu,{}),iconColor:"white"}),error:gc.jsx(Ah,{shape:"circle",backgroundColor:"red500",icon:gc.jsx(xu,{}),iconColor:"white"})}[t]:void 0)}Rv.dismiss=function(e){Tv.dismiss(e)},Rv.remove=function(e){Tv.remove(e)};const Lv=n({value:"",onChange:()=>{}});function $v({children:e,isDisabled:t,onChange:n,value:r,label:o,icon:a,"aria-labelledby":s,"aria-label":l,...c}){const u=i((()=>({value:r,onChange:n})),[n,r]);return gc.jsx(Lv.Provider,{value:u,children:gc.jsx(Jm,{trigger:({isOpen:e,...n})=>gc.jsx(hu,{icon:a,isPressed:e,rightIcon:gc.jsx(Jm.Arrow,{}),isFullWidth:!0,isDisabled:t,role:"combobox","aria-label":l,"aria-labelledby":s,...n,"aria-haspopup":"listbox",children:gc.jsx(Jm.SelectButtonText,{children:o})}),position:"bottom",role:"listbox",...c,children:e})})}function Hv(e,t,n){return 100*(n-e)/(t-e)+"%"}$v.Item=function({icon:e,children:t,isDisabled:n,value:o}){const i=r(Lv);return gc.jsx(Jm.Item,{isChecked:o===i.value,role:"option",icon:e,isDisabled:n,onClick:()=>{i.onChange(o)},children:t})},$v.SectionTitle=Jm.SectionTitle,$v.Divider=Jm.Divider,$v.SearchInput=Jm.SearchInput,$v.Text=Jm.Text;const Uv=lc.div.withConfig({displayName:"Container",componentId:"sc-1b6hxsw-0"})(["position:relative;display:flex;gap:",";align-items:center;"],bc.spacing3),Vv=lc.div.withConfig({displayName:"SliderContainer",componentId:"sc-1b6hxsw-1"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Wv=lc.div.withConfig({displayName:"IconStyled",componentId:"sc-1b6hxsw-2"})(["display:grid;color:",";"],(e=>e.$isDisabled?bc.colorTextDisabled:bc.colorTextMuted)),qv=ic(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;border-inline:none;appearance:none;"]),Zv=ic(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:",";transform:translateY(-50%);-webkit-appearance:none;appearance:none;"],(e=>e.$isDisabled?"none":"auto"));function Gv(e){const t=Hv(e.min,e.max,e.value);let n,r;Array.isArray(e.$values)?(n=Hv(e.min,e.max,e.$values[0]),r=Hv(e.min,e.max,e.$values[1])):e.$isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t);const o=e.$isDisabled?bc.gray400:bc.brandPrimary500;return`linear-gradient(\n\t\t90deg,\n\t\t${bc.gray100a} ${n},\n\t\t${o} ${n},\n\t\t${o} ${r},\n\t\t${bc.gray100a} ${r}\n\t)`}const Yv=lc.input.attrs((e=>({style:{"--track-background":Gv(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-1b6hxsw-3"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;cursor:",";pointer-events:",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.$isDisabled?"default":"pointer"),(e=>e.$isRange||e.$isDisabled?"none":"auto"),Zv,Zv,qv,qv),Kv=lc.div.withConfig({displayName:"ThumbContainer",componentId:"sc-1b6hxsw-4"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;"," ",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.$isInactive?0:1),(e=>e.$isInactive&&ic(["",":hover &{--thumb-opacity:",";}"],Vv,e.$isDisabled?0:1)),Yv,bc.gray100a,bc.elevationStatic,bc.elevation1,Yv,bc.gray100a,bc.gray100a,Yv,bc.gray100a,bc.elevationStatic,bc.elevation2),Xv=lc.div.withConfig({displayName:"ThumbCircle",componentId:"sc-1b6hxsw-5"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";"," transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],bc.radiusCircle,(e=>e.$isDisabled?bc.gray400:bc.gray10),(e=>!e.$isDisabled&&ic(["box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");"],bc.elevationStatic,bc.elevation1,bc.gray75a)),bc.radiusCircle,(e=>e.$isDisabled?bc.gray400:bc.gray25)),Jv=lc.div.withConfig({displayName:"InputContainer",componentId:"sc-1b6hxsw-6"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.$min.toString().length,e.$max.toString().length)+"px"}));function Qv({min:e,max:t,value:n,isTooltipOpen:r,inputPosition:o,isInactive:i,isDisabled:a}){const s=Hv(e,t,n);return gc.jsxs(Kv,{$isInactive:i,$isDisabled:a,style:ey(s),"data-testid":"ds-slider-thumb",children:[gc.jsx(Xv,{$isDisabled:a}),"none"===o&&gc.jsx(kp,{isOpen:r,content:n,position:"top-center",children:e=>gc.jsx("div",{...e})})]})}function ey(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function ty({min:e,max:t,value:n,onChange:r,inputPosition:i,isFromCenter:a=!1,isInactive:s,isTooltipHidden:l,isDisabled:c,step:u}){const[d,p]=o(!1),f=Array.isArray(n);return gc.jsxs(gc.Fragment,{children:[gc.jsx(Yv,{min:e,max:t,value:f?n[0]:n,$values:n,type:"range",onChange:r,name:"min-input",step:u,onMouseDown:()=>{p(!0)},onMouseUp:()=>{p(!1)},$isFromCenter:a,$isRange:f,$isDisabled:c,role:"slider",disabled:c}),gc.jsx(Qv,{isTooltipOpen:d&&!l,min:e,max:t,value:f?n[0]:n,inputPosition:i,isInactive:s,isDisabled:c}),f&&gc.jsxs(gc.Fragment,{children:[gc.jsx(Yv,{min:e,max:t,value:n[1],type:"range",onChange:r,name:"max-input",step:u,$values:n,onMouseDown:()=>{p(!0)},onMouseUp:()=>{p(!1)},$isRange:f,$isDisabled:c,disabled:c}),gc.jsx(Qv,{isTooltipOpen:d&&!l,min:e,max:t,value:n[1],inputPosition:i,isInactive:s,isDisabled:c})]})]})}function ny({min:e,max:t,inputPosition:n="none",value:r,onChange:i,iconLeft:a,iconRight:s,isFromCenter:l=!1,isInactive:c=!1,isTooltipHidden:u=!1,isDisabled:d=!1,step:p,...f}){const[h,m]=o(""),[g,v]=o("none");function y(n){v("none");const o=parseFloat(n.target.value);if(Array.isArray(r)){if("min-input"===n.target.name&&o<r[1]&&i([o<e?e:o,r[1]]),"max-input"===n.target.name&&r[0]<o){const e=o>t?t:o;i([r[0],e])}}else i(o>t?t:o<e?e:o)}function b(e){"Enter"===e.key&&e.target.blur()}const w=String(Array.isArray(r)?r[0]:r),x=String(Array.isArray(r)?r[1]:r);return gc.jsxs(Uv,{...f,children:[("left"===n||"both"===n)&&gc.jsx(Jv,{$min:e,$max:t,"data-testid":"ds-slider-input-left",children:gc.jsx(wh,{onChange:m,value:"left"===g?h:w,type:"number",onFocus:()=>{m(w),v("left")},onBlur:()=>{y({target:{name:"min-input",value:h}})},onKeyDown:b,isDisabled:d})}),a&&gc.jsx(Wv,{$isDisabled:d,children:a}),gc.jsx(Vv,{children:gc.jsx(ty,{min:e,max:t,value:r,inputPosition:n,onChange:y,isFromCenter:l,isInactive:c,isTooltipHidden:u,isDisabled:d,step:p})}),s&&gc.jsx(Wv,{$isDisabled:d,children:s}),("right"===n||"both"===n)&&gc.jsx(Jv,{$min:e,$max:t,"data-testid":"ds-slider-input-right",children:gc.jsx(wh,{onChange:m,value:"right"===g?h:x,type:"number",onFocus:()=>{m(x),v("right")},onBlur:()=>{y({target:{name:"max-input",value:h}})},onKeyDown:b,isDisabled:d})})]})}var ry=new Map,oy=new WeakMap,iy=0,ay=void 0;function sy(e,t,n={},r=ay){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(oy.has(n)||(iy+=1,oy.set(n,iy.toString())),oy.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=ry.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var n;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach((e=>{e(i,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},ry.set(t,n)}return n}(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),ry.delete(o))}}function ly({threshold:t,delay:n,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:s,initialInView:l,fallbackInView:c,onChange:u}={}){var d;const[p,f]=e.useState(null),h=e.useRef(),[m,g]=e.useState({inView:!!l,entry:void 0});h.current=u,e.useEffect((()=>{if(s||!p)return;let e;return e=sy(p,((t,n)=>{g({inView:t,entry:n}),h.current&&h.current(t,n),n.isIntersecting&&a&&e&&(e(),e=void 0)}),{root:i,rootMargin:o,threshold:t,trackVisibility:r,delay:n},c),()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,p,i,o,a,s,r,c,n]);const v=null==(d=m.entry)?void 0:d.target,y=e.useRef();p||!v||a||s||y.current===v||(y.current=v,g({inView:!!l,entry:void 0}));const b=[f,m.inView,m.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}const cy={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function uy(e){Object.keys(cy).forEach((t=>{e.style.setProperty(t,cy[t],"important")}))}let dy=null;const py=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];const fy=u((({id:e,isDisabled:t=!1,isReadOnly:n=!1,isInvalid:r=!1,onBlur:o,onChange:i,onFocus:a,placeholder:s,value:c,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,minRows:h=2,maxRows:m=8,maxLength:g,autoFocus:v=!1,...y},b)=>{const w=l(null);return function(e,t,n){const r=l(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);d((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,py.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){dy||(dy=document.createElement("textarea"),dy.setAttribute("tabindex","-1"),dy.setAttribute("aria-hidden","true"),uy(dy)),null===dy.parentNode&&document.body.appendChild(dy);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!dy)return;const t=e;dy.style[t]=a[t]})),uy(dy),dy.value=t;let s=function(e,t){const n=dy.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);dy.value="x";const l=dy.scrollHeight-o;let c=l*n;"border-box"===a.boxSizing&&(c=c+o+i),s=Math.max(c,s);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),s=Math.min(u,s),s}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(w,h,m),gc.jsx(hy,{value:c,onChange:function(e){if(i){const t=e.currentTarget.value;i(t)}},id:e,disabled:t,readOnly:n,$isInvalid:r,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,onBlur:o,onFocus:a,placeholder:s,autoComplete:"off",autoCorrect:"off",autoFocus:v,ref:mh(b,w),maxLength:g,...y})})),hy=lc.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11tsgxs-0"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],bc.spacing3,bc.spacing5,bc.gray100,bc.radiusBase,bc.white,bc.colorText,bc.brandFontStackBase,Gd.paragraphM,bc.gray400,bc.gray200,bc.elevation1,bc.gray300,bc.gray100a,bc.gray100,bc.gray25,bc.gray600,(e=>e.$isInvalid&&ic(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],bc.red500,bc.red600,bc.red500)));function my(e){var t;return null!==(t=gy[e])&&void 0!==t?t:e}var gy={};function vy(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){gy=e}))}),[e])}function yy(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function by(e){return t.createElement(t.Fragment,null,t.createElement(yy,null),t.createElement(Cy,null,my("Oops! Something went wrong")),t.createElement(ky,null,my("Please try again or get in contact with our customer support.")),t.createElement(Sy,null,t.createElement(hu,{variant:"secondary",title:my("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?my("Report sent"):my("Send report...")),t.createElement(hu,{variant:"primary",title:my("Try again"),onClick:e.onClickRetry},my("Try again"))))}var wy,xy,Ey,Cy=lc.h1(wy||(wy=la(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing8,bc.fontSize400),ky=lc.span(xy||(xy=la(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),Sy=lc.div(Ey||(Ey=la(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),bc.spacing7,bc.spacing3);function Iy(e){var n;return t.createElement(av,{title:my("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(hu,{variant:"primary",title:my("Send report"),onClick:e.onDone},my("Send report")),actionSecondary:t.createElement(hu,{variant:"secondary",title:my("Cancel"),onClick:e.onCancel},my("Cancel")),container:e.container},t.createElement(jy,null,my("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(Ay,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(Py,null,my("We will treat this report as confidential and anonymous.")))}var Ty,_y,Oy,jy=lc.div(Ty||(Ty=la(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),bc.lineHeightText),Ay=lc.div(_y||(_y=la(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),bc.spacing5,bc.gray25,bc.radiusMedium,bc.gray200,bc.lineHeightText,bc.spacing5,bc.spacing4),Py=lc.span(Oy||(Oy=la(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),bc.colorTextDisabled,bc.lineHeightBase,bc.fontSize75);function By(e){var n=e.error,r=e.onRetry,i=e.sentryClient,s=Ea(),l=o(!1),c=l[0],u=l[1],d=o(!1),p=d[0],f=d[1];return a((function(){ba.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(by,{isReportSent:p,onClickSend:function(){u(!0)},onClickRetry:r}),t.createElement(Iy,{isOpen:c,error:n,container:s,onDone:function(){null==i||i.captureException(n),u(!1),f(!0)},onCancel:function(){u(!1)}}))}function Ny(){var e=ta(da()[0].page),n=e[0],r=e[1],o={ASC:my("Ascending"),DESC:my("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(hu,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(zy,{$isAscending:"ASC"===n.direction})})}var Dy,zy=lc(Du)(Dy||(Dy=la(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),bc.spacing6,bc.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function My(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var Ry=300;function Fy(e){var n,r=l(null),i=o(0)[1];!function(e,t){var n=Ea();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,r],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=Ea(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),w=b.width-(null!=h?h:0)-(null!=g?g:0),x=b.height-(null!=y?y:0)-(null!=v?v:0);h&&w<Ry&&(h=p+u.width-Ry);var E={left:h,right:g,top:v,bottom:y,maxWidth:w,maxHeight:x,minWidth:Ry,overflowY:"scroll"},C=My("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:r,style:E},e.children),s)}function Ly(e){var n=e.buttonKind,r=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=oa(e,["buttonKind","direction","isSmall","fadeIn"]),p=i((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=o(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(Hy,{$fadeIn:Boolean(u)},t.createElement(hu,{variant:r,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Eu,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(Fy,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var $y,Hy=lc.div($y||($y=la(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function Uy(e){var n=e.selected,r=void 0!==n&&n,o=oa(e,["selected"]),i=My("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(Cu,{className:"w-6 h-6 ml-3 fade-in"})))}function Vy(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ta(da()[0].page),i=o[0],a=o[1],s={CREATED_AT:my("Date added"),NAME:my("Name"),PUBLISHED_AT:my("Date published"),UPDATED_AT:my("Date modified")};return t.createElement(qy,null,t.createElement(Ly,{className:"py-2",title:s[i.field],alt:my("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Uy,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var Wy,qy=lc.div(Wy||(Wy=la(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function Zy(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var Gy=" ";function Yy(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:My("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"‌")}function Ky(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(af,null,t.createElement(af.Frame,null),t.createElement(af.AdditionalInfo,null,t.createElement(Yy,{width:70+(100,o=r,16807*((o+20)%2147483647+2147483646)%2147483647%100),className:"h-4"})),e.title));var o})))}function Xy(e){return{tag:"ok",value:e}}function Jy(e){return{tag:"error",error:e}}function Qy(e){return"ok"===e.tag}function eb(e){return"error"===e.tag}function tb(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var nb="transformBaseURL",rb="transformBaseUrl",ob={year:"numeric",month:"long",day:"2-digit"};function ib(e){var t;if(e[nb]){var n=e,r=nb,o=n[r],i=oa(n,["symbol"==typeof r?r:r+""]);return ra(ra({},i),((t={})[rb]=ra({},o),t))}return e}var ab=new Map;function sb(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p;return aa(this,(function(f){switch(f.label){case 0:if(t=e.query,n=e.variables,r=e.auth,o=e.noCache,!r)return[2,Jy("No authentication provided")];if(i=r.getAccessToken&&r.getAccessToken(),"/"===(a=void 0!==r.accountDomain?tb(r.accountDomain.trim()):"https://".concat(window.location.host)).charAt(a.length-1)&&(a=a.slice(0,-1)),s="".concat(a,":").concat(t,":").concat(JSON.stringify(n),":").concat(i),ab.has(s)&&!o)return[2,Xy(ab.get(s))];l={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("4.3.1")},c=void 0===i?l:ra(ra({},l),{Authorization:"Bearer ".concat(i)}),u={method:"post",headers:c,body:JSON.stringify({query:t,variables:n})},f.label=1;case 1:return f.trys.push([1,4,,5]),[4,fetch("".concat(a,"/graphql"),u)];case 2:return[4,f.sent().json()];case 3:return d=f.sent(),p=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?ra(ra({},e),{searchAssets:ra(ra({},e.searchAssets),{assets:ra(ra({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=ib(e.files);return ra(ra({},e),{files:ra({},t)})}return e}))})})}):e}(d.data),[3,5];case 4:return[2,Jy(f.sent())];case 5:return void 0!==d.errors?[2,Jy(d.errors.map((function(e){return e.message})).join(","))]:(o||(ab.set(s,p),ab.size>50&&ab.delete(ab.keys().next().value)),[2,Xy(p)])}}))}))}function lb(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function cb(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var ub="42b1eefa-d754-4802-b9c4-bf80d6ab6052",db="v6/authentication/oauth2/",pb="".concat("https://d8ejoa1fys2rk.cloudfront.net"),fb=pb+"/5.0.5/modules/compactview/loginCompleted.html",hb="".concat("https://apiv2.webdamdb.com","/"),mb="oauth2/",gb=["offline","asset:read","collection:read","meta.assetbank:read"];function vb(e,t,n){return ia(this,void 0,void 0,(function(){var r,o,i,a;return aa(this,(function(s){switch(s.label){case 0:r=yb(n)+"token",o=new URLSearchParams({client_id:ub,code_verifier:t,code:e,redirect_uri:fb,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,Jy("Failed to fetch access token: ".concat(i.status))];case 3:return[2,Xy({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Jy(s.sent().toString())];case 5:return[2]}}))}))}function yb(e){return"webdam"===bb()?hb+mb:tb(e)+db}function bb(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function wb(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a;return aa(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,Jy("Error opening login window")]:(o.document.head.innerHTML=xb,o.document.body.innerHTML=Eb,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===pb&&e(Xy(t))}))})),new Promise((function(e){setTimeout((function(){return e(Jy("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Jy("Login window closed")))}),1e3)})))])]);case 1:return eb(i=s.sent())?[2,i]:[2,Xy({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var xb='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',Eb='<div class="cv-spinner"></div>';var Cb='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}h1,h3,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{border:0 solid rgba(0,34,51,.1);-webkit-box-sizing:border-box;box-sizing:border-box}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1,h3{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select,textarea{color:inherit;line-height:inherit;padding:0}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-bottom:8px;margin-top:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-bottom:16px;padding-top:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-bottom:1px;padding-top:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover,.text-body-500{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{opacity:0;-webkit-transform:scale(2);transform:scale(2)}}@keyframes ping{75%,to{opacity:0;-webkit-transform:scale(2);transform:scale(2)}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1);-webkit-transform:translateY(-25%);transform:translateY(-25%)}50%{-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1);-webkit-transform:none;transform:none}}@keyframes bounce{0%,to{-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1);-webkit-transform:translateY(-25%);transform:translateY(-25%)}50%{-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1);-webkit-transform:none;transform:none}}@-webkit-keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{-webkit-box-orient:vertical;-webkit-box-direction:normal;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,34,51,.8);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{height:100%;overflow:hidden;width:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;border-color:rgba(0,34,51,.1);border-radius:5px;border-width:1px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);margin-bottom:4px;margin-top:4px;overflow-y:auto;overflow-y:hidden;position:fixed;-webkit-transition:left .1s ease-out;transition:left .1s ease-out;z-index:9999999}.card-list{-webkit-box-flex:1;-ms-flex-positive:1;-ms-flex-line-pack:start;-webkit-box-pack:center;-ms-flex-pack:center;align-content:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:center;padding-left:8px;padding-right:8px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;height:20px;left:50%;margin:-10px 0 0 -10px;position:absolute;top:50%;width:20px;z-index:2}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{background-color:rgba(0,34,51,.05);border-radius:4px;display:inline-block;overflow:hidden;position:relative}.cv-skeleton:before{-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0));content:"";height:100%;left:-500px;position:absolute;top:0;width:500px}@-webkit-keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}::-ms-clear{display:none}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}';function kb(e){var n=Ea();return t.createElement(Vl,{target:n},t.createElement(hp,{zIndexBase:1e6},e.children))}function Sb(e){var n=e.children,r=e.isContainerMode,i=void 0!==r&&r,s=t.useRef(null),l=o(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+Cb,Ib(null!=e?e:document.head,t),n&&Ib(document.head,_b),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(xa,{value:c},t.createElement(kb,null,m(t.createElement(Ob,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function Ib(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var Tb,_b="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),Ob=lc.div(Tb||(Tb=la(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),jb=n("parent");function Ab(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o;return"parent"===r(jb)?t.createElement(jb.Provider,{value:"child"},t.createElement(Sb,{isContainerMode:i},n)):t.createElement(t.Fragment,null,n)}var Pb=n(null),Bb=function(){return r(Pb)};function Nb(e){var n=e.children,r=e.isOpen,s=void 0===r||r,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=o(null),p=d[0],f=d[1],h=i((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(Pb.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(Ab,null,t.createElement(Mb,{className:"z-a-lot"},t.createElement(Rb,{style:l,"data-testid":"modal"},n))),p))):null}var Db,zb,Mb=lc.div(Db||(Db=la(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),bc.spacing5,bc.gray100a),Rb=lc.div(zb||(zb=la(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),bc.radiusBase);function Fb(e){var n=Bb();return t.createElement(Ub,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(Vb,null,t.createElement(hu,{variant:"clean",onClick:n.onClose,title:my("Close"),icon:t.createElement(xu,null)})),t.createElement(Wb,null,e.children))}var Lb,$b,Hb,Ub=lc.div(Lb||(Lb=la(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),bc.gray10),Vb=lc.div($b||($b=la(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),bc.spacing4,bc.spacing5),Wb=lc.div(Hb||(Hb=la(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),bc.fontSize300);function qb(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},my("Connect your brand portal")))}function Zb(e){var n=My("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function Gb(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(Xb,null,t.createElement(ug,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:my("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&my("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(Jb,{role:"alert","aria-live":"polite"},t.createElement(Zb,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var Yb,Kb,Xb=lc.div(Yb||(Yb=la(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),bc.spacing4),Jb=lc.div(Kb||(Kb=la(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function Qb(e){return t.createElement(hu,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},my("Connect"))}function ew(e){return t.createElement(Fb,null,t.createElement(qb,null),t.createElement(Gb,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(Qb,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var tw=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(By,{error:this.state.error,sentryClient:this.props.sentryClient,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function nw(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Zb,null)," ")}var rw=n(null);function ow(e){var n,r,i,s,c,u,d,p,f;vy(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=o(void 0),r=n[0],i=n[1],s=o(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=o(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=o(w()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=r),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){r&&r()||!c||!p||(g("refreshing"),function(e,t){return ia(this,void 0,void 0,(function(){var n,r,o,i;return aa(this,(function(a){switch(a.label){case 0:n=yb(t)+"token",r=new URLSearchParams({client_id:ub,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,Jy("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,Xy({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Jy(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){Qy(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(ba.error(e.error),b())})))}),[r,c,p]),[{getAccessToken:r,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=o(null!=e?e:""),n=t[0],r=t[1],i=o(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return ia(this,void 0,void 0,(function(){var t,n,r;return aa(this,(function(o){switch(o.label){case 0:t=tb(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),r(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(r=e.portal)||void 0===r?void 0:r.url)&&void 0!==i?i:m.accountDomain),b=y[0],w=y[1],x=y[2],E=o(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&ba.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return aa(this,(function(p){switch(p.label){case 0:t=cb(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,lb(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Jy(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=cb(),i=function(e,t,n){var r={client_id:ub,code_challenge:e,code_challenge_method:"S256",redirect_uri:fb,response_type:"code",scope:gb.join(" "),domain:"",state:t},o="auth?";"webdam"===bb()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return yb(n)+o+i}(r,o,e),[4,wb(i)];case 5:return eb(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Jy("Error logging in")]:[4,vb(a.value.code,t,e)];case 6:return eb(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,Xy({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(Qy(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else ba.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=ra(ra({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(rw.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(Ab,{isContainerMode:!0},t.createElement(ew,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(nw,null)}}var iw=function(e){return t.createElement(tw,null,t.createElement(ow,ra({},e)))},aw=function(){var e;return"authenticated"===(null===(e=r(rw))||void 0===e?void 0:e.status)||!1},sw=function(){return r(rw)},lw=function(e){var t=e.filters,n=e.predefinedFilters;return e.showToolbar?(null==t?void 0:t.length)?Array.from(new Set(sa(sa([],n||[],!0),t,!0))):n:(null==t?void 0:t.length)?t:n},cw=function(e){if(e)return e.map((function(e){return e.id}))},uw="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",dw="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(uw,"\n");function pw(e,t){var n,r,i,s,l,c=this;void 0===t&&(t=!1);var u=sw(),d=o({tag:"Loading",value:null}),p=d[0],f=d[1],h=!1,m=function(n){return ia(c,void 0,void 0,(function(){var r,o;return aa(this,(function(i){switch(i.label){case 0:return f((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=bx(e,null!=n?n:null),[4,sb({query:dw,variables:r,auth:u,noCache:t})];case 1:return o=i.sent(),h||(eb(o)?f({tag:"Failure",value:o.error}):g(o,n)),[2]}}))}))},g=function(e,t){wx(p)&&t?f((function(t){var n,r,o=null!==(r=null===(n=wx(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:ra(ra({},e.value.searchAssets.assets),{nodes:sa(sa([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):f({tag:"Loaded",value:e.value})};return a((function(){return m(),function(){h=!0}}),[null===(n=e.filter)||void 0===n?void 0:n.assetTypes,null===(r=e.filter)||void 0===r?void 0:r.metaproperties,null===(i=e.filter)||void 0===i?void 0:i.tags,null===(s=e.filter)||void 0===s?void 0:s.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:p,executeQuery:function(){return m()},isLoading:!p||"Loading"===p.tag,loadMore:function(){var e;return m(null===(e=wx(p))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(l=wx(p))||void 0===l?void 0:l.pageInfo.hasNextPage)}}var fw,hw,mw,gw,vw,yw,bw,ww,xw,Ew,Cw,kw,Sw,Iw,Tw,_w,Ow,jw,Aw,Pw,Bw,Nw,Dw,zw,Mw,Rw,Fw,Lw,$w,Hw,Uw,Vw,Ww,qw,Zw,Gw,Yw,Kw,Xw,Jw,Qw,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,hx,mx,gx,vx,yx,bx=function(e,t){var n,r,o=e.filter,i=e.predefinedFilter,a=e.collection,s=e.orderBy,l=e.allAssetTypes,c=e.searchTerm,u=e.language,d=lw({filters:null==o?void 0:o.assetTypes,predefinedFilters:null==i?void 0:i.assetType_in,showToolbar:null==i?void 0:i.showToolbar}),p=lw({filters:cw(null==o?void 0:o.metaproperties),predefinedFilters:null==i?void 0:i.metapropertyOptionId_in,showToolbar:null==i?void 0:i.showToolbar}),f=lw({filters:null==o?void 0:o.tags,predefinedFilters:null==i?void 0:i.tagNames_in,showToolbar:null==i?void 0:i.showToolbar});return{orderBy:s,filter:{collectionId:null!==(n=null==a?void 0:a.id)&&void 0!==n?n:null==i?void 0:i.collectionId,assetType_in:null!=d?d:l,metapropertyOptionId_in:p,searchTerm:null!==(r=null!=c?c:null==i?void 0:i.searchTerm)&&void 0!==r?r:null,tagNames_in:f,isLimitedUse:null==o?void 0:o.isLimited},after:t,language:u}},wx=function(e,t){var n,r=e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets};function xx(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i;return aa(this,(function(a){switch(a.label){case 0:return t=e.ids,n=e.auth,r=e.language,o=e.noCache,[4,sb({query:"\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(uw),variables:{ids:t,language:r},auth:n,noCache:o})];case 1:return eb(i=a.sent())?[2,i]:[2,Xy(i.value.nodes)]}}))}))}function Ex(){if(hw)return fw;hw=1;var e=Object.prototype;return fw=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function Cx(){if(Ew)return xw;Ew=1;var e="object"==typeof g&&g&&g.Object===Object&&g;return xw=e}function kx(){if(kw)return Cw;kw=1;var e=Cx(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Cw=n}function Sx(){if(Iw)return Sw;Iw=1;var e=kx().Symbol;return Sw=e}function Ix(){if(Pw)return Aw;Pw=1;var e=Sx(),t=function(){if(_w)return Tw;_w=1;var e=Sx(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return Tw=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[o]=i:delete e[o]),s}}(),n=function(){if(jw)return Ow;jw=1;var e=Object.prototype.toString;return Ow=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return Aw=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Tx(){return Nw?Bw:(Nw=1,Bw=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)})}function _x(){if(zw)return Dw;zw=1;var e=Ix(),t=Tx();return Dw=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function Ox(){if(Hw)return $w;Hw=1;var e=Function.prototype.toString;return $w=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function jx(){if(Gw)return Zw;Gw=1;var e=function(){if(Vw)return Uw;Vw=1;var e=_x(),t=function(){if(Lw)return Fw;Lw=1;var e=function(){if(Rw)return Mw;Rw=1;var e=kx()["__core-js_shared__"];return Mw=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return Fw=function(e){return!!t&&t in e}}(),n=Tx(),r=Ox(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,s=i.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Uw=function(i){return!(!n(i)||t(i))&&(e(i)?c:o).test(r(i))}}(),t=qw?Ww:(qw=1,Ww=function(e,t){return null==e?void 0:e[t]});return Zw=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function Ax(){return lx?sx:(lx=1,sx=function(e){return null!=e&&"object"==typeof e})}function Px(){if(hx)return fx;hx=1;var e=Array.isArray;return fx=e}function Bx(){return gx?mx:(gx=1,mx=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991})}var Nx,Dx,zx,Mx,Rx,Fx,Lx,$x={exports:{}};var Hx,Ux,Vx,Wx,qx,Zx,Gx,Yx,Kx,Xx,Jx,Qx,eE,tE,nE,rE={exports:{}};function oE(e,t,n){var r=this,o=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=i((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(i(r))return a(r);if(h.current){var l=t-(r-o.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},w=function(){var a=Date.now(),f=i(a);if(u.current=[].slice.call(arguments),d.current=r,o.current=a,f){if(!c.current&&h.current)return s.current=o.current,n(l,t),g?e(o.current):p.current;if(y)return n(l,t),e(o.current)}return c.current||n(l,t),p.current};return w.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null},w.isPending=function(){return!!c.current},w.flush=function(){return c.current?a(Date.now()):p.current},w}),[g,y,t,b,v,m]);return w}!function(){if(qx)return Wx;qx=1;var e=function(){if(ww)return bw;ww=1;var e=Ex(),t=function(){if(yw)return vw;yw=1;var e=(gw?mw:(gw=1,mw=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return vw=e}(),n=Object.prototype.hasOwnProperty;return bw=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}(),t=function(){if(ax)return ix;ax=1;var e=function(){if(Kw)return Yw;Kw=1;var e=jx()(kx(),"DataView");return Yw=e}(),t=function(){if(Jw)return Xw;Jw=1;var e=jx()(kx(),"Map");return Xw=e}(),n=function(){if(ex)return Qw;ex=1;var e=jx()(kx(),"Promise");return Qw=e}(),r=function(){if(nx)return tx;nx=1;var e=jx()(kx(),"Set");return tx=e}(),o=function(){if(ox)return rx;ox=1;var e=jx()(kx(),"WeakMap");return rx=e}(),i=Ix(),a=Ox(),s="[object Map]",l="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",p=a(e),f=a(t),h=a(n),m=a(r),g=a(o),v=i;return(e&&v(new e(new ArrayBuffer(1)))!=d||t&&v(new t)!=s||n&&v(n.resolve())!=l||r&&v(new r)!=c||o&&v(new o)!=u)&&(v=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case p:return d;case f:return s;case h:return l;case m:return c;case g:return u}return t}),ix=v}(),n=function(){if(px)return dx;px=1;var e=function(){if(ux)return cx;ux=1;var e=Ix(),t=Ax();return cx=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Ax(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return dx=i}(),r=Px(),o=function(){if(yx)return vx;yx=1;var e=_x(),t=Bx();return vx=function(n){return null!=n&&t(n.length)&&!e(n)}}(),i=(zx||(zx=1,function(e,t){var n=kx(),r=Dx?Nx:(Dx=1,Nx=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}($x,$x.exports)),$x.exports),a=Ex(),s=function(){if(Vx)return Ux;Vx=1;var e=function(){if(Rx)return Mx;Rx=1;var e=Ix(),t=Bx(),n=Ax(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,Mx=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=Lx?Fx:(Lx=1,Fx=function(e){return function(t){return e(t)}}),n=(Hx||(Hx=1,function(e,t){var n=Cx(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(rE,rE.exports)),rE.exports),r=n&&n.isTypedArray,o=r?t(r):e;return Ux=o}(),l=Object.prototype.hasOwnProperty;Wx=function(c){if(null==c)return!0;if(o(c)&&(r(c)||"string"==typeof c||"function"==typeof c.splice||i(c)||s(c)||n(c)))return!c.length;var u=t(c);if("[object Map]"==u||"[object Set]"==u)return!c.size;if(a(c))return!e(c).length;for(var d in c)if(l.call(c,d))return!1;return!0}}(),function(){if(nE)return tE;nE=1;var e=function(){if(eE)return Qx;eE=1;var e=function(){if(Jx)return Xx;Jx=1;var e=Sx(),t=(Gx||(Gx=1,Zx=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}),Zx),n=Px(),r=function(){if(Kx)return Yx;Kx=1;var e=Ix(),t=Ax();return Yx=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return Xx=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a}}();return Qx=function(t){return null==t?"":e(t)}}(),t=0;tE=function(n){var r=++t;return e(n)+r}}();var iE={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},aE=t.createContext&&t.createContext(iE),sE=function(){return sE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sE.apply(this,arguments)},lE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function cE(e){return e&&e.map((function(e,n){return t.createElement(e.tag,sE({key:n},e.attr),cE(e.child))}))}function uE(e){return function(n){return t.createElement(dE,sE({attr:sE({},e.attr)},n),cE(e.child))}}function dE(e){var n=function(n){var r,o=e.attr,i=e.size,a=e.title,s=lE(e,["attr","size","title"]),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",sE({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:sE(sE({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==aE?t.createElement(aE.Consumer,null,(function(e){return n(e)})):n(iE)}function pE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function fE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function hE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}}]})(e)}function mE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"}}]})(e)}function gE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"}}]})(e)}function vE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12a5.99 5.99 0 014-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09A5.99 5.99 0 013 12z"}}]})(e)}function yE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}}]})(e)}function bE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function wE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function xE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}}]})(e)}function EE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5a2.5 2.5 0 000 5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5a2.5 2.5 0 000-5z"}}]})(e)}function CE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function kE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}}]})(e)}function SE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}}]})(e)}function IE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}}]})(e)}function TE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"}}]})(e)}function _E(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0111 4.07zm7.32.19A9.949 9.949 0 0013 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.01-1-3.84-2.21-5.32L18.31 7.1a7.941 7.941 0 011.62 3.9zM5.69 7.1L4.26 5.68A9.949 9.949 0 002.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM4.07 13H2.05c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 014.07 13zM15 12c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3zm3.31 4.9l1.43 1.43a9.981 9.981 0 002.21-5.32h-2.02a7.945 7.945 0 01-1.62 3.89zM13 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.43-1.43c-1.1.86-2.43 1.44-3.89 1.62zm-7.32-.19A9.981 9.981 0 0011 21.95v-2.02a7.941 7.941 0 01-3.9-1.62l-1.42 1.43z"}}]})(e)}function OE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function jE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function AE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function PE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}}]})(e)}function BE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function NE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}function DE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function zE(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function ME(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z"}}]})(e)}var RE,FE,LE,$E,HE,UE,VE,WE={};function qE(){if(HE)return WE;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}HE=1,Object.defineProperty(WE,"__esModule",{value:!0}),WE.CopyToClipboard=void 0;var n=i(t),r=i(function(){if($E)return LE;$E=1;var e=(FE||(FE=1,RE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),RE),t={"text/plain":"Text","text/html":"Url",default:"Text"};return LE=function(n,r){var o,i,a,s,l,c,u=!1;r||(r={}),o=r.debug||!1;try{if(a=e(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(e){if(e.stopPropagation(),r.format)if(e.preventDefault(),void 0===e.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=t[r.format]||t.default;window.clipboardData.setData(i,n)}else e.clipboardData.clearData(),e.clipboardData.setData(r.format,n);r.onCopy&&(e.preventDefault(),r.onCopy(e.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(e){o&&console.error("unable to copy using execCommand: ",e),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),u=!0}catch(e){o&&console.error("unable to copy using clipboardData: ",e),o&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in r?r.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u},LE}()),o=["text","onCopy","options","children"];function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(m,t);var i,a,p,f,h=(i=m,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var t,n=u(i);if(a){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,t)});function m(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(c(e=h.call.apply(h,[this].concat(o))),"onClick",(function(t){var o=e.props,i=o.text,a=o.onCopy,s=o.children,l=o.options,c=n.default.Children.only(s),u=(0,r.default)(i,l);a&&a(i,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return p=m,f=[{key:"render",value:function(){var e=this.props,t=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,o),i=n.default.Children.only(t);return n.default.cloneElement(i,s(s({},r),{},{onClick:this.onClick}))}}],f&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(p.prototype,f),Object.defineProperty(p,"prototype",{writable:!1}),m}(n.default.PureComponent);return WE.CopyToClipboard=p,d(p,"defaultProps",{onCopy:void 0,options:void 0}),WE}var ZE=function(){if(VE)return UE;VE=1;var e=qE().CopyToClipboard;return e.CopyToClipboard=e,UE=e}();function GE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 9h2V7h4V5h-4V3h-2v6ZM7 9v2H3v2h4v2h2V9H7Zm6 10v2h-2v-6h2v2h8v2h-8ZM3 19v-2h6v2H3Zm18-8v2H11v-2h10Zm-8-6H3v1.99h10V5Z",clipRule:"evenodd"})})}function YE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[gc.jsx("path",{fill:"currentColor",d:"M3 3h2v16h16v2H3V3Z"}),gc.jsx("path",{fill:"currentColor",d:"M7 5c6.627 0 12 5.373 12 12h-2c0-5.523-4.477-10-10-10V5Z"})]})}function KE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}function XE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z"})})}function JE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5v-5ZM7 9h3V7H5v5h2V9Zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16.01H3V4.99h18v14.02Z"})})}function QE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12ZM5.21 10 10 5.21 14.79 10H5.21ZM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5ZM2 20h20v4H2v-4Z"})})}function eC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5ZM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5ZM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5Zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5Zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5Zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5ZM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5ZM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5Zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Z"})})}function tC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M13 7h-2v2h2V7Zm0 4h-2v2h2v-2Zm4 0h-2v2h2v-2ZM3 3v18h18V3H3Zm16 16H5V5h14v14Zm-6-4h-2v2h2v-2Zm-4-4H7v2h2v-2Z"})})}function nC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M4 5h16v2H4V5ZM4 9h16v3H4V9ZM20 14H4v5h16v-5Z"})})}function rC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m20.71 5.63-2.34-2.34a.996.996 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42ZM6.92 19 5 17.08l8.06-8.06 1.92 1.92L6.92 19Z"})})}function oC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[gc.jsx("path",{fill:"currentColor",d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5Zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2Zm0 16H7V3h14v14Z"}),gc.jsx("path",{fill:"currentColor",d:"M12.778 6.283 14 5l1.222 1.283.004.004.008.008.025.027a13.827 13.827 0 0 1 .386.43c.243.282.57.676.899 1.128.326.447.674.976.945 1.523.26.523.511 1.182.511 1.857 0 1.942-1.668 3.74-4 3.74s-4-1.798-4-3.74c0-.675.25-1.334.51-1.857.272-.547.62-1.076.947-1.523a17.709 17.709 0 0 1 1.284-1.558l.025-.027.008-.008.004-.004Z"})]})}function iC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M15 21h2v-2h-2v2Zm4-12h2V7h-2v2ZM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2Zm16-2v2h2c0-1.1-.9-2-2-2Zm-8 20h2V1h-2v22Zm8-6h2v-2h-2v2ZM15 5h2V3h-2v2Zm4 8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Z"})})}function aC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M12 21c-2.217 0-4.104-.77-5.662-2.313C4.779 17.146 4 15.284 4 13.1c0-1.1.208-2.117.625-3.05a8.288 8.288 0 0 1 1.725-2.5L12 2l5.65 5.55a8.289 8.289 0 0 1 1.725 2.5c.417.933.625 1.95.625 3.05 0 2.183-.78 4.046-2.337 5.588C16.104 20.229 14.217 21 12 21Zm0-2V4.8L7.75 9a5.466 5.466 0 0 0-1.313 1.863A5.7 5.7 0 0 0 6 13.1c0 1.617.583 3.004 1.75 4.162C8.917 18.421 10.333 19 12 19Z"})})}function sC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1v16h16v2h-4v4h-2v-4H7c-1.1 0-2-.9-2-2V7H1V5h4V1h2Zm12 14h-2V7H9V5h8c1.1 0 2 .9 2 2v8Z",clipRule:"evenodd"})})}function lC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64ZM6 8a2 2 0 1 1-.001-3.999A2 2 0 0 1 6 8ZM4 18a2 2 0 1 0 3.999.001A2 2 0 0 0 4 18Zm8-5.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5ZM13 9l6-6h3v1l-7 7-2-2Z",clipRule:"evenodd"})})}function cC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M1 13v-2h6v2H1Zm6.75-3.85-2.1-2.1 1.4-1.4 2.1 2.1-1.4 1.4ZM11 7V1h2v6h-2Zm5.25 2.15-1.4-1.4 2.1-2.1 1.4 1.4-2.1 2.1ZM17 13v-2h6v2h-6Zm-5 2a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 12c0-.833.292-1.542.875-2.125A2.893 2.893 0 0 1 12 9c.833 0 1.542.292 2.125.875S15 11.167 15 12s-.292 1.542-.875 2.125A2.893 2.893 0 0 1 12 15Zm4.95 3.35-2.1-2.1 1.4-1.4 2.1 2.1-1.4 1.4Zm-9.9 0-1.4-1.4 2.1-2.1 1.4 1.4-2.1 2.1ZM11 23v-6h2v6h-2Z"})})}function uC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2Z"})})}function dC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.5 7V4h13v3h-5v12h-3V7h-5Zm10 2h9v3h-3v7h-3v-7h-3V9Z",clipRule:"evenodd"})})}function pC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M5 8H3v8h2v-3h14v3h2V8h-2v3H5V8Z"})})}function fC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71ZM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5Zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2Zm0 16H7V3h14v14Z"})})}function hC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M12 21c-2.217 0-4.104-.767-5.662-2.3C4.779 17.167 4 15.3 4 13.1c0-1.05.204-2.054.612-3.012A7.784 7.784 0 0 1 6.35 7.55L12 2l5.65 5.55c.75.733 1.33 1.58 1.738 2.538.408.958.612 1.962.612 3.012 0 2.2-.78 4.067-2.337 5.6C16.104 20.233 14.217 21 12 21Zm-6-7.9h12c0-.783-.15-1.53-.45-2.237A5.453 5.453 0 0 0 16.25 9L12 4.8 7.75 9c-.567.533-1 1.154-1.3 1.863-.3.708-.45 1.454-.45 2.237Z"})})}function mC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"})})}function gC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"})})}function vC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.5 12c0 .34-.03.66-.07.98l2.11 1.65c.19.15.24.42.12.64l-2 3.46c-.12.22-.38.31-.61.22l-2.49-1c-.52.39-1.08.73-1.69.98l-.38 2.65c-.03.24-.24.42-.49.42h-4c-.25 0-.46-.18-.49-.42l-.38-2.65c-.61-.25-1.17-.58-1.69-.98l-2.49 1c-.22.08-.49 0-.61-.22l-2-3.46a.505.505 0 0 1 .12-.64l2.11-1.65A7.93 7.93 0 0 1 4.5 12c0-.33.03-.66.07-.98L2.46 9.37a.493.493 0 0 1-.12-.64l2-3.46c.12-.22.38-.31.61-.22l2.49 1c.52-.39 1.08-.73 1.69-.98l.38-2.65c.03-.24.24-.42.49-.42h4c.25 0 .46.18.49.42l.38 2.65c.61.25 1.17.58 1.69.98l2.49-1c.22-.08.49 0 .61.22l2 3.46c.12.22.07.49-.12.64l-2.11 1.65c.04.32.07.64.07.98Zm-11 0c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5-3.5 1.57-3.5 3.5Z",clipRule:"evenodd"})})}function yC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M8 19v2h8v-2h-3V5h3V3H8v2h3v14H8Z"})})}let bC=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function wC(e,t){return function(){return e.apply(t,arguments)}}const{toString:xC}=Object.prototype,{getPrototypeOf:EC}=Object,CC=(e=>t=>{const n=xC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kC=e=>(e=e.toLowerCase(),t=>CC(t)===e),SC=e=>t=>typeof t===e,{isArray:IC}=Array,TC=SC("undefined"),_C=kC("ArrayBuffer"),OC=SC("string"),jC=SC("function"),AC=SC("number"),PC=e=>null!==e&&"object"==typeof e,BC=e=>{if("object"!==CC(e))return!1;const t=EC(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},NC=kC("Date"),DC=kC("File"),zC=kC("Blob"),MC=kC("FileList"),RC=kC("URLSearchParams"),[FC,LC,$C,HC]=["ReadableStream","Request","Response","Headers"].map(kC);function UC(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),IC(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function VC(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const WC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,qC=e=>!TC(e)&&e!==WC,ZC=(GC="undefined"!=typeof Uint8Array&&EC(Uint8Array),e=>GC&&e instanceof GC);var GC;const YC=kC("HTMLFormElement"),KC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XC=kC("RegExp"),JC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};UC(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},QC="abcdefghijklmnopqrstuvwxyz",ek="0123456789",tk={DIGIT:ek,ALPHA:QC,ALPHA_DIGIT:QC+QC.toUpperCase()+ek},nk=kC("AsyncFunction"),rk=(ok="function"==typeof setImmediate,ik=jC(WC.postMessage),ok?setImmediate:ik?((e,t)=>(WC.addEventListener("message",(({source:n,data:r})=>{n===WC&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),WC.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ok,ik;const ak="undefined"!=typeof queueMicrotask?queueMicrotask.bind(WC):"undefined"!=typeof process&&process.nextTick||rk;var sk={isArray:IC,isArrayBuffer:_C,isBuffer:function(e){return null!==e&&!TC(e)&&null!==e.constructor&&!TC(e.constructor)&&jC(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||jC(e.append)&&("formdata"===(t=CC(e))||"object"===t&&jC(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&_C(e.buffer),t},isString:OC,isNumber:AC,isBoolean:e=>!0===e||!1===e,isObject:PC,isPlainObject:BC,isReadableStream:FC,isRequest:LC,isResponse:$C,isHeaders:HC,isUndefined:TC,isDate:NC,isFile:DC,isBlob:zC,isRegExp:XC,isFunction:jC,isStream:e=>PC(e)&&jC(e.pipe),isURLSearchParams:RC,isTypedArray:ZC,isFileList:MC,forEach:UC,merge:function e(){const{caseless:t}=qC(this)&&this||{},n={},r=(r,o)=>{const i=t&&VC(n,o)||o;BC(n[i])&&BC(r)?n[i]=e(n[i],r):BC(r)?n[i]=e({},r):IC(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&UC(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(UC(t,((t,r)=>{n&&jC(t)?e[r]=wC(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&EC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:CC,kindOfTest:kC,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(IC(e))return e;let t=e.length;if(!AC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:YC,hasOwnProperty:KC,hasOwnProp:KC,reduceDescriptors:JC,freezeMethods:e=>{JC(e,((t,n)=>{if(jC(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];jC(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return IC(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:VC,global:WC,isContextDefined:qC,ALPHABET:tk,generateString:(e=16,t=tk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&jC(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(PC(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=IC(e)?[]:{};return UC(e,((e,t)=>{const i=n(e,r+1);!TC(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:nk,isThenable:e=>e&&(PC(e)||jC(e))&&jC(e.then)&&jC(e.catch),setImmediate:rk,asap:ak};function lk(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}sk.inherits(lk,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:sk.toJSONObject(this.config),code:this.code,status:this.status}}});const ck=lk.prototype,uk={};function dk(e){return sk.isPlainObject(e)||sk.isArray(e)}function pk(e){return sk.endsWith(e,"[]")?e.slice(0,-2):e}function fk(e,t,n){return e?e.concat(t).map((function(e,t){return e=pk(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{uk[e]={value:e}})),Object.defineProperties(lk,uk),Object.defineProperty(ck,"isAxiosError",{value:!0}),lk.from=(e,t,n,r,o,i)=>{const a=Object.create(ck);return sk.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),lk.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const hk=sk.toFlatObject(sk,{},null,(function(e){return/^is[A-Z]/.test(e)}));function mk(e,t,n){if(!sk.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=sk.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!sk.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&sk.isSpecCompliantForm(t);if(!sk.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(sk.isDate(e))return e.toISOString();if(!s&&sk.isBlob(e))throw new lk("Blob is not supported. Use a Buffer instead.");return sk.isArrayBuffer(e)||sk.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(sk.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(sk.isArray(e)&&function(e){return sk.isArray(e)&&!e.some(dk)}(e)||(sk.isFileList(e)||sk.endsWith(n,"[]"))&&(s=sk.toArray(e)))return n=pk(n),s.forEach((function(e,r){!sk.isUndefined(e)&&null!==e&&t.append(!0===a?fk([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!dk(e)||(t.append(fk(o,n,i),l(e)),!1)}const u=[],d=Object.assign(hk,{defaultVisitor:c,convertValue:l,isVisitable:dk});if(!sk.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!sk.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),sk.forEach(n,(function(n,i){!0===(!(sk.isUndefined(n)||null===n)&&o.call(t,n,sk.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function gk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function vk(e,t){this._pairs=[],e&&mk(e,this,t)}const yk=vk.prototype;function bk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wk(e,t,n){if(!t)return e;const r=n&&n.encode||bk,o=n&&n.serialize;let i;if(i=o?o(t,n):sk.isURLSearchParams(t)?t.toString():new vk(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}yk.append=function(e,t){this._pairs.push([e,t])},yk.toString=function(e){const t=e?function(t){return e.call(this,t,gk)}:gk;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class xk{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){sk.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ek={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ck={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:vk,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const kk="undefined"!=typeof window&&"undefined"!=typeof document,Sk="object"==typeof navigator&&navigator||void 0,Ik=kk&&(!Sk||["ReactNative","NativeScript","NS"].indexOf(Sk.product)<0),Tk="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_k=kk&&window.location.href||"http://localhost";var Ok={...Object.freeze({__proto__:null,hasBrowserEnv:kk,hasStandardBrowserEnv:Ik,hasStandardBrowserWebWorkerEnv:Tk,navigator:Sk,origin:_k}),...Ck};function jk(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&sk.isArray(r)?r.length:i,s?(sk.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&sk.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&sk.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(sk.isFormData(e)&&sk.isFunction(e.entries)){const n={};return sk.forEachEntry(e,((e,r)=>{t(function(e){return sk.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Ak={transitional:Ek,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=sk.isObject(e);if(o&&sk.isHTMLForm(e)&&(e=new FormData(e)),sk.isFormData(e))return r?JSON.stringify(jk(e)):e;if(sk.isArrayBuffer(e)||sk.isBuffer(e)||sk.isStream(e)||sk.isFile(e)||sk.isBlob(e)||sk.isReadableStream(e))return e;if(sk.isArrayBufferView(e))return e.buffer;if(sk.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return mk(e,new Ok.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ok.isNode&&sk.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=sk.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return mk(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(sk.isString(e))try{return(0,JSON.parse)(e),sk.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ak.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(sk.isResponse(e)||sk.isReadableStream(e))return e;if(e&&sk.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw lk.from(e,lk.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ok.classes.FormData,Blob:Ok.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};sk.forEach(["delete","get","head","post","put","patch"],(e=>{Ak.headers[e]={}}));const Pk=sk.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bk=Symbol("internals");function Nk(e){return e&&String(e).trim().toLowerCase()}function Dk(e){return!1===e||null==e?e:sk.isArray(e)?e.map(Dk):String(e)}function zk(e,t,n,r,o){return sk.isFunction(r)?r.call(this,t,n):(o&&(t=n),sk.isString(t)?sk.isString(r)?-1!==t.indexOf(r):sk.isRegExp(r)?r.test(t):void 0:void 0)}class Mk{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Nk(t);if(!o)throw new Error("header name must be a non-empty string");const i=sk.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Dk(e))}const i=(e,t)=>sk.forEach(e,((e,n)=>o(e,n,t)));if(sk.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(sk.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Pk[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(sk.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Nk(e)){const n=sk.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(sk.isFunction(t))return t.call(this,e,n);if(sk.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Nk(e)){const n=sk.findKey(this,e);return!(!n||void 0===this[n]||t&&!zk(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Nk(e)){const o=sk.findKey(n,e);!o||t&&!zk(0,n[o],o,t)||(delete n[o],r=!0)}}return sk.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!zk(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return sk.forEach(this,((r,o)=>{const i=sk.findKey(n,o);if(i)return t[i]=Dk(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Dk(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return sk.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&sk.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Bk]=this[Bk]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Nk(e);t[r]||(function(e,t){const n=sk.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return sk.isArray(e)?e.forEach(r):r(e),this}}function Rk(e,t){const n=this||Ak,r=t||n,o=Mk.from(r.headers);let i=r.data;return sk.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Fk(e){return!(!e||!e.__CANCEL__)}function Lk(e,t,n){lk.call(this,null==e?"canceled":e,lk.ERR_CANCELED,t,n),this.name="CanceledError"}function $k(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new lk("Request failed with status code "+n.status,[lk.ERR_BAD_REQUEST,lk.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Mk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),sk.reduceDescriptors(Mk.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),sk.freezeMethods(Mk),sk.inherits(Lk,lk,{__CANCEL__:!0});const Hk=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Uk=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Vk=e=>(...t)=>sk.asap((()=>e(...t)));var Wk=Ok.hasStandardBrowserEnv?function(){const e=Ok.navigator&&/(msie|trident)/i.test(Ok.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=sk.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},qk=Ok.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];sk.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),sk.isString(r)&&a.push("path="+r),sk.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Zk(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Gk=e=>e instanceof Mk?{...e}:e;function Yk(e,t){t=t||{};const n={};function r(e,t,n){return sk.isPlainObject(e)&&sk.isPlainObject(t)?sk.merge.call({caseless:n},e,t):sk.isPlainObject(t)?sk.merge({},t):sk.isArray(t)?t.slice():t}function o(e,t,n){return sk.isUndefined(t)?sk.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!sk.isUndefined(t))return r(void 0,t)}function a(e,t){return sk.isUndefined(t)?sk.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Gk(e),Gk(t),!0)};return sk.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);sk.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Kk=e=>{const t=Yk({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Mk.from(s),t.url=wk(Zk(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),sk.isFormData(r))if(Ok.hasStandardBrowserEnv||Ok.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ok.hasStandardBrowserEnv&&(o&&sk.isFunction(o)&&(o=o(t)),o||!1!==o&&Wk(t.url))){const e=i&&a&&qk.read(a);e&&s.set(i,e)}return t},Xk="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Kk(e);let o=r.data;const i=Mk.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Mk.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());$k((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new lk("Request aborted",lk.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new lk("Network Error",lk.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ek;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new lk(t,o.clarifyTimeoutError?lk.ETIMEDOUT:lk.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&sk.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),sk.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Hk(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Hk(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Lk(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Ok.protocols.indexOf(v)?n(new lk("Unsupported protocol "+v+":",lk.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const Jk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof lk?t:new Lk(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new lk(`timeout ${t} of ms exceeded`,lk.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>sk.asap(a),s}},Qk=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},eS=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Qk(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},tS="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nS=tS&&"function"==typeof ReadableStream,rS=tS&&("function"==typeof TextEncoder?(oS=new TextEncoder,e=>oS.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var oS;const iS=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},aS=nS&&iS((()=>{let e=!1;const t=new Request(Ok.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),sS=nS&&iS((()=>sk.isReadableStream(new Response("").body))),lS={stream:sS&&(e=>e.body)};var cS;tS&&(cS=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!lS[e]&&(lS[e]=sk.isFunction(cS[e])?t=>t[e]():(t,n)=>{throw new lk(`Response type '${e}' is not supported`,lk.ERR_NOT_SUPPORT,n)})})));var uS=tS&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Kk(e);c=c?(c+"").toLowerCase():"text";let f,h=Jk([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&aS&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=sk.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(sk.isBlob(e))return e.size;if(sk.isSpecCompliantForm(e)){const t=new Request(Ok.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return sk.isArrayBufferView(e)||sk.isArrayBuffer(e)?e.byteLength:(sk.isURLSearchParams(e)&&(e+=""),sk.isString(e)?(await rS(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(sk.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Uk(g,Hk(Vk(l)));r=eS(n.body,65536,e,t)}}sk.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f);const a=sS&&("stream"===c||"response"===c);if(sS&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=sk.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Uk(t,Hk(Vk(s),!0))||[];i=new Response(eS(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await lS[sk.findKey(lS,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{$k(t,n,{data:v,headers:Mk.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new lk("Network Error",lk.ERR_NETWORK,e,f),{cause:t.cause||t});throw lk.from(t,t&&t.code,e,f)}});const dS={http:null,xhr:Xk,fetch:uS};sk.forEach(dS,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const pS=e=>`- ${e}`,fS=e=>sk.isFunction(e)||null===e||!1===e;var hS=e=>{e=sk.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!fS(n)&&(r=dS[(t=String(n)).toLowerCase()],void 0===r))throw new lk(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new lk("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(pS).join("\n"):" "+pS(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function mS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lk(null,e)}function gS(e){return mS(e),e.headers=Mk.from(e.headers),e.data=Rk.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hS(e.adapter||Ak.adapter)(e).then((function(t){return mS(e),t.data=Rk.call(e,e.transformResponse,t),t.headers=Mk.from(t.headers),t}),(function(t){return Fk(t)||(mS(e),t&&t.response&&(t.response.data=Rk.call(e,e.transformResponse,t.response),t.response.headers=Mk.from(t.response.headers))),Promise.reject(t)}))}const vS={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vS[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yS={};vS.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new lk(r(o," has been removed"+(t?" in "+t:"")),lk.ERR_DEPRECATED);return t&&!yS[o]&&(yS[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var bS={assertOptions:function(e,t,n){if("object"!=typeof e)throw new lk("options must be an object",lk.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new lk("option "+i+" must be "+n,lk.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new lk("Unknown option "+i,lk.ERR_BAD_OPTION)}},validators:vS};const wS=bS.validators;class xS{constructor(e){this.defaults=e,this.interceptors={request:new xk,response:new xk}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Yk(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&bS.assertOptions(n,{silentJSONParsing:wS.transitional(wS.boolean),forcedJSONParsing:wS.transitional(wS.boolean),clarifyTimeoutError:wS.transitional(wS.boolean)},!1),null!=r&&(sk.isFunction(r)?t.paramsSerializer={serialize:r}:bS.assertOptions(r,{encode:wS.function,serialize:wS.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&sk.merge(o.common,o[t.method]);o&&sk.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Mk.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[gS.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=gS.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return wk(Zk((e=Yk(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}sk.forEach(["delete","get","head","options"],(function(e){xS.prototype[e]=function(t,n){return this.request(Yk(n||{},{method:e,url:t,data:(n||{}).data}))}})),sk.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Yk(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}xS.prototype[e]=t(),xS.prototype[e+"Form"]=t(!0)}));class ES{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Lk(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new ES((function(t){e=t}));return{token:t,cancel:e}}}const CS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(CS).forEach((([e,t])=>{CS[t]=e}));const kS=function e(t){const n=new xS(t),r=wC(xS.prototype.request,n);return sk.extend(r,xS.prototype,n,{allOwnKeys:!0}),sk.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Yk(t,n))},r}(Ak);function SS(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22L8 18H16L12 22ZM12 2L16 6H8L12 2ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14ZM2 12L6 8V16L2 12ZM22 12L18 16V8L22 12Z"}}]})(e)}function IS(e,t,n){var r=this,o=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=i((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(i(r))return a(r);if(h.current){var l=t-(r-o.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},w=function(){var a=Date.now(),f=i(a);if(u.current=[].slice.call(arguments),d.current=r,o.current=a,f){if(!c.current&&h.current)return s.current=o.current,n(l,t),g?e(o.current):p.current;if(y)return n(l,t),e(o.current)}return c.current||n(l,t),p.current};return w.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null},w.isPending=function(){return!!c.current},w.flush=function(){return c.current?a(Date.now()):p.current},w}),[g,y,t,b,v,m]);return w}function TS(e,t){return e===t}function _S(e){return"function"==typeof e?function(){return e}:e}function OS(e,t,n){var r,i,a=n&&n.equalityFn||TS,s=(r=o(_S(e)),i=r[1],[r[0],c((function(e){return i(_S(e))}),[])]),u=s[0],d=s[1],p=IS(c((function(e){return d(e)}),[d]),t,n),f=l(e);return a(f.current,e)||(p(e),f.current=e),[u,p]}function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}function AS(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function PS(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function BS(e){PS(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===jS(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}kS.Axios=xS,kS.CanceledError=Lk,kS.CancelToken=ES,kS.isCancel=Fk,kS.VERSION="1.7.7",kS.toFormData=mk,kS.AxiosError=lk,kS.Cancel=kS.CanceledError,kS.all=function(e){return Promise.all(e)},kS.spread=function(e){return function(t){return e.apply(null,t)}},kS.isAxiosError=function(e){return sk.isObject(e)&&!0===e.isAxiosError},kS.mergeConfig=Yk,kS.AxiosHeaders=Mk,kS.formToJSON=e=>jk(sk.isHTMLForm(e)?new FormData(e):e),kS.getAdapter=hS,kS.HttpStatusCode=CS,kS.default=kS;var NS={};function DS(){return NS}function zS(e){PS(1,arguments);var t=BS(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function MS(e){PS(1,arguments);var t=BS(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=zS(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=zS(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function RS(e,t){var n,r,o,i,a,s,l,c;PS(1,arguments);var u=DS(),d=AS(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=BS(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function FS(e,t){var n,r,o,i,a,s,l,c;PS(1,arguments);var u=BS(e),d=u.getUTCFullYear(),p=DS(),f=AS(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=RS(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=RS(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function LS(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var $S={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return LS("yy"===t?r%100:r,t.length)}(e,t)},Y:function(e,t,n,r){var o=FS(e,r),i=o>0?o:1-o;return"YY"===t?LS(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):LS(i,t.length)},R:function(e,t){return LS(MS(e),t.length)},u:function(e,t){return LS(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return LS(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return LS(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):LS(n+1,2)}(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return LS(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){PS(1,arguments);var n=BS(e),r=RS(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;PS(1,arguments);var u=DS(),d=AS(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=FS(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),RS(f,t)}(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):LS(o,t.length)},I:function(e,t,n){var r=function(e){PS(1,arguments);var t=BS(e),n=zS(t).getTime()-function(e){PS(1,arguments);var t=MS(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),zS(n)}(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):LS(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,t){return LS(e.getUTCDate(),t.length)}(e,t)},D:function(e,t,n){var r=function(e){PS(1,arguments);var t=BS(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):LS(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return LS(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return LS(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return LS(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return function(e,t){return LS(e.getUTCHours()%12||12,t.length)}(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,t){return LS(e.getUTCHours(),t.length)}(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):LS(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):LS(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,t){return LS(e.getUTCMinutes(),t.length)}(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,t){return LS(e.getUTCSeconds(),t.length)}(e,t)},S:function(e,t){return function(e,t){var n=t.length,r=e.getUTCMilliseconds();return LS(Math.floor(r*Math.pow(10,n-3)),t.length)}(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return US(o);case"XXXX":case"XX":return VS(o);default:return VS(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return US(o);case"xxxx":case"xx":return VS(o);default:return VS(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+HS(o,":");default:return"GMT"+VS(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+HS(o,":");default:return"GMT"+VS(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return LS(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return LS((r._originalDate||e).getTime(),t.length)}};function HS(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t;return n+String(o)+a+LS(i,2)}function US(e,t){return e%60==0?(e>0?"-":"+")+LS(Math.abs(e)/60,2):VS(e,t)}function VS(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+LS(Math.floor(o/60),2)+n+LS(o%60,2)}var WS=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qS=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ZS={p:qS,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return WS(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",WS(o,t)).replace("{{time}}",qS(i,t))}},GS=["D","DD"],YS=["YY","YYYY"];function KS(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var XS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function JS(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var QS={date:JS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:JS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:JS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function tI(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function nI(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(l):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(l);return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var rI,oI={code:"en-US",formatDistance:function(e,t,n){var r,o=XS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:QS,formatRelative:function(e,t,n,r){return eI[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:tI({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:tI({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:tI({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:tI({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:tI({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(rI={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(rI.matchPattern);if(!n)return null;var r=n[0],o=e.match(rI.parsePattern);if(!o)return null;var i=rI.valueCallback?rI.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:nI({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:nI({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nI({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:nI({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:nI({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},iI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sI=/^'([^]*?)'?$/,lI=/''/g,cI=/[a-zA-Z]/;function uI(e,t,n){var r,o,i,a,s,l,c,u,d;PS(2,arguments);var p=String(t),f=DS(),h=null!==(r=f.locale)&&void 0!==r?r:oI,m=AS(null!==(o=null!==(void 0,i=f.firstWeekContainsDate)&&void 0!==i?i:null===(a=f.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=AS(null!==(l=null!==(void 0,c=f.weekStartsOn)&&void 0!==c?c:null===(u=f.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!h.localize)throw new RangeError("locale must contain localize property");if(!h.formatLong)throw new RangeError("locale must contain formatLong property");var v=BS(e);if(!function(e){if(PS(1,arguments),!function(e){return PS(1,arguments),e instanceof Date||"object"===jS(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=BS(e);return!isNaN(Number(t))}(v))throw new RangeError("Invalid time value");var y=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(v),b=function(e,t){return PS(2,arguments),function(e,t){PS(2,arguments);var n=BS(e).getTime(),r=AS(t);return new Date(n+r)}(e,-AS(t))}(v,y),w={firstWeekContainsDate:m,weekStartsOn:g,locale:h,_originalDate:v},x=p.match(aI).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ZS[t])(e,h.formatLong):e})).join("").match(iI).map((function(n){if("''"===n)return"'";var r,o,i=n[0];if("'"===i)return(o=(r=n).match(sI))?o[1].replace(lI,"'"):r;var a=$S[i];if(a)return function(e){return-1!==YS.indexOf(e)}(n)&&KS(n,t,String(e)),function(e){return-1!==GS.indexOf(e)}(n)&&KS(n,t,String(e)),a(b,n,h.localize,w);if(i.match(cI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n})).join("");return x}var dI=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),pI=dI.Provider,fI=function(){return r(dI)},hI=function(){return fI().assetFilter},mI=function(){return fI().selectionMode},gI=function(e,t){return gI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},gI(e,t)},vI=function(){return vI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vI.apply(this,arguments)};function yI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function bI(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))}function wI(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function xI(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function EI(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var CI=n(null);function kI(e){var n=e.children,r=e.hideLimitedUse,s=void 0!==r&&r,l=o([]),c=l[0],u=l[1],d=o([]),p=d[0],f=d[1],h=o([]),m=h[0],g=h[1],v=o(),y=v[0],b=v[1],w=o({}),x=w[0],E=w[1];function C(e){u((function(t){return SI(t,e)}))}function k(e){u((function(t){return II(t,e)}))}function S(e){f((function(t){return SI(t,e.id)})),E((function(t){var n;return vI(vI({},t),((n={})[e.id]=e,n))}))}function I(e){f((function(t){return II(t,e.id)})),E((function(t){var n=t,r=e.id;return yI(n,["symbol"==typeof r?r:r+""])}))}function T(e){g((function(t){return SI(t,e)}))}function _(e){g((function(t){return II(t,e)}))}function O(){u([]),f([]),E({}),g([])}a((function(){b(!s&&void 0)}),[s]);var j=p.map((function(e){return x[e]})),A=i((function(){return{assetTypes:c,metaproperties:j,tags:m,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:I,addTag:T,removeTag:_,clear:O}}),[c,j,m,y]);return t.createElement(CI.Provider,{value:A},n)}function SI(e,t){return e.includes(t)?e:xI(xI([],e,!0),[t],!1)}function II(e,t){return e.filter((function(e){return e!==t}))}function TI(){var e=r(CI);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function _I(e){var t;return null!==(t=OI[e])&&void 0!==t?t:e}var OI={};function jI(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){OI=e}))}),[e])}var AI=n(null),PI={assets:"",isLoading:!1};function BI(e){var n=o(PI),r=n[0],s=n[1];function l(e,t){var n=""!==t;s((function(r){var o;return vI(vI({},r),((o={})[e]=t,o.isLoading=n,o))}))}function c(e){s((function(t){return vI(vI({},t),{isLoading:e})}))}function u(){s(PI)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]);var d=i((function(){return vI(vI({},r),{setSearch:l,setIsLoading:c,clear:u})}),[r]);return t.createElement(AI.Provider,{value:d},e.children)}function NI(){var e=r(AI);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function DI(e){var t=NI();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function zI(e){return{tag:"ok",value:e}}function MI(e){return{tag:"error",error:e}}function RI(e){return"ok"===e.tag}function FI(e){return"error"===e.tag}function LI(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var $I="transformBaseURL",HI="transformBaseUrl";function UI(e){var t;if(e[$I]){var n=e,r=$I,o=n[r],i=yI(n,["symbol"==typeof r?r:r+""]);return vI(vI({},i),((t={})[HI]=vI({},o),t))}return e}var VI=new Map;function WI(e,t,n){return bI(this,0,void 0,(function(){var r,o,i,a,s,l,c,u;return wI(this,(function(d){switch(d.label){case 0:if(!n)return[2,MI("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?LI(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),VI.has(i))return[2,zI(VI.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("2.0.5")},s=void 0===r?a:vI(vI({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:s,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return c=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?vI(vI({},e),{searchAssets:vI(vI({},e.searchAssets),{assets:vI(vI({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=UI(e.files);return vI(vI({},e),{files:vI({},t)})}return e}))})})}):e}(c.data),[3,5];case 4:return[2,MI(d.sent())];case 5:return void 0!==c.errors?[2,MI(c.errors.map((function(e){return e.message})).join(","))]:(VI.set(i,u),VI.size>50&&VI.delete(VI.keys().next().value),[2,zI(u)])}}))}))}function qI(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function ZI(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){var t="0".concat(e.toString(16));return t.substring(t.length-2)})).join("")}var GI="42b1eefa-d754-4802-b9c4-bf80d6ab6052",YI="v6/authentication/oauth2/",KI="".concat("https://d8ejoa1fys2rk.cloudfront.net"),XI=KI+"/5.0.5/modules/compactview/loginCompleted.html",JI="".concat("https://apiv2.webdamdb.com","/"),QI="oauth2/",eT=["offline","asset:read","collection:read","meta.assetbank:read"];function tT(e,t,n){return bI(this,0,void 0,(function(){var r,o,i,a;return wI(this,(function(s){switch(s.label){case 0:r=nT(n)+"token",o=new URLSearchParams({client_id:GI,code_verifier:t,code:e,redirect_uri:XI,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,MI("Failed to fetch access token: ".concat(i.status))];case 3:return[2,zI({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,MI(s.sent().toString())];case 5:return[2]}}))}))}function nT(e){return"webdam"===rT()?JI+QI:LI(e)+YI}function rT(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function oT(e){return bI(this,0,void 0,(function(){var t,n,r,o,i,a;return wI(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,MI("Error opening login window")]:(o.document.head.innerHTML=iT,o.document.body.innerHTML=aT,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===KI&&e(zI(t))}))})),new Promise((function(e){setTimeout((function(){return e(MI("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(MI("Login window closed")))}),1e3)})))])]);case 1:return FI(i=s.sent())?[2,i]:[2,zI({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var iT='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',aT='<div class="cv-spinner"></div>',sT={error:console.error},lT=n(null),cT=lT.Provider,uT=function(){var e=r(lT);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},dT='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,h1,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,object,svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.rounded{border-radius:5px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover,.text-body-500{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',pT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fT=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=function(e){return pT.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}(e)),t[e]}}();function hT(e){var n=uT();return t.createElement(Vl,{shouldForwardProp:fT,target:n},t.createElement(hp,{zIndexBase:1e6},e.children))}function mT(e){var n=e.children,r=e.isContainerMode,i=void 0!==r&&r,s=t.useRef(null),l=o(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+dT,gT(null!=e?e:document.head,t),n&&gT(document.head,yT),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(cT,{value:c},t.createElement(hT,null,m(t.createElement(bT,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function gT(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var vT,yT="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),bT=lc.div(vT||(vT=EI(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),wT=n("parent");function xT(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o;return"parent"===r(wT)?t.createElement(wT.Provider,{value:"child"},t.createElement(mT,{isContainerMode:i},n)):t.createElement(t.Fragment,null,n)}var ET=n(null),CT=function(){return r(ET)};function kT(e){var n=e.children,r=e.isOpen,s=void 0===r||r,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=o(null),p=d[0],f=d[1],h=i((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(ET.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(xT,null,t.createElement(TT,{className:"z-a-lot"},t.createElement(_T,{style:l,"data-testid":"modal"},n))),p))):null}var ST,IT,TT=lc.div(ST||(ST=EI(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),bc.spacing5,bc.gray100a),_T=lc.div(IT||(IT=EI(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),bc.radiusBase);function OT(e){var n=CT();return t.createElement(BT,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(NT,null,t.createElement(hu,{variant:"clean",onClick:n.onClose,title:_I("Close"),icon:t.createElement(xu,null)})),t.createElement(DT,null,e.children))}var jT,AT,PT,BT=lc.div(jT||(jT=EI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),bc.gray10),NT=lc.div(AT||(AT=EI(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),bc.spacing4,bc.spacing5),DT=lc.div(PT||(PT=EI(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),bc.fontSize300);function zT(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},_I("Connect your brand portal")))}function MT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function RT(e){var n=MT("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function FT(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(HT,null,t.createElement(ug,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:_I("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&"Enter"===e.key&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&_I("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(UT,{role:"alert","aria-live":"polite"},t.createElement(RT,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var LT,$T,HT=lc.div(LT||(LT=EI(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),bc.spacing4),UT=lc.div($T||($T=EI(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function VT(e){return t.createElement(hu,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},_I("Connect"))}function WT(e){return t.createElement(OT,null,t.createElement(zT,null),t.createElement(FT,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(VT,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}function qT(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function ZT(e){return t.createElement(t.Fragment,null,t.createElement(qT,null),t.createElement(XT,null,_I("Oops! Something went wrong")),t.createElement(JT,null,_I("Please try again or get in contact with our customer support.")),t.createElement(QT,null,t.createElement(hu,{variant:"secondary",title:_I("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?_I("Report sent"):_I("Send report...")),t.createElement(hu,{variant:"primary",title:_I("Try again"),onClick:e.onClickRetry},_I("Try again"))))}var GT,YT,KT,XT=lc.h1(GT||(GT=EI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing8,bc.fontSize400),JT=lc.span(YT||(YT=EI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),QT=lc.div(KT||(KT=EI(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),bc.spacing7,bc.spacing3);function e_(e){var n;return t.createElement(av,{title:_I("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(hu,{variant:"primary",title:_I("Send report"),onClick:e.onDone},_I("Send report")),actionSecondary:t.createElement(hu,{variant:"secondary",title:_I("Cancel"),onClick:e.onCancel},_I("Cancel")),container:e.container},t.createElement(o_,null,_I("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(i_,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(a_,null,_I("We will treat this report as confidential and anonymous.")))}var t_,n_,r_,o_=lc.div(t_||(t_=EI(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),bc.lineHeightText),i_=lc.div(n_||(n_=EI(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),bc.spacing5,bc.gray25,bc.radiusMedium,bc.gray200,bc.lineHeightText,bc.spacing5,bc.spacing4),a_=lc.span(r_||(r_=EI(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),bc.colorTextDisabled,bc.lineHeightBase,bc.fontSize75);function s_(e){var n=e.error,r=e.onRetry,i=uT(),s=o(!1),l=s[0],c=s[1],u=o(!1),d=u[0],p=u[1];return a((function(){sT.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(ZT,{isReportSent:d,onClickSend:function(){c(!0)},onClickRetry:r}),t.createElement(e_,{isOpen:l,error:n,container:i,onDone:function(){c(!1),p(!0)},onCancel:function(){c(!1)}}))}var l_=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}gI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(s_,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function c_(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(RT,null)," ")}var u_=n(null);function d_(e){var n,r,i,s,c,u,d,p,f;jI(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=o(void 0),r=n[0],i=n[1],s=o(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=o(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=o(w()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=r),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){r&&r()||!c||!p||(g("refreshing"),function(e,t){return bI(this,0,void 0,(function(){var n,r,o,i;return wI(this,(function(a){switch(a.label){case 0:n=nT(t)+"token",r=new URLSearchParams({client_id:GI,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,MI("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,zI({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,MI(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){RI(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(sT.error(e.error),b())})))}),[r,c,p]),[{getAccessToken:r,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=o(null!=e?e:""),n=t[0],r=t[1],i=o(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return bI(this,0,void 0,(function(){var t,n,r;return wI(this,(function(o){switch(o.label){case 0:t=LI(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),r(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(r=e.portal)||void 0===r?void 0:r.url)&&void 0!==i?i:m.accountDomain),b=y[0],w=y[1],x=y[2],E=o(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&sT.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return bI(this,0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return wI(this,(function(p){switch(p.label){case 0:t=ZI(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,qI(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,MI(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=ZI(),i=function(e,t,n){var r={client_id:GI,code_challenge:e,code_challenge_method:"S256",redirect_uri:XI,response_type:"code",scope:eT.join(" "),domain:"",state:t},o="auth?";"webdam"===rT()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return nT(n)+o+i}(r,o,e),[4,oT(i)];case 5:return FI(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,MI("Error logging in")]:[4,tT(a.value.code,t,e)];case 6:return FI(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,zI({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(RI(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else sT.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=vI(vI({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(u_.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(xT,{isContainerMode:!0},t.createElement(WT,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(c_,null)}}var p_=function(e){return t.createElement(l_,null,t.createElement(d_,vI({},e)))},f_=function(){var e;return"authenticated"===(null===(e=r(u_))||void 0===e?void 0:e.status)||!1},h_=function(){return r(u_)},m_="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";function g_(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:MT("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"‌")}function v_(e){var t=o(void 0),n=t[0],r=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var o=n.getBoundingClientRect();r({width:o.width,height:o.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function y_(e){return t.createElement(w_,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(yu,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var b_,w_=lc.div(b_||(b_=EI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function x_(e){return t.createElement(C_,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(vu,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var E_,C_=lc.div(E_||(E_=EI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function k_(e){var n=o(0),r=n[0],i=n[1],s=l(null),c=v_(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=r>0,m=p>5&&r!==p;return t.createElement("div",{className:MT("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(x_,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-r,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(y_,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}var S_,I_,T_,__,O_=lc.div(S_||(S_=EI(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),bc.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),j_=lc.li(I_||(I_=EI(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),bc.spacing2,bc.spacing5,bc.gray25),A_=lc.div(T_||(T_=EI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"])),bc.fontSize75,(function(e){return e.$isChecked?"inherit":bc.gray500})),P_=lc.span(__||(__=EI(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),bc.spacing4);function B_(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(j_,null,t.createElement(O_,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(ff,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(A_,{$isChecked:n},t.createElement(P_,{title:e.metapropertyOption.label},t.createElement(Lp,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function N_(e){return t.createElement(M_,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(R_,null,e.metaproperty.options.map((function(n){return t.createElement(B_,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var D_,z_,M_=lc.div(D_||(D_=EI(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),bc.spacing5),R_=lc.ul(z_||(z_=EI(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"]))),F_=300;function L_(e){var n,r=l(null),i=o(0)[1];!function(e,t){var n=uT();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,r],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=uT(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),w=b.width-(null!=h?h:0)-(null!=g?g:0),x=b.height-(null!=y?y:0)-(null!=v?v:0);h&&w<F_&&(h=p+u.width-F_);var E={left:h,right:g,top:v,bottom:y,maxWidth:w,maxHeight:x,minWidth:F_},C=MT("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:r,style:E},e.children),s)}function $_(e){var n=e.buttonKind,r=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=yI(e,["buttonKind","direction","isSmall","fadeIn"]),p=i((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=o(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(U_,{$fadeIn:Boolean(u)},t.createElement(hu,{variant:r,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Eu,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(L_,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var H_,U_=lc.div(H_||(H_=EI(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function V_(e){return t.createElement(q_,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(N_,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var W_,q_=lc.div(W_||(W_=EI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),bc.spacing4);function Z_(e){var n,r,o=TI(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},xI([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement($_,{key:n.id,title:t.createElement(G_,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(RT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(N_,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(V_,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function G_(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:MT("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function Y_(e){var n=TI(),r=n.tags.includes(e.tag.name);return t.createElement(X_,{key:e.tag.id,size:"s",onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item",$active:r},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}var K_,X_=lc(xf)(K_||(K_=EI(["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"],["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"])),(function(e){return e.$active?bc.gray50:"transparent"}),bc.spacing3,bc.spacing3);function J_(e){var n=xI([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement($_,{title:t.createElement(Q_,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(RT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",_I("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(Y_,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function Q_(){return t.createElement(t.Fragment,null,t.createElement(zu,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},_I("Tags")))}function eO(e){return _I({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function tO(e){switch(e){case"AUDIO":return Ru;case"DOCUMENT":return _u;case"IMAGE":return wu;case"VIDEO":return Mu;case"ARCHIVE":return gu}}function nO(e){var n=TI(),r=n.assetTypes.includes(e.type),o=tO(e.type);return t.createElement(j_,{"data-testid":"advanced-options"},t.createElement(O_,{$isChecked:r,$isLoading:e.isLoading},t.createElement(ff,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat(eO(e.type),"-filter")},t.createElement(A_,{$isChecked:r},t.createElement(o,null),t.createElement(oO,null,eO(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var rO,oO=lc.div(rO||(rO=EI(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),bc.spacing3);function iO(e){var n=fI().assetTypes,r=n.filter((function(t){return sO(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement($_,{title:t.createElement(aO,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(RT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},_I("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(nO,{key:n,type:n,count:sO(e.count,n),isLoading:e.isLoading})}))))}))}function aO(){return t.createElement(t.Fragment,null,t.createElement(mu,{className:"mr-2 inline w-6 h-6"}),_I("Advanced"))}function sO(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function lO(){var e=TI(),n=DI("assets").value,r=fI(),i=r.assetTypes,s=r.language;jI(s);var l=function(e){var t=this,n=h_(),r=o({tag:"Loading",value:null}),i=r[0],s=r[1],l=!1;return a((function(){return bI(t,0,void 0,(function(){var t,r,o,i,a,c,u;return wI(this,(function(d){switch(d.label){case 0:return s((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=e.searchTerm,o=e.allAssetTypes,i=e.language,a={filter:{assetType_in:null!==(u=(t=e.filter).assetTypes)&&void 0!==u?u:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},[4,WI(m_,a,n)];case 1:return c=d.sent(),l||(FI(c)?s({tag:"Failure",value:c.error}):s({tag:"Loaded",value:c.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:s}),c=l.data,u=l.isLoading;if("Failure"===c.tag||!c.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(cO,null));var d=c.value.searchAssets,p=d.metapropertyFilters,f=d.tags,h=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(k_,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(Z_,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(J_,{tags:f.nodes,isLoading:u}),t.createElement(iO,{isLoading:u,count:h.assetType})))}function cO(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(g_,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(g_,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(g_,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var uO=n(null),dO={field:"CREATED_AT",direction:"DESC"};function pO(e){var n=o(dO),r=n[0],a=n[1];function s(e){a(e)}function l(){a(dO)}var c=i((function(){return{assets:r,setOrdering:s,reset:l}}),[r]);return t.createElement(uO.Provider,{value:c},e.children)}function fO(e){var t=function(){var e=r(uO);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(e){return t.setOrdering(e)}]}var hO="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",mO="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(hO,"\n"),gO=function(e,t){var n,r,o,i,a=e.filter,s=e.predefinedFilter,l=e.orderBy,c=e.allAssetTypes,u=e.searchTerm,d=e.language,p=(null===(n=null==a?void 0:a.assetTypes)||void 0===n?void 0:n.length)?a.assetTypes:null==s?void 0:s.assetType_in;return{orderBy:l,filter:{assetType_in:null!=p?p:c,metapropertyOptionId_in:null!==(r=yO(null==a?void 0:a.metaproperties))&&void 0!==r?r:null==s?void 0:s.metapropertyOptionId_in,searchTerm:null!==(o=null!=u?u:null==s?void 0:s.searchTerm)&&void 0!==o?o:null,tagNames_in:null!==(i=null==a?void 0:a.tags)&&void 0!==i?i:null==s?void 0:s.tagNames_in,isLimitedUse:null==a?void 0:a.isLimited},after:t,language:d}},vO=function(e,t){var n,r=e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},yO=function(e){return e?e.map((function(e){return e.id})):null};function bO(e,t,n){return bI(this,0,void 0,(function(){var r;return wI(this,(function(o){switch(o.label){case 0:return[4,WI("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(hO),{ids:e,language:n},t)];case 1:return FI(r=o.sent())?[2,r]:[2,zI(r.value.nodes)]}}))}))}var wO=n(null);function xO(e){var n=o([]),r=n[0],s=n[1],l=o(),c=l[0],u=l[1],d=function(e){var t=this,n=o([]),r=n[0],i=n[1],s=fI(),l=s.selectionMode,c=s.language,u=h_(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,bI(t,0,void 0,(function(){var e,t,n;return wI(this,(function(o){switch(o.label){case 0:return r.length?[4,bO(r,u,c)]:[3,2];case 1:e=o.sent(),d||FI(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),r}(c),p=mI();function f(){s([])}function h(e){s((function(t){var n=e.filter((function(e){return!EO(t,e)}));return xI(xI([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function m(e){var t;"MultiSelect"!==p?(t=e[0],r.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!EO(t,e)})),r=e.filter((function(e){return EO(t,e)}));return xI(xI([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]);var g=i((function(){return{selection:r,preselectedAssetIds:c,clear:f,selectAssets:h,toggleAssets:m}}),[r]);return t.createElement(wO.Provider,{value:g},e.children)}function EO(e,t){return e.some((function(e){return e.value.id===t.id}))}function CO(){var e=r(wO);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function kO(){var e=DI("assets"),n=e.value,r=e.isLoading,i=IS(e.setSearch,500),s=o(n),l=s[0],c=s[1];a((function(){c(n)}),[n]),a((function(){return function(){i.flush()}}),[i]);var u=_I("Search for assets");return t.createElement(IO,null,t.createElement(wh,{value:l,placeholder:u,"aria-label":u,onChange:function(e){return c(t=e),void i(t);var t},"data-testid":"search-input",icon:t.createElement(Bu,null),iconRight:r?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(RT,{className:"relative right-0"})):void 0,hasClearButton:!r&&!!n}))}var SO,IO=lc.div(SO||(SO=EI(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function TO(){var e=f_(),n=CT(),r=h_(),o=hI();return e||n||void 0===o?t.createElement(PO,null,t.createElement(AO,null),t.createElement(kO,null),t.createElement(BO,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(hu,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(Tu,null)},_I("Log out")),n&&t.createElement(hu,{variant:"clean",onClick:function(){return n.onClose()},title:_I("Close"),icon:t.createElement(xu,null)}))):null}var _O,OO,jO,AO=lc.div(_O||(_O=EI(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"]))),PO=lc.nav(OO||(OO=EI(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),bc.gray10,bc.spacing5,bc.spacing4),BO=lc.div(jO||(jO=EI(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function NO(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function DO(e){return t.createElement(HO,null,t.createElement(UO,null,t.createElement(NO,null),t.createElement(VO,null)),t.createElement(WO,null,_I("No results found")),t.createElement(qO,null,_I("Try adjusting the filter to find assets.")),t.createElement(ZO,null,t.createElement(hu,{variant:"primary",title:_I("Reset filters"),onClick:e.onReset},_I("Reset filters"))))}var zO,MO,RO,FO,LO,$O,HO=lc.div(zO||(zO=EI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),UO=lc.div(MO||(MO=EI(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),bc.gray25),VO=lc(Bu)(RO||(RO=EI(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),bc.spacing2,bc.gray300),WO=lc.h1(FO||(FO=EI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing6,bc.fontSize400),qO=lc.span(LO||(LO=EI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),ZO=lc.div($O||($O=EI(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),bc.spacing7);function GO(e){return t.createElement(KO,{icon:e.icon,size:"s",onDelete:e.onClick,"data-testid":"selected-filter:".concat(e.title)},e.title)}var YO,KO=lc(xf)(YO||(YO=EI(["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"],["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"])),bc.spacing3);function XO(){var e=TI(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(QO,null,t.createElement(hu,{variant:"clean",isSmall:!0,onClick:e.clear},_I("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(k_,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=tO(n);return t.createElement(GO,{key:n,onClick:function(){return e.removeAssetType(n)},title:eO(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(GO,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(GO,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var JO,QO=lc.div(JO||(JO=EI(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"])));function ej(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var tj=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function nj(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return tj.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function rj(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}var oj,ij,aj,sj,lj=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},cj=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t=e.label,n=e.value,r=e.type,o=e.zIndex;return{label:t,value:"date"===r?uI(new Date(n),"dd MMMM yyyy"):n,zIndex:o}}));return xI(xI([],n,!0),r,!0).sort(lj)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(af.AdditionalInfo,null,t.createElement(uj,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(dj,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(pj,null,n,":"),t.createElement(fj,{title:r},o))})))):null},uj=lc.dl(oj||(oj=EI(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),bc.fontSize75),dj=lc.div(ij||(ij=EI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),pj=lc.dt(aj||(aj=EI(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),fj=lc.dd(sj||(sj=EI(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function hj(e){var n=e.className,r=e.fadeIn,i=void 0===r||r,s=e.asset,l=e.isSelected,c=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=fI().hideExternalAccess,h=o(),m=h[0],g=h[1],v=o(),y=v[0],b=v[1],w=function(e){return[e.isArchived&&_I("archived"),e.isWatermarked&&_I("watermarked"),e.isLimitedUse&&_I("limited")].filter((function(e){return e})).join(", ")}(s),x=rj(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));g(t)}),[s.metaproperties]),a((function(){var e,t=null===(e=s.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));b(t)}),[s.textMetaproperties]);var E=function(e){void 0!==u&&(e.stopPropagation(),u(s,e))};return t.createElement(yj,{id:s.id,$isOutlined:l||c,$fadeIn:i,className:MT("group",n),"data-drag-select-id":s.id},t.createElement(af,{selectButtonAriaLabel:_I(l?"Deselect":"Select"),onSelect:E,onClick:E,isSelected:l,"aria-selected":l,"data-testid":"asset-card",contextAction:!f&&t.createElement(af.ContextActionButton,{"aria-label":_I("Open in new tab"),onClick:function(){window.open(s.url,"_blank")}},t.createElement(Pu,null))},t.createElement(af.Frame,{icon:w?t.createElement(bj,{$limitWidth:!!x},t.createElement(wc,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(Lp,null,w))):void 0,"data-testid":"asset-type",badge:x},t.createElement(af.Images,null,nj(s)&&t.createElement(af.Img,{src:nj(s),alt:s.name,contentResize:"fit"}))),p,t.createElement(wj,{"data-testid":"asset-name"},s.name),t.createElement(cj,{metaproperties:m,textMetaproperties:y})))}var mj,gj,vj,yj=lc.div(mj||(mj=EI(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"])),bc.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""})),bj=lc.div(gj||(gj=EI(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),wj=lc.p(vj||(vj=EI(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function xj(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(af,null,t.createElement(af.Frame,null),t.createElement(af.AdditionalInfo,null,t.createElement(g_,{width:70+(o=r,16807*((o+20)%2147483647+2147483646)%2147483647%100),className:"h-4"})),e.title));var o})))}var Ej={x:null,y:null},Cj="drag-select-container",kj=function(e){var n=e.dragContainer,r=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=o(Ej),f=p[0],h=p[1],g=o(Ej),v=g[0],y=g[1],b=OS(v,10,{leading:!0,maxWait:10})[0],w=o(),x=w[0],E=w[1],C=uT(),k=t.useMemo((function(){return Ij(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=OS(k,50,{leading:!1,maxWait:50})[0],I=o([]),T=I[0],_=I[1],O=Aj(T),j=l(f),A=l(v),P=l(null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y),B=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",N,!1),document.addEventListener("keyup",N,!1),function(){document.removeEventListener("keydown",N,!1),document.removeEventListener("keyup",N,!1)}}),[]);var N=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},P.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof u&&P.current?(N(B.current),u(null!=x?x:"select")):"function"!=typeof d||P.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[P.current,x]);var D=function(e){j.current=e,h(e),M()},z=function(e){A.current=e,y(e),M()},M=function(){P.current=null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y},R=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),F=c((function(){C.removeEventListener("mousemove",R),C.removeEventListener("mouseup",F),D(Ej),z(Ej)}),[R,C]),L=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",R),C.addEventListener("mouseup",F),D({x:n,y:t}))}),[R,F,C]);a((function(){var e=C.querySelector(n);return e&&(Oj(C),e.addEventListener("mousedown",L)),function(){e&&(e.removeEventListener("mousedown",L),jj(C))}}),[n,L,R,F,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=_j(t);return t instanceof HTMLElement&&Tj(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);_(t)}),[S,C]),a((function(){if(O&&O!==T&&P.current){var e=T.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,O,i,s,P]);var $=C.querySelector("#".concat(Cj));return P.current&&$?m(t.createElement("div",vI({},r,{style:r.style?vI(vI(vI({},Sj),r.style),k):vI(vI({},Sj),k),"data-testid":"drag-selection"})),$):null},Sj={position:"absolute",zIndex:100},Ij=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},Tj=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},_j=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},Oj=function(e){var t=document.createElement("div");t.id=Cj,e.appendChild(t)},jj=function(e){var t=e.querySelector("#".concat(Cj));t&&t.remove()},Aj=function(e){var t=l();return a((function(){t.current=e})),t.current};function Pj(e){var n=ly(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(RT,{className:MT(!o&&"hidden")})))}function Bj(e){var n,r=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.children,k=void 0===C?null:C,S=l(null),I=v_(S.current).dimensions,T=o([]),_=T[0],O=T[1],j=o("inactive"),A=j[0],P=j[1],B=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,I),N=B[0],D=B[1];function z(e){return("inverse"!==A||!w.includes(e.id)||!_.includes(e.id))&&(w.includes(e.id)||_.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:S,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===r.tag&&!r.value&&t.createElement(xj,{rows:N,columns:D}),"Loaded"===r.tag&&0===r.value.length&&y,("Loading"===r.tag&&r.value||"Loaded"===r.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(kj,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6}},onSelect:function(e){O((function(t){return xI(xI([],t,!0),e,!0)}))},onDeselect:function(e){O((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),_.length){var t=[];_.forEach((function(e){var n=function(e){var t;if("Loading"!==r.tag||r.value)return null===(t=r.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),O([])}}}),t.createElement(Pj,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=r.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(hj,{key:e.id,isSelected:z(e),isOutlined:z(e),asset:e,fadeIn:n>=N*D,onClick:function(e,t){return function(e,t){var n,o,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=r.value)||void 0===n?void 0:n.length)){var a=r.value.findIndex((function(t){return t.id===e.id})),s=null===(o=r.value)||void 0===o?void 0:o.findIndex((function(e){return e.id===w[w.length-1]}));-1===s&&(s=0),h(s<a?null===(i=r.value)||void 0===i?void 0:i.slice(s,a+1):r.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function Nj(){var e=fO("assets"),n=e[0],r=e[1],o={ASC:_I("Ascending"),DESC:_I("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(hu,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(zj,{$isAscending:"ASC"===n.direction})})}var Dj,zj=lc(Du)(Dj||(Dj=EI(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),bc.spacing6,bc.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function Mj(e){var n=e.selected,r=void 0!==n&&n,o=yI(e,["selected"]),i=MT("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(Cu,{className:"w-6 h-6 ml-3 fade-in"})))}function Rj(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=fO("assets"),i=o[0],a=o[1],s={CREATED_AT:_I("Date added"),NAME:_I("Name"),PUBLISHED_AT:_I("Date published"),UPDATED_AT:_I("Date modified")};return t.createElement(Lj,null,t.createElement($_,{className:"py-2",title:s[i.field],alt:_I("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Mj,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var Fj,Lj=lc.div(Fj||(Fj=EI(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function $j(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=NI().setIsLoading,h=fI(),m=CO().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=CO(),v=g.selectAssets,y=g.toggleAssets,b=NI().setSearch,w=TI();if(a((function(){c||f(!1)}),[c]),"Failure"===l.tag)return t.createElement(s_,{error:new Error(l.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(Bj,{assets:Hj(l),count:x,isLoading:c,loadMore:u,hasNextPage:d,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(DO,{onReset:function(){w.clear(),b("assets","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},ej(x,_I("{} asset"),_I("{} assets"))),e.showActiveFilters&&t.createElement(XO,null),t.createElement(Rj,null),t.createElement(Nj,null)))}function Hj(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function Uj(){var e=TI(),n=e.assetTypes,r=e.metaproperties,i=e.tags,s=e.isLimited,l=DI("assets").value,c=fO("assets")[0],u=fI(),d=u.assetFilter,p=u.assetTypes,f=u.language,h=function(e){var t,n,r,i,s,l=this,c=h_(),u=o({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,h=function(t){return bI(l,0,void 0,(function(){var n,r;return wI(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=gO(e,null!=t?t:null),[4,WI(mO,n,c)];case 1:return r=o.sent(),f||(FI(r)?p({tag:"Failure",value:r.error}):m(r,t)),[2]}}))}))},m=function(e,t){vO(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=vO(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:vI(vI({},e.value.searchAssets.assets),{nodes:xI(xI([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return h(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(r=e.filter)||void 0===r?void 0:r.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return h()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return h(null===(e=vO(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(s=vO(d))||void 0===s?void 0:s.pageInfo.hasNextPage)}}(void 0===d?{filter:{assetTypes:n,metaproperties:r,tags:i,isLimited:s},searchTerm:l,orderBy:c,allAssetTypes:p,language:f}:{predefinedFilter:d,orderBy:c,language:f});return t.createElement($j,{connection:h,showActiveFilters:void 0===d})}var Vj="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function Wj(e,t,n){return void 0===n&&(n=Vj),bI(this,0,void 0,(function(){var r;return wI(this,(function(o){switch(o.label){case 0:return[4,WI("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return FI(r=o.sent())?[2,r]:[2,zI(r.value.node)]}}))}))}function qj(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var Zj="Custom transformation";function Gj(e){var n=e.asset,r=e.onChange,i=o({status:"Loading"}),s=i[0],l=i[1],c=h_(),u=fI().assetFieldSelection;return a((function(){l({status:"Loading"}),r(void 0),function(e,t,n){return bI(this,0,void 0,(function(){var r;return wI(this,(function(o){switch(o.label){case 0:return[4,Wj(e.id,t,n)];case 1:return RI(r=o.sent())&&r.value.files?[2,zI(UI(r.value.files))]:[2,MI("Error retrieving asset files")]}}))}))}(n,c,u).then((function(e){if(FI(e))return sT.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),r(t[n])}))}),[n.id,c,u]),t.createElement(Jj,null,t.createElement($_,{title:t.createElement(Yj,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var o,i=n[0],a=n[1];return t.createElement(Mj,{key:i,className:"px-3 py-2",selected:s.key===i,onClick:function(){!function(e){l((function(t){return"Data"!==t.status?t:(setTimeout((function(){return r(t.files[e])})),vI(vI({},t),{key:e}))}))}(i),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===i?t.createElement(bu,{className:"w-6 h-6"}):null!==(o=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(a.url))&&void 0!==o?o:t.createElement(ju,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},qj(i)),t.createElement("div",{className:"text-sm"},a.width&&a.height&&"".concat(a.width," x ").concat(a.height," px"),a.width&&a.height&&a.fileSize&&t.createElement("span",{className:"mx-2"},"•"),a.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(a.fileSize))))})))})))}function Yj(e){var n=e.state;return"Loading"===n.status?t.createElement(g_,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(Qj,null,n.key===Zj&&t.createElement(Iu,null),qj(n.key)):t.createElement(t.Fragment,null,"Error")}var Kj,Xj,Jj=lc.div(Kj||(Kj=EI(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),bc.spacing5),Qj=lc.div(Xj||(Xj=EI(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),bc.spacing4),eA="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function tA(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(Cu,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,_I("Retry")):t.createElement(t.Fragment,null,ej(r,_I("Add asset"),_I("Add assets")))}function nA(e){var n,r=fI(),i=r.assetFieldSelection,s=r.onSuccess,c=r.selectionMode,u=CO().preselectedAssetIds,d=h_(),p=l(!0),f=o("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),h=f[0],m=f[1];function g(e,t){if(FI(e))m({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),s(n,{selectedFile:t})}catch(e){sT.error(e)}p.current&&(m({status:"Done"}),setTimeout((function(){p.current&&m({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(Gj,{asset:e.selection[0].value,onChange:function(e){m(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(hu,{variant:"primary",isDisabled:"Loading"===h.status||"WaitingForFileSelection"===h.status,onClick:function(){var t,n="ReadyWithFile"===h.status?h.file:void 0;m({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?Wj(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n=eA),bI(this,0,void 0,(function(){var r,o,i,a,s,l,c,u,d,p,f,h;return wI(this,(function(m){switch(m.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o={ids:e.map((function(e){return e.value.id}))},[4,WI(r,o,t)];case 1:if(FI(i=m.sent()))return[2,i];for(a=[],s=0,l=i.value.nodes;s<l.length;s++)"Collection"===(c=l[s]).__typename?a.push.apply(a,c.assets.nodes):a.push(c);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)h=f[p],u.has(h.id)||(d.push(h),u.add(h.id));return[2,zI(d)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===h.status},t.createElement(tA,{status:h.status,numberOfSelectedItems:e.selection.length})))}function rA(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(O_,{$isChecked:!0,$isFlex:!0},t.createElement(ff,{"aria-label":_I("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(iA,{htmlFor:"deselect-".concat(n)},o)))}var oA,iA=lc.label(oA||(oA=EI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),bc.fontSize100,bc.spacing3);function aA(e){var n=e.asset,r=CO();return t.createElement(rA,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(lA,null,t.createElement(Ah,{variant:"preview",imageUrl:nj(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),rj(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},rj(n)))}var sA,lA=lc.div(sA||(sA=EI(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),bc.spacing4);function cA(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return t.createElement(aA,{key:e.value.id,asset:e.value})})))}function uA(){var e=CO(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(fA,{"data-testid":"selection-footer"},t.createElement(hA,null,t.createElement($_,{buttonKind:"secondary",direction:"Up",title:_I("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(cA,{selection:n})})),t.createElement(hu,{variant:"clean",onClick:r},_I("Clear selection"))),t.createElement(nA,{selection:n}))}var dA,pA,fA=lc.div(dA||(dA=EI(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),bc.layoutSpacing5,bc.spacing6),hA=lc.span(pA||(pA=EI(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),bc.spacing2);function mA(e){var n=e.assetFieldSelection,r=e.assetTypes,o=void 0===r?["IMAGE","DOCUMENT","VIDEO","AUDIO","ARCHIVE"]:r,i=e.defaultSearchTerm,a=e.language,s=void 0===a?"en_US":a,l=e.mode,c=void 0===l?"SingleSelectFile":l,u=e.onSuccess,d=void 0===u?function(e,t){var n=t.selectedFile;return console.log(e,n)}:u,p=e.hideExternalAccess,f=e.selectedAssets,h=e.hideLimitedUse,m=e.isContainerMode,g=void 0!==m&&m;jI(s);var v={assetFieldSelection:n,assetTypes:o,language:s,onSuccess:d,selectionMode:c,hideExternalAccess:p};return t.createElement(l_,null,t.createElement(xT,{isContainerMode:g},t.createElement(pO,null,t.createElement(kI,{hideLimitedUse:h},t.createElement(BI,{defaultValue:i},t.createElement(pI,{value:v},t.createElement(xO,{preselectedAssetIds:null!=f?f:[]},t.createElement("div",{className:"cv-root cv-container"},t.createElement(TO,null),t.createElement(lO,null),t.createElement(Uj,null),t.createElement(uA,null)))))))))}var gA,vA,yA={};function bA(){if(vA)return gA;function e(e,t){return function(){return e.apply(t,arguments)}}vA=1;const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,r=(e=>n=>{const r=t.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),o=e=>(e=e.toLowerCase(),t=>r(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,s=i("undefined"),l=o("ArrayBuffer"),c=i("string"),u=i("function"),d=i("number"),p=e=>null!==e&&"object"==typeof e,f=e=>{if("object"!==r(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},h=o("Date"),m=o("File"),v=o("Blob"),y=o("FileList"),b=o("URLSearchParams"),[w,x,E,C]=["ReadableStream","Request","Response","Headers"].map(o);function k(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),a(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function S(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:g,T=e=>!s(e)&&e!==I,_=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),O=o("HTMLFormElement"),j=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A=o("RegExp"),P=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",N="0123456789",D={DIGIT:N,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+N},z=o("AsyncFunction"),M=((e,t)=>e?setImmediate:t?((e,t)=>(I.addEventListener("message",(({source:n,data:r})=>{n===I&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),I.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,u(I.postMessage)),R="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||M;var F={isArray:a,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&u(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||u(e.append)&&("formdata"===(t=r(e))||"object"===t&&u(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t},isString:c,isNumber:d,isBoolean:e=>!0===e||!1===e,isObject:p,isPlainObject:f,isReadableStream:w,isRequest:x,isResponse:E,isHeaders:C,isUndefined:s,isDate:h,isFile:m,isBlob:v,isRegExp:A,isFunction:u,isStream:e=>p(e)&&u(e.pipe),isURLSearchParams:b,isTypedArray:_,isFileList:y,forEach:k,merge:function e(){const{caseless:t}=T(this)&&this||{},n={},r=(r,o)=>{const i=t&&S(n,o)||o;f(n[i])&&f(r)?n[i]=e(n[i],r):f(r)?n[i]=e({},r):a(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&k(arguments[e],r);return n},extend:(t,n,r,{allOwnKeys:o}={})=>(k(n,((n,o)=>{r&&u(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let i,a,s;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:o,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!d(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:O,hasOwnProperty:j,hasOwnProp:j,reduceDescriptors:P,freezeMethods:e=>{P(e,((t,n)=>{if(u(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];u(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return a(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:S,global:I,isContextDefined:T,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&u(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(p(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=a(e)?[]:{};return k(e,((e,t)=>{const i=n(e,r+1);!s(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:z,isThenable:e=>e&&(p(e)||u(e))&&u(e.then)&&u(e.catch),setImmediate:M,asap:R};function L(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}F.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}});const $=L.prototype,H={};function U(e){return F.isPlainObject(e)||F.isArray(e)}function V(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=V(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{H[e]={value:e}})),Object.defineProperties(L,H),Object.defineProperty($,"isAxiosError",{value:!0}),L.from=(e,t,n,r,o,i)=>{const a=Object.create($);return F.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),L.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const q=F.toFlatObject(F,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!F.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(F.isDate(e))return e.toISOString();if(!s&&F.isBlob(e))throw new L("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(e)||F.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(F.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(F.isArray(e)&&function(e){return F.isArray(e)&&!e.some(U)}(e)||(F.isFileList(e)||F.endsWith(n,"[]"))&&(s=F.toArray(e)))return n=V(n),s.forEach((function(e,r){!F.isUndefined(e)&&null!==e&&t.append(!0===a?W([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!U(e)||(t.append(W(o,n,i),l(e)),!1)}const u=[],d=Object.assign(q,{defaultVisitor:c,convertValue:l,isVisitable:U});if(!F.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!F.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),F.forEach(n,(function(n,i){!0===(!(F.isUndefined(n)||null===n)&&o.call(t,n,F.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Y(e,t){this._pairs=[],e&&Z(e,this,t)}const K=Y.prototype;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J(e,t,n){if(!t)return e;const r=n&&n.encode||X,o=n&&n.serialize;let i;if(i=o?o(t,n):F.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}K.append=function(e,t){this._pairs.push([e,t])},K.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Q=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Y,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ne="undefined"!=typeof window&&"undefined"!=typeof document,re="object"==typeof navigator&&navigator||void 0,oe=ne&&(!re||["ReactNative","NativeScript","NS"].indexOf(re.product)<0),ie="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ae=ne&&window.location.href||"http://localhost";var se={...Object.freeze({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserWebWorkerEnv:ie,hasStandardBrowserEnv:oe,navigator:re,origin:ae}),...te};function le(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&F.isArray(r)?r.length:i,s?(F.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&F.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&F.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,((e,r)=>{t(function(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ce={transitional:ee,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=F.isObject(e);if(o&&F.isHTMLForm(e)&&(e=new FormData(e)),F.isFormData(e))return r?JSON.stringify(le(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e)||F.isReadableStream(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new se.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return se.isNode&&F.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=F.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(F.isString(e))try{return(0,JSON.parse)(e),F.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(F.isResponse(e)||F.isReadableStream(e))return e;if(e&&F.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw L.from(e,L.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],(e=>{ce.headers[e]={}}));var ue=ce;const de=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pe=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:F.isArray(e)?e.map(he):String(e)}function me(e,t,n,r,o){return F.isFunction(r)?r.call(this,t,n):(o&&(t=n),F.isString(t)?F.isString(r)?-1!==t.indexOf(r):F.isRegExp(r)?r.test(t):void 0:void 0)}class ge{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=fe(t);if(!o)throw new Error("header name must be a non-empty string");const i=F.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=he(e))}const i=(e,t)=>F.forEach(e,((e,n)=>o(e,n,t)));if(F.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(F.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&de[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(F.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=fe(e)){const n=F.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(F.isFunction(t))return t.call(this,e,n);if(F.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e)){const n=F.findKey(this,e);return!(!n||void 0===this[n]||t&&!me(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=fe(e)){const o=F.findKey(n,e);!o||t&&!me(0,n[o],o,t)||(delete n[o],r=!0)}}return F.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!me(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return F.forEach(this,((r,o)=>{const i=F.findKey(n,o);if(i)return t[i]=he(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=he(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return F.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&F.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[pe]=this[pe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=fe(e);t[r]||(function(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return F.isArray(e)?e.forEach(r):r(e),this}}ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(ge.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),F.freezeMethods(ge);var ve=ge;function ye(e,t){const n=this||ue,r=t||n,o=ve.from(r.headers);let i=r.data;return F.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function be(e){return!(!e||!e.__CANCEL__)}function we(e,t,n){L.call(this,null==e?"canceled":e,L.ERR_CANCELED,t,n),this.name="CanceledError"}function xe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}F.inherits(we,L,{__CANCEL__:!0});const Ee=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Ce=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ke=e=>(...t)=>F.asap((()=>e(...t)));var Se=se.hasStandardBrowserEnv?function(){const e=se.navigator&&/(msie|trident)/i.test(se.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=F.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ie=se.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];F.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),F.isString(r)&&a.push("path="+r),F.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Te(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _e=e=>e instanceof ve?{...e}:e;function Oe(e,t){t=t||{};const n={};function r(e,t,n){return F.isPlainObject(e)&&F.isPlainObject(t)?F.merge.call({caseless:n},e,t):F.isPlainObject(t)?F.merge({},t):F.isArray(t)?t.slice():t}function o(e,t,n){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!F.isUndefined(t))return r(void 0,t)}function a(e,t){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(_e(e),_e(t),!0)};return F.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);F.isUndefined(a)&&i!==s||(n[r]=a)})),n}var je=e=>{const t=Oe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ve.from(s),t.url=J(Te(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),F.isFormData(r))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(se.hasStandardBrowserEnv&&(o&&F.isFunction(o)&&(o=o(t)),o||!1!==o&&Se(t.url))){const e=i&&a&&Ie.read(a);e&&s.set(i,e)}return t},Ae="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=je(e);let o=r.data;const i=ve.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ve.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());xe((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new L("Request aborted",L.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new L("Network Error",L.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ee;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new L(t,o.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&F.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),F.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Ee(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Ee(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new we(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===se.protocols.indexOf(v)?n(new L("Unsupported protocol "+v+":",L.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Pe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof L?t:new we(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>F.asap(a),s}};const Be=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ne=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Be(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},De="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=De&&"function"==typeof ReadableStream,Me=De&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Re=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Fe=ze&&Re((()=>{let e=!1;const t=new Request(se.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Le=ze&&Re((()=>F.isReadableStream(new Response("").body))),$e={stream:Le&&(e=>e.body)};De&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!$e[t]&&($e[t]=F.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,n)})}))})(new Response);var He=De&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=je(e);c=c?(c+"").toLowerCase():"text";let f,h=Pe([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Fe&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=F.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(F.isBlob(e))return e.size;if(F.isSpecCompliantForm(e)){const t=new Request(se.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return F.isArrayBufferView(e)||F.isArrayBuffer(e)?e.byteLength:(F.isURLSearchParams(e)&&(e+=""),F.isString(e)?(await Me(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(F.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Ce(g,Ee(ke(l)));r=Ne(n.body,65536,e,t)}}F.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f);const a=Le&&("stream"===c||"response"===c);if(Le&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=F.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Ce(t,Ee(ke(s),!0))||[];i=new Response(Ne(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await $e[F.findKey($e,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{xe(t,n,{data:v,headers:ve.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new L("Network Error",L.ERR_NETWORK,e,f),{cause:t.cause||t});throw L.from(t,t&&t.code,e,f)}});const Ue={http:null,xhr:Ae,fetch:He};F.forEach(Ue,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ve=e=>`- ${e}`,We=e=>F.isFunction(e)||null===e||!1===e;var qe=e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!We(n)&&(r=Ue[(t=String(n)).toLowerCase()],void 0===r))throw new L(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new L("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ve).join("\n"):" "+Ve(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ze(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function Ge(e){return Ze(e),e.headers=ve.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qe(e.adapter||ue.adapter)(e).then((function(t){return Ze(e),t.data=ye.call(e,e.transformResponse,t),t.headers=ve.from(t.headers),t}),(function(t){return be(t)||(Ze(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=ve.from(t.response.headers))),Promise.reject(t)}))}const Ye={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ye[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ke={};Ye.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new L(r(o," has been removed"+(t?" in "+t:"")),L.ERR_DEPRECATED);return t&&!Ke[o]&&(Ke[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Xe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new L("option "+i+" must be "+n,L.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}},validators:Ye};const Je=Xe.validators;class Qe{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Xe.assertOptions(n,{silentJSONParsing:Je.transitional(Je.boolean),forcedJSONParsing:Je.transitional(Je.boolean),clarifyTimeoutError:Je.transitional(Je.boolean)},!1),null!=r&&(F.isFunction(r)?t.paramsSerializer={serialize:r}:Xe.assertOptions(r,{encode:Je.function,serialize:Je.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&F.merge(o.common,o[t.method]);o&&F.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ve.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Ge.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Ge.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return J(Te((e=Oe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}F.forEach(["delete","get","head","options"],(function(e){Qe.prototype[e]=function(t,n){return this.request(Oe(n||{},{method:e,url:t,data:(n||{}).data}))}})),F.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Oe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Qe.prototype[e]=t(),Qe.prototype[e+"Form"]=t(!0)}));var et=Qe;class tt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new we(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new tt((function(t){e=t}));return{token:t,cancel:e}}}var nt=tt;const rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rt).forEach((([e,t])=>{rt[t]=e}));var ot=rt;const it=function t(n){const r=new et(n),o=e(et.prototype.request,r);return F.extend(o,et.prototype,r,{allOwnKeys:!0}),F.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Oe(n,e))},o}(ue);return it.Axios=et,it.CanceledError=we,it.CancelToken=nt,it.isCancel=be,it.VERSION="1.7.7",it.toFormData=Z,it.AxiosError=L,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=function(e){return function(t){return e.apply(null,t)}},it.isAxiosError=function(e){return F.isObject(e)&&!0===e.isAxiosError},it.mergeConfig=Oe,it.AxiosHeaders=ve,it.formToJSON=e=>le(F.isHTMLForm(e)?new FormData(e):e),it.getAdapter=qe,it.HttpStatusCode=ot,it.default=it,gA=it}var wA,xA,EA,CA,kA,SA={exports:{}};function IA(){if(xA)return wA;function e(e){this.message=e}return xA=1,e.prototype=new Error,e.prototype.name="InvalidCharacterError",wA="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=n.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}}function TA(){if(CA)return EA;CA=1;var e=IA();return EA=function(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(e(t).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(n)}catch(t){return e(n)}}}var _A,OA={};function jA(){return _A||(_A=1,Object.defineProperty(OA,"__esModule",{value:!0}),OA.MAX_UNIX_TIME=OA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=OA.PUBLIC_ACCESS_TOKEN_PAYLOAD=OA.DEFAULT_MOCKING_VALUES=OA.IDP_ACCESS_TOKEN_ENDPOINT=OA.LOCAL_STORAGE_JWT_EXPIRY=OA.LOCAL_STORAGE_JWT=OA.LOCAL_STORAGE_JWT_TOKEN=OA.SIGN_OPTIONS=void 0,OA.SIGN_OPTIONS={issuer:"Bynder",subject:"someone@bynder.com",audience:"bynder.com",expiresIn:"12h",algorithm:"RS256"},OA.LOCAL_STORAGE_JWT_TOKEN="jwt_access_token",OA.LOCAL_STORAGE_JWT="jwt",OA.LOCAL_STORAGE_JWT_EXPIRY="jwt_expiry",OA.IDP_ACCESS_TOKEN_ENDPOINT="/v7/idp/access-tokens/by-session",OA.DEFAULT_MOCKING_VALUES={ACCOUNT_ID:"b05f9df8-cd3b-4b30-b57b-5b45ffaac62f",PROFILE_ID:"03cedc27-8755-4849-8b26-3e41e2709a21",USER_ID:"ab851f80-916b-4e12-a49c-b70e6ab1f817"},OA.PUBLIC_ACCESS_TOKEN_PAYLOAD={accountId:"",userId:"",profileId:"",groupIds:[],modulePermissions:[]},OA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=3e5,OA.MAX_UNIX_TIME=9999999999999),OA}var AA,PA,BA={};function NA(){if(AA)return BA;AA=1,Object.defineProperty(BA,"__esModule",{value:!0}),BA.removeAccessToken=BA.loadAccessToken=BA.storeAccessToken=void 0;var e=jA();return BA.storeAccessToken=function(t){localStorage.setItem(e.LOCAL_STORAGE_JWT,t.jwt),localStorage.setItem(e.LOCAL_STORAGE_JWT_EXPIRY,t.expiryTimestamp.toString())},BA.loadAccessToken=function(){return{jwt:localStorage.getItem(e.LOCAL_STORAGE_JWT),expiryTimestamp:parseInt(localStorage.getItem(e.LOCAL_STORAGE_JWT_EXPIRY),10)}},BA.removeAccessToken=function(){localStorage.removeItem(e.LOCAL_STORAGE_JWT),localStorage.removeItem(e.LOCAL_STORAGE_JWT_EXPIRY)},BA}var DA,zA,MA,RA,FA,LA=(PA||(PA=1,function(e){var t=yA&&yA.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=yA&&yA.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=yA&&yA.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=yA&&yA.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=yA&&yA.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=yA&&yA.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getJWT=e.invalidateAccessToken=e.mockAccessTokenResponse=e.buildAccessToken=void 0;var s=r(bA()),l=a(function(){if(kA)return SA.exports;kA=1;var e=TA();function t(e){this.message=e}return t.prototype=new Error,t.prototype.name="InvalidTokenError",SA.exports=function(n,r){if("string"!=typeof n)throw new t("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(e(n.split(".")[o]))}catch(e){throw new t("Invalid token specified: "+e.message)}},SA.exports.InvalidTokenError=t,SA.exports}()),c=jA(),u=r(NA()),d=function(t){return o(void 0,void 0,void 0,(function(){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),n=void 0,t?[3,2]:(r=c.IDP_ACCESS_TOKEN_ENDPOINT,[4,s.default.get(r,{withCredentials:!0})]);case 1:return n=i.sent(),[3,3];case 2:n=e.mockAccessTokenResponse(t),i.label=3;case 3:if(!n.data)throw new Error("Could not retrieve access token");return[2,e.buildAccessToken(n)];case 4:if(401===(l=o=i.sent()).response.status&&"true"===l.response.headers.is_public)return a=e.mockAccessTokenResponse(c.PUBLIC_ACCESS_TOKEN_PAYLOAD),[2,e.buildAccessToken(a)];throw o;case 5:return[2]}var l}))}))};e.buildAccessToken=function(e){return{jwt:e.data.access_token,expiryTimestamp:e.data.expires_in}},e.mockAccessTokenResponse=function(e){return{data:{access_token:"JWT generation deprecated in this js-access-token-lib version",expires_in:c.MAX_UNIX_TIME,token_type:"bearer"},status:200,statusText:"OK",headers:{},config:{headers:new s.AxiosHeaders}}},e.invalidateAccessToken=function(){u.removeAccessToken()},e.getJWT=function(t){return o(void 0,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return[4,u.loadAccessToken()];case 1:return(n=r.sent()).jwt&&!function(e){return 1e3*l.default(e.jwt).exp-c.MS_REFRESH_TOKEN_BEFORE_EXPIRY<Date.now()}(n)?[3,3]:[4,d(t)];case 2:n=r.sent(),u.storeAccessToken(n),function(t){var n=1e3*t.expiryTimestamp;setTimeout(e.invalidateAccessToken,n)}(n),r.label=3;case 3:return[2,n.jwt]}}))}))},window.addEventListener("beforeunload",e.invalidateAccessToken)}(yA)),yA),$A={exports:{}},HA={},UA={exports:{}};function VA(){return zA?DA:(zA=1,DA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function WA(){if(RA)return MA;RA=1;var e=VA();function t(){}function n(){}return n.resetWarningCache=t,MA=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},MA}function qA(){return FA||(FA=1,UA.exports=WA()()),UA.exports}function ZA(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ZA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function GA(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ZA(e))&&(r&&(r+=" "),r+=t);return r}var YA,KA=y(Object.freeze({__proto__:null,clsx:GA,default:GA})),XA={},JA={};function QA(){return YA||(YA=1,Object.defineProperty(JA,"__esModule",{value:!0}),JA.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},JA.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},JA.int=function(e){return parseInt(e,10)},JA.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},JA.isNum=function(e){return"number"==typeof e&&!isNaN(e)}),JA}var eP,tP,nP={};function rP(){if(tP)return XA;tP=1,Object.defineProperty(XA,"__esModule",{value:!0}),XA.addClassName=a,XA.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},XA.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&a(e.body,"react-draggable-transparent-selection")},XA.createCSSTransform=function(e,n){const r=i(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},XA.createSVGTransform=function(e,t){return i(e,t,"")},XA.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},XA.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},XA.getTranslation=i,XA.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},XA.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},XA.matchesSelector=o,XA.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},XA.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},XA.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},XA.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},XA.removeClassName=s,XA.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},XA.removeUserSelectStyles=function(e){if(e)try{if(e.body&&s(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=QA(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(void 0);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(function(){if(eP)return nP;eP=1,Object.defineProperty(nP,"__esModule",{value:!0}),nP.browserPrefixToKey=n,nP.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},nP.default=void 0,nP.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(r in o)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in o)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return nP.default=t(),nP}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function o(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function i(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return XA}var oP,iP={};function aP(){if(oP)return iP;oP=1,Object.defineProperty(iP,"__esModule",{value:!0}),iP.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},iP.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},iP.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),a=n(t);return i?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:a,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},iP.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},iP.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=n(r);if("string"==typeof a){const{ownerDocument:n}=s,r=n.defaultView;let o;if(o="parent"===a?s.parentNode:n.querySelector(a),!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=o,l=r.getComputedStyle(s),c=r.getComputedStyle(i);a={left:-s.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-s.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(s)-s.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(s)-s.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}return(0,e.isNum)(a.right)&&(o=Math.min(o,a.right)),(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,e.isNum)(a.left)&&(o=Math.max(o,a.left)),(0,e.isNum)(a.top)&&(i=Math.max(i,a.top)),[o,i]},iP.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const a=n(o),s=o.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,s,o.props.scale)},iP.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var e=QA(),t=rP();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return iP}var sP,lP,cP,uP,dP={},pP={};function fP(){return sP||(sP=1,Object.defineProperty(pP,"__esModule",{value:!0}),pP.default=function(){}),pP}function hP(){if(lP)return dP;lP=1,Object.defineProperty(dP,"__esModule",{value:!0}),dP.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),n=l(qA()),r=l(h),o=rP(),i=aP(),a=QA(),s=l(fP());function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=p,m=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,o.getTouchIdentifier)(e);this.touchIdentifier=r;const a=(0,i.getControlPosition)(e,r,this);if(null==a)return;const{x:l,y:c}=a,u=(0,i.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",u),(0,s.default)("calling",this.props.onStart),!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=l,this.lastY=c,(0,o.addEvent)(n,f.move,this.handleDrag),(0,o.addEvent)(n,f.stop,this.handleDragStop))})),u(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);if((0,s.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),u(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const a=(0,i.createCoreData)(this,n,r);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(l.ownerDocument,f.move,this.handleDrag),(0,o.removeEvent)(l.ownerDocument,f.stop,this.handleDragStop))})),u(this,"onMouseDown",(e=>(f=p,this.handleDragStart(e)))),u(this,"onMouseUp",(e=>(f=p,this.handleDragStop(e)))),u(this,"onTouchStart",(e=>(f=d,this.handleDragStart(e)))),u(this,"onTouchEnd",(e=>(f=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,d.move,this.handleDrag),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(t,d.stop,this.handleDragStop),(0,o.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return dP.default=m,u(m,"displayName","DraggableCore"),u(m,"propTypes",{allowAnyClick:n.default.bool,children:n.default.node.isRequired,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:n.default.arrayOf(n.default.number),handle:n.default.string,cancel:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),u(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),dP}function mP(){return cP||(cP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),r=d(qA()),o=d(h),i=d(KA),a=rP(),s=aP(),l=QA(),c=d(hP()),u=d(fP());function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function m(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends n.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{if((0,u.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:r,defaultPosition:o,defaultClassName:l,defaultClassNameDragging:u,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(p)||this.state.dragging,w=p||o,x={x:(0,s.canDragX)(this)&&b?this.state.x:w.x,y:(0,s.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(x,h):v=(0,a.createCSSTransform)(x,h);const E=(0,i.default)(r.props.className||"",l,{[u]:this.state.dragging,[d]:this.state.dragged});return n.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:E,style:{...r.props.style,...v},transform:y}))}}e.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),m(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(HA)),HA}var gP=function(){if(uP)return $A.exports;uP=1;const{default:e,DraggableCore:t}=mP();return $A.exports=e,$A.exports.default=e,$A.exports.DraggableCore=t,$A.exports}(),vP=v(gP);function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yP(Object(n),!0).forEach((function(t){CP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wP(){wP=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new j(r||[]);return o(a,"_invoke",{value:I(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var w={};c(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(A([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=b.prototype=v.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function xP(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function EP(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xP(i,r,o,a,s,"next",e)}function s(e){xP(i,r,o,a,s,"throw",e)}a(void 0)}))}}function CP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(){return kP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kP.apply(this,arguments)}function SP(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function IP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function TP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||OP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _P(e){return function(e){if(Array.isArray(e))return jP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OP(e,t){if(e){if("string"==typeof e)return jP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jP(e,t):void 0}}function jP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var AP=["theme"];lc.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],bc.fontStackBase,bc.fontSizeBase,bc.lineHeightBase,bc.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?ic(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],bc.spacing4,bc.fontSize75):ic(["height:40px !important;padding:0 "," !important;"],bc.spacing5)}),(function(e){var t=e.theme,n=IP(e,AP);if("primary-dark"===n.variant){var r=ic(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],bc.componentButtonPrimaryBorderActive,bc.componentButtonPrimaryFillActive,bc.componentButtonPrimaryColorActive);return ic(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],bc.componentButtonPrimaryFill,bc.componentButtonPrimaryColor,n.isPressed&&r,bc.componentButtonPrimaryBorderHover,bc.componentButtonPrimaryFillHover,bc.componentButtonPrimaryColorHover,bc.elevation1,bc.componentButtonPrimaryFillFocus,bc.componentButtonPrimaryColorFocus,bc.componentButtonPrimaryBorderFocus,bc.componentButtonPrimaryFocusRing,r,bc.componentButtonPrimaryBorderDisabled,bc.componentButtonPrimaryFillDisabled,bc.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=ic(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return ic(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=ic(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return ic(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var PP=lc.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);lc(PP).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(bc.spacing2," * -1)"):bc.spacing3}),bc.spacing2),lc(PP).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],bc.spacing2,bc.spacing3);var BP,NP=dc(["100%{transform:rotate(360deg);}"]),DP=dc(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);lc.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],NP),lc.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],DP),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(BP||(BP={}));var zP,MP,RP,FP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),LP=lc(FP).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));lc.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===BP.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),LP,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),lc.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),lc(FP).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),lc(FP).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),lc.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),lc.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),uc(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(zP||(zP={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(MP||(MP={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(RP||(RP={})),lc.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var $P=lc.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),HP=lc($P).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));lc($P).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),lc($P).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),lc.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),HP,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),lc.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),lc.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),lc.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var UP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),VP=lc(UP).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));lc.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?bc.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),VP,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?ic(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),lc.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),lc.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),lc(UP).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),lc(UP).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),lc.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),lc.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case MP.COLOR:return e.theme.legacy.colorPrimary;case MP.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var WP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);lc(WP).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),lc.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?ic(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),lc.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),lc.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),lc(WP).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),lc.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),lc.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),lc.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],bc.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),lc.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),lc.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],bc.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var qP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);lc(qP).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),lc.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),lc.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),lc.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),lc.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),lc.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),lc.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var ZP=lc.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));lc(ZP).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),lc(ZP).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),lc.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),lc.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),lc.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var GP=lc.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);lc.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),lc.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),lc.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var YP=lc.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);lc(YP).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),lc.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),lc.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),lc.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),lc.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var KP,XP,JP=lc.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),QP=lc.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),JP);lc.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),lc.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),lc(GP).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],bc.spacing6,bc.spacing6),lc.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],bc.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(KP||(KP={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(XP||(XP={})),lc.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var eB=lc.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));lc.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:XP.LEFT){case XP.RIGHT:return ic(["top:110%;right:0;"]);case XP.CENTER:return ic(["top:110%;left:50%;transform:translateX(-50%);"]);case XP.TOP:return ic(["top:auto;bottom:110%;"]);case XP.LEFT:default:return ic(["top:110%;left:0;"])}}(e.position)})),lc.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],QP);var tB=lc.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));lc.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),QP,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),tB);var nB=ic(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),rB=ic(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));lc.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),lc(eB).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),lc.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],nB,rB,(function(e){return e.theme.legacy.colorRichBlack50}));var oB=lc.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),lc.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var iB=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);lc(iB).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),lc(iB).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),oB,(function(e){return e.theme.legacy.colorIconActive})),lc.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),lc.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),lc.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),lc.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&ic(["background-color:",";"],e.theme.legacy.colorRichBlack03)}));var aB="44px";lc.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),lc.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),lc.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),lc.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),lc.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],aB),lc.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var sB=lc.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));lc(sB).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),lc(sB).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var lB=lc.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],aB);lc(lB).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),lc(lB).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var cB=lc.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],aB);lc(cB).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),lc(cB).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var uB=["isOpen"],dB="dat-menu-pointer-events-wrapper";function pB(e){var n=e.presetURL,r=e.alwaysVisible;return t.createElement(Jm,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=IP(e,uB);return t.createElement(fB,{isVisible:r||n},t.createElement(hu,bP(bP({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(DE,null),"aria-label":"More options"})))}},t.createElement(ZE.CopyToClipboard,{text:n,onCopy:function(){Rv({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Jm.Item,{icon:t.createElement(bE,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Jm.Divider,null),t.createElement(Jm.Item,{icon:t.createElement(fE,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Jm.Divider,null),t.createElement(Jm.Item,{icon:t.createElement(CE,null),onClick:function(){var e=function(e){var t,n,r,o,i,a,s,l,c,u="([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})",d="([^/]*)",p="(.*)/transform",f={preset:new RegExp("".concat(p,"/").concat("([a-zA-Z0-9_-]+)","/").concat(u,"/").concat("([a-zA-Z0-9_-]+)*","$").concat(d)),transform:new RegExp("".concat(p,"/").concat(u,"/").concat(d))},h="";if(f.preset.test(e)){var m=TP(e.match(f.preset),5);s=m[1],h=m[2],l=m[3],c=m[4]}else if(f.transform.test(e)){var g=TP(e.match(f.transform),4);s=g[1],l=g[2],c=g[3]}var v=(null!==(t=null===(n=h)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0,y=null!==(r=null===(o=c)||void 0===o?void 0:o.split("?")[0])&&void 0!==r?r:"",b=null!==(i=null===(a=c)||void 0===a?void 0:a.split("?")[1])&&void 0!==i?i:"",w=b.length>0?"&":"",x=v?"".concat(h,"-").concat(l):y,E=h.length?"".concat(h,"/"):"";return"".concat(s,"/transform/").concat(E).concat(l,"/").concat(x,"?").concat(b).concat(w,"download=true")}(n);window.location.replace(e)}},"Download"))}var fB=lc.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-0"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),"."+dB),hB=function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()},mB=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},gB=lc.div.withConfig({displayName:"ItemContainer",componentId:"sc-eq72z0-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";",""],bc.spacing3,bc.spacing4,bc.spacing3,(function(e){return e.isSelected&&bc.gray25}),(function(e){return e.isDisabled?"":"\n\t&:hover {\n\t\tbackground: ".concat(bc.gray25,";\n\t\tcursor: pointer;\n\t}")})),vB=lc.div.withConfig({displayName:"ItemDetails",componentId:"sc-eq72z0-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),yB=lc.p.withConfig({displayName:"Title",componentId:"sc-eq72z0-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],bc.fontSize100,bc.lineHeightText,bc.gray800,bc.spacing4),bB=lc.p.withConfig({displayName:"Subtitle",componentId:"sc-eq72z0-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],bc.gray600,bc.fontSize100,bc.lineHeightText,bc.spacing4),wB=lc.div.withConfig({displayName:"Container",componentId:"sc-eq72z0-4"})(["padding:0px ",";"],bc.spacing4),xB=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,s=e.isSelected,l=e.baseURL,c=TP(l.split("/transform"),1)[0],u="Base"===n?"":"".concat(n,"/"),d=mB(l),p="/transform/".concat(u).concat(d,"/"),f=EB(c,p);return t.createElement(gB,{className:dB,onClick:r,isSelected:s},t.createElement(Ah,{variant:"content",imageUrl:f}),t.createElement(vB,null,t.createElement(yB,null,n),t.createElement(bB,null,o)),!a&&t.createElement(pB,{alwaysVisible:!1,presetURL:"".concat(c).concat(p)}))},EB=function(e,t){return"".concat(e).concat(t,"?io=transform:fit,width:80")},CB=t.memo(xB),kB=function(e){var n=e.name,r=e.id,i=e.baseURL,a=e.onPresetSelected,s=e.selectedPreset,l=e.presets,c=e.presetGroupingActive,u=TP(o(!1),2),d=u[0],p=u[1],f=d?t.createElement(KE,null):t.createElement(XE,null),h=l.filter((function(e){return e.groupId===r})),m=h.length>0;return c?t.createElement(t.Fragment,null,t.createElement(gB,{className:dB,onClick:m?function(){return p((function(e){return!e}))}:void 0,isSelected:!1,isDisabled:!m},t.createElement(Ah,{size:"m",icon:t.createElement(uC,null)}),t.createElement(vB,null,t.createElement(yB,null,n)),m&&f),t.createElement(wB,null,d&&h.map((function(e){return t.createElement(CB,{baseURL:i,key:e.id,onSelect:function(){return a(e.name)},name:e.name,subtitle:"",isSelected:s===e.name})})))):null},SB=t.memo(kB),IB=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL,a=e.presetGroupingActive,s=r.filter((function(e){return"Preset"===e.type})).length;return t.createElement(wB,null,t.createElement(TB,null,"Base transformation"),t.createElement(CB,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),s>0&&t.createElement(TB,null,s," Presets"),r.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var s,l=e.name===o,c="Group"===e.type;return a&&(null==e||null===(s=e.groupId)||void 0===s?void 0:s.length)>0?null:c?t.createElement(SB,{key:e.id,name:e.name,id:e.id,baseURL:i,onPresetSelected:n,selectedPreset:o,presets:r,presetGroupingActive:a}):t.createElement(CB,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:l})})))},TB=lc.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],bc.gray800,bc.spacing5,bc.spacing5,bc.spacing4),_B=t.memo(IB);function OB(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var jB,AB=function(e){switch(e.type){case"fill":case"crop":return t.createElement(sC,null);case"fit":return t.createElement(JE,null);case"extend":return t.createElement(gE,null);case"scale":return t.createElement(EE,null);case"rotate":return t.createElement(AE,null);case"flip":case"mirror":return t.createElement(iC,null);case"border":return t.createElement(tC,null);case"background":return t.createElement(QE,null);case"trim":return t.createElement(lC,null);case"opacity":return t.createElement(hC,null);case"sepia":return t.createElement(rC,null);case"contrast":return t.createElement(aC,null);case"brightness":return t.createElement(xE,null);case"grayscale":return t.createElement(PE,null);case"blur":return t.createElement(eC,null);case"sharpness":return t.createElement(cC,null);case"saturation":return t.createElement(SE,null);case"text":return t.createElement(dC,null);case"image":return t.createElement(fC,null);case"box":return t.createElement(oC,null);case"advanced":return t.createElement(vC,null);case"multiple":return t.createElement(vE,null);case"removebg":return t.createElement(gC,null);default:return null}};function PB(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(BB,null,t.createElement(cg.Label,null,r),n,t.createElement(cg.HelperText,null,o))}!function(e){e.fill="fill",e.crop="crop",e.fit="fit",e.extend="extend",e.scale="scale",e.rotate="rotate",e.flip="flip",e.mirror="mirror",e.border="border",e.background="background",e.removebg="removebg",e.trim="trim",e.empty=""}(jB||(jB={}));var BB=lc(cg.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),NB={transformation:null,group:null,label:"Select a transform"},DB=[{label:"Background",transformation:jB.background,group:"transform"},{label:"Border",transformation:jB.border,group:"transform"},{label:"Crop",transformation:jB.crop,group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:jB.removebg,group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:jB.extend,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:jB.fill,group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:jB.fit,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:jB.flip,secondaryTransformation:jB.mirror,group:"transform"},{label:"Rotate",transformation:jB.rotate,group:"transform"},{label:"Scale",transformation:jB.scale,group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:jB.trim,group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Image overlay",transformation:"image",group:"overlay"},{label:"Color overlay",transformation:"box",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function zB(e){var n,r=DB.find((function(t){return[t.transformation,t.secondaryTransformation].includes(e.transformation)}))||NB;return t.createElement(PB,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement($v,{"aria-label":"Transformation",onChange:function(t){var n=DB.find((function(e){return[e.transformation,e.secondaryTransformation].includes(t)})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(AB,{type:r.transformation})},t.createElement($v.SectionTitle,null,"Transforms"),DB.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement($v.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AB,{type:e.transformation})},e.label)})),t.createElement($v.Divider,null),t.createElement($v.SectionTitle,null,"Filters"),DB.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement($v.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AB,{type:e.transformation})},e.label)})),t.createElement($v.Divider,null),t.createElement($v.SectionTitle,null,"Overlay"),DB.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement($v.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AB,{type:e.transformation})},e.label)}))))}var MB,RB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!function(e){return"number"==typeof e&&!isNaN(e)}(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},FB=function(e){return e&&e>0?e.toString():""},LB={type:"Preset",name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0,groupId:"",redirectPublicLinks:!1},$B={id:"",transform:null,overlay:null,filter:null};!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(MB||(MB={}));var HB={name:"Open Sans",id:"opensans"},UB={type:"Preset",groupId:"",name:"",content:{io:[]},redirectPublicLinks:!1},VB={id:"",transform:null,overlay:null,filter:null},WB=function(e){switch(e){case"fill":case"fit":case"scale":return bP(bP({},VB),{},{height:1e3,width:1e3});case"extend":return bP(bP({},VB),{},{height:1e3,width:1e3,background:"FFFFFF"});case"crop":return bP(bP({},VB),{},{height:1e3,width:1e3,path:"square"});case"background":return bP(bP({},VB),{},{color:"FFFFFF"});case"border":return bP(bP({},VB),{},{color:"FFFFFF",width:1});case"rotate":return bP(bP({},VB),{},{angle:0});case"opacity":return bP(bP({},VB),{},{amount:100});case"blur":return bP(bP({},VB),{},{radius:0});case"text":return bP(bP({},VB),{},{content:"",font:HB.name,size:64,color:"FFFFFFFF",gravity:"center",padding:20,angle:0});case"image":return bP(bP({},VB),{},{opacity:50,angle:0,gravity:"center"});case"box":return bP(bP({},VB),{},{color:"00AAFF",opacity:50});case"brightness":case"contrast":case"sharpness":case"saturation":return bP(bP({},VB),{},{amount:0})}};function qB(e,t){var n,r=function(){return e.content.io.map((function(e){return bP({},e)}))};switch(t.type){case"init":return function(e){var t;if(e){var n=bP({},e);return null==n||null===(t=n.content)||void 0===t||null===(t=t.io)||void 0===t||t.forEach((function(e){e.id||(e.id=bC())})),n}}(t.payload)||LB;case"edit":return bP(bP({isValid:!0},t.payload),{},{content:bP(bP({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return bP(bP({},e),{},{id:bC()})}))})});case"addTransformation":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:[].concat(_P(r()),[bP(bP({},VB),{},{id:t.payload.id,transform:jB.fill})])})});case"deleteTransformation":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return bP(bP({},e),{},(CP(n={},t.type,t.payload),CP(n,"content",bP(bP({},e.content),{},{io:r()})),n));case"redirectPublicLinksTnPreset":return bP(bP({},e),{},{redirectPublicLinks:t.payload});case"format":case"quality":return bP(bP({},e),{},{content:bP(bP({},e.content),{},CP({io:r()},t.type,t.payload))});case"focuspoint":return bP(bP({},e),{},{content:bP(bP({},e.content),{},CP({io:r()},t.type,t.payload.value))});case"transformation":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bP({},e):bP(bP({},WB(t.payload.value)),{},CP({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bP({},e):bP(bP({},e),{},CP({},t.type,t.payload.value))}))})});case"opacity":case"asset":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bP({},e):bP(bP({},e),{},CP({},t.type,t.payload.value.toString()))}))})});case"groupId":return bP(bP({},e),{},{groupId:t.payload});default:return e}}var ZB=t.createContext({}),GB=function(){return r(ZB)},YB=function(e){var n=e.children,r=TP(p(qB,UB),2),o=r[0],a=r[1],s=i((function(){return{transformationsState:o,transformationsDispatch:a}}),[o,a]);return t.createElement(ZB.Provider,{value:s},n)},KB=9e3;function XB(e){var n=e.id,r=e.height,i=void 0===r?0:r,a=e.width,s=void 0===a?0:a,l=e.showLock,c=void 0!==l&&l,u=GB().transformationsDispatch,d=TP(o(!1),2),p=d[0],f=d[1],h=TP(o(1),2),m=h[0],g=h[1],v=t.createElement(QB,null,p?t.createElement(mE,null):t.createElement(hE,null)),y=FB(s),b=FB(i);return t.createElement(PB,{label:"Dimensions"},t.createElement(JB,null,t.createElement(eN,null,t.createElement(wh,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(tN,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=RB(t,KB);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/m,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),c?t.createElement(hu,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(nN,null),t.createElement(eN,null,t.createElement(wh,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(tN,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=RB(t,KB);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*m,id:n}}):g(s&&r?s/r:1)},iconRight:t.createElement("span",null,"px")}))))}var JB=lc.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),QB=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],bc.gray400a),eN=lc.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),tN=lc.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],bc.spacing6),nN=lc.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],bc.spacing4);function rN(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,s=e.max;return t.createElement(PB,{label:i},t.createElement(ny,{value:o,onChange:n,min:a,max:s,inputPosition:"right"}))}function oN(e){var n=e.io,r=GB().transformationsDispatch;return t.createElement(PB,{label:"Angle"},t.createElement(wh,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(YE,null),iconRight:t.createElement("span",null,"°")}))}var iN=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],aN=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],sN=function(e){return["topleft","top","topright"].includes(e)?"top":["bottomleft","bottom","bottomright"].includes(e)?"bottom":"center"},lN=function(e){return["topleft","left","bottomleft"].includes(e)?"left":["topright","right","bottomright"].includes(e)?"right":"center"};function cN(e){var n=e.label,r=e.gravity,i=e.onChange,a=aN.findIndex((function(e){return e.value===lN(r)})),s=iN.findIndex((function(e){return e.value===sN(r)})),l=TP(o(aN[a]),2),c=l[0],u=l[1],d=TP(o(iN[s]),2),p=d[0],f=d[1],h=function(e){switch(i(e),e){case"topleft":f(iN.find((function(e){return"top"===e.value}))),u(aN.find((function(e){return"left"===e.value})));break;case"top":f(iN.find((function(e){return"top"===e.value}))),u(aN.find((function(e){return"center"===e.value})));break;case"topright":f(iN.find((function(e){return"top"===e.value}))),u(aN.find((function(e){return"right"===e.value})));break;case"left":f(iN.find((function(e){return"center"===e.value}))),u(aN.find((function(e){return"left"===e.value})));break;case"center":f(iN.find((function(e){return"center"===e.value}))),u(aN.find((function(e){return"center"===e.value})));break;case"right":f(iN.find((function(e){return"center"===e.value}))),u(aN.find((function(e){return"right"===e.value})));break;case"bottomleft":f(iN.find((function(e){return"bottom"===e.value}))),u(aN.find((function(e){return"left"===e.value})));break;case"bottom":f(iN.find((function(e){return"bottom"===e.value}))),u(aN.find((function(e){return"center"===e.value})));break;case"bottomright":f(iN.find((function(e){return"bottom"===e.value}))),u(aN.find((function(e){return"right"===e.value})))}};return t.createElement(PB,{label:n},t.createElement(Yd,null,t.createElement(fN,null,t.createElement(mN,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(gN,{isSelected:"topleft"===r,onClick:function(){return h("topleft")}}),t.createElement(gN,{isSelected:"top"===r,onClick:function(){return h("top")}}),t.createElement(gN,{isSelected:"topright"===r,onClick:function(){return h("topright")}}),t.createElement(gN,{isSelected:"left"===r,onClick:function(){return h("left")}}),t.createElement(gN,{isSelected:"center"===r,onClick:function(){return h("center")}}),t.createElement(gN,{isSelected:"right"===r,onClick:function(){return h("right")}}),t.createElement(gN,{isSelected:"bottomleft"===r,onClick:function(){return h("bottomleft")}}),t.createElement(gN,{isSelected:"bottom"===r,onClick:function(){return h("bottom")}}),t.createElement(gN,{isSelected:"bottomright"===r,onClick:function(){return h("bottomright")}}))),t.createElement(hN,{direction:"column",justifyContent:"space-between"},t.createElement($v,{"aria-label":"Horizontal position",onChange:function(e){switch(u(aN.find((function(t){return t.value===e}))),e){case"left":"top"===p.value&&i("topleft"),"center"===p.value&&i("left"),"bottom"===p.value&&i("bottomleft");break;case"center":"top"===p.value&&i("top"),"center"===p.value&&i("center"),"bottom"===p.value&&i("bottom");break;case"right":"top"===p.value&&i("topright"),"center"===p.value&&i("right"),"bottom"===p.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(pC,null)},aN.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.value},e.label)}))),t.createElement($v,{"aria-label":"Vertical position",onChange:function(e){switch(f(iN.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:p.value,label:p.label,icon:t.createElement(yC,null)},iN.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.value},e.label)}))))))}var uN,dN,pN,fN=lc.div.withConfig({displayName:"SquareFlexContainer",componentId:"sc-ci11hg-0"})(["width:92px;margin-right:16px;"]),hN=lc(Yd).withConfig({displayName:"DropdownFlex",componentId:"sc-ci11hg-1"})(["height:92px;"]),mN=lc(Yd).withConfig({displayName:"SquareFlex",componentId:"sc-ci11hg-2"})(["width:92px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],bc.spacing5,bc.gray25,bc.gray100a,bc.radiusMedium),gN=lc.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-3"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],bc.gray10,bc.gray100a,bc.radiusSmall,bc.gray25a,(function(e){return e.isSelected&&ic(["border:2px solid ",";background:",";"],bc.blue500,bc.blue100)}));function vN(e){if(2===e.length){var t=parseInt(e,16);return Math.floor(Math.round(t/255*100))}}function yN(e){var n,r=e.io,o=e.ioColorProp,i=void 0===o?"color":o,a=e.label,s=void 0===a?"Color":a,l=e.dispatchType,c=void 0===l?"color":l,u=GB().transformationsDispatch;function d(){var e;return null!==(e=r[i].toString())&&void 0!==e?e:""}return t.createElement(PB,{label:s},t.createElement(Yd,null,t.createElement(Xh,{onChange:function(e){var t,n,o=e.color,i=e.opacity,a=Math.min(100,i),s="#"===o[0]?o.substring(1):o,l=(t=a.toString(),(n=Math.round(255*parseInt(t,10)/100).toString(16).toUpperCase()).length<2?"0".concat(n):n);u({type:c,payload:{value:"".concat(s).concat(l).toUpperCase(),id:r.id}})},value:{color:"#".concat(d().substring(0,6).toUpperCase()),opacity:null!==(n=vN(d().substring(6)))&&void 0!==n?n:100},trigger:function(e){var n,o=kP({},(SP(e),e));return t.createElement(wh,{maxLength:8,value:null===(n=d())||void 0===n?void 0:n.toUpperCase(),prefix:"#",isInvalid:!new RegExp("^[a-fA-F0-9]{8}$|^[a-fA-F0-9]{6}$|^[a-fA-F0-9]{3}$").test(r[i].toString()),icon:t.createElement(gh,bP(bP({label:"Color Thumbnail"},o),{},{onClick:function(e){e.stopPropagation(),o.onClick()},icon:t.createElement(Ah,{variant:"content",backgroundColor:"#".concat(d()),shape:"circle",size:"xs"})})),onChange:function(e){u({type:c,payload:{value:e,id:r.id}})}})}})))}var bN=function(e){return e.data},wN=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},xN=null===(uN=document.querySelector('meta[name="x-csrf-token"]'))||void 0===uN?void 0:uN.getAttribute("content"),EN={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(dN=window)||void 0===dN?void 0:dN.csrf)||(null===(pN=window)||void 0===pN||null===(pN=pN.Bynder)||void 0===pN?void 0:pN.csrf_token)||xN},CN=kS.create({headers:EN});function kN(e,t){return CN.get(e,t).then(bN).catch(wN)}function SN(e,t,n){return CN.post(e,t,n).then(bN).catch(wN)}function IN(e,t,n){return CN.put(e,t,n).then(bN).catch(wN)}function TN(e,t){return CN.delete(e,t).then(bN).catch(wN)}var _N={getUploadedFonts:function(){return kN("/v7/fonts/portal/")},getFonts:function(e,t,n){return kN("/v7/fonts/",{params:bP(bP({},e?{pageSize:e}:null),n?{searchTerm:n}:null)})}},ON=function(e){var n=e.fontFamilyLabel,r=e.defaultFontFamilyLabel,s=e.fontFamily,l=e.setFontFamily,c=e.availableFonts,u=e.availableUploadedFonts,d=e.defaultFont,p=e.isDisabled,f=e.actionButton,h=void 0===f?null:f,m=TP(o(""),2),g=m[0],v=m[1],y=function(e){var t=e.searchFont,n=e.availableFonts,r=e.availableUploadedFonts,i=e.defaultFont,s=TP(o(n),2),l=s[0],c=s[1],u=TP(o(r),2),d=u[0],p=u[1],f=TP(o(!1),2),h=f[0],m=f[1],g=TP(o(!1),2),v=g[0],y=g[1];a((function(){c(n),p(r)}),[n,r]);var b=oE((function(e){m(!0),_N.getFonts(20,"",e).then((function(t){var n=t.fonts;if(e){var o=d.filter((function(t){return t.searchable_font_family_name.includes(e)}));p(o)}else p(r);c(e?n:[i].concat(_P(n)))})).catch((function(e){Rv({title:e.toString(),variant:"error"}),console.error("error=",e)})).finally((function(){m(!1)}))}),500);return a((function(){t.length>0&&b(t),v&&(b(t),y(!1))}),[v,t,b]),{fontResults:l,fontUploadedResults:d,isLoading:h,setClearFont:y}}({searchFont:g,availableFonts:c,availableUploadedFonts:u,defaultFont:d}),b=y.fontResults,w=y.fontUploadedResults,x=y.isLoading,E=y.setClearFont,C=i((function(){return bC()}),[]);function k(){v(""),E(!0)}var S=function(e){return e.length>0?e.map((function(e){return t.createElement($v.Item,{key:e.font_id,value:e.font_id},e.font_family_name)})):t.createElement($v.Text,null,"No Results")},I=function(){return t.createElement($v.Text,null,"Loading")};return t.createElement(cg.Group,null,t.createElement(cg.Label,{id:C},n),t.createElement(jN,{condition:!!h},t.createElement($v,{"aria-labelledby":C,value:s.font_id,onChange:function(e){var t=w.find((function(t){return t.font_id===e}));if(t)l(t);else{var n=b.find((function(t){return t.font_id===e}));n&&l(n)}},label:s.font_family_name||r,isDisabled:p},t.createElement($v.SearchInput,{value:g,onChange:v,onBlur:k,onKeyDown:function(e){"Backspace"===e.key&&g.length<=1&&k()},placeholder:"Search","aria-label":"Search Options"}),t.createElement($v.SectionTitle,null,"Uploaded Fonts"),x?I():S(w),t.createElement($v.Divider,null),t.createElement($v.SectionTitle,null,"Available Fonts"),x?I():S(b)),h))},jN=function(e){var n=e.condition,r=e.children;return n?t.createElement(AN,null,r):r},AN=lc.div.withConfig({displayName:"Wrapper",componentId:"sc-swectq-0"})(["display:flex;gap:",";> div{flex:1 1 auto;}"],bc.spacing3),PN=["Regular"];function BN(e){var n,r,i,s,l,c=e.io,u=GB().transformationsDispatch,d=TP(o(),2),p=d[0],f=d[1],h=TP(o([]),2),m=h[0],g=h[1],v=TP(o([]),2),y=v[0],b=v[1];a((function(){Promise.all([_N.getFonts(20),_N.getUploadedFonts()]).then((function(e){var t=TP(e,2),n=t[0],r=t[1];b(n.fonts),g(r)}))}),[]);var w={font_id:null!==(n=c.font)&&void 0!==n?n:HB.id,font_family_name:null!==(r=c.font)&&void 0!==r?r:HB.name,variants:[],searchable_font_family_name:null!==(i=c.font)&&void 0!==i?i:HB.id};return t.createElement(t.Fragment,null,t.createElement(PB,{label:"Text"},t.createElement(fy,{placeholder:"Add Text Here",value:c.content,onChange:function(e){return u({type:"content",payload:{value:e,id:c.id}})}})),t.createElement(PB,{label:"Font"},t.createElement(ON,{fontFamilyLabel:"",defaultFontFamilyLabel:"",fontFamily:null!=p?p:w,setFontFamily:function(e){f(e),u({type:"font",payload:{value:e.font_family_name,id:c.id}})},availableFonts:y,availableUploadedFonts:m,defaultFont:w})),t.createElement(PB,{label:""},t.createElement(Yd,null,t.createElement(NN,null,t.createElement($v,{"aria-label":"Font style",value:c.fontType,label:c.fontType,onChange:function(e){return u({type:"fontType",payload:{value:e,id:c.id}})},isDisabled:!0},PN.map((function(e){return t.createElement($v.Item,{value:e,key:e},e)})))),t.createElement(DN,null,t.createElement(wh,{type:"number",value:null===(s=c.size)||void 0===s?void 0:s.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"size",payload:{value:parseInt(e,10),id:c.id}})}})))),t.createElement(yN,{label:"Text color",io:c}),t.createElement(cN,{label:"Position",gravity:c.gravity,onChange:function(e){return u({type:"gravity",payload:{value:e,id:c.id}})}}),t.createElement(PB,{label:"Padding"},t.createElement(wh,{type:"number",value:null===(l=c.padding)||void 0===l?void 0:l.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"padding",payload:{value:parseInt(e,10),id:c.id}})}})),t.createElement(oN,{io:c}))}var NN=lc.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],bc.spacing4),DN=lc.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function zN(e){var n=e.io;return t.createElement(t.Fragment,null,t.createElement(XB,{width:n.width,height:n.height,id:n.id}),t.createElement(yN,{io:n,label:"Background",dispatchType:"background",ioColorProp:"background"}))}var MN=[{label:"Rectangle",path:"square",icon:t.createElement(TE,null)},{label:"Ellipse",path:"circle",icon:t.createElement(OE,null)}],RN=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(mC,null)}];function FN(e){var n,r=e.onChange,o=e.shape,i=null!==(n=MN.find((function(e){return e.path===o})))&&void 0!==n?n:RN.find((function(e){return e.path===o}));return t.createElement(PB,{label:"Path"},t.createElement($v,bP({"aria-label":"Path",onChange:r,value:o},i),MN.map((function(e){return t.createElement($v.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement($v.Divider,null),RN.map((function(e){return t.createElement($v.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}function LN(e){var n=e.onChange,r=TP(e.focusPoint||[],2),o=r[0],i=r[1],a=function(e,t){var r="string"==typeof e?parseFloat(e):e,a=r>=100?100:r;n(["x"===t?a:o,"y"===t?a:i])};return t.createElement(UN,{justifyContent:"space-between",gap:"3",alignItems:"center"},t.createElement(HN,null,t.createElement(wh,{"aria-label":"Focus point position X",placeholder:"50",type:"number",value:(null==o?void 0:o.toString())||"",icon:t.createElement($N,null,"X"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"x")}})),t.createElement($N,null,"×"),t.createElement(HN,null,t.createElement(wh,{"aria-label":"Focus point position Y",placeholder:"50",type:"number",value:(null==i?void 0:i.toString())||"",icon:t.createElement($N,null,"Y"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"y")}})))}var $N=lc.div.withConfig({displayName:"IconText",componentId:"sc-19e3sbn-0"})(["display:flex;justify-content:center;width:24px;"]),HN=lc.div.withConfig({displayName:"FlexInput",componentId:"sc-19e3sbn-1"})(["min-width:0;"]),UN=lc(Yd).withConfig({displayName:"StyledFlex",componentId:"sc-19e3sbn-2"})(["margin-bottom:",";"],bc.spacing2),VN=[{label:"Focus point",focus:"point",icon:t.createElement(IE,null)},{label:"Override focus point",focus:"override",icon:t.createElement(_E,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(SS,null)}];function WN(e){var n=e.type,r=e.gravity,i=e.onChangeGravity,s=e.onChangeFocus,l=e.focusPoint,c=e.showEditor,u=e.setShowEditor,d=TP(o(!1),2),p=d[0],f=d[1],h=TP(o(!1),2),m=h[0],g=h[1],v=TP(o(null),2),y=v[0],b=v[1];a((function(){var e,t,n;y||(l?(n=VN.find((function(e){return"override"===e.focus})),b(n),g(!0)):r?(t=VN.find((function(e){return"gravity"===e.focus})),b(t)):(e=VN.find((function(e){return"point"===e.focus})),b(e)))}),[l,r,y]);var w={gravity:"Select the direction from where the transformation is being applied.",override:"Select a new focus point by editing the percentages below or directly clicking on the asset with the editor.",point:"Uses the predefined focus point of the asset."};return t.createElement(t.Fragment,null,t.createElement(PB,{label:"Focus",helpText:w[null==y?void 0:y.focus]||w.point},t.createElement($v,bP(bP({"aria-label":"Focus",onChange:function(e){var t="gravity"===e,n="override"===e,r="point"===e;u&&u({show:!1});var o=VN.find((function(t){return t.focus===e}));b(o),f(t),g(n),!n&&u&&u({show:!1}),r&&s(void 0),t?(i("center"),s(void 0)):i(null)}},y),{},{value:null==y?void 0:y.focus}),VN.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement($v.Divider,null):null,t.createElement($v.Item,{value:e.focus,icon:e.icon},e.label))})))),p&&t.createElement(cN,{label:"Gravity",gravity:r,onChange:i}),m&&t.createElement(t.Fragment,null,t.createElement(LN,{onChange:s,focusPoint:l}),u&&t.createElement(qN,{isChecked:c.type===n&&c.show,isDisabled:c.type&&c.type!==n,onChange:function(){c.type&&c.type!==n||u({type:c.show?void 0:n,show:!c.show})}},t.createElement(Yd,{gap:"4",direction:"row",alignItems:"center"},t.createElement(jE,null),t.createElement("span",null,"Show real time editor")))))}var qN=lc(sm).withConfig({displayName:"StyledSwitch",componentId:"sc-18kzar2-0"})(["margin-top:",";"],bc.spacing5);function ZN(e){var n=e.io,r=e.focuspoint,o=e.setShowEditor,i=e.showEditor,a=GB().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(FN,{shape:n.path,onChange:function(e){return a({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(XB,{width:n.width,height:n.height,id:n.id}),t.createElement(WN,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,showEditor:i,setShowEditor:o,type:"crop"})),"circle"===n.path&&t.createElement(rN,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return a({type:"blur",payload:{value:e,id:n.id}})}}))}var GN=500;function YN(e){var n=e.io,r=GB().transformationsDispatch,o=FB(n.width);return t.createElement(t.Fragment,null,t.createElement(yN,{io:n}),t.createElement(PB,{label:"Border"},t.createElement(wh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=RB(t,GN);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(nC,null),iconRight:t.createElement("span",null,"px")})))}function KN(e){var n=e.io,r=e.focusPoint,o=e.setShowEditor,i=e.showEditor,a=GB().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(XB,{width:n.width,height:n.height,id:n.id}),t.createElement(WN,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,setShowEditor:o,showEditor:i,type:"fill"}))}function XN(e){var n=e.io,r=GB().transformationsDispatch;return t.createElement(rN,{label:OB(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}})}function JN(e){var n=e.io,r=GB().transformationsDispatch;return t.createElement(rN,{label:"Blur",min:0,max:100,value:n.radius,onChange:function(e){return r({type:"radius",payload:{value:e,id:n.id}})}})}function QN(e){var n=e.io;return t.createElement(yN,{io:n})}var eD=3e3;function tD(e){var n=e.io,r=GB().transformationsDispatch,o=FB(n.padding);return t.createElement(PB,{label:"Padding"},t.createElement(Yd,null,t.createElement(rD,null,t.createElement(wh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=RB(t,eD);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(nC,null),iconRight:t.createElement("span",null,"px")}))))}var nD,rD=lc.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],bc.spacing4);function oD(e){var n=e.io,r=GB().transformationsDispatch,o=null==sD?void 0:sD[n.transform];return t.createElement(PB,{label:"Flip"},t.createElement(iD,null,t.createElement($v,{"aria-label":"Flip",value:n.transform,onChange:function(e){r({type:"transformation",payload:{group:"transform",value:e,id:n.id}})},label:o.label,icon:o.icon},[jB.mirror,jB.flip].map((function(e){return t.createElement($v.Item,{value:e,key:e,icon:sD[e].icon},sD[e].label)})))))}var iD=lc.div.withConfig({displayName:"FlexInputColor",componentId:"sc-keyng0-0"})(["min-width:88px;margin-right:",";"],bc.spacing4),aD=lc(ME).withConfig({displayName:"IconHorizontal",componentId:"sc-keyng0-1"})(["transform:rotate(90deg);"]),sD=(CP(nD={},jB.flip,{label:"Flip vertically",value:jB.flip,icon:t.createElement(ME,null)}),CP(nD,jB.mirror,{label:"Flip horizontally",value:jB.mirror,icon:t.createElement(aD,null)}),nD),lD=function(){var e=TP(o(""),2),t=e[0],n=e[1],r=function(){var e=EP(wP().mark((function e(){var t;return wP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LA.getJWT();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){r()}),[]),function(){return t}},cD=function(e){if(!pD(e))throw new Error("The value is not a UUID: ".concat(e));return"".concat(e.substring(0,23)).concat(e.substring(24)).toUpperCase()},uD=function(e){var t=e.toLowerCase().split("-");return t.splice(3,1,t[3].substring(0,4),t[3].substring(4)),t.join("-")},dD=function(e){var t=e.match(/(.*)\?mediaId=(.*)/);return t?t[2]:""},pD=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)},fD=["format","io","focuspoint"],hD=["id"];function mD(e){var t,n,r=e.content,o=r.format,i=r.io,a=r.focuspoint,s=IP(r,fD),l=function(){return i.map((function(e){var t=IP(e,hD);return bP({},Object.entries(bP({},t)).reduce((function(e,t){var n=TP(t,2),r=n[0],o=n[1];return o||""===o?bP(bP({},e),{},CP({},r,o)):e}),{}))}))};return bP(bP({},Object.entries(e).reduce((function(e,t){var n=TP(t,2),r=n[0],o=n[1];return["description","groupId","redirectPublicLinks"].includes(r)||o&&""!==o?bP(bP({},e),{},CP({},r,o)):e}),{})),{},{content:JSON.stringify((t=a&&("string"==typeof a?a:"".concat(a[0]/100,",").concat(a[1]/100)),n=t?bP(bP({},s),{},{focuspoint:t}):s,bP(bP({},n),{},""===o?{io:l()}:{format:o,io:l()})))})}var gD={getImageInfo:function(e){return kN("/api/v4/media/"+e)},addPreset:function(e){return SN("/v7/dat/presets/add",mD(e))},addGroup:function(e){return SN("/v7/dat/presets/groups/add",{name:e.name})},getAllPresets:function(){return kN("/v7/dat/presets/")},updatePreset:function(e){return IN("/v7/dat/presets/update",mD(e))},updateGroup:function(e){return IN("/v7/dat/presets/groups/update",e)},deletePreset:function(e){return TN("/v7/dat/presets/delete",{data:{id:e}})},deletePresetGroup:function(e,t){return TN("/v7/dat/presets/groups/delete",{data:{id:e,includePresets:t}})}},vD="\n databaseId\n name\n url\n derivatives {\n thumbnail\n }";function yD(e){var n=e.io,r=GB().transformationsDispatch,i=TP(o(!1),2),s=i[0],l=i[1],c=TP(o(!1),2),u=c[0],d=c[1],p=TP(o({name:"",thumbnail:"",coldfusionUUID:""}),2),f=p[0],h=p[1],m=TP(o(void 0),2),g=m[0],v=m[1],y=n.asset&&n.asset.length&&""===f.thumbnail,b=lD();return a((function(){var e,t;y&&(e=n.asset,t=cD(e),d(!0),gD.getImageInfo(t).then((function(e){var n=e.name,r=e.thumbnails.mini;h({name:n,thumbnail:r,coldfusionUUID:t})})).finally((function(){d(!1)})))}),[y,n.asset]),a((function(){b()&&v({getAccessToken:b,hideLogout:!0})}),[b()]),t.createElement(PB,{label:"Image"},t.createElement(t.Fragment,null,t.createElement(bD,{className:dB,onClick:function(){return l(!0)},isSelected:!f.thumbnail.length},f.thumbnail.length||y?t.createElement(Ah,{variant:"content",imageUrl:f.thumbnail,backgroundColor:"rgb(255 255 255 / 0%)"},t.createElement(Ah.Overlay,{isLoading:u})):t.createElement(hu,{title:"Edit",icon:t.createElement(yE,null)}),t.createElement(wD,null,t.createElement(xD,null,u?"Loading":f.name.length?f.name:"Choose asset"))),t.createElement(kT,{isOpen:s,onClose:function(){return l(!1)}},t.createElement(p_,{authentication:g},t.createElement(mA,{mode:"SingleSelectFile",language:document.querySelector("html").getAttribute("lang")||"en",assetTypes:["IMAGE"],selectedAssets:f.coldfusionUUID.length?[f.coldfusionUUID]:[],onSuccess:function(e){var t=e[0],o=t.url,i=t.derivatives.thumbnail,a=t.name,s=o||"",c=dD(s),u=i||s;l(!1),h({name:a,thumbnail:u,coldfusionUUID:c}),r({type:"asset",payload:{value:uD(c),id:n.id}})},assetFieldSelection:vD})))))}var bD=lc.div.withConfig({displayName:"ItemContainer",componentId:"sc-bmwf6h-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],bc.spacing3,bc.spacing4,bc.spacing3,(function(e){return e.isSelected&&bc.gray25}),bc.gray25),wD=lc.div.withConfig({displayName:"ItemDetails",componentId:"sc-bmwf6h-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),xD=lc.p.withConfig({displayName:"Title",componentId:"sc-bmwf6h-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],bc.fontSize100,bc.lineHeightText,bc.gray800,bc.spacing4);function ED(e){var n,r=e.io,o=GB().transformationsDispatch;return t.createElement(PB,{label:"Opacity"},t.createElement(wh,{type:"number",placeholder:"100",onChange:function(e){var t=parseInt(e,10);o({type:"opacity",payload:{value:isNaN(t)?100:t,id:r.id}})},value:(null===(n=r.opacity)||void 0===n?void 0:n.toString())||"",iconRight:t.createElement("span",null,"%")}))}function CD(e){var n=e.io,r=GB().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(yD,{io:n}),t.createElement(ED,{io:n}),t.createElement(cN,{label:"Position",gravity:n.gravity,onChange:function(e){return r({type:"gravity",payload:{value:e,id:n.id}})}}),t.createElement(oN,{io:n}))}function kD(e){var n=e.color,r=e.onChange,i=e.onChangeValidation,a=TP(o(!0),2),s=a[0],l=a[1],c=function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);u(!!t),r(e)},u=function(e){l(e),i(e)};return t.createElement(Xh,{onChange:function(e){var t=e.substring(1);c(t.toUpperCase())},value:"#".concat(n),trigger:function(e){var r=kP({},(SP(e),e));return t.createElement(t.Fragment,null,t.createElement(wh,{isInvalid:!s,maxLength:6,value:null==n?void 0:n.toUpperCase(),prefix:"#",icon:t.createElement(gh,bP(bP({label:"Color Thumbnail"},r),{},{onClick:function(e){e.stopPropagation(),r.onClick()},icon:t.createElement(Ah,{variant:"content",backgroundColor:"#".concat(n),shape:"circle",size:"xs"})})),onChange:c}),!s&&t.createElement(cg.HelperText,{isInvalid:!s},"Please type a valid hex value"))}})}function SD(e){var n=e.io,r=GB().transformationsDispatch;return t.createElement(PB,{label:"Color"},t.createElement(Yd,null,t.createElement(ID,null,t.createElement(kD,{color:n.color,onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})}})),t.createElement(TD,null,t.createElement(wh,{type:"number",placeholder:"100",onChange:function(e){var t=isNaN(parseInt(e,10))?"0":e;r({type:"opacity",payload:{value:parseInt(t,10),id:n.id}})},value:n.opacity.toString(),iconRight:t.createElement("span",null,"%")}))))}var ID=lc.div.withConfig({displayName:"FlexInputColor",componentId:"sc-lch2dr-0"})(["min-width:0;margin-right:",";"],bc.spacing4),TD=lc.div.withConfig({displayName:"FlexInput",componentId:"sc-lch2dr-1"})(["min-width:0;"]);function _D(e){var n=e.io,r=e.focusPoint,o=e.showEditor,i=e.setShowEditor,a=GB().transformationsDispatch,s=["contrast","brightness","sharpness","saturation"].includes(n.filter),l=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(zB,{transformation:l,onChange:function(e){i&&i({show:!1}),a({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),(n.transform===jB.flip||n.transform===jB.mirror)&&t.createElement(oD,{io:n}),(n.transform===jB.fit||n.transform===jB.scale)&&t.createElement(XB,{width:n.width,height:n.height,id:n.id}),n.transform===jB.fill&&t.createElement(KN,{io:n,focusPoint:r,setShowEditor:i,showEditor:o}),n.transform===jB.background&&t.createElement(QN,{io:n}),n.transform===jB.rotate&&t.createElement(oN,{io:n}),n.transform===jB.border&&t.createElement(YN,{io:n}),n.transform===jB.extend&&t.createElement(zN,{io:n}),n.transform===jB.crop&&t.createElement(ZN,{io:n,focuspoint:r,setShowEditor:i,showEditor:o}),n.transform===jB.trim&&t.createElement(tD,{io:n}),"text"===n.overlay&&t.createElement(BN,{io:n}),"image"===n.overlay&&t.createElement(CD,{io:n}),"box"===n.overlay&&t.createElement(SD,{io:n}),"blur"===n.filter&&t.createElement(JN,{io:n}),"opacity"===n.filter&&t.createElement(XN,{io:n}),s&&t.createElement(rN,{label:OB(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return a({type:"amount",payload:{value:e,id:n.id}})}}))}var OD=[{label:"Auto (recommended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],jD=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function AD(e){var n,r,i=e.options,a=GB().transformationsDispatch,s="custom",l=TP(o(!1),2),c=l[0],u=l[1],d=(null===(n=OD.find((function(e){return e.value===i.format})))||void 0===n?void 0:n.label)||"Select Format",p=c?"Custom":(null===(r=jD.find((function(e){return e.value===String(i.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(PB,{label:"Format",helpText:"Set the output format"},t.createElement($v,{"aria-label":"Format",onChange:function(e){e===s?u(!0):a({type:"format",payload:e})},label:d,value:i.format},OD.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(PB,{label:"Quality"},t.createElement($v,{"aria-label":"Quality",onChange:function(e){var t=e===s;u(t);var n=t?100:Number(e);a({type:"quality",payload:n})},label:p,value:String(i.quality)},jD.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.label},e.label)})),t.createElement($v.Divider,null),t.createElement($v.Item,{value:s,key:"Custom"},"Custom"))),c&&t.createElement(PB,{label:""},t.createElement(ny,{value:i.quality,min:60,max:100,onChange:function(e){a({type:"quality",payload:Number(e)})},inputPosition:"right"})))}function PD(e){var t=TP(o(),2),n=t[0],r=t[1];return a((function(){var t;(t=e,kN("/v7/featuretreatments/treatment/".concat(t))).then((function(e){r(e.treatment)})).catch((function(t){var n;r("control"),console.error("Something went wrong while fetching the ".concat(e," Split treatment"),t),n=t,pi().captureException(n,void 0)}))}),[e]),n}var BD=function(e){var n,r=e.showEditor,i=e.setShowEditor,a=e.isFromPresets,s=TP(o([]),2),l=s[0],c=s[1],u=TP(o(!1),2),d=u[0],p=u[1],f=GB(),h=f.transformationsState,m=f.transformationsDispatch,g="on"===PD("redirect_public_links_to_dat");return t.createElement(qm,null,h.content.io.map((function(e,n){var o,a=l.includes(e.id),s=e.transform||e.overlay||e.filter,u=OB((o=s)===jB.mirror?jB.flip:o)||"New transformation",d=ND(e);return t.createElement(t.Fragment,{key:"".concat(e.id,"-").concat(n)},t.createElement(qm.Item,{subtext:d,thumbnail:t.createElement(Ah,{variant:"clean",icon:t.createElement(AB,{type:s}),shape:"square"}),rightElements:t.createElement(DD,{isExpanded:a,onDeleteClick:function(t){i&&["fill","crop"].includes(s)&&i({show:!1}),function(e,t){e.stopPropagation(),m({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return t=e.id,void(l.includes(t)?c((function(e){return e.filter((function(e){return e!==t}))})):c((function(e){return[].concat(_P(e),[t])})));var t}},u),a&&t.createElement(_D,{io:e,focusPoint:h.content.focuspoint,showEditor:r,setShowEditor:i,key:"".concat(e.id,"-transformation")}),t.createElement(qm.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(qm.Item,{key:"add-button",onClick:function(){var e=bC();m({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(_P(t),[e])})),i&&i({show:!1})},thumbnail:t.createElement(Ah,{icon:t.createElement(yE,null),shape:"square"})},"Add transformation"),t.createElement(qm.Divider,{key:"add-button-divider"}),t.createElement(qm.Item,{key:"advanced-button",subtext:"Format: ".concat((null===(n=h.content)||void 0===n||null===(n=n.format)||void 0===n?void 0:n.toUpperCase())||"Auto"," • Quality: ").concat(h.content.quality),thumbnail:t.createElement(Ah,{variant:"clean",icon:t.createElement(AB,{type:"advanced"}),shape:"square"}),rightElements:d?t.createElement(BE,null):t.createElement(NE,null),onClick:function(){p(!d)}},"Output options"),d&&t.createElement(AD,{options:h.content,key:"advanced-options"}),t.createElement(qm.Divider,{key:"redirect-public-links-divider"}),g&&a&&t.createElement(qm.Item,{checkedVariant:"switch",onClick:function(){m({type:"redirectPublicLinksTnPreset",payload:!h.redirectPublicLinks})},isChecked:h.redirectPublicLinks},"Redirect public links"))},ND=function(e){var t="Focus Point";e.gravity&&(t=OB(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",s=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(s&&"• "+s);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},DD=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(Yd,{alignItems:"center"},t.createElement(kp,{content:"Remove transformation"},t.createElement(hu,{variant:"clean",icon:t.createElement(pE,{fill:bc.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(BE,null):t.createElement(NE,null))};function zD(e){var n,r,o=e.showEditor,i=e.setShowEditor,a=null!==(n=null===(r=GB().transformationsState.content)||void 0===r||null===(r=r.io)||void 0===r?void 0:r.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(MD,null,t.createElement(FD,null,"Transformations"),t.createElement(LD,null,1===a?"".concat(a," transformation applied"):a>1?"".concat(a," transformations applied"):"No transformations")),t.createElement(RD,null,t.createElement(BD,{isFromPresets:!1,showEditor:o,setShowEditor:i})))}var MD=lc.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],bc.spacing6,bc.white,bc.spacing4),RD=lc.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),FD=lc.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],bc.gray800),LD=lc.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],bc.gray600),$D=function(){return t.createElement(UD,null,t.createElement(WD,null),t.createElement(qD,null,t.createElement(ZD,{large:!0}),t.createElement(ZD,null)))},HD=function(){return t.createElement(GD,null)},UD=lc.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),VD=dc(["0%{background-color:","}100%{background-color:","}"],bc.gray50a,bc.gray100a),WD=lc.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],VD),qD=lc.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],bc.spacing4),ZD=lc.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],bc.spacing3,(function(e){return e.large?"110px":"60px"}),bc.radiusSmall,VD),GD=lc.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],VD),YD=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.selectedPreset,s=e.isLoading,l=e.baseURL,c=e.canViewPresets,u=e.canViewTransformations,d=e.showEditor,p=e.setShowEditor,f=GB(),h=f.transformationsState,m=f.transformationsDispatch,g="on"===PD("dat_presets_grouping");return a((function(){var e,t,n,o=!(null!=h&&null!==(e=h.content)&&void 0!==e&&null!==(e=e.io)&&void 0!==e&&e.length)&&(null==h||null===(t=h.content)||void 0===t?void 0:t.quality)===LB.content.quality&&(null==h||null===(n=h.content)||void 0===n?void 0:n.format)===LB.content.format;r===MB.transformations&&o&&m({type:"init"})}),[r,m,h]),t.createElement(KD,{direction:"column"},r===MB.presets?c?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement($D,{key:"preset-skeleton-".concat(e)})}))):t.createElement(_B,{baseURL:l,presets:o,onPresetSelected:n,selectedPreset:i,presetGroupingActive:g}):null:u?t.createElement(XD,null,t.createElement(zD,{showEditor:d,setShowEditor:p})):null)},KD=lc(Yd).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],bc.white),XD=lc.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],bc.spacing6);function JD(e){var n=e.url,r=l(null);return d((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(QD,null,t.createElement(ez,null,t.createElement(tz,null,t.createElement(zE,null)),t.createElement(nz,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(oz,null,n))),t.createElement(rz,null,t.createElement(kp,{content:"Copy URL"},t.createElement(ZE.CopyToClipboard,{text:n,onCopy:function(){Rv({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(hu,{variant:"clean",icon:t.createElement(wE,null),"aria-label":"Copy to clipboard"}))),t.createElement(pB,{alwaysVisible:!0,presetURL:n})))}var QD=lc.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],bc.white,bc.radiusLarge,bc.elevationStatic),ez=lc.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),tz=lc.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],bc.spacing5,bc.spacing4,bc.gray600),nz=lc.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],bc.gray800,bc.fontSize100),rz=lc.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],bc.spacing2),oz=lc.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]),iz=lc.div.withConfig({displayName:"ImageWrapper",componentId:"sc-1w8edrw-0"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&ic(["margin-bottom:",";"],bc.spacing8)})),az=lc.img.withConfig({displayName:"Image",componentId:"sc-1w8edrw-1"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(bc.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),sz=function(e,t){var n=TP(t,2),r=n[0],o=n[1],i=e.clientWidth*r/100,a=e.clientHeight*o/100;return[Math.ceil(i||0),Math.ceil(a||0)]},lz=function(e,t){var n=TP(t,2),r=n[0],o=n[1],i=r/e.clientWidth*100,a=o/e.clientHeight*100;return[Math.ceil(i||0),Math.ceil(a||0)]},cz=function(e){var t=e.point,n=e.renderedSize,r=e.background;if(n){var o=t-n/2,i=r-n;return o<0?0:o>i?i:o}},uz=lc.div.withConfig({displayName:"DivStyled",componentId:"sc-1sqkkxm-0"})(["position:absolute;top:0;left:auto;right:auto;bottom:0;right:0;z-index:9;text-align:center;height:","px;width:","px;"],(function(e){return e.height||0}),(function(e){return e.width||0})),dz=lc.img.withConfig({displayName:"StyledImage",componentId:"sc-1sqkkxm-1"})(["display:",";max-width:100%;max-height:100%;background:",";position:absolute;top:0;left:0;opacity:1;max-width:auto;max-height:auto;height:",";width:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(bc.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px"),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),pz=lc(uz).withConfig({displayName:"DraggableWrapper",componentId:"sc-1sqkkxm-2"})(["z-index:100;"]),fz=lc(dz).withConfig({displayName:"PreviewImage",componentId:"sc-1sqkkxm-3"})(["visibility:",";top:","px;left:","px;"],(function(e){return e.displayNone?"hidden":"visible"}),(function(e){return e.top||0}),(function(e){return e.left||0})),hz=lc.div.withConfig({displayName:"Wrapper",componentId:"sc-1sqkkxm-4"})(["display:flex;justify-content:center;text-align:center,position:relative;width:100%;background-color:#f1f1f1;"]),mz=lc(vP).withConfig({displayName:"StyledDraggable",componentId:"sc-1sqkkxm-5"})(["position:absolute;top:0;bottom:0;left:0;right:0;"]),gz=lc.img.withConfig({displayName:"StyledBackground",componentId:"sc-1sqkkxm-6"})(["display:",";max-width:100%;max-height:100%;background:",";opacity:0.5;display:block;"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(bc.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),vz=lc.div.withConfig({displayName:"DivFocusPoint",componentId:"sc-1sqkkxm-7"})(["position:absolute;cursor:move;height:80px;width:80px;margin:-40px;user-select:none;"]),yz=lc.div.withConfig({displayName:"StyledPreviewWrapper",componentId:"sc-1sqkkxm-8"})(["display:flex;justify-content:center;text-align:center;overflow:hidden;position:absolute;top:0;height:",";width:",";"],(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),bz=lc(fz).withConfig({displayName:"FillPreview",componentId:"sc-1sqkkxm-9"})(["object-fit:cover;width:100%;height:100%;object-fit:contain;"]),wz=lc(bz).withConfig({displayName:"FillPreviewInvisible",componentId:"sc-1sqkkxm-10"})(["visibility:hidden;opacity:0;"]),xz=lc.div.withConfig({displayName:"FillPreviewWrapper",componentId:"sc-1sqkkxm-11"})(["position:absolute;background-image:url('","');background-size:cover;background-position:",";height:",";width:",";top:","px;left:","px;"],(function(e){return e.background}),(function(e){return e.backgroundPosition}),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"}),(function(e){return e.top||0}),(function(e){return e.left||0})),Ez=lc.div.withConfig({displayName:"EditorMainDiv",componentId:"sc-1sqkkxm-12"})(["position:relative;display:flex;justify-content:center;text-align:center;max-height:100%;width:100%;"]);function Cz(){return t.createElement("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"40",cy:"40",r:"39.5",stroke:"white"}),t.createElement("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(1 0 0 -1 39 41)",fill:"white"}))}function kz(e){var n=e.url,r=e.isLoading,i=e.backgroundSize,a=e.setIsLoading,s=e.trackPos,l=e.focuspoint,c=e.type,u=e.baseURL,d=TP(o({}),2),p=d[0],f=d[1],h=TP(o(!0),2),m=h[0],g=h[1],v=TP(l||[50,50],2),y=v[0],b=v[1],w=TP(sz(i,[y,b]),2),x=w[0],E=w[1],C=function(e){var t=e.backgroundSize,n=e.renderedImageSize,r=e.type,o=TP(e.focuspoint,2),i=o[0],a=o[1];if(!t.naturalHeight)return{top:0,left:0};if("crop"===r){var s=cz({point:i,renderedSize:n.clientWidth,background:t.clientWidth});return{top:cz({point:a,renderedSize:n.clientHeight,background:t.clientHeight}),left:s}}var l=t.naturalWidth/t.naturalHeight>n.naturalWidth/n.naturalHeight;return Math.ceil(n.naturalWidth/n.naturalHeight)===Math.ceil(t.naturalWidth/t.naturalHeight)?{top:0,left:0}:l?{top:0,left:i-n.clientWidth/2}:{top:a-n.clientHeight/2,left:0}}({type:c,backgroundSize:i,renderedImageSize:p,focuspoint:[x||0,E||0]}),k=C.top,S=C.left,I=function(e){a(!1),function(e){var t,n,r=e.backgroundSize,o=e.setRenderedImageSize,i=e.type,a=e.img.target,s=a.naturalHeight,l=a.naturalWidth,c=l/s;if("crop"===i)t=r.clientWidth*l/r.naturalWidth,n=r.clientHeight*s/r.naturalHeight;else{t=r.clientWidth;var u=l*(n=r.clientHeight)==s*t;n*l<t*s?t=Math.floor(n*c):u||(n=Math.floor(t/c))}o({clientWidth:t,clientHeight:n,naturalHeight:s,naturalWidth:l})}({img:e,setRenderedImageSize:f,backgroundSize:i,type:c})},T=void 0===y||void 0===b||void 0===k||void 0===S,_=function(e,t,n){return e<0?0:e<=t-n?e:t-n};return t.createElement(yz,{width:i.clientWidth,height:i.clientHeight},t.createElement(uz,{width:i.clientWidth,height:i.clientHeight},"crop"===c?t.createElement(fz,{isImageLoading:r||!m,displayNone:T,width:p.clientWidth,height:p.clientHeight,top:k,left:S,src:n,onLoad:I}):t.createElement(t.Fragment,null,t.createElement(wz,{isImageLoading:r&&!m,top:k,left:S,src:n,onLoad:I}),t.createElement(xz,{top:_(k,i.clientHeight,p.clientHeight),left:_(S,i.clientWidth,p.clientWidth),background:u,backgroundPosition:"-".concat(_(S,i.clientWidth,p.clientWidth),"px -").concat(_(k,i.clientHeight,p.clientHeight),"px"),height:p.clientHeight,width:p.clientWidth}))),t.createElement(pz,{width:i.clientWidth,height:i.clientHeight},t.createElement(mz,{bounds:"parent",position:{x:x,y:E},onStart:function(){a(!0),g(!1)},onStop:function(e,t){s(t),g(!0)}},t.createElement(vz,null,t.createElement(Cz,null)))))}function Sz(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality,s=r.focuspoint;if(o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),"string"==typeof s&&n.push({key:"focuspoint",value:s}),Array.isArray(s)){var l=TP(s,2),c=l[0],u=l[1];(c||u)&&n.push({key:"focuspoint",value:"".concat((c||50)/100,",").concat((u||50)/100)})}return i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}function Iz(e){var n=e.url,r=e.baseURL,s=e.isLoading,l=e.setIsLoading,c=e.type,u=e.defaultValues,d=GB(),p=d.transformationsState,f=d.transformationsDispatch,h=TP(o({}),2),m=h[0],g=h[1],v=TP(o(r),2),y=v[0],b=v[1],w=TP(o(!0),2),x=w[0],E=w[1],C=TP(o(!1),2),k=C[0],S=C[1],I=i((function(){return bP(bP({},p),{},{content:bP(bP({},p.content),{},{focuspoint:void 0,io:p.content.io.filter((function(e){var t=e.transform;return!["crop","fill"].includes(t)}))})})}),[p]);a((function(){var e=Sz(I,u);b("".concat(r,"?").concat(e)),E(!1)}),[u,I,r]);var T=p.content.focuspoint;return t.createElement(Ez,{className:"Editor Main"},t.createElement(hz,null,t.createElement(gz,{id:"backgroundImage",src:y||r,alt:"",isImageLoading:s||x,onLoad:function(e){var t=e.target,n=t.clientHeight,r=t.clientWidth,o=t.naturalHeight,i=t.naturalWidth;g({clientHeight:n,clientWidth:r,naturalHeight:o,naturalWidth:i}),k||S(!0)}}),k&&t.createElement(kz,{type:c,url:n,baseURL:y||r,isLoading:s,backgroundSize:m,setIsLoading:l,trackPos:function(e){var t=[e.x||0,e.y||0],n=TP(lz(m,t),2);!function(e){f({type:"focuspoint",payload:{value:e,id:p.content.io[0].id}})}([n[0]||0,n[1]||0])},focuspoint:T})))}function Tz(e){var n=e.mediaInfo,r=e.url,s=e.canViewTransformations,c=e.hideBottomBar,u=e.activeTab,d=e.onBack,p=e.onDone,f=e.onApply,h=e.onShowTransformations,m=e.hasActiveChanges,g=e.showEditor,v=e.defaultValues,y=n.name,b=n.extension,w=n.baseURL,x=TP(o(!0),2),E=x[0],C=x[1],k=i((function(){return hB(r)}),[r]),S=l();return a((function(){var e;C(!0),null===(e=S.current)||void 0===e||e.blur()}),[r]),t.createElement(_z,null,t.createElement(Oz,{justifyContent:"space-between",alignItems:"center"},t.createElement(jz,null,t.createElement(hu,{ref:S,variant:"clean",icon:t.createElement(kE,null),"aria-label":"Go back",onClick:d})),t.createElement(Pz,null,y,".",b),u===MB.presets&&s&&t.createElement(Nz,{variant:"clean",onClick:h,icon:t.createElement(GE,null)},"Transform"),u===MB.transformations&&("function"==typeof f&&m?t.createElement(Az,null,t.createElement(Nz,{variant:"primary",onClick:f},"Apply transformations")):t.createElement(Nz,{variant:"primary",onClick:p},"Done"))),g.show?t.createElement(iz,{hideBottomBar:c},w&&t.createElement(Iz,{type:g.type,baseURL:w,url:k,isLoading:E,setIsLoading:C,defaultValues:v})):t.createElement(iz,{hideBottomBar:c},r&&t.createElement(az,{"data-testid":"previewImage",src:k,alt:"",isImageLoading:E,onLoad:function(){C(!1)}}),E&&t.createElement(HD,null)),!c&&t.createElement(Bz,null,t.createElement(JD,{url:r})))}var _z=lc.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-0"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),Oz=lc(Yd).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-1"})(["height:90px;width:100%;"]),jz=lc.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-2"})(["margin-left:",";"],bc.layoutSpacing1),Az=lc.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-3"})(["display:flex;gap:",";"],bc.spacing4),Pz=lc.span.withConfig({displayName:"ImageName",componentId:"sc-dpw9jp-4"})(["font-size:",";width:100%;line-height:24px;margin-left:",";"],bc.fontSize200,bc.spacing4),Bz=lc.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],bc.spacing5),Nz=lc(hu).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-6"})(["float:right;margin-right:",";"],bc.layoutSpacing1),Dz=["content"],zz=function(e){return e.content.io.map((function(e){return bP({},e)}))},Mz=function(e){var t=e.preset,n=e.ioId;return bP(bP({},t),{},{content:bP(bP({},t.content),{},{io:[].concat(_P(zz(t)),[bP(bP({},$B),{},{id:n,transform:jB.fill})])})})},Rz=function(e){var t=e.preset,n=e.ioId;return bP(bP({},t),{},{content:bP(bP({},t.content),{},{io:t.content.io.filter((function(e){return e.id!==n}))})})};function Fz(e,t){var n;switch(t.type){case"init":return LB;case"edit":return bP(bP({isValid:!0},t.payload),{},{content:bP(bP({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return bP(bP({},e),{},{id:bC()})}))}),redirectPublicLinks:t.payload.redirectPublicLinks||!1});case"addTransformation":return Mz({preset:e,ioId:t.payload.id});case"deleteTransformation":return Rz({preset:e,ioId:t.payload.id});case"isValid":case"name":case"description":return bP(bP({},e),{},(CP(n={},t.type,t.payload),CP(n,"content",bP(bP({},e.content),{},{io:zz(e)})),n));case"format":case"quality":return bP(bP({},e),{},{content:bP(bP({},e.content),{},CP({io:zz(e)},t.type,t.payload))});case"focuspoint":return bP(bP({},e),{},{content:bP(bP({},e.content),{},CP({io:zz(e)},t.type,t.payload.value))});case"transformation":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bP({},e):bP(bP({},WB(t.payload.value)),{},CP({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bP({},e):bP(bP({},e),{},CP({},t.type,t.payload.value))}))})});case"opacity":case"asset":return bP(bP({},e),{},{content:bP(bP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bP({},e):bP(bP({},e),{},CP({},t.type,t.payload.value.toString()))}))})});case"groupId":return bP(bP({},e),{},{groupId:t.payload});default:return e}}function Lz(e){var n,r,i=e.mediaInfo,s=e.canViewPresets,c=e.canViewTransformations,u=e.hideBottomBar,d=void 0!==u&&u,f=e.initialTransformations,h=e.onDone,m=e.onApply,g=e.onBack,v=s?MB.presets:MB.transformations,y=TP(o(i.baseURL),2),b=y[0],w=y[1],x=TP(o(v),2),E=x[0],C=x[1],k=TP(o(""),2),S=k[0],I=k[1],T=TP(o({show:!1}),2),_=T[0],O=T[1],j=GB(),A=j.transformationsState,P=j.transformationsDispatch,B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=bP(bP({},LB),{},{content:bP(bP({},LB.content),{},{io:t})}),r=TP(o([]),2),i=r[0],s=r[1],c=TP(o({}),2),u=c[0],d=c[1],f=TP(o(!1),2),h=f[0],m=f[1],g=TP(p(Fz,n),2),v=g[0],y=g[1],b=l(!0);a((function(){return e&&(m(!0),w()),function(){b.current=!1}}),[e]);var w=function(){gD.getAllPresets().then((function(e){b.current&&(s(function(e){var t,n,r=e.presets.map((function(e){var t=e.content;return bP(bP({},IP(e,Dz)),{},{type:"Preset",content:t&&JSON.parse(t)})})),o=null!==(t=null==e||null===(n=e.groups)||void 0===n?void 0:n.map((function(e){return bP(bP({},kP({},(SP(e),e))),{},{type:"Group"})})))&&void 0!==t?t:[];return r.concat(o)}(e)),d(function(e){var t=e.groups.reduce((function(e,t){return bP(bP({},e),{},CP({},t.id,bP(bP({},t),{},{presetCount:0})))}),{});return e.presets.forEach((function(e){var n=e.groupId;if(n&&t[n]){var r=t[n].presetCount;t[n].presetCount=r+1}})),t}(e)),m(!1))})).catch((function(e){b.current&&(m(!1),Rv({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presetsOrGroups:i,setPresetsOrGroups:s,setGroups:d,groups:u,preset:v,dispatch:y,isLoading:h,defaultValues:n}}(s,f),N=B.presetsOrGroups,D=B.isLoading,z=B.defaultValues,M=i.baseURL.split("/"),R=M[M.length-1],F=A.content.io.length>0,L=oE((function(){var e=A.content.io.length>0,t=A.content.format!==LB.content.format||A.content.quality!==LB.content.quality;if(e||t){var n=Sz(A,z);w("".concat(i.baseURL,"?").concat(n))}else w(i.baseURL)}),500);return a((function(){return L(),function(){return L.cancel()}}),[L,A,i.baseURL]),a((function(){var e,t;P({type:"focuspoint",payload:{value:[Math.floor(100*(null==i||null===(e=i.activeOriginalFocusPoint)||void 0===e?void 0:e.x)/i.width),Math.floor(100*(null==i||null===(t=i.activeOriginalFocusPoint)||void 0===t?void 0:t.y)/i.height)],id:void 0}})}),[null==i||null===(n=i.activeOriginalFocusPoint)||void 0===n?void 0:n.x,null==i||null===(r=i.activeOriginalFocusPoint)||void 0===r?void 0:r.y,i.height,i.width,P]),a((function(){s||c&&C(MB.transformations)}),[s,c]),t.createElement($z,null,t.createElement(Hz,{alignItems:"stretch"},t.createElement(Tz,{mediaInfo:i,url:b,canViewTransformations:c,activeTab:E,onApply:m?function(){return m(b,A)}:void 0,onBack:function(){return g(b,A)},hasActiveChanges:F,onDone:function(){var e=!s&&!F;O&&O({show:!1}),e?h(b,A):s&&C(MB.presets)},onShowTransformations:function(){c&&C(MB.transformations)},hideBottomBar:d,showEditor:_,defaultValues:z}),t.createElement(YD,{onPresetSelected:function(e){""!==e?w(i.baseURL.split("/transform")[0]+"/transform/".concat(e,"/").concat(mB(i.baseURL),"/").concat(R)):(P({type:"init"}),w(i.baseURL)),I(e)},activeTab:E,presets:N,selectedPreset:S,isLoading:D,baseURL:i.baseURL,canViewPresets:s,canViewTransformations:c,setShowEditor:O,showEditor:_})))}var $z=lc.div.withConfig({displayName:"MainWrapper",componentId:"sc-inplsu-0"})(["overflow:hidden;height:100%;width:100%;"]),Hz=lc(Yd).withConfig({displayName:"StyledFlex",componentId:"sc-inplsu-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;"]);lc(ff).withConfig({displayName:"StyledCheckbox",componentId:"sc-bpy0n2-0"})(["padding-top:",";padding-bottom:",";"],bc.spacing3,bc.spacing3),lc(Yd).withConfig({displayName:"PresetNameIconContainer",componentId:"sc-1xqeu8r-0"})(["padding-left:",";"],(function(e){return e.belongsToAGroup?bc.spacing5:"0"})),lc.div.withConfig({displayName:"DateContainer",componentId:"sc-1xqeu8r-1"})(["font-size:",";color:",";"],bc.fontSize75,bc.gray600),lc.div.withConfig({displayName:"Name",componentId:"sc-1xqeu8r-2"})(["font-size:",";color:",";flex:1;"],bc.fontSize100,bc.gray800),lc(Yd).withConfig({displayName:"DescriptionContainer",componentId:"sc-1xqeu8r-3"})(["flex-direction:column;flex:1;padding:0 ",";"],bc.spacing4),lc.div.withConfig({displayName:"Description",componentId:"sc-1xqeu8r-4"})(["font-size:",";color:",";"],bc.fontSize75,bc.gray600),lc(Yd).withConfig({displayName:"Actions",componentId:"sc-1xqeu8r-5"})(["margin-left:",";justify-content:end;"],bc.spacing4),lc(Yd).withConfig({displayName:"GroupNameIconContainer",componentId:"sc-1wo12bf-0"})([""]),lc(Yd).withConfig({displayName:"PresetGroupHeader",componentId:"sc-n34u1w-0"})(["z-index:1;position:sticky;z-index:1;top:var(--pageHeaderTopPosition);margin-bottom:",";padding:"," ",";background:",";"],bc.spacing7,bc.spacing5,bc.spacing6,bc.white),lc(Yd).withConfig({displayName:"PresetGroupHeaderTitle",componentId:"sc-n34u1w-1"})(["flex:1 0 0;align-self:stretch;height:40px;"]),lc.label.withConfig({displayName:"HeaderText",componentId:"sc-n34u1w-2"})([""," min-width:200px;flex:1 0 0;"],Gd.uiTextL),lc.header.withConfig({displayName:"Header",componentId:"sc-1ty8ai5-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],bc.spacing4,bc.spacing7,bc.spacing5,bc.spacing6,bc.white),lc.h3.withConfig({displayName:"Title",componentId:"sc-1ty8ai5-1"})([""," margin:0;"],Gd.uiTextL);var Uz=lc.p.withConfig({displayName:"Text",componentId:"sc-17jdf49-0"})([""," color:",";margin:0;"],Gd.uiTextS,bc.gray800a);lc(Uz).withConfig({displayName:"SubTitle",componentId:"sc-17jdf49-1"})([""," font-weight:bold;margin:0;margin-bottom:0;"],Gd.uiTextS),lc(Uz).withConfig({displayName:"Title",componentId:"sc-17jdf49-2"})([""," font-weight:bold;margin:0;margin-bottom:",";"],Gd.uiTextS,bc.spacing3),lc.p.withConfig({displayName:"TransparentText",componentId:"sc-17jdf49-3"})([""," color:",";margin-bottom:",";margin-top:",";height:20px;"],Gd.uiTextS,bc.gray400a,bc.spacing1,bc.spacing1),lc.div.withConfig({displayName:"TitleIconWrapper",componentId:"sc-17jdf49-4"})(["display:flex;align-items:center;display:flex;padding:"," 0px;"],bc.spacing3);var Vz,Wz,qz,Zz,Gz,Yz,Kz,Xz,Jz,Qz,eM,tM=function(e){return lc(e).withConfig({componentId:"sc-17jdf49-5"})(["margin-right:",";width:12px;height:12px;color:",";"],bc.spacing3,bc.gray800a)};function nM(){return(nM=EP(wP().mark((function e(t){var n;return wP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;case 2:return e.prev=2,e.next=5,LA.getJWT();case 5:if(n=e.sent){e.next=8;break}return e.abrupt("return",t);case 8:return e.abrupt("return",bP(bP({},t),{},{headers:bP(bP({},t.headers),{},{Authorization:"Bearer ".concat(n)})}));case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}lc(Yd).attrs((function(){return{justifyContent:"space-between",alignItems:"center",gap:"1"}})).withConfig({displayName:"StyledFlex",componentId:"sc-17jdf49-6"})(["margin:0;padding:0;height:20px;margin-bottom:",";","{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}"],bc.spacing1,Uz),lc.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-17jdf49-7"})(["margin:"," 0 0 0;display:flex;justify-content:center;"],bc.spacing5),lc.div.withConfig({displayName:"MainWrapper",componentId:"sc-17jdf49-8"})(["margin-bottom:",";"],bc.spacing7),function(e){e.totalViews="Total views",e.website="Website",e.datPresets="DAT Presets",e.transformations="Transformations",e.typeOfUrl="Type of URL"}(Vz||(Vz={})),function(e){e.table="table",e.graph="graph"}(Wz||(Wz={})),function(e){e.timestamp="timestamp",e.website="website",e.transformation="transformation",e.preset="preset"}(qz||(qz={})),function(e){e.views="views",e.use="use"}(Zz||(Zz={})),function(e){e.viewsOverTime="viewsOverTime",e.websitesOverTime="websitesOverTime",e.transformations="transformations",e.presets="presets"}(Gz||(Gz={})),CN.interceptors.request.use((function(e){return function(e){return nM.apply(this,arguments)}(e)}),(function(e){return Promise.reject(e)})),CP(Yz={},Gz.viewsOverTime,""),CP(Yz,Gz.websitesOverTime,"&aggregation=website"),CP(Yz,Gz.transformations,"&aggregation=transformations"),CP(Yz,Gz.presets,"&aggregation=presets"),lc.div.withConfig({displayName:"TooltipGuide",componentId:"sc-ikpb3e-0"})(["width:10px;height:10px;postion:absolute;top:","px;left:","px;"],(function(e){return e.top||0}),(function(e){return e.left||0})),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-1eva1zc-0"})(["height:350px;width:100%;max-width:",";position:relative;"],(function(e){return e.maxWidth||"auto"})),Vz.totalViews,CP(Kz={},Gz.websitesOverTime,{sortingColumn:Zz.views,isAscending:!1,dateFiltering:{interval:"months"}}),CP(Kz,Gz.transformations,{sortingColumn:Zz.use,isAscending:!1,dateFiltering:{interval:"months"}}),CP(Kz,Gz.viewsOverTime,{sortingColumn:qz.timestamp,isAscending:!1,dateFiltering:{interval:"months"}}),CP(Kz,Gz.presets,{sortingColumn:Zz.views,isAscending:!1,dateFiltering:{interval:"months"}}),function(e){e.metricType="Metric Type",e.visualization="Visualization",e.metricsModal="Metrics Modal",e.statisticsTab="Statistics Tab"}(Xz||(Xz={})),function(e){e.selected="Selected",e.opened="Opened",e.closed="Closed"}(Jz||(Jz={})),CP(Qz={},Gz.viewsOverTime,{key:qz.timestamp,value:Zz.views}),CP(Qz,Gz.websitesOverTime,{key:qz.website,value:Zz.views}),CP(Qz,Gz.transformations,{key:qz.transformation,value:Zz.use}),CP(Qz,Gz.presets,{key:qz.preset,value:Zz.views}),CP(eM={},qz.timestamp,"Month"),CP(eM,qz.website,"Website"),CP(eM,qz.transformation,"Transformation"),CP(eM,qz.preset,"Preset"),CP(eM,Zz.views,"Views"),CP(eM,Zz.use,"Usage"),lc.div.withConfig({displayName:"Container",componentId:"sc-12s3spg-0"})(["display:flex;flex:none;flex-grow:1;flex-direction:column;gap:",";align-items:flex-start;order:0;padding:"," 0;"],bc.spacing2,bc.spacing5),lc.div.withConfig({displayName:"ItemsRow",componentId:"sc-12s3spg-1"})(["display:flex;flex:none;flex-grow:0;flex-direction:row;gap:",";align-items:flex-start;order:0;height:68px;padding:0 ",";border-radius:5px;"],bc.spacing2,bc.spacing5);var rM=lc.div.withConfig({displayName:"ItemUnselected",componentId:"sc-12s3spg-2"})(["flex:none;flex-grow:1;order:0;width:",";height:68px;border-radius:5px;background:",";cursor:pointer;&:hover{background-color:",";color:",";}",""],(function(e){return 3===e.itemsPerRow?"165px":"123px"}),bc.gray25,bc.gray50,bc.gray800,(function(e){return e.isDotted?"\n\t\t::after {\n\t\t\tcontent: '.';\n\t\t\tposition: relative;\n\t\t\tbottom: ".concat(bc.spacing5,";\n\t\t\tdisplay: grid;\n\t\t\twidth: 4px;\n\t\t\theight: 4px;\n\t\t\tpadding: 0;\n\t\t\tborder-radius: 4px;\n\t\t\tbackground: #09f;\n\t\t\tcolor: #09f0;\n\t\t\tleft: ").concat(3===e.itemsPerRow?"80px":"60px",";\n\t\t}\n\t"):""}));lc(rM).withConfig({displayName:"ItemSelected",componentId:"sc-12s3spg-3"})(["background:",";color:",";&:hover{background-color:",";color:",";}",""],bc.blue500,bc.white,bc.blue600,bc.white,(function(e){return e.isDotted?"\n\t::after {\n\t\tbackground: ".concat(bc.white,";\n\t}\n\t"):""})),lc(rM).withConfig({displayName:"ItemInBetween",componentId:"sc-12s3spg-4"})(["background:",";color:",";&:hover{background-color:",";}"],bc.blue100,bc.gray800,bc.blue200),lc.div.withConfig({displayName:"ItemText",componentId:"sc-12s3spg-5"})(["position:relative;display:flex;flex-direction:column;align-items:center;height:40px;padding-top:14px;padding-bottom:14px;"," letter-spacing:0.01em;text-align:center;"],Gd.uiTextM),lc.div.withConfig({displayName:"StyledContainer",componentId:"sc-zdosa4-0"})(["min-width:500px;.rdp-months{display:flex;gap:16px;}"]),lc(Yd).withConfig({displayName:"FooterContainer",componentId:"sc-zdosa4-1"})(["margin-top:",";"],bc.spacing4),lc((function(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 8c0 1.1-.9 2-2 2a1.7 1.7 0 01-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56A1.7 1.7 0 0119 8c0-1.1.9-2 2-2s2 .9 2 2z"}}]})(e)})).withConfig({displayName:"GraphIcon",componentId:"sc-1a1xt2-0"})(["width:22px;"]),lc((function(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 8h-6V5h6v6zm-8-6v6H5V5h6zm-6 8h6v6H5v-6zm8 6v-6h6v6h-6z"}}]})(e)})).withConfig({displayName:"TableIcon",componentId:"sc-1a1xt2-1"})(["width:18px;height:18px;"]);var oM,iM,aM,sM,lM=lc(hu).withConfig({displayName:"ButtonGroupButton",componentId:"sc-1a1xt2-2"})(["display:flex;flex-direction:row;justify-content:center;width:46px;height:36px;border-radius:",";align-items:center;padding:0px 10px;"],bc.radiusMedium);lc(lM).withConfig({displayName:"ActiveButtonGroupButton",componentId:"sc-1a1xt2-3"})(["background:",";box-shadow:",";"],bc.gray10,bc.elevationStatic),lc.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1a1xt2-4"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";gap:",";width:98px;height:",";background:",";border-radius:",";"],bc.spacing1,bc.spacing1,bc.spacing8,bc.gray50a,bc.radiusLarge),lc.div.withConfig({displayName:"Left",componentId:"sc-1a1xt2-5"})(["display:flex;flex-direction:row;align-items:center;padding:0;gap:",";height:",";"],bc.spacing3,bc.spacing8),lc(Yd).withConfig({displayName:"Filters",componentId:"sc-1a1xt2-6"})(["padding:"," "," "," 0;height:56px;"],bc.spacing3,bc.spacing6,bc.spacing3),lc.div.withConfig({displayName:"StyledDropdown",componentId:"sc-1a1xt2-7"})(["& > div{z-index:1;}"]),uc(["#layers > div{z-index:1032;}"]),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-iweq3l-0"})(["padding:"," 0 0 0;"],bc.spacing6),lc.div.withConfig({displayName:"WebsiteContainer",componentId:"sc-lus667-0"})(["color:#99a7ad;"]),lc.div.withConfig({displayName:"ViewsContainer",componentId:"sc-lus667-1"})(["color:#ffffff;"]),lc.div.withConfig({displayName:"TooltipContainer",componentId:"sc-lus667-2"})(["flex-direction:column;align-items:flex-start;padding:8px 12px;gap:8px;background:rgba(0,34,51,0.9);box-shadow:0px 0px 1px rgba(0,34,51,0.1),0px 2px 4px -1px rgba(0,34,51,0.1);border-radius:5px;flex:none;order:1;flex-grow:0;z-index:1;"]),lc.i.withConfig({displayName:"Icon",componentId:"sc-24wsyz-0"})(["padding:0;margin:0;display:inline-block;width:16px;height:16px;background:",";"],(function(e){return e.color})),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-24wsyz-1"})(["padding:",";min-width:240px;"],bc.spacing4),lc.div.withConfig({displayName:"MinHeightDiv",componentId:"sc-gqtbev-0"})(["min-height:488px;"]),lc.span.withConfig({displayName:"BoldVerticalNavTitle",componentId:"sc-16u0rfh-0"})(["font-weight:600;"]),lc.div.withConfig({displayName:"DivWithBottomPadding",componentId:"sc-16u0rfh-1"})(["margin-bottom:",";"],bc.spacing6),tM(jE),tM((function(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z"}}]})(e)})),tM((function(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}}]})(e)})),tM((function(e){return uE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)})),function(e){e.property="property",e.status="status",e.migratedAssets="migratedAssets",e.initiatedBy="initiatedBy",e.startTime="startTime",e.endTime="endTime",e.note="note",e.id="id",e.accountId="accountId",e.totalAssets="totalAssets"}(iM||(iM={})),function(e){e.failed="failed",e.inProgress="in progress",e.completed="completed",e.test="test"}(aM||(aM={})),CP(oM={},iM.property,"Property"),CP(oM,iM.status,"Status"),CP(oM,iM.migratedAssets,"Affected assets"),CP(oM,iM.initiatedBy,"Initiated by"),CP(oM,iM.startTime,"Start time"),CP(oM,iM.endTime,"End time"),CP(oM,iM.note,"Note"),CP(oM,iM.id,"Task ID"),CP(oM,iM.accountId,"Account ID"),CP(sM={},iM.property,"Property"),CP(sM,iM.status,"Status"),CP(sM,iM.migratedAssets,"Affected assets"),CP(sM,iM.initiatedBy,"Initiated by"),CP(sM,iM.startTime,"Start time"),CP(sM,iM.endTime,"End time"),CP(sM,iM.note,"Note"),CP(sM,iM.id,"Task ID"),CP(sM,iM.accountId,"Account ID"),lc.div.withConfig({displayName:"TableWrapper",componentId:"sc-k1dhhi-0"})(["width:","px;"],(function(e){return 220*e.colsnumber})),lc.label.withConfig({displayName:"TextM",componentId:"sc-k1dhhi-1"})(["",""],Gd.uiTextM),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-k1dhhi-2"})(["overflow-x:scroll;width:100%;"]),lc.h2.withConfig({displayName:"TextL",componentId:"sc-k1dhhi-3"})(["",""],Gd.uiTextL),lc.div.withConfig({displayName:"Hidden",componentId:"sc-1q2e3yp-0"})(["display:none;"]),lc.span.withConfig({displayName:"PaddedSpan",componentId:"sc-1q2e3yp-1"})(["padding-left:8px;"]),lc.label.withConfig({displayName:"HeadingM",componentId:"sc-1q2e3yp-2"})(["",""],Gd.headingM),lc.label.withConfig({displayName:"TextM",componentId:"sc-1q2e3yp-3"})(["",""],Gd.uiTextM),lc.label.withConfig({displayName:"TextS",componentId:"sc-1q2e3yp-4"})(["",""],Gd.uiTextS);lc.div.withConfig({displayName:"WidthHeightFlex",componentId:"sc-rwsoao-0"})(["display:flex;padding-top:",";padding-left:",";align-self:stretch;gap:",";"],bc.spacing3,bc.spacing6,bc.spacing2);var cM=lc.div.withConfig({displayName:"BaseFlexFrame",componentId:"sc-rwsoao-1"})(["margin-bottom:",";padding:",";background:",";border-radius:",";"],bc.spacing4,bc.spacing4,bc.gray25a,bc.radiusMedium);function uM(e){var n,r=e.transformBaseUrl,i=e.assetName,s=e.extension,l=e.transformation,c=e.setTransformation,u=e.closeDat,d=Ea(),p=o(),f=p[0],h=p[1],g=o(),v=g[0],y=g[1];a((function(){var e=d.querySelector(".cv-root");e&&h(e)}),[d]);var b=function(e,t){e&&l&&c({url:e,preset:t,asset:l.asset}),u()},w=function(e,t){E(t)&&l?y({url:e,preset:t,asset:l.asset}):b(e,t)},x=function(){return y(void 0)},E=function(e){return e.content.io.length>0};return f?m(t.createElement(fM,null,t.createElement(hM,{mediaInfo:{extension:s,baseURL:r,name:i,width:1,height:1},canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:b,onDone:w,onBack:w,initialTransformations:null===(n=null==l?void 0:l.preset)||void 0===n?void 0:n.content.io}),t.createElement(iv,{isOpen:!!v,title:"Transformations not yet applied",container:f,onClose:x,actionPrimary:t.createElement(hu,{variant:"primary",onClick:function(){b(null==v?void 0:v.url,null==v?void 0:v.preset),x()}},"Apply transformations"),actionSecondary:t.createElement(hu,{variant:"secondary",onClick:x},"Cancel"),actionTertiary:t.createElement(hu,{variant:"secondary",onClick:function(){c(void 0),x(),u()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),f):null}lc(cM).withConfig({displayName:"AdaptiveVideoLinksFlex",componentId:"sc-rwsoao-2"})(["border-radius:",";"],bc.radiusMedium),lc(cM).withConfig({displayName:"CodeControlsFlex",componentId:"sc-rwsoao-3"})(["display:flex;justify-content:stretch;padding:0;gap:",";"],bc.spacing3),lc(cM).withConfig({displayName:"CodeSnippetFlex",componentId:"sc-rwsoao-4"})(["padding:0;"]),lc.span.withConfig({displayName:"GrayText",componentId:"sc-rwsoao-5"})(["color:",";"],bc.gray600a),lc.div.withConfig({displayName:"AdvancedLinkContainer",componentId:"sc-rwsoao-6"})(["display:flex;justify-content:space-between;"]),lc(wh).withConfig({displayName:"WidthHeightInput",componentId:"sc-rwsoao-7"})(["background:",";padding:0 ",";"],bc.gray25a,bc.spacing5),lc(hu).withConfig({displayName:"ButtonWith3PercentBackground",componentId:"sc-rwsoao-8"})(["background:"," !important;"],bc.gray25a),lc.div.withConfig({displayName:"CopyCodeDiv",componentId:"sc-rwsoao-9"})(["flex:1;"]),lc.div.withConfig({displayName:"ShowCodeDiv",componentId:"sc-rwsoao-10"})(["flex:0 0 auto;"]),lc(wh).withConfig({displayName:"AdaptiveFormatInput",componentId:"sc-rwsoao-11"})(["background-color:",";"],bc.gray25a),lc.label.withConfig({displayName:"Label",componentId:"sc-rwsoao-12"})(["color:",";padding:0;"],bc.gray1000),lc.div.withConfig({displayName:"SizeInputContainer",componentId:"sc-rwsoao-13"})(["min-width:0;"]);var dM,pM,fM=lc.div(dM||(dM=la(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),bc.white,bc.radiusBase),hM=lc((function(e){return t.createElement(YB,null,t.createElement(Lz,bP({},e)))}))(pM||(pM=la(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),mM=n(null);function gM(e){var n=o(),r=n[0],a=n[1],s=o(""),l=s[0],c=s[1],u=o(""),d=u[0],p=u[1],f=o(""),h=f[0],m=f[1],g=function(e,t,n){c(e),m(n),p(t.extensions[0]||""),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},v=i((function(){return{transformation:r,setTransformation:a,openDat:g,closeDat:function(){return c("")}}}),[r]);return t.createElement(mM.Provider,{value:v},e.children,l&&t.createElement(uM,{transformBaseUrl:l,assetName:h,extension:d,transformation:r,setTransformation:a,closeDat:function(){return c("")}}))}function vM(){var e=r(mM);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function yM(e){var n,r,i,s,l=e.transformBaseUrl,c=e.asset,u=e.toggleDropdown,d=vM(),p=d.transformation,f=d.openDat,h=o(),m=h[0],g=h[1],v=null!==(s=null===(i=null===(r=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===r?void 0:r.io)||void 0===i?void 0:i.length)&&void 0!==s?s:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(qm.Divider,null),t.createElement(wM,{thumbnail:p&&0!==v?t.createElement(Ah,{variant:"content",imageUrl:m,"data-testid":"thumbnail-image"}):t.createElement(Ah,{icon:t.createElement(Iu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(yu,null),onClick:function(){u(),f(l,c,c.name)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var bM,wM=lc(qm.Item)(bM||(bM=la(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),xM=n(null);function EM(e){var n=o([]),r=n[0],s=n[1],l=o([]),c=l[0],u=l[1],d=o(),p=d[0],f=d[1],h=function(e){var t=this,n=o([]),r=n[0],i=n[1],s=Gi(),l=s.selectionMode,c=s.language,u=s.noCache,d=sw(),p=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,ia(t,void 0,void 0,(function(){var e,t,n;return aa(this,(function(o){switch(o.label){case 0:return r.length?[4,xx({ids:r,auth:d,language:c,noCache:u})]:[3,2];case 1:e=o.sent(),p||eb(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){p=!0}}),[e]),r}(p),m=Ki(),g=vM().transformation;function v(e){"Loaded"===e.tag&&e.value&&u(e.value)}function y(){s((function(e){var t=c.filter((function(t){return!e.some((function(e){return e.value.id===t.id}))}));return sa(sa([],e,!0),t.map((function(e){return{type:"asset",value:e}})),!0)}))}function b(){s([])}function w(e){s((function(t){var n=e.filter((function(e){return!CM(t,e)}));return sa(sa([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function x(e){var t;"MultiSelect"!==m?(t=e[0],r.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!CM(t,e)})),r=e.filter((function(e){return CM(t,e)}));return sa(sa([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function E(e){s((function(t){return CM(t,e)?t.filter((function(t){return t.value.id!==e.id})):sa(sa([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;f((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){w(h)}),[h]),a((function(){g&&(b(),w([null==g?void 0:g.asset]))}),[g]);var C=i((function(){return{selection:r,preselectedAssetIds:p,clear:b,selectAssets:w,toggleAssets:x,toggleCollection:E,selectAll:y,setAllAssets:v}}),[r,c]);return t.createElement(xM.Provider,{value:C},e.children)}function CM(e,t){return e.some((function(e){return e.value.id===t.id}))}function kM(){var e=r(xM);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function SM(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,l=Ki(),c=da()[1],u=kM(),d=Gi().hideExternalAccess;return t.createElement("div",{id:r.id,style:s,className:My("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(af,{contextAction:!d&&t.createElement(af.ContextActionButton,{"aria-label":my("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Pu,null)),selectButtonAriaLabel:my(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return c({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(af.Frame,null,t.createElement(af.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(af.Img,{key:e,src:e,alt:r.name})})))),t.createElement(af.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},Zy(r.assetCount,my("{} asset"),my("{} assets")))))}function IM(e){var t=o(void 0),n=t[0],r=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var o=n.getBoundingClientRect();r({width:o.width,height:o.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function TM(e){var n=ly(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(Zb,{className:My(!o&&"hidden")})))}function _M(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function OM(e){return t.createElement(zM,null,t.createElement(MM,null,t.createElement(_M,null),t.createElement(RM,null)),t.createElement(FM,null,my("No results found")),t.createElement(LM,null,my("Try adjusting the filter to find assets.")),t.createElement($M,null,t.createElement(hu,{variant:"primary",title:my("Reset filters"),onClick:e.onReset},my("Reset filters"))))}var jM,AM,PM,BM,NM,DM,zM=lc.div(jM||(jM=la(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),MM=lc.div(AM||(AM=la(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),bc.gray25),RM=lc(Bu)(PM||(PM=la(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),bc.spacing2,bc.gray300),FM=lc.h1(BM||(BM=la(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing6,bc.fontSize400),LM=lc.span(NM||(NM=la(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),$M=lc.div(DM||(DM=la(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),bc.spacing7);function HM(e){var n,r,i=o(null),a=i[0],s=i[1],l=IM(a).dimensions,c=kM().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=ma().setSearch,d=e.connection,p=d.data,f=d.isLoading,h=d.loadMore,m=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){s(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(Ky,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"},Gy)}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(OM,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(TM,{hasNextPage:m,isLoading:f,loadMore:h},null===(r=p.value)||void 0===r?void 0:r.collections.nodes.map((function(e,n){return t.createElement(SM,{key:e.id,isSelected:c.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}var UM="\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";function VM(){var e=ga("collections"),n=e.value,r=e.setIsLoading,i=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=sw(),s=o({tag:"Loading",value:null}),l=s[0],c=s[1],u=!1,d=function(n){return ia(r,void 0,void 0,(function(){var r,o,a;return aa(this,(function(s){switch(s.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=ra(ra({},e),{searchTerm:null!==(a=e.searchTerm)&&void 0!==a?a:null,after:null!=n?n:null}),[4,sb({query:UM,variables:r,auth:i,noCache:t})];case 1:return o=s.sent(),u||(eb(o)?c({tag:"Failure",value:o.error}):p(o,n)),[2]}}))}))},p=function(e,t){f()&&t?c((function(t){var n,r,o=null!==(r=null===(n=f(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:ra(ra({},e.value.collections),{nodes:sa(sa([],o,!0),e.value.collections.nodes,!0)})}}})):c({tag:"Loaded",value:e.value})},f=function(e){var t,n=null!=e?e:l;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return d(),function(){u=!0}}),[e.searchTerm,e.orderBy]),{data:l,executeQuery:function(){return d()},isLoading:!l||"Loading"===l.tag,loadMore:function(){var e;return d(null===(e=f())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(n=f())||void 0===n?void 0:n.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:ta("collections")[0]},Gi().noCache);return a((function(){i.isLoading||r(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(By,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},Zy(i.data.value.collections.totalCount,my("{} collection"),my("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(Vy,{options:["CREATED_AT","NAME"]}),t.createElement(Ny,null)),t.createElement(HM,{connection:i}))}var WM=n(null);function qM(e){var n=e.children,r=e.hideLimitedUse,s=void 0!==r&&r,l=e.predefinedFilter,c=o((null==l?void 0:l.assetType_in)?sa([],null==l?void 0:l.assetType_in,!0):[]),u=c[0],d=c[1],p=o([]),f=p[0],h=p[1],m=o((null==l?void 0:l.tagNames_in)?sa([],l.tagNames_in,!0):[]),g=m[0],v=m[1],y=o(),b=y[0],w=y[1],x=o({}),E=x[0],C=x[1];function k(e){d((function(t){return ZM(t,e)}))}function S(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.assetType_in)||void 0===t?void 0:t.includes(e))||d((function(t){return GM(t,e)}))}function I(e){h((function(t){return ZM(t,e.id)})),C((function(t){var n;return ra(ra({},t),((n={})[e.id]=e,n))}))}function T(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.metapropertyOptionId_in)||void 0===t?void 0:t.includes(e.id))||(h((function(t){return GM(t,e.id)})),C((function(t){var n=t,r=e.id;return oa(n,["symbol"==typeof r?r:r+""])})))}function _(e){(null==l?void 0:l.metapropertyOptionId_in)&&(h(l.metapropertyOptionId_in),C(e))}function O(e){v((function(t){return ZM(t,e)}))}function j(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.tagNames_in)||void 0===t?void 0:t.includes(e))||v((function(t){return GM(t,e)}))}function A(){d((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.assetType_in)?sa([],l.assetType_in,!0):[]),h((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?sa([],l.metapropertyOptionId_in,!0):[]),C((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?function(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}(E,l.metapropertyOptionId_in):{}),v((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.tagNames_in)?sa([],l.tagNames_in,!0):[])}a((function(){w(!s&&void 0)}),[s]);var P=f.map((function(e){return E[e]})),B=i((function(){return{assetTypes:u,metaproperties:P,metapropertyIds:f,tags:g,isLimited:b,addAssetType:k,removeAssetType:S,addMetaproperty:I,removeMetaproperty:T,setPredefinedMetaproperties:_,addTag:O,removeTag:j,clear:A}}),[u,P,g,b,f]);return t.createElement(WM.Provider,{value:B},n)}function ZM(e,t){return e.includes(t)?e:sa(sa([],e,!0),[t],!1)}function GM(e,t){return e.filter((function(e){return e!==t}))}function YM(){var e=r(WM);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function KM(e){return my({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function XM(e){switch(e){case"AUDIO":return Ru;case"DOCUMENT":return _u;case"IMAGE":return wu;case"VIDEO":return Mu;case"ARCHIVE":return gu}}function JM(e){return t.createElement(eR,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(yu,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var QM,eR=lc.div(QM||(QM=la(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function tR(e){return t.createElement(rR,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(vu,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var nR,rR=lc.div(nR||(nR=la(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function oR(e){var n=o(0),r=n[0],i=n[1],s=l(null),c=IM(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=r>0,m=p>5&&r!==p;return t.createElement("div",{className:My("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(tR,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-r,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(JM,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function iR(e){return t.createElement(sR,{icon:e.icon,size:"s",onDelete:e.onClick,"data-testid":"selected-filter:".concat(e.title)},e.title)}var aR,sR=lc(xf)(aR||(aR=la(["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"],["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"])),bc.spacing3);function lR(){var e=YM(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(uR,null,t.createElement(hu,{variant:"clean",isSmall:!0,onClick:e.clear},my("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(oR,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=XM(n);return t.createElement(iR,{key:n,onClick:function(){return e.removeAssetType(n)},title:KM(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(iR,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(iR,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var cR,uR=lc.div(cR||(cR=la(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),dR=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function pR(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return dR.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function fR(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function hR(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=Gi(),a=i.hideExternalAccess,s="SingleSelectFile"===i.selectionMode&&n;return!s&&a?null:s||a?s&&a?t.createElement(af.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(Iu,null)):t.createElement(Jm,{trigger:function(e){var n=e.isOpen,r=oa(e,["isOpen"]);return t.createElement(af.ContextActionButton,ra({"aria-label":"Menu",isPressed:n},r),t.createElement(Au,null))},isClosedOnScroll:!0},t.createElement(Jm.Item,{icon:t.createElement(Pu,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Jm.Divider,null),t.createElement(Jm.Item,{icon:t.createElement(Iu,null),onClick:o},"New transformation")):t.createElement(af.ContextActionButton,{"aria-label":my("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Pu,null))}var mR,gR,vR,yR,bR=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},wR=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t,n=e.label,r=e.value,o=e.type,i=e.zIndex;return{label:n,value:"date"===o?(t=r)?new Intl.DateTimeFormat("en-GB",ob).format(new Date(new Date(t).valueOf()+60*new Date(t).getTimezoneOffset()*1e3)):"":r,zIndex:i}}));return sa(sa([],n,!0),r,!0).sort(bR)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(af.AdditionalInfo,null,t.createElement(xR,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(ER,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(CR,null,n,":"),t.createElement(kR,{title:r},o))})))):null},xR=lc.dl(mR||(mR=la(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),bc.fontSize75),ER=lc.div(gR||(gR=la(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),CR=lc.dt(vR||(vR=la(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),kR=lc.dd(yR||(yR=la(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function SR(e){var n,r,i=e.className,s=e.fadeIn,l=void 0===s||s,c=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,h=void 0===f?null:f,m=o(),g=m[0],v=m[1],y=o(),b=y[0],w=y[1],x=vM(),E=x.openDat,C=x.setTransformation,k=Gi().theme,S=function(e){return[e.isArchived&&my("archived"),e.isWatermarked&&my("watermarked"),e.isLimitedUse&&my("limited")].filter((function(e){return e})).join(", ")}(c),I=fR(c);a((function(){var e,t=null===(e=c.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[c.metaproperties]),a((function(){var e,t=null===(e=c.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));w(t)}),[c.textMetaproperties]);var T=function(e){void 0!==p&&(e.stopPropagation(),C(),p(c,e))};return t.createElement(OR,{id:c.id,$theme:k,$isOutlined:(u||d)&&void 0!==(null==k?void 0:k.colorPrimary),$fadeIn:l,className:My("group",i),"data-drag-select-id":c.id},t.createElement(af,{contextAction:t.createElement(hR,{transformBaseUrl:null===(r=null===(n=c.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===r?void 0:r.url,portalUrl:c.url,onOpenDAT:function(){var e,t;return E(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,c,c.name)}}),selectButtonAriaLabel:my(u?"Deselect":"Select"),onSelect:T,onClick:T,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(af.Frame,{icon:S?t.createElement(jR,{$limitWidth:!!I},t.createElement(wc,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(Lp,null,S))):void 0,"data-testid":"asset-type",badge:I},t.createElement(af.Images,null,pR(c)&&t.createElement(af.Img,{src:pR(c),alt:c.name,contentResize:"fit"}))),h,t.createElement(AR,{"data-testid":"asset-name"},c.name),t.createElement(wR,{metaproperties:g,textMetaproperties:b})))}var IR,TR,_R,OR=lc.div(IR||(IR=la(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),bc.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryActive})),jR=lc.div(TR||(TR=la(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),AR=lc.p(_R||(_R=la(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"]))),PR={x:null,y:null},BR="drag-select-container",NR=function(e){var n=e.dragContainer,r=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=o(PR),f=p[0],h=p[1],g=o(PR),v=g[0],y=g[1],b=OS(v,10,{leading:!0,maxWait:10})[0],w=o(),x=w[0],E=w[1],C=Ea(),k=t.useMemo((function(){return zR(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=OS(k,50,{leading:!1,maxWait:50})[0],I=o([]),T=I[0],_=I[1],O=$R(T),j=l(f),A=l(v),P=l(null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y),B=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",N,!1),document.addEventListener("keyup",N,!1),function(){document.removeEventListener("keydown",N,!1),document.removeEventListener("keyup",N,!1)}}),[]);var N=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},P.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof u&&P.current?(N(B.current),u(null!=x?x:"select")):"function"!=typeof d||P.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[P.current,x]);var D=function(e){j.current=e,h(e),M()},z=function(e){A.current=e,y(e),M()},M=function(){P.current=null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y},R=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),F=c((function(){C.removeEventListener("mousemove",R),C.removeEventListener("mouseup",F),D(PR),z(PR)}),[R,C]),L=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",R),C.addEventListener("mouseup",F),D({x:n,y:t}))}),[R,F,C]);a((function(){var e=C.querySelector(n);return e&&(FR(C),e.addEventListener("mousedown",L)),function(){e&&(e.removeEventListener("mousedown",L),LR(C))}}),[n,L,R,F,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=RR(t);return t instanceof HTMLElement&&MR(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);_(t)}),[S,C]),a((function(){if(O&&O!==T&&P.current){var e=T.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,O,i,s,P]);var $=C.querySelector("#".concat(BR));return P.current&&$?m(t.createElement("div",ra({},r,{style:r.style?ra(ra(ra({},DR),r.style),k):ra(ra({},DR),k),"data-testid":"drag-selection"})),$):null},DR={position:"absolute",zIndex:100},zR=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},MR=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},RR=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},FR=function(e){var t=document.createElement("div");t.id=BR,e.appendChild(t)},LR=function(e){var t=e.querySelector("#".concat(BR));t&&t.remove()},$R=function(e){var t=l();return a((function(){t.current=e})),t.current};function HR(e){var n,r=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.theme,k=e.children,S=void 0===k?null:k,I=l(null),T=IM(I.current).dimensions,_=o([]),O=_[0],j=_[1],A=o("inactive"),P=A[0],B=A[1],N=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,T),D=N[0],z=N[1];function M(e){return("inverse"!==P||!w.includes(e.id)||!O.includes(e.id))&&(w.includes(e.id)||O.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:I,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===r.tag&&!r.value&&t.createElement(Ky,{rows:D,columns:z}),"Loaded"===r.tag&&0===r.value.length&&y,("Loading"===r.tag&&r.value||"Loaded"===r.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(NR,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){j((function(t){return sa(sa([],t,!0),e,!0)}))},onDeselect:function(e){j((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),O.length){var t=[];O.forEach((function(e){var n=function(e){var t;if("Loading"!==r.tag||r.value)return null===(t=r.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),j([])}}}),t.createElement(TM,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=r.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(SR,{key:e.id,isSelected:M(e),isOutlined:M(e),asset:e,fadeIn:n>=D*z,onClick:function(e,t){return function(e,t){var n,o,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=r.value)||void 0===n?void 0:n.length)){var a=r.value.findIndex((function(t){return t.id===e.id})),s=null===(o=r.value)||void 0===o?void 0:o.findIndex((function(e){return e.id===w[w.length-1]}));-1===s&&(s=0),h(s<a?null===(i=r.value)||void 0===i?void 0:i.slice(s,a+1):r.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function UR(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=ma().setIsLoading,h=Gi(),m=kM().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=kM(),v=g.selectAssets,y=g.toggleAssets,b=g.setAllAssets,w=ma().setSearch,x=YM();if(a((function(){c||f(!1)}),[c]),a((function(){"Failure"!==l.tag&&b(VR(l))}),[l]),"Failure"===l.tag)return t.createElement(By,{error:new Error(l.value),onRetry:p});var E=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(HR,{assets:VR(l),count:E,isLoading:c,loadMore:u,hasNextPage:d,theme:h.theme,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(OM,{onReset:function(){x.clear(),w("assets",""),w("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==E&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down","data-testid":"assets-amount",key:E},Zy(E,my("{} asset"),my("{} assets"))),e.showActiveFilters&&t.createElement(lR,null),t.createElement(Vy,null),t.createElement(Ny,null)))}function VR(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function WR(e){var n=ga("collection").value,r=da()[1],o=ta("collection")[0],i=Gi(),a=i.language,s=i.noCache,l=YM(),c=l.assetTypes,u=l.metaproperties,d=l.tags,p=l.isLimited,f=pw({collection:e.collection,filter:{assetTypes:c,metaproperties:u,tags:d,isLimited:p},searchTerm:n,orderBy:o,language:a},s);return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},my("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(UR,{connection:f,totalCount:e.collection.assetCount,showActiveFilters:!0}))}var qR="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";var ZR,GR,YR,KR,XR=lc.div(ZR||(ZR=la(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),bc.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),JR=lc.li(GR||(GR=la(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),bc.spacing2,bc.spacing5,bc.gray25),QR=lc.div(YR||(YR=la(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.$isChecked?"inherit":bc.gray500})),eF=lc.span(KR||(KR=la(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),bc.spacing4);function tF(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(JR,null,t.createElement(XR,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(ff,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(QR,{$isChecked:n},t.createElement(eF,{title:e.metapropertyOption.label},t.createElement(Lp,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function nF(e){return t.createElement(iF,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(aF,null,e.metaproperty.options.map((function(n){return t.createElement(tF,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var rF,oF,iF=lc.div(rF||(rF=la(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),bc.spacing5),aF=lc.ul(oF||(oF=la(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function sF(e){return t.createElement(cF,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(nF,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var lF,cF=lc.div(lF||(lF=la(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),bc.spacing4);function uF(e){var n,r=YM(),o=r.metaproperties.map((function(e){return e.id})),i=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),a=(n=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},sa([],i,!0).sort((function(e,t){return n(e)-n(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(Ly,{key:n.id,title:t.createElement(dF,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Zb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(nF,{metaproperty:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}):t.createElement(sF,{smartfilter:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}))}))})))}function dF(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:My("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function pF(e){var n=My("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function fF(e){var n=YM(),r=n.tags.includes(e.tag.name),o=My("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(pF,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function hF(e){var n=sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(Ly,{title:t.createElement(mF,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Zb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",my("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(fF,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function mF(){return t.createElement(t.Fragment,null,t.createElement(zu,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},my("Tags")))}function gF(e){var n=YM(),r=n.assetTypes.includes(e.type),o=XM(e.type);return t.createElement(JR,{"data-testid":"advanced-options"},t.createElement(XR,{$isChecked:r,$isLoading:e.isLoading},t.createElement(ff,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat(KM(e.type),"-filter")},t.createElement(QR,{$isChecked:r},t.createElement(o,null),t.createElement(yF,null,KM(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var vF,yF=lc.div(vF||(vF=la(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),bc.spacing3);function bF(e){var n=Gi().assetTypes,r=n.filter((function(t){return xF(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(Ly,{title:t.createElement(wF,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Zb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},my("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(gF,{key:n,type:n,count:xF(e.count,n),isLoading:e.isLoading})}))))}))}function wF(){return t.createElement(t.Fragment,null,t.createElement(mu,{className:"mr-2 inline w-6 h-6"}),my("Advanced"))}function xF(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function EF(){var e=YM(),n=da()[0],r=ga("assets").value,i=Gi(),s=i.assetTypes,l=i.language,c=i.assetFilter,u=i.noCache,d=o(n.page),p=d[0],f=d[1];vy(l);var h=function(e,t){var n=this;void 0===t&&(t=!1);var r=sw(),i=o({tag:"Loading",value:null}),s=i[0],l=i[1],c=!1;return a((function(){return ia(n,void 0,void 0,(function(){var n,o,i,a,s,u,d,p,f,h;return aa(this,(function(m){switch(m.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=e.filter,o=e.searchTerm,i=e.allAssetTypes,a=e.language,s=e.predefinedFilter,u=lw({filters:null==n?void 0:n.assetTypes,predefinedFilters:null==s?void 0:s.assetType_in,showToolbar:null==s?void 0:s.showToolbar}),d=lw({filters:cw(null==n?void 0:n.metaproperties),predefinedFilters:null==s?void 0:s.metapropertyOptionId_in,showToolbar:null==s?void 0:s.showToolbar}),p=lw({filters:null==n?void 0:n.tags,predefinedFilters:null==s?void 0:s.tagNames_in,showToolbar:null==s?void 0:s.showToolbar}),f={filter:{assetType_in:null!=u?u:i,collectionId:e.collectionId,metapropertyOptionId_in:d,searchTerm:o,tagNames_in:p,isLimitedUse:n.isLimited},language:a},[4,sb({query:qR,variables:f,auth:r,noCache:t})];case 1:return h=m.sent(),c||(eb(h)?l({tag:"Failure",value:h.error}):l({tag:"Loaded",value:h.value})),[2]}}))})),function(){c=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:s,isLoading:"Loading"===s.tag}}({filter:e,searchTerm:r||null,allAssetTypes:s,language:l,predefinedFilter:c,collectionId:"collection"===n.page?n.collection.id:null},u),m=h.data,g=h.isLoading;if(a((function(){return n.page!==p&&(f(n.page),e.clear()),function(){e.clear()}}),[p,n.page]),a((function(){var t;if("Loading"!==m.tag&&"Failure"!==m.tag&&m.value){var n=m.value.searchAssets.metapropertyFilters;if((null==c?void 0:c.metapropertyOptionId_in)&&(null===(t=null==n?void 0:n.nodes)||void 0===t?void 0:t.length)&&!e.metaproperties.length){var r=n.nodes.reduce((function(t,n){return("Metaproperty"===n.__typename?n.options:n.metaproperties.reduce((function(e,t){return sa(sa([],e,!0),t.options,!0)}),[])).forEach((function(n){var r,o;(null===(r=null==c?void 0:c.metapropertyOptionId_in)||void 0===r?void 0:r.includes(n.id))&&((null===(o=e.metapropertyIds)||void 0===o?void 0:o.includes(n.id))||(t[n.id]=n))})),t}),{});Object.keys(r).length&&e.setPredefinedMetaproperties(r)}}}),[m]),"Failure"===m.tag||!m.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(CF,null));var v=m.value.searchAssets,y=v.metapropertyFilters,b=v.tags,w=v.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(oR,{className:"h-8"},y&&y.nodes.length>0&&t.createElement(uF,{metapropertyFilters:y.nodes,isLoading:g}),b&&b.nodes.length>0&&t.createElement(hF,{tags:b.nodes,isLoading:g}),t.createElement(bF,{isLoading:g,count:w.assetType})))}function CF(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(Yy,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(Yy,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(Yy,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var kF,SF,IF=uc(SF||(SF=la(["",""],["",""])),ic(kF||(kF=la(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function TF(){var e=da()[0],n=Xi(),r=ga(e.page),i=r.value,s=r.isLoading,l=IS(r.setSearch,500),c=o(i),u=c[0],d=c[1];a((function(){d(i)}),[e,i]),a((function(){return function(){l.flush()}}),[e,l]);var p="collections"===e.page?my("Search for collections"):my("Search for assets");return t.createElement(OF,{$hideSwitch:n},t.createElement(wh,{value:u,placeholder:p,"aria-label":p,onChange:function(e){return d(t=e),void l(t);var t},"data-testid":"search-input",icon:t.createElement(Bu,null),iconRight:s?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Zb,{className:"relative right-0"})):void 0,hasClearButton:!s&&!!i}))}var _F,OF=lc.div(_F||(_F=la(["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"])),(function(e){return e.$hideSwitch?"auto":"none"}));function jF(){var e=da(),n=e[0],r=e[1];return t.createElement(PF,null,t.createElement(hu,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},my("Assets")),t.createElement(hu,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},my("Collections")))}var AF,PF=lc.div(AF||(AF=la(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),bc.spacing2);function BF(){var e=aw(),n=Bb(),r=sw(),o=Yi(),i=Xi(),a=void 0!==o&&!o.showToolbar;return e||n||!a?t.createElement(zF,null,!a&&t.createElement(t.Fragment,null,!i&&t.createElement(jF,null),t.createElement(TF,null)),t.createElement(MF,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(hu,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(Tu,null)},my("Log out")),n&&t.createElement(hu,{variant:"clean",onClick:function(){return n.onClose()},title:my("Close"),icon:t.createElement(xu,null)}))):null}var NF,DF,zF=lc.nav(NF||(NF=la(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),bc.gray10,bc.spacing5,bc.spacing4),MF=lc.div(DF||(DF=la(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function RF(){var e=YM(),n=e.assetTypes,r=e.metaproperties,o=e.tags,a=e.isLimited,s=ga("assets").value,l=ta("assets")[0],c=Gi(),u=c.assetFilter,d=c.assetTypes,p=c.language,f=c.noCache,h=pw(i((function(){return void 0===u?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:a},searchTerm:s,orderBy:l,allAssetTypes:d,language:p}:u&&u.showToolbar?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:a},searchTerm:s,orderBy:l,predefinedFilter:u,allAssetTypes:d,language:p}:{predefinedFilter:u,orderBy:l,language:p}}),[n,r,o,a,s,l,u,d,p]),f);return t.createElement(UR,{connection:h,showActiveFilters:void 0===u||u&&u.showToolbar})}var FF="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function LF(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a;return aa(this,(function(s){switch(s.label){case 0:return t=e.assetId,n=e.auth,r=e.assetFieldSelection,o=void 0===r?FF:r,i=e.noCache,[4,sb({query:"\n fragment AddMediaAsset on Asset {\n ".concat(o,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),variables:{id:t},auth:n,noCache:i})];case 1:return eb(a=s.sent())?[2,a]:[2,Xy(a.value.node)]}}))}))}function $F(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var HF="Custom transformation";function UF(e){var n=e.asset,r=e.onChange,i=o({status:"Loading"}),s=i[0],l=i[1],c=sw(),u=Gi(),d=u.assetFieldSelection,p=u.noCache,f=u.__shouldAddOriginal__,h=vM().transformation;function m(e){l((function(t){return"Data"!==t.status?t:(e===HF&&h?setTimeout((function(){return r({url:null==h?void 0:h.url})})):setTimeout((function(){return r(t.files[e])})),ra(ra({},t),{key:e}))}))}return a((function(){var e,t;(null==h?void 0:h.url)&&"Data"===s.status&&m(h.url!==(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?HF:"transformBaseUrl")}),[h]),a((function(){l({status:"Loading"}),r(void 0),function(e){return ia(this,void 0,void 0,(function(){var t,n,r,o;return aa(this,(function(i){switch(i.label){case 0:return t=e.auth,n=e.assetFieldSelection,r=e.noCache,[4,LF({assetId:e.asset.id,auth:t,assetFieldSelection:n,noCache:r})];case 1:return Qy(o=i.sent())&&o.value.files?[2,Xy({files:ib(o.value.files),databaseId:o.value.databaseId||""})]:[2,Jy("Error retrieving asset files")]}}))}))}({asset:n,auth:c,assetFieldSelection:d,noCache:p}).then((function(e){if(eb(e))return ba.error(e.error),void l({status:"Failure"});var t=ra({},e.value.files);f&&!("original"in t)&&(t.original={url:e.value.databaseId,isFakeOriginal:!0});var n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),r(t[n])}))}),[n.id,c,d]),t.createElement(ZF,null,t.createElement(Ly,{title:t.createElement(VF,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){var r,o;return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(Uy,{key:o,className:"px-3 py-2",selected:s.key===o,onClick:function(){m(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(bu,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(ju,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},$F(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(yM,{transformBaseUrl:null===(o=null===(r=s.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function VF(e){var n=e.state;return"Loading"===n.status?t.createElement(Yy,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(GF,null,n.key===HF&&t.createElement(Iu,null),$F(n.key)):t.createElement(t.Fragment,null,"Error")}var WF,qF,ZF=lc.div(WF||(WF=la(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),bc.spacing5),GF=lc.div(qF||(qF=la(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),bc.spacing4),YF="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function KF(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(Cu,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,my("Retry")):t.createElement(t.Fragment,null,Zy(r,my("Add asset"),my("Add assets")))}function XF(e){var n,r=Gi(),i=r.assetFieldSelection,s=r.onSuccess,c=r.selectionMode,u=r.noCache,d=kM().preselectedAssetIds,p=sw(),f=l(!0),h=o("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=h[0],g=h[1];function v(e,t){if(eb(e))g({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,d)})),s(n,{selectedFile:t})}catch(e){ba.error(e)}f.current&&(g({status:"Done"}),setTimeout((function(){f.current&&g((function(){return t?{status:"ReadyWithFile",file:t}:{status:"Ready"}}))}),2e3))}}return a((function(){return function(){f.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(UF,{asset:e.selection[0].value,onChange:function(e){g(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(hu,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;g({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?LF({assetId:e.selection[0].value.id,auth:p,assetFieldSelection:i,noCache:u}).then((function(e){v(e,n)})):function(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y;return aa(this,(function(b){switch(b.label){case 0:return t=e.selectedItems,n=e.auth,o=e.noCache,i="\n fragment AddMediaAsset on Asset {\n ".concat(void 0===(r=e.assetFieldSelection)?YF:r,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),a=t.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),s=a.reduce((function(e,t){return e+t}),0),l={ids:t.map((function(e){return e.value.id})),collectionCount:s},[4,sb({query:i,variables:l,auth:n,noCache:o})];case 1:if(eb(c=b.sent()))return[2,c];for(u=[],d=0,p=c.value.nodes;d<p.length;d++)"Collection"===(f=p[d]).__typename?u.push.apply(u,f.assets.nodes):u.push(f);for(h=new Set,m=[],g=0,v=u;g<v.length;g++)y=v[g],h.has(y.id)||(m.push(y),h.add(y.id));return[2,Xy(m)]}}))}))}({selectedItems:e.selection,auth:p,assetFieldSelection:i,noCache:u}).then((function(e){v(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(KF,{status:m.status,numberOfSelectedItems:e.selection.length})))}function JF(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(XR,{$isChecked:!0,$isFlex:!0},t.createElement(ff,{"aria-label":my("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(eL,{htmlFor:"deselect-".concat(n)},o)))}var QF,eL=lc.label(QF||(QF=la(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),bc.fontSize100,bc.spacing3);function tL(e){var n=e.asset,r=kM();return t.createElement(JF,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(rL,null,t.createElement(Ah,{variant:"preview",imageUrl:pR(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),fR(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},fR(n)))}var nL,rL=lc.div(nL||(nL=la(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),bc.spacing4);function oL(e){var n=e.collection,r=kM();return t.createElement(JF,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(aL,null,t.createElement(Ah,{variant:"clean",icon:t.createElement(Su,null)})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},Zy(n.assetCount,my("{} asset"),my("{} assets"))))}var iL,aL=lc.div(iL||(iL=la(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),bc.spacing4);function sL(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(tL,{key:e.value.id,asset:e.value}):t.createElement(oL,{key:e.value.id,collection:e.value})})))}function lL(){var e=kM(),n=e.selection,r=e.clear,o=e.selectAll,i=Gi(),a=i.selectionMode,s=i.selectAllOption,l=da()[0],c=n.length;return 0===c?null:t.createElement(pL,{"data-testid":"selection-footer"},t.createElement(fL,null,t.createElement(Ly,{buttonKind:"secondary",direction:"Up",title:my("View {} selected").replace("{}",c.toString())},(function(){return t.createElement(sL,{selection:n})})),"MultiSelect"===a&&s&&"assets"===l.page&&t.createElement(hu,{variant:"secondary",onClick:o},my("Select all")),t.createElement(hu,{variant:"clean",onClick:r},my("Clear selection"))),t.createElement(XF,{selection:n}))}var cL,uL,dL,pL=lc.div(cL||(cL=la(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),bc.layoutSpacing5,bc.spacing6),fL=lc.span(uL||(uL=la(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),bc.spacing2);function hL(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,s=e.language,l=void 0===s?"en_US":s,c=e.mode,u=void 0===c?"MultiSelect":c,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,h=e.hideExternalAccess,m=e.selectedAssets,g=e.hideLimitedUse,v=e.isContainerMode,y=void 0!==v&&v,b=e.__shouldAddOriginal__,w=e.hideSwitch,x=void 0!==w&&w,E=e.noCache,C=void 0!==E&&E,k=e.selectAllOption,S=void 0!==k&&k;vy(l);var I={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:h,__shouldAddOriginal__:b,hideSwitch:x,noCache:C,selectAllOption:S};return t.createElement(tw,{sentryClient:dL},t.createElement(ua,null,t.createElement(Ab,{isContainerMode:y},t.createElement(gM,null,t.createElement(ea,null,t.createElement(qM,{hideLimitedUse:g,predefinedFilter:r},t.createElement(ha,{defaultValue:a},t.createElement(Zi,{value:I},t.createElement(EM,{preselectedAssetIds:null!=m?m:[]},t.createElement(IF,{theme:I.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(BF,null),t.createElement(mL,null),t.createElement(lL,null)))))))))))}function mL(){var e=da()[0],n=Gi().assetFilter;return t.createElement(t.Fragment,null,"collections"!==e.page&&(void 0===n||n&&n.showToolbar)&&t.createElement(EF,null),"assets"===e.page&&t.createElement(RF,null),"collections"===e.page&&t.createElement(VM,null),"collection"===e.page&&t.createElement(WR,{collection:e.collection}))}dL=new class extends bi{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:ai}))),version:ai}),e._metadata=o}(e,"browser",["browser"],ki.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ki.document&&ki.document.addEventListener("visibilitychange",(()=>{"hidden"===ki.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=function(e,t,n,r,o){let i;if(Rr(t)&&t.error)return Ti(e,t.error);if(Fr(t)||Mr(t,"DOMException")){const o=t;if("stack"in t)i=Ti(e,t);else{const t=o.name||(Fr(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;i=Ai(e,a,n,r),vo(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return zr(t)?Ti(e,t):$r(t)||Hr(t)?(i=function(e,t,n,r){const o=Ko(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:Hr(t)?t.constructor.name:"Error",value:Pi(t,{isUnhandledRejection:r})}]},extra:{__serialized__:xo(t,i)}};if(n){const t=_i(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,void 0),yo(i,{synthetic:!0}),i):(i=Ai(e,t,n,r),vo(i,`${t}`),yo(i,{synthetic:!0}),i)}(e,t,n&&n.syntheticException||void 0,r);return yo(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ko(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Ai(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),ko(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Si&&no.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:oo(r)}},i=function(e){return[{type:"user_report"},e]}(e);return jo(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Si&&no.log("No outcomes to send"));if(!this._dsn)return void(Si&&no.log("No dsn provided, will not send outcomes"));Si&&no.log("Sending outcomes:",e);const t=(n=e,jo((r=this._options.tunnel&&oo(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:_o(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,integrations:[],stackParser:Vi,transport:function(e,t=function(){if(Bi)return Bi;if((e=ki.fetch)&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()))return Bi=ki.fetch.bind(ki);var e;const t=ki.document;let n=ki.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(e){Si&&no.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Bi=n.bind(ki)}()){let n=0,r=0;return Ei(e,(function(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Bi=void 0,n-=i,r--,So(e)}}))}}),new ci(dL);var gL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opazität","datepicker.clear-date":"Datum löschen","datepicker.next-month":"Nächsten Monat","datepicker.open-calendar":"Kalender öffnen","datepicker.previous-month":"Vorheriger Monat","input.clear":"Eingabe löschen","input.hide-password":"Passwort verbergen","input.show-password":"Passwort anzeigen","modal.close":"Schließen","multiselectchips.add-value":"Füge ‘{value}’ hinzu","multiselectchips.remove-all":"Alle entfernen","pagination.next-page":"Nächste Seite","pagination.previous-page":"Vorherige Seite"}}),vL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Quitar todos","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),yL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Eliminar todo","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),bL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacité","datepicker.clear-date":"Effacer une date","datepicker.next-month":"Le mois prochain","datepicker.open-calendar":"Ouvrir le calendrier","datepicker.previous-month":"Le mois précédent","input.clear":"Effacer l'entrée","input.hide-password":"Masquer le mot de passe","input.show-password":"Montrer le mot de passe","modal.close":"Fermer","multiselectchips.add-value":"Ajouter ‘{value}’","multiselectchips.remove-all":"Supprimer tout","pagination.next-page":"Page suivante","pagination.previous-page":"Page précédente"}}),wL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacità","datepicker.clear-date":"Annulla data","datepicker.next-month":"Il prossimo mese","datepicker.open-calendar":"Calendario aperto","datepicker.previous-month":"Il mese scorso","input.clear":"Ingresso chiaro","input.hide-password":"Nascondi password","input.show-password":"Mostra password","modal.close":"Chiudi","multiselectchips.add-value":"Aggiungi ‘{value}’","multiselectchips.remove-all":"Rimuovi tutti","pagination.next-page":"Pagina seguente","pagination.previous-page":"Pagina precedente"}}),xL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"日付を消去する","datepicker.next-month":"来月","datepicker.open-calendar":"カレンダーを開く","datepicker.previous-month":"前月","input.clear":"入力をクリア","input.hide-password":"パスワードを隠す","input.show-password":"パスワードを表示","modal.close":"閉じる","multiselectchips.add-value":"「 {value} 」を追加","multiselectchips.remove-all":"すべてを削除する","pagination.next-page":"次のページ","pagination.previous-page":"前のページ"}}),EL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"불투명","datepicker.clear-date":"완료일","datepicker.next-month":"다음 달","datepicker.open-calendar":"캘린더 열기","datepicker.previous-month":"지난달","input.clear":"입력 지우기","input.hide-password":"비밀번호 숨기기","input.show-password":"비밀번호 표시","modal.close":"닫기","multiselectchips.add-value":"' {value} ' 추가","multiselectchips.remove-all":"모두 제거","pagination.next-page":"다음 페이지","pagination.previous-page":"이전 페이지"}}),CL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Ondoorzichtigheid","datepicker.clear-date":"Datum legen","datepicker.next-month":"Volgende maand","datepicker.open-calendar":"Kalender openen","datepicker.previous-month":"Vorige maand","input.clear":"Invoer wissen","input.hide-password":"Verberg wachtwoord","input.show-password":"Laat wachtwoord zien","modal.close":"Sluiten","multiselectchips.add-value":"Voeg ‘{value}’ toe","multiselectchips.remove-all":"Verwijder alles","pagination.next-page":"Volgende pagina","pagination.previous-page":"Vorige pagina"}}),kL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Nieprzezroczystość","datepicker.clear-date":"Wyczyść datę","datepicker.next-month":"Następny miesiąc","datepicker.open-calendar":"Otwórz kalendarz","datepicker.previous-month":"Poprzedni miesiąc","input.clear":"Wyczyść pole wprowadzania","input.hide-password":"Ukryj hasło","input.show-password":"Pokaż hasło","modal.close":"Zamknij","multiselectchips.add-value":"Dodaj „{value}”","multiselectchips.remove-all":"Usuń wszystko","pagination.next-page":"Następna strona","pagination.previous-page":"Poprzednia strona"}}),SL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidade","datepicker.clear-date":"Limpar data","datepicker.next-month":"Próximo mês","datepicker.open-calendar":"Calendário aberto","datepicker.previous-month":"Mês anterior","input.clear":"Limpar entrada","input.hide-password":"Esconder a senha","input.show-password":"Mostrar senha","modal.close":"Fechar","multiselectchips.add-value":"Adicionar ‘{value}’","multiselectchips.remove-all":"Remover tudo","pagination.next-page":"Próxima página","pagination.previous-page":"Página anterior"}}),IL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Непрозрачность","datepicker.clear-date":"Очистить дату","datepicker.next-month":"Следующий месяц","datepicker.open-calendar":"Открыть календарь","datepicker.previous-month":"Предыдущий месяц","input.clear":"Очистить поле ввода","input.hide-password":"Скрыть пароль","input.show-password":"Показать пароль","modal.close":"Закрыть","multiselectchips.add-value":"Добавить «{value}»","multiselectchips.remove-all":"Удалить всё","pagination.next-page":"Следующая страница","pagination.previous-page":"Предыдущая страница"}}),TL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opaklık","datepicker.clear-date":"Tarihi sil","datepicker.next-month":"Gelecek ay","datepicker.open-calendar":"Takvimi aç","datepicker.previous-month":"Geçtiğimiz ay","input.clear":"Girişi temizle","input.hide-password":"Şifreyi gizle","input.show-password":"Şifreyi göster","modal.close":"Kapat","multiselectchips.add-value":"‘{value}’ ekleyin","multiselectchips.remove-all":"Tümünü kaldır","pagination.next-page":"Sonraki sayfa","pagination.previous-page":"Önceki sayfa"}}),_L=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下个月","datepicker.open-calendar":"打开日历","datepicker.previous-month":"前一个月","input.clear":"清除输入","input.hide-password":"隐藏密码","input.show-password":"显示密码","modal.close":"关闭","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一页","pagination.previous-page":"前一页"}}),OL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下個月","datepicker.open-calendar":"打開日曆","datepicker.previous-month":"前一個月","input.clear":"清除輸入","input.hide-password":"隱藏密碼","input.show-password":"顯示密碼","modal.close":"關閉","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一頁","pagination.previous-page":"前一頁"}});export{hL as CompactView,iw as Login,Nb as Modal};
112
+ `;const Ov=lc.div.withConfig({displayName:"BaloonStyled",componentId:"sc-1yjr5hd-0"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Cc,bc.spacing5,bc.radiusLarge,bc.white,bc.elevationStatic,bc.elevation2),jv=lc.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-1yjr5hd-1"})(["flex:none;margin-right:",";"],bc.spacing5),Av=lc.div.withConfig({displayName:"Text",componentId:"sc-1yjr5hd-2"})(["flex:1;align-self:center;"]),Pv=lc.h2.withConfig({displayName:"Title",componentId:"sc-1yjr5hd-3"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),Bv=lc.p.withConfig({displayName:"Description",componentId:"sc-1yjr5hd-4"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],bc.spacing2,bc.colorTextMuted,bc.fontSize75),Nv=lc.div.withConfig({displayName:"Action",componentId:"sc-1yjr5hd-5"})(["flex:none;"]),Dv=lc.div.withConfig({displayName:"Progress",componentId:"sc-1yjr5hd-6"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],bc.brandPrimary500),zv=8e3,Mv=288e5;function Rv({isPersistent:e,button:t,id:n=ef(),variant:r,thumbnail:o,...i}){return Tv((e=>gc.jsx(_v,{thumbnail:Fv(o,r),...i,button:t?f(t,{variant:"clean",onClick(){var n,r;null==(r=(n=t.props).onClick)||r.call(n),Tv.dismiss(e.id)}}):gc.jsx(hu,{variant:"clean",onClick:()=>{Tv.dismiss(e.id)},icon:gc.jsx(xu,{}),title:"Close"})})),{id:n,duration:e?Mv:zv})}function Fv(e,t){return e||(t?{loading:gc.jsx(Ah,{shape:"circle",backgroundColor:"transparent",icon:gc.jsx(iu,{})}),success:gc.jsx(Ah,{shape:"circle",backgroundColor:"green500",icon:gc.jsx(Cu,{}),iconColor:"white"}),error:gc.jsx(Ah,{shape:"circle",backgroundColor:"red500",icon:gc.jsx(xu,{}),iconColor:"white"})}[t]:void 0)}Rv.dismiss=function(e){Tv.dismiss(e)},Rv.remove=function(e){Tv.remove(e)};const Lv=n({value:"",onChange:()=>{}});function $v({children:e,isDisabled:t,onChange:n,value:r,label:o,icon:a,"aria-labelledby":s,"aria-label":l,...c}){const u=i((()=>({value:r,onChange:n})),[n,r]);return gc.jsx(Lv.Provider,{value:u,children:gc.jsx(Jm,{trigger:({isOpen:e,...n})=>gc.jsx(hu,{icon:a,isPressed:e,rightIcon:gc.jsx(Jm.Arrow,{}),isFullWidth:!0,isDisabled:t,role:"combobox","aria-label":l,"aria-labelledby":s,...n,"aria-haspopup":"listbox",children:gc.jsx(Jm.SelectButtonText,{children:o})}),position:"bottom",role:"listbox",...c,children:e})})}function Hv(e,t,n){return 100*(n-e)/(t-e)+"%"}$v.Item=function({icon:e,children:t,isDisabled:n,value:o}){const i=r(Lv);return gc.jsx(Jm.Item,{isChecked:o===i.value,role:"option",icon:e,isDisabled:n,onClick:()=>{i.onChange(o)},children:t})},$v.SectionTitle=Jm.SectionTitle,$v.Divider=Jm.Divider,$v.SearchInput=Jm.SearchInput,$v.Text=Jm.Text;const Uv=lc.div.withConfig({displayName:"Container",componentId:"sc-1b6hxsw-0"})(["position:relative;display:flex;gap:",";align-items:center;"],bc.spacing3),Vv=lc.div.withConfig({displayName:"SliderContainer",componentId:"sc-1b6hxsw-1"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Wv=lc.div.withConfig({displayName:"IconStyled",componentId:"sc-1b6hxsw-2"})(["display:grid;color:",";"],(e=>e.$isDisabled?bc.colorTextDisabled:bc.colorTextMuted)),qv=ic(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;border-inline:none;appearance:none;"]),Zv=ic(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:",";transform:translateY(-50%);-webkit-appearance:none;appearance:none;"],(e=>e.$isDisabled?"none":"auto"));function Gv(e){const t=Hv(e.min,e.max,e.value);let n,r;Array.isArray(e.$values)?(n=Hv(e.min,e.max,e.$values[0]),r=Hv(e.min,e.max,e.$values[1])):e.$isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t);const o=e.$isDisabled?bc.gray400:bc.brandPrimary500;return`linear-gradient(\n\t\t90deg,\n\t\t${bc.gray100a} ${n},\n\t\t${o} ${n},\n\t\t${o} ${r},\n\t\t${bc.gray100a} ${r}\n\t)`}const Yv=lc.input.attrs((e=>({style:{"--track-background":Gv(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-1b6hxsw-3"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;cursor:",";pointer-events:",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.$isDisabled?"default":"pointer"),(e=>e.$isRange||e.$isDisabled?"none":"auto"),Zv,Zv,qv,qv),Kv=lc.div.withConfig({displayName:"ThumbContainer",componentId:"sc-1b6hxsw-4"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;"," ",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.$isInactive?0:1),(e=>e.$isInactive&&ic(["",":hover &{--thumb-opacity:",";}"],Vv,e.$isDisabled?0:1)),Yv,bc.gray100a,bc.elevationStatic,bc.elevation1,Yv,bc.gray100a,bc.gray100a,Yv,bc.gray100a,bc.elevationStatic,bc.elevation2),Xv=lc.div.withConfig({displayName:"ThumbCircle",componentId:"sc-1b6hxsw-5"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";"," transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],bc.radiusCircle,(e=>e.$isDisabled?bc.gray400:bc.gray10),(e=>!e.$isDisabled&&ic(["box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");"],bc.elevationStatic,bc.elevation1,bc.gray75a)),bc.radiusCircle,(e=>e.$isDisabled?bc.gray400:bc.gray25)),Jv=lc.div.withConfig({displayName:"InputContainer",componentId:"sc-1b6hxsw-6"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.$min.toString().length,e.$max.toString().length)+"px"}));function Qv({min:e,max:t,value:n,isTooltipOpen:r,inputPosition:o,isInactive:i,isDisabled:a}){const s=Hv(e,t,n);return gc.jsxs(Kv,{$isInactive:i,$isDisabled:a,style:ey(s),"data-testid":"ds-slider-thumb",children:[gc.jsx(Xv,{$isDisabled:a}),"none"===o&&gc.jsx(kp,{isOpen:r,content:n,position:"top-center",children:e=>gc.jsx("div",{...e})})]})}function ey(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function ty({min:e,max:t,value:n,onChange:r,inputPosition:i,isFromCenter:a=!1,isInactive:s,isTooltipHidden:l,isDisabled:c,step:u}){const[d,p]=o(!1),f=Array.isArray(n);return gc.jsxs(gc.Fragment,{children:[gc.jsx(Yv,{min:e,max:t,value:f?n[0]:n,$values:n,type:"range",onChange:r,name:"min-input",step:u,onMouseDown:()=>{p(!0)},onMouseUp:()=>{p(!1)},$isFromCenter:a,$isRange:f,$isDisabled:c,role:"slider",disabled:c}),gc.jsx(Qv,{isTooltipOpen:d&&!l,min:e,max:t,value:f?n[0]:n,inputPosition:i,isInactive:s,isDisabled:c}),f&&gc.jsxs(gc.Fragment,{children:[gc.jsx(Yv,{min:e,max:t,value:n[1],type:"range",onChange:r,name:"max-input",step:u,$values:n,onMouseDown:()=>{p(!0)},onMouseUp:()=>{p(!1)},$isRange:f,$isDisabled:c,disabled:c}),gc.jsx(Qv,{isTooltipOpen:d&&!l,min:e,max:t,value:n[1],inputPosition:i,isInactive:s,isDisabled:c})]})]})}function ny({min:e,max:t,inputPosition:n="none",value:r,onChange:i,iconLeft:a,iconRight:s,isFromCenter:l=!1,isInactive:c=!1,isTooltipHidden:u=!1,isDisabled:d=!1,step:p,...f}){const[h,m]=o(""),[g,v]=o("none");function y(n){v("none");const o=parseFloat(n.target.value);if(Array.isArray(r)){if("min-input"===n.target.name&&o<r[1]&&i([o<e?e:o,r[1]]),"max-input"===n.target.name&&r[0]<o){const e=o>t?t:o;i([r[0],e])}}else i(o>t?t:o<e?e:o)}function b(e){"Enter"===e.key&&e.target.blur()}const w=String(Array.isArray(r)?r[0]:r),x=String(Array.isArray(r)?r[1]:r);return gc.jsxs(Uv,{...f,children:[("left"===n||"both"===n)&&gc.jsx(Jv,{$min:e,$max:t,"data-testid":"ds-slider-input-left",children:gc.jsx(wh,{onChange:m,value:"left"===g?h:w,type:"number",onFocus:()=>{m(w),v("left")},onBlur:()=>{y({target:{name:"min-input",value:h}})},onKeyDown:b,isDisabled:d})}),a&&gc.jsx(Wv,{$isDisabled:d,children:a}),gc.jsx(Vv,{children:gc.jsx(ty,{min:e,max:t,value:r,inputPosition:n,onChange:y,isFromCenter:l,isInactive:c,isTooltipHidden:u,isDisabled:d,step:p})}),s&&gc.jsx(Wv,{$isDisabled:d,children:s}),("right"===n||"both"===n)&&gc.jsx(Jv,{$min:e,$max:t,"data-testid":"ds-slider-input-right",children:gc.jsx(wh,{onChange:m,value:"right"===g?h:x,type:"number",onFocus:()=>{m(x),v("right")},onBlur:()=>{y({target:{name:"max-input",value:h}})},onKeyDown:b,isDisabled:d})})]})}var ry=new Map,oy=new WeakMap,iy=0,ay=void 0;function sy(e,t,n={},r=ay){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(oy.has(n)||(iy+=1,oy.set(n,iy.toString())),oy.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=ry.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var n;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach((e=>{e(i,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},ry.set(t,n)}return n}(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),ry.delete(o))}}function ly({threshold:t,delay:n,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:s,initialInView:l,fallbackInView:c,onChange:u}={}){var d;const[p,f]=e.useState(null),h=e.useRef(),[m,g]=e.useState({inView:!!l,entry:void 0});h.current=u,e.useEffect((()=>{if(s||!p)return;let e;return e=sy(p,((t,n)=>{g({inView:t,entry:n}),h.current&&h.current(t,n),n.isIntersecting&&a&&e&&(e(),e=void 0)}),{root:i,rootMargin:o,threshold:t,trackVisibility:r,delay:n},c),()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,p,i,o,a,s,r,c,n]);const v=null==(d=m.entry)?void 0:d.target,y=e.useRef();p||!v||a||s||y.current===v||(y.current=v,g({inView:!!l,entry:void 0}));const b=[f,m.inView,m.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}const cy={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function uy(e){Object.keys(cy).forEach((t=>{e.style.setProperty(t,cy[t],"important")}))}let dy=null;const py=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];const fy=u((({id:e,isDisabled:t=!1,isReadOnly:n=!1,isInvalid:r=!1,onBlur:o,onChange:i,onFocus:a,placeholder:s,value:c,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,minRows:h=2,maxRows:m=8,maxLength:g,autoFocus:v=!1,...y},b)=>{const w=l(null);return function(e,t,n){const r=l(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);d((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,py.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){dy||(dy=document.createElement("textarea"),dy.setAttribute("tabindex","-1"),dy.setAttribute("aria-hidden","true"),uy(dy)),null===dy.parentNode&&document.body.appendChild(dy);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!dy)return;const t=e;dy.style[t]=a[t]})),uy(dy),dy.value=t;let s=function(e,t){const n=dy.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);dy.value="x";const l=dy.scrollHeight-o;let c=l*n;"border-box"===a.boxSizing&&(c=c+o+i),s=Math.max(c,s);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),s=Math.min(u,s),s}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(w,h,m),gc.jsx(hy,{value:c,onChange:function(e){if(i){const t=e.currentTarget.value;i(t)}},id:e,disabled:t,readOnly:n,$isInvalid:r,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,onBlur:o,onFocus:a,placeholder:s,autoComplete:"off",autoCorrect:"off",autoFocus:v,ref:mh(b,w),maxLength:g,...y})})),hy=lc.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11tsgxs-0"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],bc.spacing3,bc.spacing5,bc.gray100,bc.radiusBase,bc.white,bc.colorText,bc.brandFontStackBase,Gd.paragraphM,bc.gray400,bc.gray200,bc.elevation1,bc.gray300,bc.gray100a,bc.gray100,bc.gray25,bc.gray600,(e=>e.$isInvalid&&ic(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],bc.red500,bc.red600,bc.red500)));function my(e){var t;return null!==(t=gy[e])&&void 0!==t?t:e}var gy={};function vy(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){gy=e}))}),[e])}function yy(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function by(e){return t.createElement(t.Fragment,null,t.createElement(yy,null),t.createElement(Cy,null,my("Oops! Something went wrong")),t.createElement(ky,null,my("Please try again or get in contact with our customer support.")),t.createElement(Sy,null,t.createElement(hu,{variant:"secondary",title:my("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?my("Report sent"):my("Send report...")),t.createElement(hu,{variant:"primary",title:my("Try again"),onClick:e.onClickRetry},my("Try again"))))}var wy,xy,Ey,Cy=lc.h1(wy||(wy=la(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing8,bc.fontSize400),ky=lc.span(xy||(xy=la(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),Sy=lc.div(Ey||(Ey=la(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),bc.spacing7,bc.spacing3);function Iy(e){var n;return t.createElement(av,{title:my("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(hu,{variant:"primary",title:my("Send report"),onClick:e.onDone},my("Send report")),actionSecondary:t.createElement(hu,{variant:"secondary",title:my("Cancel"),onClick:e.onCancel},my("Cancel")),container:e.container},t.createElement(jy,null,my("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(Ay,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(Py,null,my("We will treat this report as confidential and anonymous.")))}var Ty,_y,Oy,jy=lc.div(Ty||(Ty=la(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),bc.lineHeightText),Ay=lc.div(_y||(_y=la(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),bc.spacing5,bc.gray25,bc.radiusMedium,bc.gray200,bc.lineHeightText,bc.spacing5,bc.spacing4),Py=lc.span(Oy||(Oy=la(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),bc.colorTextDisabled,bc.lineHeightBase,bc.fontSize75);function By(e){var n=e.error,r=e.onRetry,i=e.sentryClient,s=Ea(),l=o(!1),c=l[0],u=l[1],d=o(!1),p=d[0],f=d[1];return a((function(){ba.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(by,{isReportSent:p,onClickSend:function(){u(!0)},onClickRetry:r}),t.createElement(Iy,{isOpen:c,error:n,container:s,onDone:function(){null==i||i.captureException(n),u(!1),f(!0)},onCancel:function(){u(!1)}}))}function Ny(){var e=ta(da()[0].page),n=e[0],r=e[1],o={ASC:my("Ascending"),DESC:my("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(hu,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(zy,{$isAscending:"ASC"===n.direction})})}var Dy,zy=lc(Du)(Dy||(Dy=la(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),bc.spacing6,bc.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function My(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var Ry=300;function Fy(e){var n,r=l(null),i=o(0)[1];!function(e,t){var n=Ea();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,r],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=Ea(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),w=b.width-(null!=h?h:0)-(null!=g?g:0),x=b.height-(null!=y?y:0)-(null!=v?v:0);h&&w<Ry&&(h=p+u.width-Ry);var E={left:h,right:g,top:v,bottom:y,maxWidth:w,maxHeight:x,minWidth:Ry,overflowY:"scroll"},C=My("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:r,style:E},e.children),s)}function Ly(e){var n=e.buttonKind,r=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=oa(e,["buttonKind","direction","isSmall","fadeIn"]),p=i((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=o(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(Hy,{$fadeIn:Boolean(u)},t.createElement(hu,{variant:r,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Eu,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(Fy,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var $y,Hy=lc.div($y||($y=la(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function Uy(e){var n=e.selected,r=void 0!==n&&n,o=oa(e,["selected"]),i=My("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(Cu,{className:"w-6 h-6 ml-3 fade-in"})))}function Vy(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ta(da()[0].page),i=o[0],a=o[1],s={CREATED_AT:my("Date added"),NAME:my("Name"),PUBLISHED_AT:my("Date published"),UPDATED_AT:my("Date modified")};return t.createElement(qy,null,t.createElement(Ly,{className:"py-2",title:s[i.field],alt:my("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Uy,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var Wy,qy=lc.div(Wy||(Wy=la(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function Zy(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var Gy=" ";function Yy(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:My("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"‌")}function Ky(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(af,null,t.createElement(af.Frame,null),t.createElement(af.AdditionalInfo,null,t.createElement(Yy,{width:70+(100,o=r,16807*((o+20)%2147483647+2147483646)%2147483647%100),className:"h-4"})),e.title));var o})))}function Xy(e){return{tag:"ok",value:e}}function Jy(e){return{tag:"error",error:e}}function Qy(e){return"ok"===e.tag}function eb(e){return"error"===e.tag}function tb(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var nb="transformBaseURL",rb="transformBaseUrl",ob={year:"numeric",month:"long",day:"2-digit"},ib=280;function ab(e){var t;if(e[nb]){var n=e,r=nb,o=n[r],i=oa(n,["symbol"==typeof r?r:r+""]);return ra(ra({},i),((t={})[rb]=ra({},o),t))}return e}var sb=new Map;function lb(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p;return aa(this,(function(f){switch(f.label){case 0:if(t=e.query,n=e.variables,r=e.auth,o=e.noCache,!r)return[2,Jy("No authentication provided")];if(i=r.getAccessToken&&r.getAccessToken(),"/"===(a=void 0!==r.accountDomain?tb(r.accountDomain.trim()):"https://".concat(window.location.host)).charAt(a.length-1)&&(a=a.slice(0,-1)),s="".concat(a,":").concat(t,":").concat(JSON.stringify(n),":").concat(i),sb.has(s)&&!o)return[2,Xy(sb.get(s))];l={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("4.3.3")},c=void 0===i?l:ra(ra({},l),{Authorization:"Bearer ".concat(i)}),u={method:"post",headers:c,body:JSON.stringify({query:t,variables:n})},f.label=1;case 1:return f.trys.push([1,4,,5]),[4,fetch("".concat(a,"/graphql"),u)];case 2:return[4,f.sent().json()];case 3:return d=f.sent(),p=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?ra(ra({},e),{searchAssets:ra(ra({},e.searchAssets),{assets:ra(ra({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=ab(e.files);return ra(ra({},e),{files:ra({},t)})}return e}))})})}):e}(d.data),[3,5];case 4:return[2,Jy(f.sent())];case 5:return void 0!==d.errors?[2,Jy(d.errors.map((function(e){return e.message})).join(","))]:(o||(sb.set(s,p),sb.size>50&&sb.delete(sb.keys().next().value)),[2,Xy(p)])}}))}))}function cb(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function ub(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var db="42b1eefa-d754-4802-b9c4-bf80d6ab6052",pb="v6/authentication/oauth2/",fb="".concat("https://d8ejoa1fys2rk.cloudfront.net"),hb=fb+"/5.0.5/modules/compactview/loginCompleted.html",mb="".concat("https://apiv2.webdamdb.com","/"),gb="oauth2/",vb=["offline","asset:read","collection:read","meta.assetbank:read"];function yb(e,t,n){return ia(this,void 0,void 0,(function(){var r,o,i,a;return aa(this,(function(s){switch(s.label){case 0:r=bb(n)+"token",o=new URLSearchParams({client_id:db,code_verifier:t,code:e,redirect_uri:hb,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,Jy("Failed to fetch access token: ".concat(i.status))];case 3:return[2,Xy({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Jy(s.sent().toString())];case 5:return[2]}}))}))}function bb(e){return"webdam"===wb()?mb+gb:tb(e)+pb}function wb(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function xb(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a;return aa(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,Jy("Error opening login window")]:(o.document.head.innerHTML=Eb,o.document.body.innerHTML=Cb,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===fb&&e(Xy(t))}))})),new Promise((function(e){setTimeout((function(){return e(Jy("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Jy("Login window closed")))}),1e3)})))])]);case 1:return eb(i=s.sent())?[2,i]:[2,Xy({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Eb='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',Cb='<div class="cv-spinner"></div>';var kb='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}h1,h3,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{border:0 solid rgba(0,34,51,.1);-webkit-box-sizing:border-box;box-sizing:border-box}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1,h3{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select,textarea{color:inherit;line-height:inherit;padding:0}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-bottom:8px;margin-top:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-bottom:16px;padding-top:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-bottom:1px;padding-top:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover,.text-body-500{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{opacity:0;-webkit-transform:scale(2);transform:scale(2)}}@keyframes ping{75%,to{opacity:0;-webkit-transform:scale(2);transform:scale(2)}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1);-webkit-transform:translateY(-25%);transform:translateY(-25%)}50%{-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1);-webkit-transform:none;transform:none}}@keyframes bounce{0%,to{-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1);-webkit-transform:translateY(-25%);transform:translateY(-25%)}50%{-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1);-webkit-transform:none;transform:none}}@-webkit-keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{-webkit-box-orient:vertical;-webkit-box-direction:normal;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,34,51,.8);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{height:100%;overflow:hidden;width:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;border-color:rgba(0,34,51,.1);border-radius:5px;border-width:1px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);margin-bottom:4px;margin-top:4px;overflow-y:auto;overflow-y:hidden;position:fixed;-webkit-transition:left .1s ease-out;transition:left .1s ease-out;z-index:9999999}.card-list{-webkit-box-flex:1;-ms-flex-positive:1;-ms-flex-line-pack:start;-webkit-box-pack:center;-ms-flex-pack:center;align-content:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:center;padding-left:8px;padding-right:8px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;height:20px;left:50%;margin:-10px 0 0 -10px;position:absolute;top:50%;width:20px;z-index:2}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{background-color:rgba(0,34,51,.05);border-radius:4px;display:inline-block;overflow:hidden;position:relative}.cv-skeleton:before{-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0));content:"";height:100%;left:-500px;position:absolute;top:0;width:500px}@-webkit-keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}::-ms-clear{display:none}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}';function Sb(e){var n=Ea();return t.createElement(Vl,{target:n},t.createElement(hp,{zIndexBase:1e6},e.children))}function Ib(e){var n=e.children,r=e.isContainerMode,i=void 0!==r&&r,s=t.useRef(null),l=o(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+kb,Tb(null!=e?e:document.head,t),n&&Tb(document.head,Ob),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(xa,{value:c},t.createElement(Sb,null,m(t.createElement(jb,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function Tb(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var _b,Ob="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),jb=lc.div(_b||(_b=la(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),Ab=n("parent");function Pb(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o;return"parent"===r(Ab)?t.createElement(Ab.Provider,{value:"child"},t.createElement(Ib,{isContainerMode:i},n)):t.createElement(t.Fragment,null,n)}var Bb=n(null),Nb=function(){return r(Bb)};function Db(e){var n=e.children,r=e.isOpen,s=void 0===r||r,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=o(null),p=d[0],f=d[1],h=i((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(Bb.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(Pb,null,t.createElement(Rb,{className:"z-a-lot"},t.createElement(Fb,{style:l,"data-testid":"modal"},n))),p))):null}var zb,Mb,Rb=lc.div(zb||(zb=la(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),bc.spacing5,bc.gray100a),Fb=lc.div(Mb||(Mb=la(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),bc.radiusBase);function Lb(e){var n=Nb();return t.createElement(Vb,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(Wb,null,t.createElement(hu,{variant:"clean",onClick:n.onClose,title:my("Close"),icon:t.createElement(xu,null)})),t.createElement(qb,null,e.children))}var $b,Hb,Ub,Vb=lc.div($b||($b=la(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),bc.gray10),Wb=lc.div(Hb||(Hb=la(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),bc.spacing4,bc.spacing5),qb=lc.div(Ub||(Ub=la(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),bc.fontSize300);function Zb(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},my("Connect your brand portal")))}function Gb(e){var n=My("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function Yb(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(Jb,null,t.createElement(ug,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:my("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&my("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(Qb,{role:"alert","aria-live":"polite"},t.createElement(Gb,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var Kb,Xb,Jb=lc.div(Kb||(Kb=la(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),bc.spacing4),Qb=lc.div(Xb||(Xb=la(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function ew(e){return t.createElement(hu,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},my("Connect"))}function tw(e){return t.createElement(Lb,null,t.createElement(Zb,null),t.createElement(Yb,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(ew,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var nw=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(By,{error:this.state.error,sentryClient:this.props.sentryClient,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function rw(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Gb,null)," ")}var ow=n(null);function iw(e){var n,r,i,s,c,u,d,p,f;vy(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=o(void 0),r=n[0],i=n[1],s=o(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=o(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=o(w()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=r),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){r&&r()||!c||!p||(g("refreshing"),function(e,t){return ia(this,void 0,void 0,(function(){var n,r,o,i;return aa(this,(function(a){switch(a.label){case 0:n=bb(t)+"token",r=new URLSearchParams({client_id:db,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,Jy("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,Xy({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Jy(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){Qy(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(ba.error(e.error),b())})))}),[r,c,p]),[{getAccessToken:r,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=o(null!=e?e:""),n=t[0],r=t[1],i=o(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return ia(this,void 0,void 0,(function(){var t,n,r;return aa(this,(function(o){switch(o.label){case 0:t=tb(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),r(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(r=e.portal)||void 0===r?void 0:r.url)&&void 0!==i?i:m.accountDomain),b=y[0],w=y[1],x=y[2],E=o(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&ba.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return aa(this,(function(p){switch(p.label){case 0:t=ub(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,cb(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Jy(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=ub(),i=function(e,t,n){var r={client_id:db,code_challenge:e,code_challenge_method:"S256",redirect_uri:hb,response_type:"code",scope:vb.join(" "),domain:"",state:t},o="auth?";"webdam"===wb()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return bb(n)+o+i}(r,o,e),[4,xb(i)];case 5:return eb(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Jy("Error logging in")]:[4,yb(a.value.code,t,e)];case 6:return eb(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,Xy({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(Qy(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else ba.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=ra(ra({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(ow.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(Pb,{isContainerMode:!0},t.createElement(tw,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(rw,null)}}var aw=function(e){return t.createElement(nw,null,t.createElement(iw,ra({},e)))},sw=function(){var e;return"authenticated"===(null===(e=r(ow))||void 0===e?void 0:e.status)||!1},lw=function(){return r(ow)},cw=function(e){var t=e.filters,n=e.predefinedFilters;return e.showToolbar?(null==t?void 0:t.length)?Array.from(new Set(sa(sa([],n||[],!0),t,!0))):n:(null==t?void 0:t.length)?t:n},uw=function(e){if(e)return e.map((function(e){return e.id}))},dw="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",pw="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(dw,"\n");function fw(e,t){var n,r,i,s,l,c=this;void 0===t&&(t=!1);var u=lw(),d=o({tag:"Loading",value:null}),p=d[0],f=d[1],h=!1,m=function(n){return ia(c,void 0,void 0,(function(){var r,o;return aa(this,(function(i){switch(i.label){case 0:return f((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=wx(e,null!=n?n:null),[4,lb({query:pw,variables:r,auth:u,noCache:t})];case 1:return o=i.sent(),h||(eb(o)?f({tag:"Failure",value:o.error}):g(o,n)),[2]}}))}))},g=function(e,t){xx(p)&&t?f((function(t){var n,r,o=null!==(r=null===(n=xx(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:ra(ra({},e.value.searchAssets.assets),{nodes:sa(sa([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):f({tag:"Loaded",value:e.value})};return a((function(){return m(),function(){h=!0}}),[null===(n=e.filter)||void 0===n?void 0:n.assetTypes,null===(r=e.filter)||void 0===r?void 0:r.metaproperties,null===(i=e.filter)||void 0===i?void 0:i.tags,null===(s=e.filter)||void 0===s?void 0:s.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:p,executeQuery:function(){return m()},isLoading:!p||"Loading"===p.tag,loadMore:function(){var e;return m(null===(e=xx(p))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(l=xx(p))||void 0===l?void 0:l.pageInfo.hasNextPage)}}var hw,mw,gw,vw,yw,bw,ww,xw,Ew,Cw,kw,Sw,Iw,Tw,_w,Ow,jw,Aw,Pw,Bw,Nw,Dw,zw,Mw,Rw,Fw,Lw,$w,Hw,Uw,Vw,Ww,qw,Zw,Gw,Yw,Kw,Xw,Jw,Qw,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,hx,mx,gx,vx,yx,bx,wx=function(e,t){var n,r,o=e.filter,i=e.predefinedFilter,a=e.collection,s=e.orderBy,l=e.allAssetTypes,c=e.searchTerm,u=e.language,d=cw({filters:null==o?void 0:o.assetTypes,predefinedFilters:null==i?void 0:i.assetType_in,showToolbar:null==i?void 0:i.showToolbar}),p=cw({filters:uw(null==o?void 0:o.metaproperties),predefinedFilters:null==i?void 0:i.metapropertyOptionId_in,showToolbar:null==i?void 0:i.showToolbar}),f=cw({filters:null==o?void 0:o.tags,predefinedFilters:null==i?void 0:i.tagNames_in,showToolbar:null==i?void 0:i.showToolbar});return{orderBy:s,filter:{collectionId:null!==(n=null==a?void 0:a.id)&&void 0!==n?n:null==i?void 0:i.collectionId,assetType_in:null!=d?d:l,metapropertyOptionId_in:p,searchTerm:null!==(r=null!=c?c:null==i?void 0:i.searchTerm)&&void 0!==r?r:null,tagNames_in:f,isLimitedUse:null==o?void 0:o.isLimited},after:t,language:u}},xx=function(e,t){var n,r=e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets};function Ex(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i;return aa(this,(function(a){switch(a.label){case 0:return t=e.ids,n=e.auth,r=e.language,o=e.noCache,[4,lb({query:"\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(dw),variables:{ids:t,language:r},auth:n,noCache:o})];case 1:return eb(i=a.sent())?[2,i]:[2,Xy(i.value.nodes)]}}))}))}function Cx(){if(mw)return hw;mw=1;var e=Object.prototype;return hw=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function kx(){if(Cw)return Ew;Cw=1;var e="object"==typeof g&&g&&g.Object===Object&&g;return Ew=e}function Sx(){if(Sw)return kw;Sw=1;var e=kx(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return kw=n}function Ix(){if(Tw)return Iw;Tw=1;var e=Sx().Symbol;return Iw=e}function Tx(){if(Bw)return Pw;Bw=1;var e=Ix(),t=function(){if(Ow)return _w;Ow=1;var e=Ix(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return _w=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[o]=i:delete e[o]),s}}(),n=function(){if(Aw)return jw;Aw=1;var e=Object.prototype.toString;return jw=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return Pw=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function _x(){return Dw?Nw:(Dw=1,Nw=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)})}function Ox(){if(Mw)return zw;Mw=1;var e=Tx(),t=_x();return zw=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function jx(){if(Uw)return Hw;Uw=1;var e=Function.prototype.toString;return Hw=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function Ax(){if(Yw)return Gw;Yw=1;var e=function(){if(Ww)return Vw;Ww=1;var e=Ox(),t=function(){if($w)return Lw;$w=1;var e=function(){if(Fw)return Rw;Fw=1;var e=Sx()["__core-js_shared__"];return Rw=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return Lw=function(e){return!!t&&t in e}}(),n=_x(),r=jx(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,s=i.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Vw=function(i){return!(!n(i)||t(i))&&(e(i)?c:o).test(r(i))}}(),t=Zw?qw:(Zw=1,qw=function(e,t){return null==e?void 0:e[t]});return Gw=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function Px(){return cx?lx:(cx=1,lx=function(e){return null!=e&&"object"==typeof e})}function Bx(){if(mx)return hx;mx=1;var e=Array.isArray;return hx=e}function Nx(){return vx?gx:(vx=1,gx=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991})}var Dx,zx,Mx,Rx,Fx,Lx,$x,Hx={exports:{}};var Ux,Vx,Wx,qx,Zx,Gx,Yx,Kx,Xx,Jx,Qx,eE,tE,nE,rE,oE={exports:{}};function iE(e,t,n){var r=this,o=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=i((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(i(r))return a(r);if(h.current){var l=t-(r-o.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},w=function(){var a=Date.now(),f=i(a);if(u.current=[].slice.call(arguments),d.current=r,o.current=a,f){if(!c.current&&h.current)return s.current=o.current,n(l,t),g?e(o.current):p.current;if(y)return n(l,t),e(o.current)}return c.current||n(l,t),p.current};return w.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null},w.isPending=function(){return!!c.current},w.flush=function(){return c.current?a(Date.now()):p.current},w}),[g,y,t,b,v,m]);return w}!function(){if(Zx)return qx;Zx=1;var e=function(){if(xw)return ww;xw=1;var e=Cx(),t=function(){if(bw)return yw;bw=1;var e=(vw?gw:(vw=1,gw=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return yw=e}(),n=Object.prototype.hasOwnProperty;return ww=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}(),t=function(){if(sx)return ax;sx=1;var e=function(){if(Xw)return Kw;Xw=1;var e=Ax()(Sx(),"DataView");return Kw=e}(),t=function(){if(Qw)return Jw;Qw=1;var e=Ax()(Sx(),"Map");return Jw=e}(),n=function(){if(tx)return ex;tx=1;var e=Ax()(Sx(),"Promise");return ex=e}(),r=function(){if(rx)return nx;rx=1;var e=Ax()(Sx(),"Set");return nx=e}(),o=function(){if(ix)return ox;ix=1;var e=Ax()(Sx(),"WeakMap");return ox=e}(),i=Tx(),a=jx(),s="[object Map]",l="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",p=a(e),f=a(t),h=a(n),m=a(r),g=a(o),v=i;return(e&&v(new e(new ArrayBuffer(1)))!=d||t&&v(new t)!=s||n&&v(n.resolve())!=l||r&&v(new r)!=c||o&&v(new o)!=u)&&(v=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case p:return d;case f:return s;case h:return l;case m:return c;case g:return u}return t}),ax=v}(),n=function(){if(fx)return px;fx=1;var e=function(){if(dx)return ux;dx=1;var e=Tx(),t=Px();return ux=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Px(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return px=i}(),r=Bx(),o=function(){if(bx)return yx;bx=1;var e=Ox(),t=Nx();return yx=function(n){return null!=n&&t(n.length)&&!e(n)}}(),i=(Mx||(Mx=1,function(e,t){var n=Sx(),r=zx?Dx:(zx=1,Dx=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(Hx,Hx.exports)),Hx.exports),a=Cx(),s=function(){if(Wx)return Vx;Wx=1;var e=function(){if(Fx)return Rx;Fx=1;var e=Tx(),t=Nx(),n=Px(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,Rx=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=$x?Lx:($x=1,Lx=function(e){return function(t){return e(t)}}),n=(Ux||(Ux=1,function(e,t){var n=kx(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(oE,oE.exports)),oE.exports),r=n&&n.isTypedArray,o=r?t(r):e;return Vx=o}(),l=Object.prototype.hasOwnProperty;qx=function(c){if(null==c)return!0;if(o(c)&&(r(c)||"string"==typeof c||"function"==typeof c.splice||i(c)||s(c)||n(c)))return!c.length;var u=t(c);if("[object Map]"==u||"[object Set]"==u)return!c.size;if(a(c))return!e(c).length;for(var d in c)if(l.call(c,d))return!1;return!0}}(),function(){if(rE)return nE;rE=1;var e=function(){if(tE)return eE;tE=1;var e=function(){if(Qx)return Jx;Qx=1;var e=Ix(),t=(Yx||(Yx=1,Gx=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}),Gx),n=Bx(),r=function(){if(Xx)return Kx;Xx=1;var e=Tx(),t=Px();return Kx=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return Jx=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a}}();return eE=function(t){return null==t?"":e(t)}}(),t=0;nE=function(n){var r=++t;return e(n)+r}}();var aE={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},sE=t.createContext&&t.createContext(aE),lE=function(){return lE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lE.apply(this,arguments)},cE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function uE(e){return e&&e.map((function(e,n){return t.createElement(e.tag,lE({key:n},e.attr),uE(e.child))}))}function dE(e){return function(n){return t.createElement(pE,lE({attr:lE({},e.attr)},n),uE(e.child))}}function pE(e){var n=function(n){var r,o=e.attr,i=e.size,a=e.title,s=cE(e,["attr","size","title"]),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",lE({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:lE(lE({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==sE?t.createElement(sE.Consumer,null,(function(e){return n(e)})):n(aE)}function fE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function hE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function mE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}}]})(e)}function gE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"}}]})(e)}function vE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"}}]})(e)}function yE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12a5.99 5.99 0 014-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09A5.99 5.99 0 013 12z"}}]})(e)}function bE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}}]})(e)}function wE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function xE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function EE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}}]})(e)}function CE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5a2.5 2.5 0 000 5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5a2.5 2.5 0 000-5z"}}]})(e)}function kE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function SE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}}]})(e)}function IE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}}]})(e)}function TE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}}]})(e)}function _E(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"}}]})(e)}function OE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0111 4.07zm7.32.19A9.949 9.949 0 0013 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.01-1-3.84-2.21-5.32L18.31 7.1a7.941 7.941 0 011.62 3.9zM5.69 7.1L4.26 5.68A9.949 9.949 0 002.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM4.07 13H2.05c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 014.07 13zM15 12c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3zm3.31 4.9l1.43 1.43a9.981 9.981 0 002.21-5.32h-2.02a7.945 7.945 0 01-1.62 3.89zM13 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.43-1.43c-1.1.86-2.43 1.44-3.89 1.62zm-7.32-.19A9.981 9.981 0 0011 21.95v-2.02a7.941 7.941 0 01-3.9-1.62l-1.42 1.43z"}}]})(e)}function jE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function AE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function PE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function BE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}}]})(e)}function NE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function DE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}function zE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function ME(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function RE(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z"}}]})(e)}var FE,LE,$E,HE,UE,VE,WE,qE={};function ZE(){if(UE)return qE;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}UE=1,Object.defineProperty(qE,"__esModule",{value:!0}),qE.CopyToClipboard=void 0;var n=i(t),r=i(function(){if(HE)return $E;HE=1;var e=(LE||(LE=1,FE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),FE),t={"text/plain":"Text","text/html":"Url",default:"Text"};return $E=function(n,r){var o,i,a,s,l,c,u=!1;r||(r={}),o=r.debug||!1;try{if(a=e(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(e){if(e.stopPropagation(),r.format)if(e.preventDefault(),void 0===e.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=t[r.format]||t.default;window.clipboardData.setData(i,n)}else e.clipboardData.clearData(),e.clipboardData.setData(r.format,n);r.onCopy&&(e.preventDefault(),r.onCopy(e.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(e){o&&console.error("unable to copy using execCommand: ",e),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),u=!0}catch(e){o&&console.error("unable to copy using clipboardData: ",e),o&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in r?r.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u},$E}()),o=["text","onCopy","options","children"];function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(m,t);var i,a,p,f,h=(i=m,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var t,n=u(i);if(a){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,t)});function m(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(c(e=h.call.apply(h,[this].concat(o))),"onClick",(function(t){var o=e.props,i=o.text,a=o.onCopy,s=o.children,l=o.options,c=n.default.Children.only(s),u=(0,r.default)(i,l);a&&a(i,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return p=m,f=[{key:"render",value:function(){var e=this.props,t=e.children,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,o),i=n.default.Children.only(t);return n.default.cloneElement(i,s(s({},r),{},{onClick:this.onClick}))}}],f&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(p.prototype,f),Object.defineProperty(p,"prototype",{writable:!1}),m}(n.default.PureComponent);return qE.CopyToClipboard=p,d(p,"defaultProps",{onCopy:void 0,options:void 0}),qE}var GE=function(){if(WE)return VE;WE=1;var e=ZE().CopyToClipboard;return e.CopyToClipboard=e,VE=e}();function YE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 9h2V7h4V5h-4V3h-2v6ZM7 9v2H3v2h4v2h2V9H7Zm6 10v2h-2v-6h2v2h8v2h-8ZM3 19v-2h6v2H3Zm18-8v2H11v-2h10Zm-8-6H3v1.99h10V5Z",clipRule:"evenodd"})})}function KE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[gc.jsx("path",{fill:"currentColor",d:"M3 3h2v16h16v2H3V3Z"}),gc.jsx("path",{fill:"currentColor",d:"M7 5c6.627 0 12 5.373 12 12h-2c0-5.523-4.477-10-10-10V5Z"})]})}function XE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}function JE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z"})})}function QE({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5v-5ZM7 9h3V7H5v5h2V9Zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16.01H3V4.99h18v14.02Z"})})}function eC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 0 0 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12ZM5.21 10 10 5.21 14.79 10H5.21ZM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5ZM2 20h20v4H2v-4Z"})})}function tC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5ZM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5ZM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5Zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5Zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5Zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5ZM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5ZM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5Zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1Zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5Z"})})}function nC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M13 7h-2v2h2V7Zm0 4h-2v2h2v-2Zm4 0h-2v2h2v-2ZM3 3v18h18V3H3Zm16 16H5V5h14v14Zm-6-4h-2v2h2v-2Zm-4-4H7v2h2v-2Z"})})}function rC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M4 5h16v2H4V5ZM4 9h16v3H4V9ZM20 14H4v5h16v-5Z"})})}function oC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m20.71 5.63-2.34-2.34a.996.996 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42ZM6.92 19 5 17.08l8.06-8.06 1.92 1.92L6.92 19Z"})})}function iC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[gc.jsx("path",{fill:"currentColor",d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5Zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2Zm0 16H7V3h14v14Z"}),gc.jsx("path",{fill:"currentColor",d:"M12.778 6.283 14 5l1.222 1.283.004.004.008.008.025.027a13.827 13.827 0 0 1 .386.43c.243.282.57.676.899 1.128.326.447.674.976.945 1.523.26.523.511 1.182.511 1.857 0 1.942-1.668 3.74-4 3.74s-4-1.798-4-3.74c0-.675.25-1.334.51-1.857.272-.547.62-1.076.947-1.523a17.709 17.709 0 0 1 1.284-1.558l.025-.027.008-.008.004-.004Z"})]})}function aC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M15 21h2v-2h-2v2Zm4-12h2V7h-2v2ZM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2Zm16-2v2h2c0-1.1-.9-2-2-2Zm-8 20h2V1h-2v22Zm8-6h2v-2h-2v2ZM15 5h2V3h-2v2Zm4 8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Z"})})}function sC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M12 21c-2.217 0-4.104-.77-5.662-2.313C4.779 17.146 4 15.284 4 13.1c0-1.1.208-2.117.625-3.05a8.288 8.288 0 0 1 1.725-2.5L12 2l5.65 5.55a8.289 8.289 0 0 1 1.725 2.5c.417.933.625 1.95.625 3.05 0 2.183-.78 4.046-2.337 5.588C16.104 20.229 14.217 21 12 21Zm0-2V4.8L7.75 9a5.466 5.466 0 0 0-1.313 1.863A5.7 5.7 0 0 0 6 13.1c0 1.617.583 3.004 1.75 4.162C8.917 18.421 10.333 19 12 19Z"})})}function lC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1v16h16v2h-4v4h-2v-4H7c-1.1 0-2-.9-2-2V7H1V5h4V1h2Zm12 14h-2V7H9V5h8c1.1 0 2 .9 2 2v8Z",clipRule:"evenodd"})})}function cC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64ZM6 8a2 2 0 1 1-.001-3.999A2 2 0 0 1 6 8ZM4 18a2 2 0 1 0 3.999.001A2 2 0 0 0 4 18Zm8-5.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5ZM13 9l6-6h3v1l-7 7-2-2Z",clipRule:"evenodd"})})}function uC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M1 13v-2h6v2H1Zm6.75-3.85-2.1-2.1 1.4-1.4 2.1 2.1-1.4 1.4ZM11 7V1h2v6h-2Zm5.25 2.15-1.4-1.4 2.1-2.1 1.4 1.4-2.1 2.1ZM17 13v-2h6v2h-6Zm-5 2a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 12c0-.833.292-1.542.875-2.125A2.893 2.893 0 0 1 12 9c.833 0 1.542.292 2.125.875S15 11.167 15 12s-.292 1.542-.875 2.125A2.893 2.893 0 0 1 12 15Zm4.95 3.35-2.1-2.1 1.4-1.4 2.1 2.1-1.4 1.4Zm-9.9 0-1.4-1.4 2.1-2.1 1.4 1.4-2.1 2.1ZM11 23v-6h2v6h-2Z"})})}function dC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2Z"})})}function pC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.5 7V4h13v3h-5v12h-3V7h-5Zm10 2h9v3h-3v7h-3v-7h-3V9Z",clipRule:"evenodd"})})}function fC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M5 8H3v8h2v-3h14v3h2V8h-2v3H5V8Z"})})}function hC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71ZM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5Zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2Zm0 16H7V3h14v14Z"})})}function mC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M12 21c-2.217 0-4.104-.767-5.662-2.3C4.779 17.167 4 15.3 4 13.1c0-1.05.204-2.054.612-3.012A7.784 7.784 0 0 1 6.35 7.55L12 2l5.65 5.55c.75.733 1.33 1.58 1.738 2.538.408.958.612 1.962.612 3.012 0 2.2-.78 4.067-2.337 5.6C16.104 20.233 14.217 21 12 21Zm-6-7.9h12c0-.783-.15-1.53-.45-2.237A5.453 5.453 0 0 0 16.25 9L12 4.8 7.75 9c-.567.533-1 1.154-1.3 1.863-.3.708-.45 1.454-.45 2.237Z"})})}function gC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"})})}function vC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"})})}function yC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.5 12c0 .34-.03.66-.07.98l2.11 1.65c.19.15.24.42.12.64l-2 3.46c-.12.22-.38.31-.61.22l-2.49-1c-.52.39-1.08.73-1.69.98l-.38 2.65c-.03.24-.24.42-.49.42h-4c-.25 0-.46-.18-.49-.42l-.38-2.65c-.61-.25-1.17-.58-1.69-.98l-2.49 1c-.22.08-.49 0-.61-.22l-2-3.46a.505.505 0 0 1 .12-.64l2.11-1.65A7.93 7.93 0 0 1 4.5 12c0-.33.03-.66.07-.98L2.46 9.37a.493.493 0 0 1-.12-.64l2-3.46c.12-.22.38-.31.61-.22l2.49 1c.52-.39 1.08-.73 1.69-.98l.38-2.65c.03-.24.24-.42.49-.42h4c.25 0 .46.18.49.42l.38 2.65c.61.25 1.17.58 1.69.98l2.49-1c.22-.08.49 0 .61.22l2 3.46c.12.22.07.49-.12.64l-2.11 1.65c.04.32.07.64.07.98Zm-11 0c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5-3.5 1.57-3.5 3.5Z",clipRule:"evenodd"})})}function bC({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return gc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:gc.jsx("path",{fill:"currentColor",d:"M8 19v2h8v-2h-3V5h3V3H8v2h3v14H8Z"})})}let wC=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function xC(e,t){return function(){return e.apply(t,arguments)}}const{toString:EC}=Object.prototype,{getPrototypeOf:CC}=Object,kC=(e=>t=>{const n=EC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),SC=e=>(e=e.toLowerCase(),t=>kC(t)===e),IC=e=>t=>typeof t===e,{isArray:TC}=Array,_C=IC("undefined"),OC=SC("ArrayBuffer"),jC=IC("string"),AC=IC("function"),PC=IC("number"),BC=e=>null!==e&&"object"==typeof e,NC=e=>{if("object"!==kC(e))return!1;const t=CC(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},DC=SC("Date"),zC=SC("File"),MC=SC("Blob"),RC=SC("FileList"),FC=SC("URLSearchParams"),[LC,$C,HC,UC]=["ReadableStream","Request","Response","Headers"].map(SC);function VC(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),TC(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function WC(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const qC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ZC=e=>!_C(e)&&e!==qC,GC=(YC="undefined"!=typeof Uint8Array&&CC(Uint8Array),e=>YC&&e instanceof YC);var YC;const KC=SC("HTMLFormElement"),XC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JC=SC("RegExp"),QC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};VC(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},ek="abcdefghijklmnopqrstuvwxyz",tk="0123456789",nk={DIGIT:tk,ALPHA:ek,ALPHA_DIGIT:ek+ek.toUpperCase()+tk},rk=SC("AsyncFunction"),ok=(ik="function"==typeof setImmediate,ak=AC(qC.postMessage),ik?setImmediate:ak?((e,t)=>(qC.addEventListener("message",(({source:n,data:r})=>{n===qC&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),qC.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ik,ak;const sk="undefined"!=typeof queueMicrotask?queueMicrotask.bind(qC):"undefined"!=typeof process&&process.nextTick||ok;var lk={isArray:TC,isArrayBuffer:OC,isBuffer:function(e){return null!==e&&!_C(e)&&null!==e.constructor&&!_C(e.constructor)&&AC(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||AC(e.append)&&("formdata"===(t=kC(e))||"object"===t&&AC(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&OC(e.buffer),t},isString:jC,isNumber:PC,isBoolean:e=>!0===e||!1===e,isObject:BC,isPlainObject:NC,isReadableStream:LC,isRequest:$C,isResponse:HC,isHeaders:UC,isUndefined:_C,isDate:DC,isFile:zC,isBlob:MC,isRegExp:JC,isFunction:AC,isStream:e=>BC(e)&&AC(e.pipe),isURLSearchParams:FC,isTypedArray:GC,isFileList:RC,forEach:VC,merge:function e(){const{caseless:t}=ZC(this)&&this||{},n={},r=(r,o)=>{const i=t&&WC(n,o)||o;NC(n[i])&&NC(r)?n[i]=e(n[i],r):NC(r)?n[i]=e({},r):TC(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&VC(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(VC(t,((t,r)=>{n&&AC(t)?e[r]=xC(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&CC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:kC,kindOfTest:SC,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(TC(e))return e;let t=e.length;if(!PC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:KC,hasOwnProperty:XC,hasOwnProp:XC,reduceDescriptors:QC,freezeMethods:e=>{QC(e,((t,n)=>{if(AC(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];AC(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return TC(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:WC,global:qC,isContextDefined:ZC,ALPHABET:nk,generateString:(e=16,t=nk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&AC(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(BC(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=TC(e)?[]:{};return VC(e,((e,t)=>{const i=n(e,r+1);!_C(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:rk,isThenable:e=>e&&(BC(e)||AC(e))&&AC(e.then)&&AC(e.catch),setImmediate:ok,asap:sk};function ck(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}lk.inherits(ck,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:lk.toJSONObject(this.config),code:this.code,status:this.status}}});const uk=ck.prototype,dk={};function pk(e){return lk.isPlainObject(e)||lk.isArray(e)}function fk(e){return lk.endsWith(e,"[]")?e.slice(0,-2):e}function hk(e,t,n){return e?e.concat(t).map((function(e,t){return e=fk(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{dk[e]={value:e}})),Object.defineProperties(ck,dk),Object.defineProperty(uk,"isAxiosError",{value:!0}),ck.from=(e,t,n,r,o,i)=>{const a=Object.create(uk);return lk.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ck.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const mk=lk.toFlatObject(lk,{},null,(function(e){return/^is[A-Z]/.test(e)}));function gk(e,t,n){if(!lk.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=lk.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!lk.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&lk.isSpecCompliantForm(t);if(!lk.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(lk.isDate(e))return e.toISOString();if(!s&&lk.isBlob(e))throw new ck("Blob is not supported. Use a Buffer instead.");return lk.isArrayBuffer(e)||lk.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(lk.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(lk.isArray(e)&&function(e){return lk.isArray(e)&&!e.some(pk)}(e)||(lk.isFileList(e)||lk.endsWith(n,"[]"))&&(s=lk.toArray(e)))return n=fk(n),s.forEach((function(e,r){!lk.isUndefined(e)&&null!==e&&t.append(!0===a?hk([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!pk(e)||(t.append(hk(o,n,i),l(e)),!1)}const u=[],d=Object.assign(mk,{defaultVisitor:c,convertValue:l,isVisitable:pk});if(!lk.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!lk.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),lk.forEach(n,(function(n,i){!0===(!(lk.isUndefined(n)||null===n)&&o.call(t,n,lk.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function vk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function yk(e,t){this._pairs=[],e&&gk(e,this,t)}const bk=yk.prototype;function wk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xk(e,t,n){if(!t)return e;const r=n&&n.encode||wk,o=n&&n.serialize;let i;if(i=o?o(t,n):lk.isURLSearchParams(t)?t.toString():new yk(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}bk.append=function(e,t){this._pairs.push([e,t])},bk.toString=function(e){const t=e?function(t){return e.call(this,t,vk)}:vk;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ek{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){lk.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ck={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kk={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:yk,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Sk="undefined"!=typeof window&&"undefined"!=typeof document,Ik="object"==typeof navigator&&navigator||void 0,Tk=Sk&&(!Ik||["ReactNative","NativeScript","NS"].indexOf(Ik.product)<0),_k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ok=Sk&&window.location.href||"http://localhost";var jk={...Object.freeze({__proto__:null,hasBrowserEnv:Sk,hasStandardBrowserEnv:Tk,hasStandardBrowserWebWorkerEnv:_k,navigator:Ik,origin:Ok}),...kk};function Ak(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&lk.isArray(r)?r.length:i,s?(lk.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&lk.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&lk.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(lk.isFormData(e)&&lk.isFunction(e.entries)){const n={};return lk.forEachEntry(e,((e,r)=>{t(function(e){return lk.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Pk={transitional:Ck,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=lk.isObject(e);if(o&&lk.isHTMLForm(e)&&(e=new FormData(e)),lk.isFormData(e))return r?JSON.stringify(Ak(e)):e;if(lk.isArrayBuffer(e)||lk.isBuffer(e)||lk.isStream(e)||lk.isFile(e)||lk.isBlob(e)||lk.isReadableStream(e))return e;if(lk.isArrayBufferView(e))return e.buffer;if(lk.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return gk(e,new jk.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return jk.isNode&&lk.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=lk.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return gk(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(lk.isString(e))try{return(0,JSON.parse)(e),lk.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pk.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(lk.isResponse(e)||lk.isReadableStream(e))return e;if(e&&lk.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ck.from(e,ck.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jk.classes.FormData,Blob:jk.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};lk.forEach(["delete","get","head","post","put","patch"],(e=>{Pk.headers[e]={}}));const Bk=lk.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nk=Symbol("internals");function Dk(e){return e&&String(e).trim().toLowerCase()}function zk(e){return!1===e||null==e?e:lk.isArray(e)?e.map(zk):String(e)}function Mk(e,t,n,r,o){return lk.isFunction(r)?r.call(this,t,n):(o&&(t=n),lk.isString(t)?lk.isString(r)?-1!==t.indexOf(r):lk.isRegExp(r)?r.test(t):void 0:void 0)}class Rk{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Dk(t);if(!o)throw new Error("header name must be a non-empty string");const i=lk.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=zk(e))}const i=(e,t)=>lk.forEach(e,((e,n)=>o(e,n,t)));if(lk.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(lk.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Bk[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(lk.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Dk(e)){const n=lk.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(lk.isFunction(t))return t.call(this,e,n);if(lk.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Dk(e)){const n=lk.findKey(this,e);return!(!n||void 0===this[n]||t&&!Mk(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Dk(e)){const o=lk.findKey(n,e);!o||t&&!Mk(0,n[o],o,t)||(delete n[o],r=!0)}}return lk.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Mk(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return lk.forEach(this,((r,o)=>{const i=lk.findKey(n,o);if(i)return t[i]=zk(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=zk(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return lk.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&lk.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Nk]=this[Nk]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Dk(e);t[r]||(function(e,t){const n=lk.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return lk.isArray(e)?e.forEach(r):r(e),this}}function Fk(e,t){const n=this||Pk,r=t||n,o=Rk.from(r.headers);let i=r.data;return lk.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Lk(e){return!(!e||!e.__CANCEL__)}function $k(e,t,n){ck.call(this,null==e?"canceled":e,ck.ERR_CANCELED,t,n),this.name="CanceledError"}function Hk(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ck("Request failed with status code "+n.status,[ck.ERR_BAD_REQUEST,ck.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Rk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),lk.reduceDescriptors(Rk.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),lk.freezeMethods(Rk),lk.inherits($k,ck,{__CANCEL__:!0});const Uk=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Vk=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wk=e=>(...t)=>lk.asap((()=>e(...t)));var qk=jk.hasStandardBrowserEnv?function(){const e=jk.navigator&&/(msie|trident)/i.test(jk.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=lk.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Zk=jk.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];lk.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),lk.isString(r)&&a.push("path="+r),lk.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gk(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Yk=e=>e instanceof Rk?{...e}:e;function Kk(e,t){t=t||{};const n={};function r(e,t,n){return lk.isPlainObject(e)&&lk.isPlainObject(t)?lk.merge.call({caseless:n},e,t):lk.isPlainObject(t)?lk.merge({},t):lk.isArray(t)?t.slice():t}function o(e,t,n){return lk.isUndefined(t)?lk.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!lk.isUndefined(t))return r(void 0,t)}function a(e,t){return lk.isUndefined(t)?lk.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Yk(e),Yk(t),!0)};return lk.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);lk.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Xk=e=>{const t=Kk({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Rk.from(s),t.url=xk(Gk(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),lk.isFormData(r))if(jk.hasStandardBrowserEnv||jk.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(jk.hasStandardBrowserEnv&&(o&&lk.isFunction(o)&&(o=o(t)),o||!1!==o&&qk(t.url))){const e=i&&a&&Zk.read(a);e&&s.set(i,e)}return t},Jk="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Xk(e);let o=r.data;const i=Rk.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Rk.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Hk((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ck("Request aborted",ck.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ck("Network Error",ck.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ck;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ck(t,o.clarifyTimeoutError?ck.ETIMEDOUT:ck.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&lk.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),lk.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Uk(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Uk(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new $k(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===jk.protocols.indexOf(v)?n(new ck("Unsupported protocol "+v+":",ck.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const Qk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ck?t:new $k(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new ck(`timeout ${t} of ms exceeded`,ck.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>lk.asap(a),s}},eS=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},tS=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*eS(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},nS="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,rS=nS&&"function"==typeof ReadableStream,oS=nS&&("function"==typeof TextEncoder?(iS=new TextEncoder,e=>iS.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var iS;const aS=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},sS=rS&&aS((()=>{let e=!1;const t=new Request(jk.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),lS=rS&&aS((()=>lk.isReadableStream(new Response("").body))),cS={stream:lS&&(e=>e.body)};var uS;nS&&(uS=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!cS[e]&&(cS[e]=lk.isFunction(uS[e])?t=>t[e]():(t,n)=>{throw new ck(`Response type '${e}' is not supported`,ck.ERR_NOT_SUPPORT,n)})})));var dS=nS&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Xk(e);c=c?(c+"").toLowerCase():"text";let f,h=Qk([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&sS&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=lk.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(lk.isBlob(e))return e.size;if(lk.isSpecCompliantForm(e)){const t=new Request(jk.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return lk.isArrayBufferView(e)||lk.isArrayBuffer(e)?e.byteLength:(lk.isURLSearchParams(e)&&(e+=""),lk.isString(e)?(await oS(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(lk.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Vk(g,Uk(Wk(l)));r=tS(n.body,65536,e,t)}}lk.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f);const a=lS&&("stream"===c||"response"===c);if(lS&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=lk.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Vk(t,Uk(Wk(s),!0))||[];i=new Response(tS(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await cS[lk.findKey(cS,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Hk(t,n,{data:v,headers:Rk.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ck("Network Error",ck.ERR_NETWORK,e,f),{cause:t.cause||t});throw ck.from(t,t&&t.code,e,f)}});const pS={http:null,xhr:Jk,fetch:dS};lk.forEach(pS,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const fS=e=>`- ${e}`,hS=e=>lk.isFunction(e)||null===e||!1===e;var mS=e=>{e=lk.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!hS(n)&&(r=pS[(t=String(n)).toLowerCase()],void 0===r))throw new ck(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ck("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(fS).join("\n"):" "+fS(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function gS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $k(null,e)}function vS(e){return gS(e),e.headers=Rk.from(e.headers),e.data=Fk.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mS(e.adapter||Pk.adapter)(e).then((function(t){return gS(e),t.data=Fk.call(e,e.transformResponse,t),t.headers=Rk.from(t.headers),t}),(function(t){return Lk(t)||(gS(e),t&&t.response&&(t.response.data=Fk.call(e,e.transformResponse,t.response),t.response.headers=Rk.from(t.response.headers))),Promise.reject(t)}))}const yS={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{yS[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const bS={};yS.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ck(r(o," has been removed"+(t?" in "+t:"")),ck.ERR_DEPRECATED);return t&&!bS[o]&&(bS[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var wS={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ck("options must be an object",ck.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ck("option "+i+" must be "+n,ck.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ck("Unknown option "+i,ck.ERR_BAD_OPTION)}},validators:yS};const xS=wS.validators;class ES{constructor(e){this.defaults=e,this.interceptors={request:new Ek,response:new Ek}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Kk(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&wS.assertOptions(n,{silentJSONParsing:xS.transitional(xS.boolean),forcedJSONParsing:xS.transitional(xS.boolean),clarifyTimeoutError:xS.transitional(xS.boolean)},!1),null!=r&&(lk.isFunction(r)?t.paramsSerializer={serialize:r}:wS.assertOptions(r,{encode:xS.function,serialize:xS.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&lk.merge(o.common,o[t.method]);o&&lk.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Rk.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[vS.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=vS.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return xk(Gk((e=Kk(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}lk.forEach(["delete","get","head","options"],(function(e){ES.prototype[e]=function(t,n){return this.request(Kk(n||{},{method:e,url:t,data:(n||{}).data}))}})),lk.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Kk(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ES.prototype[e]=t(),ES.prototype[e+"Form"]=t(!0)}));class CS{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new $k(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new CS((function(t){e=t}));return{token:t,cancel:e}}}const kS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kS).forEach((([e,t])=>{kS[t]=e}));const SS=function e(t){const n=new ES(t),r=xC(ES.prototype.request,n);return lk.extend(r,ES.prototype,n,{allOwnKeys:!0}),lk.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Kk(t,n))},r}(Pk);function IS(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22L8 18H16L12 22ZM12 2L16 6H8L12 2ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14ZM2 12L6 8V16L2 12ZM22 12L18 16V8L22 12Z"}}]})(e)}function TS(e,t,n){var r=this,o=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=i((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(i(r))return a(r);if(h.current){var l=t-(r-o.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},w=function(){var a=Date.now(),f=i(a);if(u.current=[].slice.call(arguments),d.current=r,o.current=a,f){if(!c.current&&h.current)return s.current=o.current,n(l,t),g?e(o.current):p.current;if(y)return n(l,t),e(o.current)}return c.current||n(l,t),p.current};return w.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null},w.isPending=function(){return!!c.current},w.flush=function(){return c.current?a(Date.now()):p.current},w}),[g,y,t,b,v,m]);return w}function _S(e,t){return e===t}function OS(e){return"function"==typeof e?function(){return e}:e}function jS(e,t,n){var r,i,a=n&&n.equalityFn||_S,s=(r=o(OS(e)),i=r[1],[r[0],c((function(e){return i(OS(e))}),[])]),u=s[0],d=s[1],p=TS(c((function(e){return d(e)}),[d]),t,n),f=l(e);return a(f.current,e)||(p(e),f.current=e),[u,p]}function AS(e){return AS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AS(e)}function PS(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function BS(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function NS(e){BS(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===AS(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}SS.Axios=ES,SS.CanceledError=$k,SS.CancelToken=CS,SS.isCancel=Lk,SS.VERSION="1.7.7",SS.toFormData=gk,SS.AxiosError=ck,SS.Cancel=SS.CanceledError,SS.all=function(e){return Promise.all(e)},SS.spread=function(e){return function(t){return e.apply(null,t)}},SS.isAxiosError=function(e){return lk.isObject(e)&&!0===e.isAxiosError},SS.mergeConfig=Kk,SS.AxiosHeaders=Rk,SS.formToJSON=e=>Ak(lk.isHTMLForm(e)?new FormData(e):e),SS.getAdapter=mS,SS.HttpStatusCode=kS,SS.default=SS;var DS={};function zS(){return DS}function MS(e){BS(1,arguments);var t=NS(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function RS(e){BS(1,arguments);var t=NS(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=MS(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=MS(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function FS(e,t){var n,r,o,i,a,s,l,c;BS(1,arguments);var u=zS(),d=PS(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=NS(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function LS(e,t){var n,r,o,i,a,s,l,c;BS(1,arguments);var u=NS(e),d=u.getUTCFullYear(),p=zS(),f=PS(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=FS(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=FS(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function $S(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var HS={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return $S("yy"===t?r%100:r,t.length)}(e,t)},Y:function(e,t,n,r){var o=LS(e,r),i=o>0?o:1-o;return"YY"===t?$S(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):$S(i,t.length)},R:function(e,t){return $S(RS(e),t.length)},u:function(e,t){return $S(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return $S(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return $S(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):$S(n+1,2)}(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return $S(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){BS(1,arguments);var n=NS(e),r=FS(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;BS(1,arguments);var u=zS(),d=PS(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=LS(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),FS(f,t)}(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):$S(o,t.length)},I:function(e,t,n){var r=function(e){BS(1,arguments);var t=NS(e),n=MS(t).getTime()-function(e){BS(1,arguments);var t=RS(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),MS(n)}(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):$S(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,t){return $S(e.getUTCDate(),t.length)}(e,t)},D:function(e,t,n){var r=function(e){BS(1,arguments);var t=NS(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):$S(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return $S(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return $S(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return $S(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return function(e,t){return $S(e.getUTCHours()%12||12,t.length)}(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,t){return $S(e.getUTCHours(),t.length)}(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):$S(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):$S(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,t){return $S(e.getUTCMinutes(),t.length)}(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,t){return $S(e.getUTCSeconds(),t.length)}(e,t)},S:function(e,t){return function(e,t){var n=t.length,r=e.getUTCMilliseconds();return $S(Math.floor(r*Math.pow(10,n-3)),t.length)}(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return VS(o);case"XXXX":case"XX":return WS(o);default:return WS(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return VS(o);case"xxxx":case"xx":return WS(o);default:return WS(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+US(o,":");default:return"GMT"+WS(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+US(o,":");default:return"GMT"+WS(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return $S(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return $S((r._originalDate||e).getTime(),t.length)}};function US(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t;return n+String(o)+a+$S(i,2)}function VS(e,t){return e%60==0?(e>0?"-":"+")+$S(Math.abs(e)/60,2):WS(e,t)}function WS(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+$S(Math.floor(o/60),2)+n+$S(o%60,2)}var qS=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ZS=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},GS={p:ZS,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return qS(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",qS(o,t)).replace("{{time}}",ZS(i,t))}},YS=["D","DD"],KS=["YY","YYYY"];function XS(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var JS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function QS(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var eI={date:QS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:QS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:QS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function nI(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function rI(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(l):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(l);return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var oI,iI={code:"en-US",formatDistance:function(e,t,n){var r,o=JS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:eI,formatRelative:function(e,t,n,r){return tI[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:nI({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:nI({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:nI({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:nI({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:nI({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(oI={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(oI.matchPattern);if(!n)return null;var r=n[0],o=e.match(oI.parsePattern);if(!o)return null;var i=oI.valueCallback?oI.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:rI({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:rI({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:rI({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:rI({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:rI({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},aI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lI=/^'([^]*?)'?$/,cI=/''/g,uI=/[a-zA-Z]/;function dI(e,t,n){var r,o,i,a,s,l,c,u,d;BS(2,arguments);var p=String(t),f=zS(),h=null!==(r=f.locale)&&void 0!==r?r:iI,m=PS(null!==(o=null!==(void 0,i=f.firstWeekContainsDate)&&void 0!==i?i:null===(a=f.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=PS(null!==(l=null!==(void 0,c=f.weekStartsOn)&&void 0!==c?c:null===(u=f.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!h.localize)throw new RangeError("locale must contain localize property");if(!h.formatLong)throw new RangeError("locale must contain formatLong property");var v=NS(e);if(!function(e){if(BS(1,arguments),!function(e){return BS(1,arguments),e instanceof Date||"object"===AS(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=NS(e);return!isNaN(Number(t))}(v))throw new RangeError("Invalid time value");var y=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(v),b=function(e,t){return BS(2,arguments),function(e,t){BS(2,arguments);var n=NS(e).getTime(),r=PS(t);return new Date(n+r)}(e,-PS(t))}(v,y),w={firstWeekContainsDate:m,weekStartsOn:g,locale:h,_originalDate:v},x=p.match(sI).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,GS[t])(e,h.formatLong):e})).join("").match(aI).map((function(n){if("''"===n)return"'";var r,o,i=n[0];if("'"===i)return(o=(r=n).match(lI))?o[1].replace(cI,"'"):r;var a=HS[i];if(a)return function(e){return-1!==KS.indexOf(e)}(n)&&XS(n,t,String(e)),function(e){return-1!==YS.indexOf(e)}(n)&&XS(n,t,String(e)),a(b,n,h.localize,w);if(i.match(uI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n})).join("");return x}var pI=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),fI=pI.Provider,hI=function(){return r(pI)},mI=function(){return hI().assetFilter},gI=function(){return hI().selectionMode},vI=function(e,t){return vI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},vI(e,t)},yI=function(){return yI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yI.apply(this,arguments)};function bI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function wI(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))}function xI(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function EI(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function CI(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var kI=n(null);function SI(e){var n=e.children,r=e.hideLimitedUse,s=void 0!==r&&r,l=o([]),c=l[0],u=l[1],d=o([]),p=d[0],f=d[1],h=o([]),m=h[0],g=h[1],v=o(),y=v[0],b=v[1],w=o({}),x=w[0],E=w[1];function C(e){u((function(t){return II(t,e)}))}function k(e){u((function(t){return TI(t,e)}))}function S(e){f((function(t){return II(t,e.id)})),E((function(t){var n;return yI(yI({},t),((n={})[e.id]=e,n))}))}function I(e){f((function(t){return TI(t,e.id)})),E((function(t){var n=t,r=e.id;return bI(n,["symbol"==typeof r?r:r+""])}))}function T(e){g((function(t){return II(t,e)}))}function _(e){g((function(t){return TI(t,e)}))}function O(){u([]),f([]),E({}),g([])}a((function(){b(!s&&void 0)}),[s]);var j=p.map((function(e){return x[e]})),A=i((function(){return{assetTypes:c,metaproperties:j,tags:m,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:I,addTag:T,removeTag:_,clear:O}}),[c,j,m,y]);return t.createElement(kI.Provider,{value:A},n)}function II(e,t){return e.includes(t)?e:EI(EI([],e,!0),[t],!1)}function TI(e,t){return e.filter((function(e){return e!==t}))}function _I(){var e=r(kI);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function OI(e){var t;return null!==(t=jI[e])&&void 0!==t?t:e}var jI={};function AI(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){jI=e}))}),[e])}var PI=n(null),BI={assets:"",isLoading:!1};function NI(e){var n=o(BI),r=n[0],s=n[1];function l(e,t){var n=""!==t;s((function(r){var o;return yI(yI({},r),((o={})[e]=t,o.isLoading=n,o))}))}function c(e){s((function(t){return yI(yI({},t),{isLoading:e})}))}function u(){s(BI)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]);var d=i((function(){return yI(yI({},r),{setSearch:l,setIsLoading:c,clear:u})}),[r]);return t.createElement(PI.Provider,{value:d},e.children)}function DI(){var e=r(PI);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function zI(e){var t=DI();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function MI(e){return{tag:"ok",value:e}}function RI(e){return{tag:"error",error:e}}function FI(e){return"ok"===e.tag}function LI(e){return"error"===e.tag}function $I(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var HI="transformBaseURL",UI="transformBaseUrl";function VI(e){var t;if(e[HI]){var n=e,r=HI,o=n[r],i=bI(n,["symbol"==typeof r?r:r+""]);return yI(yI({},i),((t={})[UI]=yI({},o),t))}return e}var WI=new Map;function qI(e,t,n){return wI(this,0,void 0,(function(){var r,o,i,a,s,l,c,u;return xI(this,(function(d){switch(d.label){case 0:if(!n)return[2,RI("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?$I(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),WI.has(i))return[2,MI(WI.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("2.0.5")},s=void 0===r?a:yI(yI({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:s,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return c=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?yI(yI({},e),{searchAssets:yI(yI({},e.searchAssets),{assets:yI(yI({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=VI(e.files);return yI(yI({},e),{files:yI({},t)})}return e}))})})}):e}(c.data),[3,5];case 4:return[2,RI(d.sent())];case 5:return void 0!==c.errors?[2,RI(c.errors.map((function(e){return e.message})).join(","))]:(WI.set(i,u),WI.size>50&&WI.delete(WI.keys().next().value),[2,MI(u)])}}))}))}function ZI(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function GI(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){var t="0".concat(e.toString(16));return t.substring(t.length-2)})).join("")}var YI="42b1eefa-d754-4802-b9c4-bf80d6ab6052",KI="v6/authentication/oauth2/",XI="".concat("https://d8ejoa1fys2rk.cloudfront.net"),JI=XI+"/5.0.5/modules/compactview/loginCompleted.html",QI="".concat("https://apiv2.webdamdb.com","/"),eT="oauth2/",tT=["offline","asset:read","collection:read","meta.assetbank:read"];function nT(e,t,n){return wI(this,0,void 0,(function(){var r,o,i,a;return xI(this,(function(s){switch(s.label){case 0:r=rT(n)+"token",o=new URLSearchParams({client_id:YI,code_verifier:t,code:e,redirect_uri:JI,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,RI("Failed to fetch access token: ".concat(i.status))];case 3:return[2,MI({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,RI(s.sent().toString())];case 5:return[2]}}))}))}function rT(e){return"webdam"===oT()?QI+eT:$I(e)+KI}function oT(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function iT(e){return wI(this,0,void 0,(function(){var t,n,r,o,i,a;return xI(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,RI("Error opening login window")]:(o.document.head.innerHTML=aT,o.document.body.innerHTML=sT,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===XI&&e(MI(t))}))})),new Promise((function(e){setTimeout((function(){return e(RI("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(RI("Login window closed")))}),1e3)})))])]);case 1:return LI(i=s.sent())?[2,i]:[2,MI({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var aT='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',sT='<div class="cv-spinner"></div>',lT={error:console.error},cT=n(null),uT=cT.Provider,dT=function(){var e=r(cT);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},pT='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,h1,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,object,svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.rounded{border-radius:5px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover,.text-body-500{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',fT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hT=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=function(e){return fT.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}(e)),t[e]}}();function mT(e){var n=dT();return t.createElement(Vl,{shouldForwardProp:hT,target:n},t.createElement(hp,{zIndexBase:1e6},e.children))}function gT(e){var n=e.children,r=e.isContainerMode,i=void 0!==r&&r,s=t.useRef(null),l=o(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+pT,vT(null!=e?e:document.head,t),n&&vT(document.head,bT),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(uT,{value:c},t.createElement(mT,null,m(t.createElement(wT,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function vT(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var yT,bT="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),wT=lc.div(yT||(yT=CI(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),xT=n("parent");function ET(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o;return"parent"===r(xT)?t.createElement(xT.Provider,{value:"child"},t.createElement(gT,{isContainerMode:i},n)):t.createElement(t.Fragment,null,n)}var CT=n(null),kT=function(){return r(CT)};function ST(e){var n=e.children,r=e.isOpen,s=void 0===r||r,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=o(null),p=d[0],f=d[1],h=i((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(CT.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(ET,null,t.createElement(_T,{className:"z-a-lot"},t.createElement(OT,{style:l,"data-testid":"modal"},n))),p))):null}var IT,TT,_T=lc.div(IT||(IT=CI(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),bc.spacing5,bc.gray100a),OT=lc.div(TT||(TT=CI(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),bc.radiusBase);function jT(e){var n=kT();return t.createElement(NT,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(DT,null,t.createElement(hu,{variant:"clean",onClick:n.onClose,title:OI("Close"),icon:t.createElement(xu,null)})),t.createElement(zT,null,e.children))}var AT,PT,BT,NT=lc.div(AT||(AT=CI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),bc.gray10),DT=lc.div(PT||(PT=CI(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),bc.spacing4,bc.spacing5),zT=lc.div(BT||(BT=CI(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),bc.fontSize300);function MT(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},OI("Connect your brand portal")))}function RT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function FT(e){var n=RT("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function LT(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(UT,null,t.createElement(ug,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:OI("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&"Enter"===e.key&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&OI("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(VT,{role:"alert","aria-live":"polite"},t.createElement(FT,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var $T,HT,UT=lc.div($T||($T=CI(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),bc.spacing4),VT=lc.div(HT||(HT=CI(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function WT(e){return t.createElement(hu,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},OI("Connect"))}function qT(e){return t.createElement(jT,null,t.createElement(MT,null),t.createElement(LT,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(WT,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}function ZT(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function GT(e){return t.createElement(t.Fragment,null,t.createElement(ZT,null),t.createElement(JT,null,OI("Oops! Something went wrong")),t.createElement(QT,null,OI("Please try again or get in contact with our customer support.")),t.createElement(e_,null,t.createElement(hu,{variant:"secondary",title:OI("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?OI("Report sent"):OI("Send report...")),t.createElement(hu,{variant:"primary",title:OI("Try again"),onClick:e.onClickRetry},OI("Try again"))))}var YT,KT,XT,JT=lc.h1(YT||(YT=CI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing8,bc.fontSize400),QT=lc.span(KT||(KT=CI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),e_=lc.div(XT||(XT=CI(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),bc.spacing7,bc.spacing3);function t_(e){var n;return t.createElement(av,{title:OI("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(hu,{variant:"primary",title:OI("Send report"),onClick:e.onDone},OI("Send report")),actionSecondary:t.createElement(hu,{variant:"secondary",title:OI("Cancel"),onClick:e.onCancel},OI("Cancel")),container:e.container},t.createElement(i_,null,OI("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(a_,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(s_,null,OI("We will treat this report as confidential and anonymous.")))}var n_,r_,o_,i_=lc.div(n_||(n_=CI(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),bc.lineHeightText),a_=lc.div(r_||(r_=CI(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),bc.spacing5,bc.gray25,bc.radiusMedium,bc.gray200,bc.lineHeightText,bc.spacing5,bc.spacing4),s_=lc.span(o_||(o_=CI(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),bc.colorTextDisabled,bc.lineHeightBase,bc.fontSize75);function l_(e){var n=e.error,r=e.onRetry,i=dT(),s=o(!1),l=s[0],c=s[1],u=o(!1),d=u[0],p=u[1];return a((function(){lT.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(GT,{isReportSent:d,onClickSend:function(){c(!0)},onClickRetry:r}),t.createElement(t_,{isOpen:l,error:n,container:i,onDone:function(){c(!1),p(!0)},onCancel:function(){c(!1)}}))}var c_=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}vI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(l_,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function u_(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(FT,null)," ")}var d_=n(null);function p_(e){var n,r,i,s,c,u,d,p,f;AI(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=o(void 0),r=n[0],i=n[1],s=o(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=o(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=o(w()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=r),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){r&&r()||!c||!p||(g("refreshing"),function(e,t){return wI(this,0,void 0,(function(){var n,r,o,i;return xI(this,(function(a){switch(a.label){case 0:n=rT(t)+"token",r=new URLSearchParams({client_id:YI,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,RI("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,MI({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,RI(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){FI(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(lT.error(e.error),b())})))}),[r,c,p]),[{getAccessToken:r,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=o(null!=e?e:""),n=t[0],r=t[1],i=o(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return wI(this,0,void 0,(function(){var t,n,r;return xI(this,(function(o){switch(o.label){case 0:t=$I(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),r(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(r=e.portal)||void 0===r?void 0:r.url)&&void 0!==i?i:m.accountDomain),b=y[0],w=y[1],x=y[2],E=o(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&lT.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return wI(this,0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return xI(this,(function(p){switch(p.label){case 0:t=GI(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,ZI(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,RI(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=GI(),i=function(e,t,n){var r={client_id:YI,code_challenge:e,code_challenge_method:"S256",redirect_uri:JI,response_type:"code",scope:tT.join(" "),domain:"",state:t},o="auth?";"webdam"===oT()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return rT(n)+o+i}(r,o,e),[4,iT(i)];case 5:return LI(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,RI("Error logging in")]:[4,nT(a.value.code,t,e)];case 6:return LI(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,MI({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(FI(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else lT.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=yI(yI({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(d_.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(ET,{isContainerMode:!0},t.createElement(qT,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(u_,null)}}var f_=function(e){return t.createElement(c_,null,t.createElement(p_,yI({},e)))},h_=function(){var e;return"authenticated"===(null===(e=r(d_))||void 0===e?void 0:e.status)||!1},m_=function(){return r(d_)},g_="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";function v_(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:RT("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"‌")}function y_(e){var t=o(void 0),n=t[0],r=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var o=n.getBoundingClientRect();r({width:o.width,height:o.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function b_(e){return t.createElement(x_,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(yu,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var w_,x_=lc.div(w_||(w_=CI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function E_(e){return t.createElement(k_,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(vu,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var C_,k_=lc.div(C_||(C_=CI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function S_(e){var n=o(0),r=n[0],i=n[1],s=l(null),c=y_(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=r>0,m=p>5&&r!==p;return t.createElement("div",{className:RT("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(E_,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-r,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(b_,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}var I_,T_,__,O_,j_=lc.div(I_||(I_=CI(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),bc.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),A_=lc.li(T_||(T_=CI(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),bc.spacing2,bc.spacing5,bc.gray25),P_=lc.div(__||(__=CI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"])),bc.fontSize75,(function(e){return e.$isChecked?"inherit":bc.gray500})),B_=lc.span(O_||(O_=CI(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),bc.spacing4);function N_(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(A_,null,t.createElement(j_,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(ff,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(P_,{$isChecked:n},t.createElement(B_,{title:e.metapropertyOption.label},t.createElement(Lp,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function D_(e){return t.createElement(R_,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(F_,null,e.metaproperty.options.map((function(n){return t.createElement(N_,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var z_,M_,R_=lc.div(z_||(z_=CI(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),bc.spacing5),F_=lc.ul(M_||(M_=CI(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"]))),L_=300;function $_(e){var n,r=l(null),i=o(0)[1];!function(e,t){var n=dT();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,r],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=dT(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),w=b.width-(null!=h?h:0)-(null!=g?g:0),x=b.height-(null!=y?y:0)-(null!=v?v:0);h&&w<L_&&(h=p+u.width-L_);var E={left:h,right:g,top:v,bottom:y,maxWidth:w,maxHeight:x,minWidth:L_},C=RT("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:r,style:E},e.children),s)}function H_(e){var n=e.buttonKind,r=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=bI(e,["buttonKind","direction","isSmall","fadeIn"]),p=i((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=o(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(V_,{$fadeIn:Boolean(u)},t.createElement(hu,{variant:r,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Eu,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement($_,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var U_,V_=lc.div(U_||(U_=CI(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function W_(e){return t.createElement(Z_,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(D_,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var q_,Z_=lc.div(q_||(q_=CI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),bc.spacing4);function G_(e){var n,r,o=_I(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},EI([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(H_,{key:n.id,title:t.createElement(Y_,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(D_,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(W_,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function Y_(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:RT("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function K_(e){var n=_I(),r=n.tags.includes(e.tag.name);return t.createElement(J_,{key:e.tag.id,size:"s",onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item",$active:r},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}var X_,J_=lc(xf)(X_||(X_=CI(["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"],["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"])),(function(e){return e.$active?bc.gray50:"transparent"}),bc.spacing3,bc.spacing3);function Q_(e){var n=EI([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(H_,{title:t.createElement(eO,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",OI("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(K_,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function eO(){return t.createElement(t.Fragment,null,t.createElement(zu,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},OI("Tags")))}function tO(e){return OI({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function nO(e){switch(e){case"AUDIO":return Ru;case"DOCUMENT":return _u;case"IMAGE":return wu;case"VIDEO":return Mu;case"ARCHIVE":return gu}}function rO(e){var n=_I(),r=n.assetTypes.includes(e.type),o=nO(e.type);return t.createElement(A_,{"data-testid":"advanced-options"},t.createElement(j_,{$isChecked:r,$isLoading:e.isLoading},t.createElement(ff,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat(tO(e.type),"-filter")},t.createElement(P_,{$isChecked:r},t.createElement(o,null),t.createElement(iO,null,tO(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var oO,iO=lc.div(oO||(oO=CI(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),bc.spacing3);function aO(e){var n=hI().assetTypes,r=n.filter((function(t){return lO(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(H_,{title:t.createElement(sO,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},OI("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(rO,{key:n,type:n,count:lO(e.count,n),isLoading:e.isLoading})}))))}))}function sO(){return t.createElement(t.Fragment,null,t.createElement(mu,{className:"mr-2 inline w-6 h-6"}),OI("Advanced"))}function lO(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function cO(){var e=_I(),n=zI("assets").value,r=hI(),i=r.assetTypes,s=r.language;AI(s);var l=function(e){var t=this,n=m_(),r=o({tag:"Loading",value:null}),i=r[0],s=r[1],l=!1;return a((function(){return wI(t,0,void 0,(function(){var t,r,o,i,a,c,u;return xI(this,(function(d){switch(d.label){case 0:return s((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=e.searchTerm,o=e.allAssetTypes,i=e.language,a={filter:{assetType_in:null!==(u=(t=e.filter).assetTypes)&&void 0!==u?u:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},[4,qI(g_,a,n)];case 1:return c=d.sent(),l||(LI(c)?s({tag:"Failure",value:c.error}):s({tag:"Loaded",value:c.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:s}),c=l.data,u=l.isLoading;if("Failure"===c.tag||!c.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(uO,null));var d=c.value.searchAssets,p=d.metapropertyFilters,f=d.tags,h=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(S_,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(G_,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(Q_,{tags:f.nodes,isLoading:u}),t.createElement(aO,{isLoading:u,count:h.assetType})))}function uO(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(v_,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(v_,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(v_,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var dO=n(null),pO={field:"CREATED_AT",direction:"DESC"};function fO(e){var n=o(pO),r=n[0],a=n[1];function s(e){a(e)}function l(){a(pO)}var c=i((function(){return{assets:r,setOrdering:s,reset:l}}),[r]);return t.createElement(dO.Provider,{value:c},e.children)}function hO(e){var t=function(){var e=r(dO);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(e){return t.setOrdering(e)}]}var mO="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",gO="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(mO,"\n"),vO=function(e,t){var n,r,o,i,a=e.filter,s=e.predefinedFilter,l=e.orderBy,c=e.allAssetTypes,u=e.searchTerm,d=e.language,p=(null===(n=null==a?void 0:a.assetTypes)||void 0===n?void 0:n.length)?a.assetTypes:null==s?void 0:s.assetType_in;return{orderBy:l,filter:{assetType_in:null!=p?p:c,metapropertyOptionId_in:null!==(r=bO(null==a?void 0:a.metaproperties))&&void 0!==r?r:null==s?void 0:s.metapropertyOptionId_in,searchTerm:null!==(o=null!=u?u:null==s?void 0:s.searchTerm)&&void 0!==o?o:null,tagNames_in:null!==(i=null==a?void 0:a.tags)&&void 0!==i?i:null==s?void 0:s.tagNames_in,isLimitedUse:null==a?void 0:a.isLimited},after:t,language:d}},yO=function(e,t){var n,r=e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},bO=function(e){return e?e.map((function(e){return e.id})):null};function wO(e,t,n){return wI(this,0,void 0,(function(){var r;return xI(this,(function(o){switch(o.label){case 0:return[4,qI("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(mO),{ids:e,language:n},t)];case 1:return LI(r=o.sent())?[2,r]:[2,MI(r.value.nodes)]}}))}))}var xO=n(null);function EO(e){var n=o([]),r=n[0],s=n[1],l=o(),c=l[0],u=l[1],d=function(e){var t=this,n=o([]),r=n[0],i=n[1],s=hI(),l=s.selectionMode,c=s.language,u=m_(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,wI(t,0,void 0,(function(){var e,t,n;return xI(this,(function(o){switch(o.label){case 0:return r.length?[4,wO(r,u,c)]:[3,2];case 1:e=o.sent(),d||LI(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),r}(c),p=gI();function f(){s([])}function h(e){s((function(t){var n=e.filter((function(e){return!CO(t,e)}));return EI(EI([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function m(e){var t;"MultiSelect"!==p?(t=e[0],r.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!CO(t,e)})),r=e.filter((function(e){return CO(t,e)}));return EI(EI([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]);var g=i((function(){return{selection:r,preselectedAssetIds:c,clear:f,selectAssets:h,toggleAssets:m}}),[r]);return t.createElement(xO.Provider,{value:g},e.children)}function CO(e,t){return e.some((function(e){return e.value.id===t.id}))}function kO(){var e=r(xO);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function SO(){var e=zI("assets"),n=e.value,r=e.isLoading,i=TS(e.setSearch,500),s=o(n),l=s[0],c=s[1];a((function(){c(n)}),[n]),a((function(){return function(){i.flush()}}),[i]);var u=OI("Search for assets");return t.createElement(TO,null,t.createElement(wh,{value:l,placeholder:u,"aria-label":u,onChange:function(e){return c(t=e),void i(t);var t},"data-testid":"search-input",icon:t.createElement(Bu,null),iconRight:r?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(FT,{className:"relative right-0"})):void 0,hasClearButton:!r&&!!n}))}var IO,TO=lc.div(IO||(IO=CI(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function _O(){var e=h_(),n=kT(),r=m_(),o=mI();return e||n||void 0===o?t.createElement(BO,null,t.createElement(PO,null),t.createElement(SO,null),t.createElement(NO,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(hu,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(Tu,null)},OI("Log out")),n&&t.createElement(hu,{variant:"clean",onClick:function(){return n.onClose()},title:OI("Close"),icon:t.createElement(xu,null)}))):null}var OO,jO,AO,PO=lc.div(OO||(OO=CI(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"]))),BO=lc.nav(jO||(jO=CI(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),bc.gray10,bc.spacing5,bc.spacing4),NO=lc.div(AO||(AO=CI(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function DO(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function zO(e){return t.createElement(UO,null,t.createElement(VO,null,t.createElement(DO,null),t.createElement(WO,null)),t.createElement(qO,null,OI("No results found")),t.createElement(ZO,null,OI("Try adjusting the filter to find assets.")),t.createElement(GO,null,t.createElement(hu,{variant:"primary",title:OI("Reset filters"),onClick:e.onReset},OI("Reset filters"))))}var MO,RO,FO,LO,$O,HO,UO=lc.div(MO||(MO=CI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),VO=lc.div(RO||(RO=CI(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),bc.gray25),WO=lc(Bu)(FO||(FO=CI(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),bc.spacing2,bc.gray300),qO=lc.h1(LO||(LO=CI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing6,bc.fontSize400),ZO=lc.span($O||($O=CI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),GO=lc.div(HO||(HO=CI(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),bc.spacing7);function YO(e){return t.createElement(XO,{icon:e.icon,size:"s",onDelete:e.onClick,"data-testid":"selected-filter:".concat(e.title)},e.title)}var KO,XO=lc(xf)(KO||(KO=CI(["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"],["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"])),bc.spacing3);function JO(){var e=_I(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(ej,null,t.createElement(hu,{variant:"clean",isSmall:!0,onClick:e.clear},OI("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(S_,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=nO(n);return t.createElement(YO,{key:n,onClick:function(){return e.removeAssetType(n)},title:tO(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(YO,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(YO,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var QO,ej=lc.div(QO||(QO=CI(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"])));function tj(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var nj=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function rj(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return nj.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function oj(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}var ij,aj,sj,lj,cj=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},uj=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t=e.label,n=e.value,r=e.type,o=e.zIndex;return{label:t,value:"date"===r?dI(new Date(n),"dd MMMM yyyy"):n,zIndex:o}}));return EI(EI([],n,!0),r,!0).sort(cj)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(af.AdditionalInfo,null,t.createElement(dj,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(pj,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(fj,null,n,":"),t.createElement(hj,{title:r},o))})))):null},dj=lc.dl(ij||(ij=CI(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),bc.fontSize75),pj=lc.div(aj||(aj=CI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),fj=lc.dt(sj||(sj=CI(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),hj=lc.dd(lj||(lj=CI(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function mj(e){var n=e.className,r=e.fadeIn,i=void 0===r||r,s=e.asset,l=e.isSelected,c=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=hI().hideExternalAccess,h=o(),m=h[0],g=h[1],v=o(),y=v[0],b=v[1],w=function(e){return[e.isArchived&&OI("archived"),e.isWatermarked&&OI("watermarked"),e.isLimitedUse&&OI("limited")].filter((function(e){return e})).join(", ")}(s),x=oj(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));g(t)}),[s.metaproperties]),a((function(){var e,t=null===(e=s.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));b(t)}),[s.textMetaproperties]);var E=function(e){void 0!==u&&(e.stopPropagation(),u(s,e))};return t.createElement(bj,{id:s.id,$isOutlined:l||c,$fadeIn:i,className:RT("group",n),"data-drag-select-id":s.id},t.createElement(af,{selectButtonAriaLabel:OI(l?"Deselect":"Select"),onSelect:E,onClick:E,isSelected:l,"aria-selected":l,"data-testid":"asset-card",contextAction:!f&&t.createElement(af.ContextActionButton,{"aria-label":OI("Open in new tab"),onClick:function(){window.open(s.url,"_blank")}},t.createElement(Pu,null))},t.createElement(af.Frame,{icon:w?t.createElement(wj,{$limitWidth:!!x},t.createElement(wc,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(Lp,null,w))):void 0,"data-testid":"asset-type",badge:x},t.createElement(af.Images,null,rj(s)&&t.createElement(af.Img,{src:rj(s),alt:s.name,contentResize:"fit"}))),p,t.createElement(xj,{"data-testid":"asset-name"},s.name),t.createElement(uj,{metaproperties:m,textMetaproperties:y})))}var gj,vj,yj,bj=lc.div(gj||(gj=CI(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"])),bc.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""})),wj=lc.div(vj||(vj=CI(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),xj=lc.p(yj||(yj=CI(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function Ej(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(af,null,t.createElement(af.Frame,null),t.createElement(af.AdditionalInfo,null,t.createElement(v_,{width:70+(o=r,16807*((o+20)%2147483647+2147483646)%2147483647%100),className:"h-4"})),e.title));var o})))}var Cj={x:null,y:null},kj="drag-select-container",Sj=function(e){var n=e.dragContainer,r=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=o(Cj),f=p[0],h=p[1],g=o(Cj),v=g[0],y=g[1],b=jS(v,10,{leading:!0,maxWait:10})[0],w=o(),x=w[0],E=w[1],C=dT(),k=t.useMemo((function(){return Tj(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=jS(k,50,{leading:!1,maxWait:50})[0],I=o([]),T=I[0],_=I[1],O=Pj(T),j=l(f),A=l(v),P=l(null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y),B=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",N,!1),document.addEventListener("keyup",N,!1),function(){document.removeEventListener("keydown",N,!1),document.removeEventListener("keyup",N,!1)}}),[]);var N=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},P.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof u&&P.current?(N(B.current),u(null!=x?x:"select")):"function"!=typeof d||P.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[P.current,x]);var D=function(e){j.current=e,h(e),M()},z=function(e){A.current=e,y(e),M()},M=function(){P.current=null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y},R=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),F=c((function(){C.removeEventListener("mousemove",R),C.removeEventListener("mouseup",F),D(Cj),z(Cj)}),[R,C]),L=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",R),C.addEventListener("mouseup",F),D({x:n,y:t}))}),[R,F,C]);a((function(){var e=C.querySelector(n);return e&&(jj(C),e.addEventListener("mousedown",L)),function(){e&&(e.removeEventListener("mousedown",L),Aj(C))}}),[n,L,R,F,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=Oj(t);return t instanceof HTMLElement&&_j(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);_(t)}),[S,C]),a((function(){if(O&&O!==T&&P.current){var e=T.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,O,i,s,P]);var $=C.querySelector("#".concat(kj));return P.current&&$?m(t.createElement("div",yI({},r,{style:r.style?yI(yI(yI({},Ij),r.style),k):yI(yI({},Ij),k),"data-testid":"drag-selection"})),$):null},Ij={position:"absolute",zIndex:100},Tj=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},_j=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},Oj=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},jj=function(e){var t=document.createElement("div");t.id=kj,e.appendChild(t)},Aj=function(e){var t=e.querySelector("#".concat(kj));t&&t.remove()},Pj=function(e){var t=l();return a((function(){t.current=e})),t.current};function Bj(e){var n=ly(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(FT,{className:RT(!o&&"hidden")})))}function Nj(e){var n,r=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.children,k=void 0===C?null:C,S=l(null),I=y_(S.current).dimensions,T=o([]),_=T[0],O=T[1],j=o("inactive"),A=j[0],P=j[1],B=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,I),N=B[0],D=B[1];function z(e){return("inverse"!==A||!w.includes(e.id)||!_.includes(e.id))&&(w.includes(e.id)||_.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:S,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===r.tag&&!r.value&&t.createElement(Ej,{rows:N,columns:D}),"Loaded"===r.tag&&0===r.value.length&&y,("Loading"===r.tag&&r.value||"Loaded"===r.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(Sj,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6}},onSelect:function(e){O((function(t){return EI(EI([],t,!0),e,!0)}))},onDeselect:function(e){O((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),_.length){var t=[];_.forEach((function(e){var n=function(e){var t;if("Loading"!==r.tag||r.value)return null===(t=r.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),O([])}}}),t.createElement(Bj,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=r.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(mj,{key:e.id,isSelected:z(e),isOutlined:z(e),asset:e,fadeIn:n>=N*D,onClick:function(e,t){return function(e,t){var n,o,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=r.value)||void 0===n?void 0:n.length)){var a=r.value.findIndex((function(t){return t.id===e.id})),s=null===(o=r.value)||void 0===o?void 0:o.findIndex((function(e){return e.id===w[w.length-1]}));-1===s&&(s=0),h(s<a?null===(i=r.value)||void 0===i?void 0:i.slice(s,a+1):r.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function Dj(){var e=hO("assets"),n=e[0],r=e[1],o={ASC:OI("Ascending"),DESC:OI("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(hu,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(Mj,{$isAscending:"ASC"===n.direction})})}var zj,Mj=lc(Du)(zj||(zj=CI(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),bc.spacing6,bc.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function Rj(e){var n=e.selected,r=void 0!==n&&n,o=bI(e,["selected"]),i=RT("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(Cu,{className:"w-6 h-6 ml-3 fade-in"})))}function Fj(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=hO("assets"),i=o[0],a=o[1],s={CREATED_AT:OI("Date added"),NAME:OI("Name"),PUBLISHED_AT:OI("Date published"),UPDATED_AT:OI("Date modified")};return t.createElement($j,null,t.createElement(H_,{className:"py-2",title:s[i.field],alt:OI("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Rj,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var Lj,$j=lc.div(Lj||(Lj=CI(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function Hj(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=DI().setIsLoading,h=hI(),m=kO().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=kO(),v=g.selectAssets,y=g.toggleAssets,b=DI().setSearch,w=_I();if(a((function(){c||f(!1)}),[c]),"Failure"===l.tag)return t.createElement(l_,{error:new Error(l.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(Nj,{assets:Uj(l),count:x,isLoading:c,loadMore:u,hasNextPage:d,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(zO,{onReset:function(){w.clear(),b("assets","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},tj(x,OI("{} asset"),OI("{} assets"))),e.showActiveFilters&&t.createElement(JO,null),t.createElement(Fj,null),t.createElement(Dj,null)))}function Uj(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function Vj(){var e=_I(),n=e.assetTypes,r=e.metaproperties,i=e.tags,s=e.isLimited,l=zI("assets").value,c=hO("assets")[0],u=hI(),d=u.assetFilter,p=u.assetTypes,f=u.language,h=function(e){var t,n,r,i,s,l=this,c=m_(),u=o({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,h=function(t){return wI(l,0,void 0,(function(){var n,r;return xI(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=vO(e,null!=t?t:null),[4,qI(gO,n,c)];case 1:return r=o.sent(),f||(LI(r)?p({tag:"Failure",value:r.error}):m(r,t)),[2]}}))}))},m=function(e,t){yO(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=yO(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:yI(yI({},e.value.searchAssets.assets),{nodes:EI(EI([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return h(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(r=e.filter)||void 0===r?void 0:r.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return h()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return h(null===(e=yO(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(s=yO(d))||void 0===s?void 0:s.pageInfo.hasNextPage)}}(void 0===d?{filter:{assetTypes:n,metaproperties:r,tags:i,isLimited:s},searchTerm:l,orderBy:c,allAssetTypes:p,language:f}:{predefinedFilter:d,orderBy:c,language:f});return t.createElement(Hj,{connection:h,showActiveFilters:void 0===d})}var Wj="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function qj(e,t,n){return void 0===n&&(n=Wj),wI(this,0,void 0,(function(){var r;return xI(this,(function(o){switch(o.label){case 0:return[4,qI("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return LI(r=o.sent())?[2,r]:[2,MI(r.value.node)]}}))}))}function Zj(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var Gj="Custom transformation";function Yj(e){var n=e.asset,r=e.onChange,i=o({status:"Loading"}),s=i[0],l=i[1],c=m_(),u=hI().assetFieldSelection;return a((function(){l({status:"Loading"}),r(void 0),function(e,t,n){return wI(this,0,void 0,(function(){var r;return xI(this,(function(o){switch(o.label){case 0:return[4,qj(e.id,t,n)];case 1:return FI(r=o.sent())&&r.value.files?[2,MI(VI(r.value.files))]:[2,RI("Error retrieving asset files")]}}))}))}(n,c,u).then((function(e){if(LI(e))return lT.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),r(t[n])}))}),[n.id,c,u]),t.createElement(Qj,null,t.createElement(H_,{title:t.createElement(Kj,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var o,i=n[0],a=n[1];return t.createElement(Rj,{key:i,className:"px-3 py-2",selected:s.key===i,onClick:function(){!function(e){l((function(t){return"Data"!==t.status?t:(setTimeout((function(){return r(t.files[e])})),yI(yI({},t),{key:e}))}))}(i),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===i?t.createElement(bu,{className:"w-6 h-6"}):null!==(o=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(a.url))&&void 0!==o?o:t.createElement(ju,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},Zj(i)),t.createElement("div",{className:"text-sm"},a.width&&a.height&&"".concat(a.width," x ").concat(a.height," px"),a.width&&a.height&&a.fileSize&&t.createElement("span",{className:"mx-2"},"•"),a.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(a.fileSize))))})))})))}function Kj(e){var n=e.state;return"Loading"===n.status?t.createElement(v_,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(eA,null,n.key===Gj&&t.createElement(Iu,null),Zj(n.key)):t.createElement(t.Fragment,null,"Error")}var Xj,Jj,Qj=lc.div(Xj||(Xj=CI(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),bc.spacing5),eA=lc.div(Jj||(Jj=CI(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),bc.spacing4),tA="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function nA(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(Cu,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,OI("Retry")):t.createElement(t.Fragment,null,tj(r,OI("Add asset"),OI("Add assets")))}function rA(e){var n,r=hI(),i=r.assetFieldSelection,s=r.onSuccess,c=r.selectionMode,u=kO().preselectedAssetIds,d=m_(),p=l(!0),f=o("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),h=f[0],m=f[1];function g(e,t){if(LI(e))m({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),s(n,{selectedFile:t})}catch(e){lT.error(e)}p.current&&(m({status:"Done"}),setTimeout((function(){p.current&&m({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(Yj,{asset:e.selection[0].value,onChange:function(e){m(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(hu,{variant:"primary",isDisabled:"Loading"===h.status||"WaitingForFileSelection"===h.status,onClick:function(){var t,n="ReadyWithFile"===h.status?h.file:void 0;m({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?qj(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n=tA),wI(this,0,void 0,(function(){var r,o,i,a,s,l,c,u,d,p,f,h;return xI(this,(function(m){switch(m.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o={ids:e.map((function(e){return e.value.id}))},[4,qI(r,o,t)];case 1:if(LI(i=m.sent()))return[2,i];for(a=[],s=0,l=i.value.nodes;s<l.length;s++)"Collection"===(c=l[s]).__typename?a.push.apply(a,c.assets.nodes):a.push(c);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)h=f[p],u.has(h.id)||(d.push(h),u.add(h.id));return[2,MI(d)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===h.status},t.createElement(nA,{status:h.status,numberOfSelectedItems:e.selection.length})))}function oA(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(j_,{$isChecked:!0,$isFlex:!0},t.createElement(ff,{"aria-label":OI("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(aA,{htmlFor:"deselect-".concat(n)},o)))}var iA,aA=lc.label(iA||(iA=CI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),bc.fontSize100,bc.spacing3);function sA(e){var n=e.asset,r=kO();return t.createElement(oA,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(cA,null,t.createElement(Ah,{variant:"preview",imageUrl:rj(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),oj(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},oj(n)))}var lA,cA=lc.div(lA||(lA=CI(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),bc.spacing4);function uA(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return t.createElement(sA,{key:e.value.id,asset:e.value})})))}function dA(){var e=kO(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(hA,{"data-testid":"selection-footer"},t.createElement(mA,null,t.createElement(H_,{buttonKind:"secondary",direction:"Up",title:OI("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(uA,{selection:n})})),t.createElement(hu,{variant:"clean",onClick:r},OI("Clear selection"))),t.createElement(rA,{selection:n}))}var pA,fA,hA=lc.div(pA||(pA=CI(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),bc.layoutSpacing5,bc.spacing6),mA=lc.span(fA||(fA=CI(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),bc.spacing2);function gA(e){var n=e.assetFieldSelection,r=e.assetTypes,o=void 0===r?["IMAGE","DOCUMENT","VIDEO","AUDIO","ARCHIVE"]:r,i=e.defaultSearchTerm,a=e.language,s=void 0===a?"en_US":a,l=e.mode,c=void 0===l?"SingleSelectFile":l,u=e.onSuccess,d=void 0===u?function(e,t){var n=t.selectedFile;return console.log(e,n)}:u,p=e.hideExternalAccess,f=e.selectedAssets,h=e.hideLimitedUse,m=e.isContainerMode,g=void 0!==m&&m;AI(s);var v={assetFieldSelection:n,assetTypes:o,language:s,onSuccess:d,selectionMode:c,hideExternalAccess:p};return t.createElement(c_,null,t.createElement(ET,{isContainerMode:g},t.createElement(fO,null,t.createElement(SI,{hideLimitedUse:h},t.createElement(NI,{defaultValue:i},t.createElement(fI,{value:v},t.createElement(EO,{preselectedAssetIds:null!=f?f:[]},t.createElement("div",{className:"cv-root cv-container"},t.createElement(_O,null),t.createElement(cO,null),t.createElement(Vj,null),t.createElement(dA,null)))))))))}var vA,yA,bA={};function wA(){if(yA)return vA;function e(e,t){return function(){return e.apply(t,arguments)}}yA=1;const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,r=(e=>n=>{const r=t.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),o=e=>(e=e.toLowerCase(),t=>r(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,s=i("undefined"),l=o("ArrayBuffer"),c=i("string"),u=i("function"),d=i("number"),p=e=>null!==e&&"object"==typeof e,f=e=>{if("object"!==r(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},h=o("Date"),m=o("File"),v=o("Blob"),y=o("FileList"),b=o("URLSearchParams"),[w,x,E,C]=["ReadableStream","Request","Response","Headers"].map(o);function k(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),a(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function S(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:g,T=e=>!s(e)&&e!==I,_=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),O=o("HTMLFormElement"),j=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A=o("RegExp"),P=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",N="0123456789",D={DIGIT:N,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+N},z=o("AsyncFunction"),M=((e,t)=>e?setImmediate:t?((e,t)=>(I.addEventListener("message",(({source:n,data:r})=>{n===I&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),I.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,u(I.postMessage)),R="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||M;var F={isArray:a,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&u(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||u(e.append)&&("formdata"===(t=r(e))||"object"===t&&u(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t},isString:c,isNumber:d,isBoolean:e=>!0===e||!1===e,isObject:p,isPlainObject:f,isReadableStream:w,isRequest:x,isResponse:E,isHeaders:C,isUndefined:s,isDate:h,isFile:m,isBlob:v,isRegExp:A,isFunction:u,isStream:e=>p(e)&&u(e.pipe),isURLSearchParams:b,isTypedArray:_,isFileList:y,forEach:k,merge:function e(){const{caseless:t}=T(this)&&this||{},n={},r=(r,o)=>{const i=t&&S(n,o)||o;f(n[i])&&f(r)?n[i]=e(n[i],r):f(r)?n[i]=e({},r):a(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&k(arguments[e],r);return n},extend:(t,n,r,{allOwnKeys:o}={})=>(k(n,((n,o)=>{r&&u(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let i,a,s;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],o&&!o(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:o,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!d(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:O,hasOwnProperty:j,hasOwnProp:j,reduceDescriptors:P,freezeMethods:e=>{P(e,((t,n)=>{if(u(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];u(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return a(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:S,global:I,isContextDefined:T,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&u(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(p(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=a(e)?[]:{};return k(e,((e,t)=>{const i=n(e,r+1);!s(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:z,isThenable:e=>e&&(p(e)||u(e))&&u(e.then)&&u(e.catch),setImmediate:M,asap:R};function L(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}F.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}});const $=L.prototype,H={};function U(e){return F.isPlainObject(e)||F.isArray(e)}function V(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=V(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{H[e]={value:e}})),Object.defineProperties(L,H),Object.defineProperty($,"isAxiosError",{value:!0}),L.from=(e,t,n,r,o,i)=>{const a=Object.create($);return F.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),L.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const q=F.toFlatObject(F,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!F.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(F.isDate(e))return e.toISOString();if(!s&&F.isBlob(e))throw new L("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(e)||F.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(F.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(F.isArray(e)&&function(e){return F.isArray(e)&&!e.some(U)}(e)||(F.isFileList(e)||F.endsWith(n,"[]"))&&(s=F.toArray(e)))return n=V(n),s.forEach((function(e,r){!F.isUndefined(e)&&null!==e&&t.append(!0===a?W([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!U(e)||(t.append(W(o,n,i),l(e)),!1)}const u=[],d=Object.assign(q,{defaultVisitor:c,convertValue:l,isVisitable:U});if(!F.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!F.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),F.forEach(n,(function(n,i){!0===(!(F.isUndefined(n)||null===n)&&o.call(t,n,F.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Y(e,t){this._pairs=[],e&&Z(e,this,t)}const K=Y.prototype;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J(e,t,n){if(!t)return e;const r=n&&n.encode||X,o=n&&n.serialize;let i;if(i=o?o(t,n):F.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}K.append=function(e,t){this._pairs.push([e,t])},K.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Q=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Y,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ne="undefined"!=typeof window&&"undefined"!=typeof document,re="object"==typeof navigator&&navigator||void 0,oe=ne&&(!re||["ReactNative","NativeScript","NS"].indexOf(re.product)<0),ie="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ae=ne&&window.location.href||"http://localhost";var se={...Object.freeze({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserWebWorkerEnv:ie,hasStandardBrowserEnv:oe,navigator:re,origin:ae}),...te};function le(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&F.isArray(r)?r.length:i,s?(F.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&F.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&F.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,((e,r)=>{t(function(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ce={transitional:ee,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=F.isObject(e);if(o&&F.isHTMLForm(e)&&(e=new FormData(e)),F.isFormData(e))return r?JSON.stringify(le(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e)||F.isReadableStream(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new se.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return se.isNode&&F.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=F.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(F.isString(e))try{return(0,JSON.parse)(e),F.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(F.isResponse(e)||F.isReadableStream(e))return e;if(e&&F.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw L.from(e,L.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],(e=>{ce.headers[e]={}}));var ue=ce;const de=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pe=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:F.isArray(e)?e.map(he):String(e)}function me(e,t,n,r,o){return F.isFunction(r)?r.call(this,t,n):(o&&(t=n),F.isString(t)?F.isString(r)?-1!==t.indexOf(r):F.isRegExp(r)?r.test(t):void 0:void 0)}class ge{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=fe(t);if(!o)throw new Error("header name must be a non-empty string");const i=F.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=he(e))}const i=(e,t)=>F.forEach(e,((e,n)=>o(e,n,t)));if(F.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(F.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&de[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(F.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=fe(e)){const n=F.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(F.isFunction(t))return t.call(this,e,n);if(F.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e)){const n=F.findKey(this,e);return!(!n||void 0===this[n]||t&&!me(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=fe(e)){const o=F.findKey(n,e);!o||t&&!me(0,n[o],o,t)||(delete n[o],r=!0)}}return F.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!me(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return F.forEach(this,((r,o)=>{const i=F.findKey(n,o);if(i)return t[i]=he(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=he(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return F.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&F.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[pe]=this[pe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=fe(e);t[r]||(function(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return F.isArray(e)?e.forEach(r):r(e),this}}ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(ge.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),F.freezeMethods(ge);var ve=ge;function ye(e,t){const n=this||ue,r=t||n,o=ve.from(r.headers);let i=r.data;return F.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function be(e){return!(!e||!e.__CANCEL__)}function we(e,t,n){L.call(this,null==e?"canceled":e,L.ERR_CANCELED,t,n),this.name="CanceledError"}function xe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}F.inherits(we,L,{__CANCEL__:!0});const Ee=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Ce=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ke=e=>(...t)=>F.asap((()=>e(...t)));var Se=se.hasStandardBrowserEnv?function(){const e=se.navigator&&/(msie|trident)/i.test(se.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=F.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ie=se.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];F.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),F.isString(r)&&a.push("path="+r),F.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Te(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _e=e=>e instanceof ve?{...e}:e;function Oe(e,t){t=t||{};const n={};function r(e,t,n){return F.isPlainObject(e)&&F.isPlainObject(t)?F.merge.call({caseless:n},e,t):F.isPlainObject(t)?F.merge({},t):F.isArray(t)?t.slice():t}function o(e,t,n){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!F.isUndefined(t))return r(void 0,t)}function a(e,t){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(_e(e),_e(t),!0)};return F.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);F.isUndefined(a)&&i!==s||(n[r]=a)})),n}var je=e=>{const t=Oe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ve.from(s),t.url=J(Te(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),F.isFormData(r))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(se.hasStandardBrowserEnv&&(o&&F.isFunction(o)&&(o=o(t)),o||!1!==o&&Se(t.url))){const e=i&&a&&Ie.read(a);e&&s.set(i,e)}return t},Ae="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=je(e);let o=r.data;const i=ve.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ve.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());xe((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new L("Request aborted",L.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new L("Network Error",L.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ee;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new L(t,o.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&F.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),F.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Ee(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Ee(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new we(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===se.protocols.indexOf(v)?n(new L("Unsupported protocol "+v+":",L.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Pe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof L?t:new we(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>F.asap(a),s}};const Be=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ne=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Be(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},De="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=De&&"function"==typeof ReadableStream,Me=De&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Re=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Fe=ze&&Re((()=>{let e=!1;const t=new Request(se.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Le=ze&&Re((()=>F.isReadableStream(new Response("").body))),$e={stream:Le&&(e=>e.body)};De&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!$e[t]&&($e[t]=F.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,n)})}))})(new Response);var He=De&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=je(e);c=c?(c+"").toLowerCase():"text";let f,h=Pe([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Fe&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=F.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(F.isBlob(e))return e.size;if(F.isSpecCompliantForm(e)){const t=new Request(se.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return F.isArrayBufferView(e)||F.isArrayBuffer(e)?e.byteLength:(F.isURLSearchParams(e)&&(e+=""),F.isString(e)?(await Me(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(F.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Ce(g,Ee(ke(l)));r=Ne(n.body,65536,e,t)}}F.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f);const a=Le&&("stream"===c||"response"===c);if(Le&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=F.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Ce(t,Ee(ke(s),!0))||[];i=new Response(Ne(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await $e[F.findKey($e,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{xe(t,n,{data:v,headers:ve.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new L("Network Error",L.ERR_NETWORK,e,f),{cause:t.cause||t});throw L.from(t,t&&t.code,e,f)}});const Ue={http:null,xhr:Ae,fetch:He};F.forEach(Ue,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ve=e=>`- ${e}`,We=e=>F.isFunction(e)||null===e||!1===e;var qe=e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!We(n)&&(r=Ue[(t=String(n)).toLowerCase()],void 0===r))throw new L(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new L("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ve).join("\n"):" "+Ve(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ze(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function Ge(e){return Ze(e),e.headers=ve.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qe(e.adapter||ue.adapter)(e).then((function(t){return Ze(e),t.data=ye.call(e,e.transformResponse,t),t.headers=ve.from(t.headers),t}),(function(t){return be(t)||(Ze(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=ve.from(t.response.headers))),Promise.reject(t)}))}const Ye={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ye[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ke={};Ye.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new L(r(o," has been removed"+(t?" in "+t:"")),L.ERR_DEPRECATED);return t&&!Ke[o]&&(Ke[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Xe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new L("option "+i+" must be "+n,L.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}},validators:Ye};const Je=Xe.validators;class Qe{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Xe.assertOptions(n,{silentJSONParsing:Je.transitional(Je.boolean),forcedJSONParsing:Je.transitional(Je.boolean),clarifyTimeoutError:Je.transitional(Je.boolean)},!1),null!=r&&(F.isFunction(r)?t.paramsSerializer={serialize:r}:Xe.assertOptions(r,{encode:Je.function,serialize:Je.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&F.merge(o.common,o[t.method]);o&&F.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ve.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Ge.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Ge.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return J(Te((e=Oe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}F.forEach(["delete","get","head","options"],(function(e){Qe.prototype[e]=function(t,n){return this.request(Oe(n||{},{method:e,url:t,data:(n||{}).data}))}})),F.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Oe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Qe.prototype[e]=t(),Qe.prototype[e+"Form"]=t(!0)}));var et=Qe;class tt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new we(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new tt((function(t){e=t}));return{token:t,cancel:e}}}var nt=tt;const rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rt).forEach((([e,t])=>{rt[t]=e}));var ot=rt;const it=function t(n){const r=new et(n),o=e(et.prototype.request,r);return F.extend(o,et.prototype,r,{allOwnKeys:!0}),F.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Oe(n,e))},o}(ue);return it.Axios=et,it.CanceledError=we,it.CancelToken=nt,it.isCancel=be,it.VERSION="1.7.7",it.toFormData=Z,it.AxiosError=L,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=function(e){return function(t){return e.apply(null,t)}},it.isAxiosError=function(e){return F.isObject(e)&&!0===e.isAxiosError},it.mergeConfig=Oe,it.AxiosHeaders=ve,it.formToJSON=e=>le(F.isHTMLForm(e)?new FormData(e):e),it.getAdapter=qe,it.HttpStatusCode=ot,it.default=it,vA=it}var xA,EA,CA,kA,SA,IA={exports:{}};function TA(){if(EA)return xA;function e(e){this.message=e}return EA=1,e.prototype=new Error,e.prototype.name="InvalidCharacterError",xA="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=n.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}}function _A(){if(kA)return CA;kA=1;var e=TA();return CA=function(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(e(t).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(n)}catch(t){return e(n)}}}var OA,jA={};function AA(){return OA||(OA=1,Object.defineProperty(jA,"__esModule",{value:!0}),jA.MAX_UNIX_TIME=jA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=jA.PUBLIC_ACCESS_TOKEN_PAYLOAD=jA.DEFAULT_MOCKING_VALUES=jA.IDP_ACCESS_TOKEN_ENDPOINT=jA.LOCAL_STORAGE_JWT_EXPIRY=jA.LOCAL_STORAGE_JWT=jA.LOCAL_STORAGE_JWT_TOKEN=jA.SIGN_OPTIONS=void 0,jA.SIGN_OPTIONS={issuer:"Bynder",subject:"someone@bynder.com",audience:"bynder.com",expiresIn:"12h",algorithm:"RS256"},jA.LOCAL_STORAGE_JWT_TOKEN="jwt_access_token",jA.LOCAL_STORAGE_JWT="jwt",jA.LOCAL_STORAGE_JWT_EXPIRY="jwt_expiry",jA.IDP_ACCESS_TOKEN_ENDPOINT="/v7/idp/access-tokens/by-session",jA.DEFAULT_MOCKING_VALUES={ACCOUNT_ID:"b05f9df8-cd3b-4b30-b57b-5b45ffaac62f",PROFILE_ID:"03cedc27-8755-4849-8b26-3e41e2709a21",USER_ID:"ab851f80-916b-4e12-a49c-b70e6ab1f817"},jA.PUBLIC_ACCESS_TOKEN_PAYLOAD={accountId:"",userId:"",profileId:"",groupIds:[],modulePermissions:[]},jA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=3e5,jA.MAX_UNIX_TIME=9999999999999),jA}var PA,BA,NA={};function DA(){if(PA)return NA;PA=1,Object.defineProperty(NA,"__esModule",{value:!0}),NA.removeAccessToken=NA.loadAccessToken=NA.storeAccessToken=void 0;var e=AA();return NA.storeAccessToken=function(t){localStorage.setItem(e.LOCAL_STORAGE_JWT,t.jwt),localStorage.setItem(e.LOCAL_STORAGE_JWT_EXPIRY,t.expiryTimestamp.toString())},NA.loadAccessToken=function(){return{jwt:localStorage.getItem(e.LOCAL_STORAGE_JWT),expiryTimestamp:parseInt(localStorage.getItem(e.LOCAL_STORAGE_JWT_EXPIRY),10)}},NA.removeAccessToken=function(){localStorage.removeItem(e.LOCAL_STORAGE_JWT),localStorage.removeItem(e.LOCAL_STORAGE_JWT_EXPIRY)},NA}var zA,MA,RA,FA,LA,$A=(BA||(BA=1,function(e){var t=bA&&bA.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=bA&&bA.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=bA&&bA.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=bA&&bA.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=bA&&bA.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=bA&&bA.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getJWT=e.invalidateAccessToken=e.mockAccessTokenResponse=e.buildAccessToken=void 0;var s=r(wA()),l=a(function(){if(SA)return IA.exports;SA=1;var e=_A();function t(e){this.message=e}return t.prototype=new Error,t.prototype.name="InvalidTokenError",IA.exports=function(n,r){if("string"!=typeof n)throw new t("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(e(n.split(".")[o]))}catch(e){throw new t("Invalid token specified: "+e.message)}},IA.exports.InvalidTokenError=t,IA.exports}()),c=AA(),u=r(DA()),d=function(t){return o(void 0,void 0,void 0,(function(){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),n=void 0,t?[3,2]:(r=c.IDP_ACCESS_TOKEN_ENDPOINT,[4,s.default.get(r,{withCredentials:!0})]);case 1:return n=i.sent(),[3,3];case 2:n=e.mockAccessTokenResponse(t),i.label=3;case 3:if(!n.data)throw new Error("Could not retrieve access token");return[2,e.buildAccessToken(n)];case 4:if(401===(l=o=i.sent()).response.status&&"true"===l.response.headers.is_public)return a=e.mockAccessTokenResponse(c.PUBLIC_ACCESS_TOKEN_PAYLOAD),[2,e.buildAccessToken(a)];throw o;case 5:return[2]}var l}))}))};e.buildAccessToken=function(e){return{jwt:e.data.access_token,expiryTimestamp:e.data.expires_in}},e.mockAccessTokenResponse=function(e){return{data:{access_token:"JWT generation deprecated in this js-access-token-lib version",expires_in:c.MAX_UNIX_TIME,token_type:"bearer"},status:200,statusText:"OK",headers:{},config:{headers:new s.AxiosHeaders}}},e.invalidateAccessToken=function(){u.removeAccessToken()},e.getJWT=function(t){return o(void 0,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return[4,u.loadAccessToken()];case 1:return(n=r.sent()).jwt&&!function(e){return 1e3*l.default(e.jwt).exp-c.MS_REFRESH_TOKEN_BEFORE_EXPIRY<Date.now()}(n)?[3,3]:[4,d(t)];case 2:n=r.sent(),u.storeAccessToken(n),function(t){var n=1e3*t.expiryTimestamp;setTimeout(e.invalidateAccessToken,n)}(n),r.label=3;case 3:return[2,n.jwt]}}))}))},window.addEventListener("beforeunload",e.invalidateAccessToken)}(bA)),bA),HA={exports:{}},UA={},VA={exports:{}};function WA(){return MA?zA:(MA=1,zA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function qA(){if(FA)return RA;FA=1;var e=WA();function t(){}function n(){}return n.resetWarningCache=t,RA=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},RA}function ZA(){return LA||(LA=1,VA.exports=qA()()),VA.exports}function GA(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=GA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function YA(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=GA(e))&&(r&&(r+=" "),r+=t);return r}var KA,XA=y(Object.freeze({__proto__:null,clsx:YA,default:YA})),JA={},QA={};function eP(){return KA||(KA=1,Object.defineProperty(QA,"__esModule",{value:!0}),QA.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},QA.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},QA.int=function(e){return parseInt(e,10)},QA.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},QA.isNum=function(e){return"number"==typeof e&&!isNaN(e)}),QA}var tP,nP,rP={};function oP(){if(nP)return JA;nP=1,Object.defineProperty(JA,"__esModule",{value:!0}),JA.addClassName=a,JA.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},JA.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&a(e.body,"react-draggable-transparent-selection")},JA.createCSSTransform=function(e,n){const r=i(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},JA.createSVGTransform=function(e,t){return i(e,t,"")},JA.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},JA.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},JA.getTranslation=i,JA.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},JA.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},JA.matchesSelector=o,JA.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},JA.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},JA.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},JA.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},JA.removeClassName=s,JA.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},JA.removeUserSelectStyles=function(e){if(e)try{if(e.body&&s(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=eP(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(void 0);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(function(){if(tP)return rP;tP=1,Object.defineProperty(rP,"__esModule",{value:!0}),rP.browserPrefixToKey=n,rP.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},rP.default=void 0,rP.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(r in o)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in o)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return rP.default=t(),rP}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function o(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function i(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return JA}var iP,aP={};function sP(){if(iP)return aP;iP=1,Object.defineProperty(aP,"__esModule",{value:!0}),aP.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},aP.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},aP.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),a=n(t);return i?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:a,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},aP.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},aP.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=n(r);if("string"==typeof a){const{ownerDocument:n}=s,r=n.defaultView;let o;if(o="parent"===a?s.parentNode:n.querySelector(a),!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=o,l=r.getComputedStyle(s),c=r.getComputedStyle(i);a={left:-s.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-s.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(s)-s.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(s)-s.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}return(0,e.isNum)(a.right)&&(o=Math.min(o,a.right)),(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,e.isNum)(a.left)&&(o=Math.max(o,a.left)),(0,e.isNum)(a.top)&&(i=Math.max(i,a.top)),[o,i]},aP.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const a=n(o),s=o.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,s,o.props.scale)},aP.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var e=eP(),t=oP();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return aP}var lP,cP,uP,dP,pP={},fP={};function hP(){return lP||(lP=1,Object.defineProperty(fP,"__esModule",{value:!0}),fP.default=function(){}),fP}function mP(){if(cP)return pP;cP=1,Object.defineProperty(pP,"__esModule",{value:!0}),pP.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),n=l(ZA()),r=l(h),o=oP(),i=sP(),a=eP(),s=l(hP());function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=p,m=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,o.getTouchIdentifier)(e);this.touchIdentifier=r;const a=(0,i.getControlPosition)(e,r,this);if(null==a)return;const{x:l,y:c}=a,u=(0,i.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",u),(0,s.default)("calling",this.props.onStart),!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=l,this.lastY=c,(0,o.addEvent)(n,f.move,this.handleDrag),(0,o.addEvent)(n,f.stop,this.handleDragStop))})),u(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);if((0,s.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),u(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const a=(0,i.createCoreData)(this,n,r);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(l.ownerDocument,f.move,this.handleDrag),(0,o.removeEvent)(l.ownerDocument,f.stop,this.handleDragStop))})),u(this,"onMouseDown",(e=>(f=p,this.handleDragStart(e)))),u(this,"onMouseUp",(e=>(f=p,this.handleDragStop(e)))),u(this,"onTouchStart",(e=>(f=d,this.handleDragStart(e)))),u(this,"onTouchEnd",(e=>(f=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,d.move,this.handleDrag),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(t,d.stop,this.handleDragStop),(0,o.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return pP.default=m,u(m,"displayName","DraggableCore"),u(m,"propTypes",{allowAnyClick:n.default.bool,children:n.default.node.isRequired,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:n.default.arrayOf(n.default.number),handle:n.default.string,cancel:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),u(m,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),pP}function gP(){return uP||(uP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(void 0);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),r=d(ZA()),o=d(h),i=d(XA),a=oP(),s=sP(),l=eP(),c=d(mP()),u=d(hP());function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function m(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends n.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{if((0,u.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:r,defaultPosition:o,defaultClassName:l,defaultClassNameDragging:u,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(p)||this.state.dragging,w=p||o,x={x:(0,s.canDragX)(this)&&b?this.state.x:w.x,y:(0,s.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(x,h):v=(0,a.createCSSTransform)(x,h);const E=(0,i.default)(r.props.className||"",l,{[u]:this.state.dragging,[d]:this.state.dragged});return n.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:E,style:{...r.props.style,...v},transform:y}))}}e.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),m(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(UA)),UA}var vP=function(){if(dP)return HA.exports;dP=1;const{default:e,DraggableCore:t}=gP();return HA.exports=e,HA.exports.default=e,HA.exports.DraggableCore=t,HA.exports}(),yP=v(vP);function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bP(Object(n),!0).forEach((function(t){kP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xP(){xP=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new j(r||[]);return o(a,"_invoke",{value:I(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var w={};c(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(A([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=b.prototype=v.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function EP(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function CP(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){EP(i,r,o,a,s,"next",e)}function s(e){EP(i,r,o,a,s,"throw",e)}a(void 0)}))}}function kP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SP(){return SP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SP.apply(this,arguments)}function IP(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function TP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||jP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OP(e){return function(e){if(Array.isArray(e))return AP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jP(e,t){if(e){if("string"==typeof e)return AP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AP(e,t):void 0}}function AP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var PP=["theme"];lc.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],bc.fontStackBase,bc.fontSizeBase,bc.lineHeightBase,bc.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?ic(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],bc.spacing4,bc.fontSize75):ic(["height:40px !important;padding:0 "," !important;"],bc.spacing5)}),(function(e){var t=e.theme,n=TP(e,PP);if("primary-dark"===n.variant){var r=ic(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],bc.componentButtonPrimaryBorderActive,bc.componentButtonPrimaryFillActive,bc.componentButtonPrimaryColorActive);return ic(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],bc.componentButtonPrimaryFill,bc.componentButtonPrimaryColor,n.isPressed&&r,bc.componentButtonPrimaryBorderHover,bc.componentButtonPrimaryFillHover,bc.componentButtonPrimaryColorHover,bc.elevation1,bc.componentButtonPrimaryFillFocus,bc.componentButtonPrimaryColorFocus,bc.componentButtonPrimaryBorderFocus,bc.componentButtonPrimaryFocusRing,r,bc.componentButtonPrimaryBorderDisabled,bc.componentButtonPrimaryFillDisabled,bc.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=ic(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return ic(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=ic(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return ic(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var BP=lc.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);lc(BP).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(bc.spacing2," * -1)"):bc.spacing3}),bc.spacing2),lc(BP).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],bc.spacing2,bc.spacing3);var NP,DP=dc(["100%{transform:rotate(360deg);}"]),zP=dc(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);lc.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],DP),lc.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],zP),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(NP||(NP={}));var MP,RP,FP,LP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),$P=lc(LP).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));lc.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===NP.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),$P,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),lc.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),lc(LP).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),lc(LP).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),lc.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),lc.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),uc(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(MP||(MP={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(RP||(RP={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(FP||(FP={})),lc.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var HP=lc.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),UP=lc(HP).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));lc(HP).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),lc(HP).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),lc.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),UP,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),lc.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),lc.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),lc.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var VP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),WP=lc(VP).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));lc.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?bc.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),WP,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?ic(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),lc.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),lc.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),lc(VP).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),lc(VP).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),lc.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),lc.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case RP.COLOR:return e.theme.legacy.colorPrimary;case RP.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var qP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);lc(qP).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),lc.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?ic(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),lc.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),lc.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),lc(qP).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),lc.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),lc.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),lc.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],bc.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),lc.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),lc.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],bc.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var ZP=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);lc(ZP).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),lc.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),lc.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),lc.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),lc.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),lc.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),lc.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var GP=lc.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));lc(GP).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),lc(GP).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),lc.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),lc.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),lc.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var YP=lc.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);lc.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),lc.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),lc.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var KP=lc.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);lc(KP).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),lc.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),lc.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),lc.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),lc.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var XP,JP,QP=lc.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),eB=lc.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),QP);lc.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),lc.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),lc(YP).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],bc.spacing6,bc.spacing6),lc.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],bc.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(XP||(XP={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(JP||(JP={})),lc.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var tB=lc.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));lc.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:JP.LEFT){case JP.RIGHT:return ic(["top:110%;right:0;"]);case JP.CENTER:return ic(["top:110%;left:50%;transform:translateX(-50%);"]);case JP.TOP:return ic(["top:auto;bottom:110%;"]);case JP.LEFT:default:return ic(["top:110%;left:0;"])}}(e.position)})),lc.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],eB);var nB=lc.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));lc.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),eB,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),nB);var rB=ic(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),oB=ic(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));lc.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),lc(tB).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),lc.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],rB,oB,(function(e){return e.theme.legacy.colorRichBlack50}));var iB=lc.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),lc.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var aB=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);lc(aB).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),lc(aB).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),iB,(function(e){return e.theme.legacy.colorIconActive})),lc.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),lc.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),lc.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),lc.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),lc.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&ic(["background-color:",";"],e.theme.legacy.colorRichBlack03)}));var sB="44px";lc.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),lc.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),lc.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),lc.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),lc.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),lc.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],sB),lc.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var lB=lc.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));lc(lB).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),lc(lB).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var cB=lc.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],sB);lc(cB).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),lc(cB).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var uB=lc.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],sB);lc(uB).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),lc(uB).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var dB=["isOpen"],pB="dat-menu-pointer-events-wrapper";function fB(e){var n=e.presetURL,r=e.alwaysVisible;return t.createElement(Jm,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=TP(e,dB);return t.createElement(hB,{isVisible:r||n},t.createElement(hu,wP(wP({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(zE,null),"aria-label":"More options"})))}},t.createElement(GE.CopyToClipboard,{text:n,onCopy:function(){Rv({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Jm.Item,{icon:t.createElement(wE,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Jm.Divider,null),t.createElement(Jm.Item,{icon:t.createElement(hE,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Jm.Divider,null),t.createElement(Jm.Item,{icon:t.createElement(kE,null),onClick:function(){var e=function(e){var t,n,r,o,i,a,s,l,c,u="([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})",d="([^/]*)",p="(.*)/transform",f={preset:new RegExp("".concat(p,"/").concat("([a-zA-Z0-9_-]+)","/").concat(u,"/").concat("([a-zA-Z0-9_-]+)*","$").concat(d)),transform:new RegExp("".concat(p,"/").concat(u,"/").concat(d))},h="";if(f.preset.test(e)){var m=_P(e.match(f.preset),5);s=m[1],h=m[2],l=m[3],c=m[4]}else if(f.transform.test(e)){var g=_P(e.match(f.transform),4);s=g[1],l=g[2],c=g[3]}var v=(null!==(t=null===(n=h)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0,y=null!==(r=null===(o=c)||void 0===o?void 0:o.split("?")[0])&&void 0!==r?r:"",b=null!==(i=null===(a=c)||void 0===a?void 0:a.split("?")[1])&&void 0!==i?i:"",w=b.length>0?"&":"",x=v?"".concat(h,"-").concat(l):y,E=h.length?"".concat(h,"/"):"";return"".concat(s,"/transform/").concat(E).concat(l,"/").concat(x,"?").concat(b).concat(w,"download=true")}(n);window.location.replace(e)}},"Download"))}var hB=lc.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-0"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),"."+pB),mB=function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()},gB=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},vB=lc.div.withConfig({displayName:"ItemContainer",componentId:"sc-eq72z0-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";",""],bc.spacing3,bc.spacing4,bc.spacing3,(function(e){return e.isSelected&&bc.gray25}),(function(e){return e.isDisabled?"":"\n\t&:hover {\n\t\tbackground: ".concat(bc.gray25,";\n\t\tcursor: pointer;\n\t}")})),yB=lc.div.withConfig({displayName:"ItemDetails",componentId:"sc-eq72z0-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),bB=lc.p.withConfig({displayName:"Title",componentId:"sc-eq72z0-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],bc.fontSize100,bc.lineHeightText,bc.gray800,bc.spacing4),wB=lc.p.withConfig({displayName:"Subtitle",componentId:"sc-eq72z0-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],bc.gray600,bc.fontSize100,bc.lineHeightText,bc.spacing4),xB=lc.div.withConfig({displayName:"Container",componentId:"sc-eq72z0-4"})(["padding:0px ",";"],bc.spacing4),EB=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,s=e.isSelected,l=e.baseURL,c=_P(l.split("/transform"),1)[0],u="Base"===n?"":"".concat(n,"/"),d=gB(l),p="/transform/".concat(u).concat(d,"/"),f=CB(c,p);return t.createElement(vB,{className:pB,onClick:r,isSelected:s},t.createElement(Ah,{variant:"content",imageUrl:f}),t.createElement(yB,null,t.createElement(bB,null,n),t.createElement(wB,null,o)),!a&&t.createElement(fB,{alwaysVisible:!1,presetURL:"".concat(c).concat(p)}))},CB=function(e,t){return"".concat(e).concat(t,"?io=transform:fit,width:80")},kB=t.memo(EB),SB=function(e){var n=e.name,r=e.id,i=e.baseURL,a=e.onPresetSelected,s=e.selectedPreset,l=e.presets,c=e.presetGroupingActive,u=_P(o(!1),2),d=u[0],p=u[1],f=d?t.createElement(XE,null):t.createElement(JE,null),h=l.filter((function(e){return e.groupId===r})),m=h.length>0;return c?t.createElement(t.Fragment,null,t.createElement(vB,{className:pB,onClick:m?function(){return p((function(e){return!e}))}:void 0,isSelected:!1,isDisabled:!m},t.createElement(Ah,{size:"m",icon:t.createElement(dC,null)}),t.createElement(yB,null,t.createElement(bB,null,n)),m&&f),t.createElement(xB,null,d&&h.map((function(e){return t.createElement(kB,{baseURL:i,key:e.id,onSelect:function(){return a(e.name)},name:e.name,subtitle:"",isSelected:s===e.name})})))):null},IB=t.memo(SB),TB=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL,a=e.presetGroupingActive,s=r.filter((function(e){return"Preset"===e.type})).length;return t.createElement(xB,null,t.createElement(_B,null,"Base transformation"),t.createElement(kB,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),s>0&&t.createElement(_B,null,s," Presets"),r.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var s,l=e.name===o,c="Group"===e.type;return a&&(null==e||null===(s=e.groupId)||void 0===s?void 0:s.length)>0?null:c?t.createElement(IB,{key:e.id,name:e.name,id:e.id,baseURL:i,onPresetSelected:n,selectedPreset:o,presets:r,presetGroupingActive:a}):t.createElement(kB,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:l})})))},_B=lc.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],bc.gray800,bc.spacing5,bc.spacing5,bc.spacing4),OB=t.memo(TB);function jB(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var AB,PB=function(e){switch(e.type){case"fill":case"crop":return t.createElement(lC,null);case"fit":return t.createElement(QE,null);case"extend":return t.createElement(vE,null);case"scale":return t.createElement(CE,null);case"rotate":return t.createElement(PE,null);case"flip":case"mirror":return t.createElement(aC,null);case"border":return t.createElement(nC,null);case"background":return t.createElement(eC,null);case"trim":return t.createElement(cC,null);case"opacity":return t.createElement(mC,null);case"sepia":return t.createElement(oC,null);case"contrast":return t.createElement(sC,null);case"brightness":return t.createElement(EE,null);case"grayscale":return t.createElement(BE,null);case"blur":return t.createElement(tC,null);case"sharpness":return t.createElement(uC,null);case"saturation":return t.createElement(IE,null);case"text":return t.createElement(pC,null);case"image":return t.createElement(hC,null);case"box":return t.createElement(iC,null);case"advanced":return t.createElement(yC,null);case"multiple":return t.createElement(yE,null);case"removebg":return t.createElement(vC,null);default:return null}};function BB(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(NB,null,t.createElement(cg.Label,null,r),n,t.createElement(cg.HelperText,null,o))}!function(e){e.fill="fill",e.crop="crop",e.fit="fit",e.extend="extend",e.scale="scale",e.rotate="rotate",e.flip="flip",e.mirror="mirror",e.border="border",e.background="background",e.removebg="removebg",e.trim="trim",e.empty=""}(AB||(AB={}));var NB=lc(cg.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),DB={transformation:null,group:null,label:"Select a transform"},zB=[{label:"Background",transformation:AB.background,group:"transform"},{label:"Border",transformation:AB.border,group:"transform"},{label:"Crop",transformation:AB.crop,group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:AB.removebg,group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:AB.extend,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:AB.fill,group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:AB.fit,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:AB.flip,secondaryTransformation:AB.mirror,group:"transform"},{label:"Rotate",transformation:AB.rotate,group:"transform"},{label:"Scale",transformation:AB.scale,group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:AB.trim,group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Image overlay",transformation:"image",group:"overlay"},{label:"Color overlay",transformation:"box",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function MB(e){var n,r=zB.find((function(t){return[t.transformation,t.secondaryTransformation].includes(e.transformation)}))||DB;return t.createElement(BB,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement($v,{"aria-label":"Transformation",onChange:function(t){var n=zB.find((function(e){return[e.transformation,e.secondaryTransformation].includes(t)})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(PB,{type:r.transformation})},t.createElement($v.SectionTitle,null,"Transforms"),zB.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement($v.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(PB,{type:e.transformation})},e.label)})),t.createElement($v.Divider,null),t.createElement($v.SectionTitle,null,"Filters"),zB.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement($v.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(PB,{type:e.transformation})},e.label)})),t.createElement($v.Divider,null),t.createElement($v.SectionTitle,null,"Overlay"),zB.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement($v.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(PB,{type:e.transformation})},e.label)}))))}var RB,FB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!function(e){return"number"==typeof e&&!isNaN(e)}(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},LB=function(e){return e&&e>0?e.toString():""},$B={type:"Preset",name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0,groupId:"",redirectPublicLinks:!1},HB={id:"",transform:null,overlay:null,filter:null};!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(RB||(RB={}));var UB={name:"Open Sans",id:"opensans"},VB={type:"Preset",groupId:"",name:"",content:{io:[]},redirectPublicLinks:!1},WB={id:"",transform:null,overlay:null,filter:null},qB=function(e){switch(e){case"fill":case"fit":case"scale":return wP(wP({},WB),{},{height:1e3,width:1e3});case"extend":return wP(wP({},WB),{},{height:1e3,width:1e3,background:"FFFFFF"});case"crop":return wP(wP({},WB),{},{height:1e3,width:1e3,path:"square"});case"background":return wP(wP({},WB),{},{color:"FFFFFF"});case"border":return wP(wP({},WB),{},{color:"FFFFFF",width:1});case"rotate":return wP(wP({},WB),{},{angle:0});case"opacity":return wP(wP({},WB),{},{amount:100});case"blur":return wP(wP({},WB),{},{radius:0});case"text":return wP(wP({},WB),{},{content:"",font:UB.name,size:64,color:"FFFFFFFF",gravity:"center",padding:20,angle:0});case"image":return wP(wP({},WB),{},{opacity:50,angle:0,gravity:"center"});case"box":return wP(wP({},WB),{},{color:"00AAFF",opacity:50});case"brightness":case"contrast":case"sharpness":case"saturation":return wP(wP({},WB),{},{amount:0})}};function ZB(e,t){var n,r=function(){return e.content.io.map((function(e){return wP({},e)}))};switch(t.type){case"init":return function(e){var t;if(e){var n=wP({},e);return null==n||null===(t=n.content)||void 0===t||null===(t=t.io)||void 0===t||t.forEach((function(e){e.id||(e.id=wC())})),n}}(t.payload)||$B;case"edit":return wP(wP({isValid:!0},t.payload),{},{content:wP(wP({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return wP(wP({},e),{},{id:wC()})}))})});case"addTransformation":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:[].concat(OP(r()),[wP(wP({},WB),{},{id:t.payload.id,transform:AB.fill})])})});case"deleteTransformation":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return wP(wP({},e),{},(kP(n={},t.type,t.payload),kP(n,"content",wP(wP({},e.content),{},{io:r()})),n));case"redirectPublicLinksTnPreset":return wP(wP({},e),{},{redirectPublicLinks:t.payload});case"format":case"quality":return wP(wP({},e),{},{content:wP(wP({},e.content),{},kP({io:r()},t.type,t.payload))});case"focuspoint":return wP(wP({},e),{},{content:wP(wP({},e.content),{},kP({io:r()},t.type,t.payload.value))});case"transformation":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?wP({},e):wP(wP({},qB(t.payload.value)),{},kP({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?wP({},e):wP(wP({},e),{},kP({},t.type,t.payload.value))}))})});case"opacity":case"asset":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?wP({},e):wP(wP({},e),{},kP({},t.type,t.payload.value.toString()))}))})});case"groupId":return wP(wP({},e),{},{groupId:t.payload});default:return e}}var GB=t.createContext({}),YB=function(){return r(GB)},KB=function(e){var n=e.children,r=_P(p(ZB,VB),2),o=r[0],a=r[1],s=i((function(){return{transformationsState:o,transformationsDispatch:a}}),[o,a]);return t.createElement(GB.Provider,{value:s},n)},XB=9e3;function JB(e){var n=e.id,r=e.height,i=void 0===r?0:r,a=e.width,s=void 0===a?0:a,l=e.showLock,c=void 0!==l&&l,u=YB().transformationsDispatch,d=_P(o(!1),2),p=d[0],f=d[1],h=_P(o(1),2),m=h[0],g=h[1],v=t.createElement(eN,null,p?t.createElement(gE,null):t.createElement(mE,null)),y=LB(s),b=LB(i);return t.createElement(BB,{label:"Dimensions"},t.createElement(QB,null,t.createElement(tN,null,t.createElement(wh,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(nN,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=FB(t,XB);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/m,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),c?t.createElement(hu,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(rN,null),t.createElement(tN,null,t.createElement(wh,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(nN,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=FB(t,XB);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*m,id:n}}):g(s&&r?s/r:1)},iconRight:t.createElement("span",null,"px")}))))}var QB=lc.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),eN=lc.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],bc.gray400a),tN=lc.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),nN=lc.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],bc.spacing6),rN=lc.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],bc.spacing4);function oN(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,s=e.max;return t.createElement(BB,{label:i},t.createElement(ny,{value:o,onChange:n,min:a,max:s,inputPosition:"right"}))}function iN(e){var n=e.io,r=YB().transformationsDispatch;return t.createElement(BB,{label:"Angle"},t.createElement(wh,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(KE,null),iconRight:t.createElement("span",null,"°")}))}var aN=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],sN=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],lN=function(e){return["topleft","top","topright"].includes(e)?"top":["bottomleft","bottom","bottomright"].includes(e)?"bottom":"center"},cN=function(e){return["topleft","left","bottomleft"].includes(e)?"left":["topright","right","bottomright"].includes(e)?"right":"center"};function uN(e){var n=e.label,r=e.gravity,i=e.onChange,a=sN.findIndex((function(e){return e.value===cN(r)})),s=aN.findIndex((function(e){return e.value===lN(r)})),l=_P(o(sN[a]),2),c=l[0],u=l[1],d=_P(o(aN[s]),2),p=d[0],f=d[1],h=function(e){switch(i(e),e){case"topleft":f(aN.find((function(e){return"top"===e.value}))),u(sN.find((function(e){return"left"===e.value})));break;case"top":f(aN.find((function(e){return"top"===e.value}))),u(sN.find((function(e){return"center"===e.value})));break;case"topright":f(aN.find((function(e){return"top"===e.value}))),u(sN.find((function(e){return"right"===e.value})));break;case"left":f(aN.find((function(e){return"center"===e.value}))),u(sN.find((function(e){return"left"===e.value})));break;case"center":f(aN.find((function(e){return"center"===e.value}))),u(sN.find((function(e){return"center"===e.value})));break;case"right":f(aN.find((function(e){return"center"===e.value}))),u(sN.find((function(e){return"right"===e.value})));break;case"bottomleft":f(aN.find((function(e){return"bottom"===e.value}))),u(sN.find((function(e){return"left"===e.value})));break;case"bottom":f(aN.find((function(e){return"bottom"===e.value}))),u(sN.find((function(e){return"center"===e.value})));break;case"bottomright":f(aN.find((function(e){return"bottom"===e.value}))),u(sN.find((function(e){return"right"===e.value})))}};return t.createElement(BB,{label:n},t.createElement(Yd,null,t.createElement(hN,null,t.createElement(gN,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(vN,{isSelected:"topleft"===r,onClick:function(){return h("topleft")}}),t.createElement(vN,{isSelected:"top"===r,onClick:function(){return h("top")}}),t.createElement(vN,{isSelected:"topright"===r,onClick:function(){return h("topright")}}),t.createElement(vN,{isSelected:"left"===r,onClick:function(){return h("left")}}),t.createElement(vN,{isSelected:"center"===r,onClick:function(){return h("center")}}),t.createElement(vN,{isSelected:"right"===r,onClick:function(){return h("right")}}),t.createElement(vN,{isSelected:"bottomleft"===r,onClick:function(){return h("bottomleft")}}),t.createElement(vN,{isSelected:"bottom"===r,onClick:function(){return h("bottom")}}),t.createElement(vN,{isSelected:"bottomright"===r,onClick:function(){return h("bottomright")}}))),t.createElement(mN,{direction:"column",justifyContent:"space-between"},t.createElement($v,{"aria-label":"Horizontal position",onChange:function(e){switch(u(sN.find((function(t){return t.value===e}))),e){case"left":"top"===p.value&&i("topleft"),"center"===p.value&&i("left"),"bottom"===p.value&&i("bottomleft");break;case"center":"top"===p.value&&i("top"),"center"===p.value&&i("center"),"bottom"===p.value&&i("bottom");break;case"right":"top"===p.value&&i("topright"),"center"===p.value&&i("right"),"bottom"===p.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(fC,null)},sN.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.value},e.label)}))),t.createElement($v,{"aria-label":"Vertical position",onChange:function(e){switch(f(aN.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:p.value,label:p.label,icon:t.createElement(bC,null)},aN.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.value},e.label)}))))))}var dN,pN,fN,hN=lc.div.withConfig({displayName:"SquareFlexContainer",componentId:"sc-ci11hg-0"})(["width:92px;margin-right:16px;"]),mN=lc(Yd).withConfig({displayName:"DropdownFlex",componentId:"sc-ci11hg-1"})(["height:92px;"]),gN=lc(Yd).withConfig({displayName:"SquareFlex",componentId:"sc-ci11hg-2"})(["width:92px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],bc.spacing5,bc.gray25,bc.gray100a,bc.radiusMedium),vN=lc.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-3"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],bc.gray10,bc.gray100a,bc.radiusSmall,bc.gray25a,(function(e){return e.isSelected&&ic(["border:2px solid ",";background:",";"],bc.blue500,bc.blue100)}));function yN(e){if(2===e.length){var t=parseInt(e,16);return Math.floor(Math.round(t/255*100))}}function bN(e){var n,r=e.io,o=e.ioColorProp,i=void 0===o?"color":o,a=e.label,s=void 0===a?"Color":a,l=e.dispatchType,c=void 0===l?"color":l,u=YB().transformationsDispatch;function d(){var e;return null!==(e=r[i].toString())&&void 0!==e?e:""}return t.createElement(BB,{label:s},t.createElement(Yd,null,t.createElement(Xh,{onChange:function(e){var t,n,o=e.color,i=e.opacity,a=Math.min(100,i),s="#"===o[0]?o.substring(1):o,l=(t=a.toString(),(n=Math.round(255*parseInt(t,10)/100).toString(16).toUpperCase()).length<2?"0".concat(n):n);u({type:c,payload:{value:"".concat(s).concat(l).toUpperCase(),id:r.id}})},value:{color:"#".concat(d().substring(0,6).toUpperCase()),opacity:null!==(n=yN(d().substring(6)))&&void 0!==n?n:100},trigger:function(e){var n,o=SP({},(IP(e),e));return t.createElement(wh,{maxLength:8,value:null===(n=d())||void 0===n?void 0:n.toUpperCase(),prefix:"#",isInvalid:!new RegExp("^[a-fA-F0-9]{8}$|^[a-fA-F0-9]{6}$|^[a-fA-F0-9]{3}$").test(r[i].toString()),icon:t.createElement(gh,wP(wP({label:"Color Thumbnail"},o),{},{onClick:function(e){e.stopPropagation(),o.onClick()},icon:t.createElement(Ah,{variant:"content",backgroundColor:"#".concat(d()),shape:"circle",size:"xs"})})),onChange:function(e){u({type:c,payload:{value:e,id:r.id}})}})}})))}var wN=function(e){return e.data},xN=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},EN=null===(dN=document.querySelector('meta[name="x-csrf-token"]'))||void 0===dN?void 0:dN.getAttribute("content"),CN={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(pN=window)||void 0===pN?void 0:pN.csrf)||(null===(fN=window)||void 0===fN||null===(fN=fN.Bynder)||void 0===fN?void 0:fN.csrf_token)||EN},kN=SS.create({headers:CN});function SN(e,t){return kN.get(e,t).then(wN).catch(xN)}function IN(e,t,n){return kN.post(e,t,n).then(wN).catch(xN)}function TN(e,t,n){return kN.put(e,t,n).then(wN).catch(xN)}function _N(e,t){return kN.delete(e,t).then(wN).catch(xN)}var ON={getUploadedFonts:function(){return SN("/v7/fonts/portal/")},getFonts:function(e,t,n){return SN("/v7/fonts/",{params:wP(wP({},e?{pageSize:e}:null),n?{searchTerm:n}:null)})}},jN=function(e){var n=e.fontFamilyLabel,r=e.defaultFontFamilyLabel,s=e.fontFamily,l=e.setFontFamily,c=e.availableFonts,u=e.availableUploadedFonts,d=e.defaultFont,p=e.isDisabled,f=e.actionButton,h=void 0===f?null:f,m=_P(o(""),2),g=m[0],v=m[1],y=function(e){var t=e.searchFont,n=e.availableFonts,r=e.availableUploadedFonts,i=e.defaultFont,s=_P(o(n),2),l=s[0],c=s[1],u=_P(o(r),2),d=u[0],p=u[1],f=_P(o(!1),2),h=f[0],m=f[1],g=_P(o(!1),2),v=g[0],y=g[1];a((function(){c(n),p(r)}),[n,r]);var b=iE((function(e){m(!0),ON.getFonts(20,"",e).then((function(t){var n=t.fonts;if(e){var o=d.filter((function(t){return t.searchable_font_family_name.includes(e)}));p(o)}else p(r);c(e?n:[i].concat(OP(n)))})).catch((function(e){Rv({title:e.toString(),variant:"error"}),console.error("error=",e)})).finally((function(){m(!1)}))}),500);return a((function(){t.length>0&&b(t),v&&(b(t),y(!1))}),[v,t,b]),{fontResults:l,fontUploadedResults:d,isLoading:h,setClearFont:y}}({searchFont:g,availableFonts:c,availableUploadedFonts:u,defaultFont:d}),b=y.fontResults,w=y.fontUploadedResults,x=y.isLoading,E=y.setClearFont,C=i((function(){return wC()}),[]);function k(){v(""),E(!0)}var S=function(e){return e.length>0?e.map((function(e){return t.createElement($v.Item,{key:e.font_id,value:e.font_id},e.font_family_name)})):t.createElement($v.Text,null,"No Results")},I=function(){return t.createElement($v.Text,null,"Loading")};return t.createElement(cg.Group,null,t.createElement(cg.Label,{id:C},n),t.createElement(AN,{condition:!!h},t.createElement($v,{"aria-labelledby":C,value:s.font_id,onChange:function(e){var t=w.find((function(t){return t.font_id===e}));if(t)l(t);else{var n=b.find((function(t){return t.font_id===e}));n&&l(n)}},label:s.font_family_name||r,isDisabled:p},t.createElement($v.SearchInput,{value:g,onChange:v,onBlur:k,onKeyDown:function(e){"Backspace"===e.key&&g.length<=1&&k()},placeholder:"Search","aria-label":"Search Options"}),t.createElement($v.SectionTitle,null,"Uploaded Fonts"),x?I():S(w),t.createElement($v.Divider,null),t.createElement($v.SectionTitle,null,"Available Fonts"),x?I():S(b)),h))},AN=function(e){var n=e.condition,r=e.children;return n?t.createElement(PN,null,r):r},PN=lc.div.withConfig({displayName:"Wrapper",componentId:"sc-swectq-0"})(["display:flex;gap:",";> div{flex:1 1 auto;}"],bc.spacing3),BN=["Regular"];function NN(e){var n,r,i,s,l,c=e.io,u=YB().transformationsDispatch,d=_P(o(),2),p=d[0],f=d[1],h=_P(o([]),2),m=h[0],g=h[1],v=_P(o([]),2),y=v[0],b=v[1];a((function(){Promise.all([ON.getFonts(20),ON.getUploadedFonts()]).then((function(e){var t=_P(e,2),n=t[0],r=t[1];b(n.fonts),g(r)}))}),[]);var w={font_id:null!==(n=c.font)&&void 0!==n?n:UB.id,font_family_name:null!==(r=c.font)&&void 0!==r?r:UB.name,variants:[],searchable_font_family_name:null!==(i=c.font)&&void 0!==i?i:UB.id};return t.createElement(t.Fragment,null,t.createElement(BB,{label:"Text"},t.createElement(fy,{placeholder:"Add Text Here",value:c.content,onChange:function(e){return u({type:"content",payload:{value:e,id:c.id}})}})),t.createElement(BB,{label:"Font"},t.createElement(jN,{fontFamilyLabel:"",defaultFontFamilyLabel:"",fontFamily:null!=p?p:w,setFontFamily:function(e){f(e),u({type:"font",payload:{value:e.font_family_name,id:c.id}})},availableFonts:y,availableUploadedFonts:m,defaultFont:w})),t.createElement(BB,{label:""},t.createElement(Yd,null,t.createElement(DN,null,t.createElement($v,{"aria-label":"Font style",value:c.fontType,label:c.fontType,onChange:function(e){return u({type:"fontType",payload:{value:e,id:c.id}})},isDisabled:!0},BN.map((function(e){return t.createElement($v.Item,{value:e,key:e},e)})))),t.createElement(zN,null,t.createElement(wh,{type:"number",value:null===(s=c.size)||void 0===s?void 0:s.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"size",payload:{value:parseInt(e,10),id:c.id}})}})))),t.createElement(bN,{label:"Text color",io:c}),t.createElement(uN,{label:"Position",gravity:c.gravity,onChange:function(e){return u({type:"gravity",payload:{value:e,id:c.id}})}}),t.createElement(BB,{label:"Padding"},t.createElement(wh,{type:"number",value:null===(l=c.padding)||void 0===l?void 0:l.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"padding",payload:{value:parseInt(e,10),id:c.id}})}})),t.createElement(iN,{io:c}))}var DN=lc.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],bc.spacing4),zN=lc.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function MN(e){var n=e.io;return t.createElement(t.Fragment,null,t.createElement(JB,{width:n.width,height:n.height,id:n.id}),t.createElement(bN,{io:n,label:"Background",dispatchType:"background",ioColorProp:"background"}))}var RN=[{label:"Rectangle",path:"square",icon:t.createElement(_E,null)},{label:"Ellipse",path:"circle",icon:t.createElement(jE,null)}],FN=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(gC,null)}];function LN(e){var n,r=e.onChange,o=e.shape,i=null!==(n=RN.find((function(e){return e.path===o})))&&void 0!==n?n:FN.find((function(e){return e.path===o}));return t.createElement(BB,{label:"Path"},t.createElement($v,wP({"aria-label":"Path",onChange:r,value:o},i),RN.map((function(e){return t.createElement($v.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement($v.Divider,null),FN.map((function(e){return t.createElement($v.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}function $N(e){var n=e.onChange,r=_P(e.focusPoint||[],2),o=r[0],i=r[1],a=function(e,t){var r="string"==typeof e?parseFloat(e):e,a=r>=100?100:r;n(["x"===t?a:o,"y"===t?a:i])};return t.createElement(VN,{justifyContent:"space-between",gap:"3",alignItems:"center"},t.createElement(UN,null,t.createElement(wh,{"aria-label":"Focus point position X",placeholder:"50",type:"number",value:(null==o?void 0:o.toString())||"",icon:t.createElement(HN,null,"X"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"x")}})),t.createElement(HN,null,"×"),t.createElement(UN,null,t.createElement(wh,{"aria-label":"Focus point position Y",placeholder:"50",type:"number",value:(null==i?void 0:i.toString())||"",icon:t.createElement(HN,null,"Y"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"y")}})))}var HN=lc.div.withConfig({displayName:"IconText",componentId:"sc-19e3sbn-0"})(["display:flex;justify-content:center;width:24px;"]),UN=lc.div.withConfig({displayName:"FlexInput",componentId:"sc-19e3sbn-1"})(["min-width:0;"]),VN=lc(Yd).withConfig({displayName:"StyledFlex",componentId:"sc-19e3sbn-2"})(["margin-bottom:",";"],bc.spacing2),WN=[{label:"Focus point",focus:"point",icon:t.createElement(TE,null)},{label:"Override focus point",focus:"override",icon:t.createElement(OE,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(IS,null)}];function qN(e){var n=e.type,r=e.gravity,i=e.onChangeGravity,s=e.onChangeFocus,l=e.focusPoint,c=e.showEditor,u=e.setShowEditor,d=_P(o(!1),2),p=d[0],f=d[1],h=_P(o(!1),2),m=h[0],g=h[1],v=_P(o(null),2),y=v[0],b=v[1];a((function(){var e,t,n;y||(l?(n=WN.find((function(e){return"override"===e.focus})),b(n),g(!0)):r?(t=WN.find((function(e){return"gravity"===e.focus})),b(t)):(e=WN.find((function(e){return"point"===e.focus})),b(e)))}),[l,r,y]);var w={gravity:"Select the direction from where the transformation is being applied.",override:"Select a new focus point by editing the percentages below or directly clicking on the asset with the editor.",point:"Uses the predefined focus point of the asset."};return t.createElement(t.Fragment,null,t.createElement(BB,{label:"Focus",helpText:w[null==y?void 0:y.focus]||w.point},t.createElement($v,wP(wP({"aria-label":"Focus",onChange:function(e){var t="gravity"===e,n="override"===e,r="point"===e;u&&u({show:!1});var o=WN.find((function(t){return t.focus===e}));b(o),f(t),g(n),!n&&u&&u({show:!1}),r&&s(void 0),t?(i("center"),s(void 0)):i(null)}},y),{},{value:null==y?void 0:y.focus}),WN.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement($v.Divider,null):null,t.createElement($v.Item,{value:e.focus,icon:e.icon},e.label))})))),p&&t.createElement(uN,{label:"Gravity",gravity:r,onChange:i}),m&&t.createElement(t.Fragment,null,t.createElement($N,{onChange:s,focusPoint:l}),u&&t.createElement(ZN,{isChecked:c.type===n&&c.show,isDisabled:c.type&&c.type!==n,onChange:function(){c.type&&c.type!==n||u({type:c.show?void 0:n,show:!c.show})}},t.createElement(Yd,{gap:"4",direction:"row",alignItems:"center"},t.createElement(AE,null),t.createElement("span",null,"Show real time editor")))))}var ZN=lc(sm).withConfig({displayName:"StyledSwitch",componentId:"sc-18kzar2-0"})(["margin-top:",";"],bc.spacing5);function GN(e){var n=e.io,r=e.focuspoint,o=e.setShowEditor,i=e.showEditor,a=YB().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(LN,{shape:n.path,onChange:function(e){return a({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(JB,{width:n.width,height:n.height,id:n.id}),t.createElement(qN,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,showEditor:i,setShowEditor:o,type:"crop"})),"circle"===n.path&&t.createElement(oN,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return a({type:"blur",payload:{value:e,id:n.id}})}}))}var YN=500;function KN(e){var n=e.io,r=YB().transformationsDispatch,o=LB(n.width);return t.createElement(t.Fragment,null,t.createElement(bN,{io:n}),t.createElement(BB,{label:"Border"},t.createElement(wh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=FB(t,YN);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(rC,null),iconRight:t.createElement("span",null,"px")})))}function XN(e){var n=e.io,r=e.focusPoint,o=e.setShowEditor,i=e.showEditor,a=YB().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(JB,{width:n.width,height:n.height,id:n.id}),t.createElement(qN,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,setShowEditor:o,showEditor:i,type:"fill"}))}function JN(e){var n=e.io,r=YB().transformationsDispatch;return t.createElement(oN,{label:jB(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}})}function QN(e){var n=e.io,r=YB().transformationsDispatch;return t.createElement(oN,{label:"Blur",min:0,max:100,value:n.radius,onChange:function(e){return r({type:"radius",payload:{value:e,id:n.id}})}})}function eD(e){var n=e.io;return t.createElement(bN,{io:n})}var tD=3e3;function nD(e){var n=e.io,r=YB().transformationsDispatch,o=LB(n.padding);return t.createElement(BB,{label:"Padding"},t.createElement(Yd,null,t.createElement(oD,null,t.createElement(wh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=FB(t,tD);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(rC,null),iconRight:t.createElement("span",null,"px")}))))}var rD,oD=lc.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],bc.spacing4);function iD(e){var n=e.io,r=YB().transformationsDispatch,o=null==lD?void 0:lD[n.transform];return t.createElement(BB,{label:"Flip"},t.createElement(aD,null,t.createElement($v,{"aria-label":"Flip",value:n.transform,onChange:function(e){r({type:"transformation",payload:{group:"transform",value:e,id:n.id}})},label:o.label,icon:o.icon},[AB.mirror,AB.flip].map((function(e){return t.createElement($v.Item,{value:e,key:e,icon:lD[e].icon},lD[e].label)})))))}var aD=lc.div.withConfig({displayName:"FlexInputColor",componentId:"sc-keyng0-0"})(["min-width:88px;margin-right:",";"],bc.spacing4),sD=lc(RE).withConfig({displayName:"IconHorizontal",componentId:"sc-keyng0-1"})(["transform:rotate(90deg);"]),lD=(kP(rD={},AB.flip,{label:"Flip vertically",value:AB.flip,icon:t.createElement(RE,null)}),kP(rD,AB.mirror,{label:"Flip horizontally",value:AB.mirror,icon:t.createElement(sD,null)}),rD),cD=function(){var e=_P(o(""),2),t=e[0],n=e[1],r=function(){var e=CP(xP().mark((function e(){var t;return xP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$A.getJWT();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){r()}),[]),function(){return t}},uD=function(e){if(!fD(e))throw new Error("The value is not a UUID: ".concat(e));return"".concat(e.substring(0,23)).concat(e.substring(24)).toUpperCase()},dD=function(e){var t=e.toLowerCase().split("-");return t.splice(3,1,t[3].substring(0,4),t[3].substring(4)),t.join("-")},pD=function(e){var t=e.match(/(.*)\?mediaId=(.*)/);return t?t[2]:""},fD=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)},hD=["format","io","focuspoint"],mD=["id"];function gD(e){var t,n,r=e.content,o=r.format,i=r.io,a=r.focuspoint,s=TP(r,hD),l=function(){return i.map((function(e){var t=TP(e,mD);return wP({},Object.entries(wP({},t)).reduce((function(e,t){var n=_P(t,2),r=n[0],o=n[1];return o||""===o?wP(wP({},e),{},kP({},r,o)):e}),{}))}))};return wP(wP({},Object.entries(e).reduce((function(e,t){var n=_P(t,2),r=n[0],o=n[1];return["description","groupId","redirectPublicLinks"].includes(r)||o&&""!==o?wP(wP({},e),{},kP({},r,o)):e}),{})),{},{content:JSON.stringify((t=a&&("string"==typeof a?a:"".concat(a[0]/100,",").concat(a[1]/100)),n=t?wP(wP({},s),{},{focuspoint:t}):s,wP(wP({},n),{},""===o?{io:l()}:{format:o,io:l()})))})}var vD={getImageInfo:function(e){return SN("/api/v4/media/"+e)},addPreset:function(e){return IN("/v7/dat/presets/add",gD(e))},addGroup:function(e){return IN("/v7/dat/presets/groups/add",{name:e.name})},getAllPresets:function(){return SN("/v7/dat/presets/")},updatePreset:function(e){return TN("/v7/dat/presets/update",gD(e))},updateGroup:function(e){return TN("/v7/dat/presets/groups/update",e)},deletePreset:function(e){return _N("/v7/dat/presets/delete",{data:{id:e}})},deletePresetGroup:function(e,t){return _N("/v7/dat/presets/groups/delete",{data:{id:e,includePresets:t}})}},yD="\n databaseId\n name\n url\n derivatives {\n thumbnail\n }";function bD(e){var n=e.io,r=YB().transformationsDispatch,i=_P(o(!1),2),s=i[0],l=i[1],c=_P(o(!1),2),u=c[0],d=c[1],p=_P(o({name:"",thumbnail:"",coldfusionUUID:""}),2),f=p[0],h=p[1],m=_P(o(void 0),2),g=m[0],v=m[1],y=n.asset&&n.asset.length&&""===f.thumbnail,b=cD();return a((function(){var e,t;y&&(e=n.asset,t=uD(e),d(!0),vD.getImageInfo(t).then((function(e){var n=e.name,r=e.thumbnails.mini;h({name:n,thumbnail:r,coldfusionUUID:t})})).finally((function(){d(!1)})))}),[y,n.asset]),a((function(){b()&&v({getAccessToken:b,hideLogout:!0})}),[b()]),t.createElement(BB,{label:"Image"},t.createElement(t.Fragment,null,t.createElement(wD,{className:pB,onClick:function(){return l(!0)},isSelected:!f.thumbnail.length},f.thumbnail.length||y?t.createElement(Ah,{variant:"content",imageUrl:f.thumbnail,backgroundColor:"rgb(255 255 255 / 0%)"},t.createElement(Ah.Overlay,{isLoading:u})):t.createElement(hu,{title:"Edit",icon:t.createElement(bE,null)}),t.createElement(xD,null,t.createElement(ED,null,u?"Loading":f.name.length?f.name:"Choose asset"))),t.createElement(ST,{isOpen:s,onClose:function(){return l(!1)}},t.createElement(f_,{authentication:g},t.createElement(gA,{mode:"SingleSelectFile",language:document.querySelector("html").getAttribute("lang")||"en",assetTypes:["IMAGE"],selectedAssets:f.coldfusionUUID.length?[f.coldfusionUUID]:[],onSuccess:function(e){var t=e[0],o=t.url,i=t.derivatives.thumbnail,a=t.name,s=o||"",c=pD(s),u=i||s;l(!1),h({name:a,thumbnail:u,coldfusionUUID:c}),r({type:"asset",payload:{value:dD(c),id:n.id}})},assetFieldSelection:yD})))))}var wD=lc.div.withConfig({displayName:"ItemContainer",componentId:"sc-bmwf6h-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],bc.spacing3,bc.spacing4,bc.spacing3,(function(e){return e.isSelected&&bc.gray25}),bc.gray25),xD=lc.div.withConfig({displayName:"ItemDetails",componentId:"sc-bmwf6h-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),ED=lc.p.withConfig({displayName:"Title",componentId:"sc-bmwf6h-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],bc.fontSize100,bc.lineHeightText,bc.gray800,bc.spacing4);function CD(e){var n,r=e.io,o=YB().transformationsDispatch;return t.createElement(BB,{label:"Opacity"},t.createElement(wh,{type:"number",placeholder:"100",onChange:function(e){var t=parseInt(e,10);o({type:"opacity",payload:{value:isNaN(t)?100:t,id:r.id}})},value:(null===(n=r.opacity)||void 0===n?void 0:n.toString())||"",iconRight:t.createElement("span",null,"%")}))}function kD(e){var n=e.io,r=YB().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(bD,{io:n}),t.createElement(CD,{io:n}),t.createElement(uN,{label:"Position",gravity:n.gravity,onChange:function(e){return r({type:"gravity",payload:{value:e,id:n.id}})}}),t.createElement(iN,{io:n}))}function SD(e){var n=e.color,r=e.onChange,i=e.onChangeValidation,a=_P(o(!0),2),s=a[0],l=a[1],c=function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);u(!!t),r(e)},u=function(e){l(e),i(e)};return t.createElement(Xh,{onChange:function(e){var t=e.substring(1);c(t.toUpperCase())},value:"#".concat(n),trigger:function(e){var r=SP({},(IP(e),e));return t.createElement(t.Fragment,null,t.createElement(wh,{isInvalid:!s,maxLength:6,value:null==n?void 0:n.toUpperCase(),prefix:"#",icon:t.createElement(gh,wP(wP({label:"Color Thumbnail"},r),{},{onClick:function(e){e.stopPropagation(),r.onClick()},icon:t.createElement(Ah,{variant:"content",backgroundColor:"#".concat(n),shape:"circle",size:"xs"})})),onChange:c}),!s&&t.createElement(cg.HelperText,{isInvalid:!s},"Please type a valid hex value"))}})}function ID(e){var n=e.io,r=YB().transformationsDispatch;return t.createElement(BB,{label:"Color"},t.createElement(Yd,null,t.createElement(TD,null,t.createElement(SD,{color:n.color,onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})}})),t.createElement(_D,null,t.createElement(wh,{type:"number",placeholder:"100",onChange:function(e){var t=isNaN(parseInt(e,10))?"0":e;r({type:"opacity",payload:{value:parseInt(t,10),id:n.id}})},value:n.opacity.toString(),iconRight:t.createElement("span",null,"%")}))))}var TD=lc.div.withConfig({displayName:"FlexInputColor",componentId:"sc-lch2dr-0"})(["min-width:0;margin-right:",";"],bc.spacing4),_D=lc.div.withConfig({displayName:"FlexInput",componentId:"sc-lch2dr-1"})(["min-width:0;"]);function OD(e){var n=e.io,r=e.focusPoint,o=e.showEditor,i=e.setShowEditor,a=YB().transformationsDispatch,s=["contrast","brightness","sharpness","saturation"].includes(n.filter),l=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(MB,{transformation:l,onChange:function(e){i&&i({show:!1}),a({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),(n.transform===AB.flip||n.transform===AB.mirror)&&t.createElement(iD,{io:n}),(n.transform===AB.fit||n.transform===AB.scale)&&t.createElement(JB,{width:n.width,height:n.height,id:n.id}),n.transform===AB.fill&&t.createElement(XN,{io:n,focusPoint:r,setShowEditor:i,showEditor:o}),n.transform===AB.background&&t.createElement(eD,{io:n}),n.transform===AB.rotate&&t.createElement(iN,{io:n}),n.transform===AB.border&&t.createElement(KN,{io:n}),n.transform===AB.extend&&t.createElement(MN,{io:n}),n.transform===AB.crop&&t.createElement(GN,{io:n,focuspoint:r,setShowEditor:i,showEditor:o}),n.transform===AB.trim&&t.createElement(nD,{io:n}),"text"===n.overlay&&t.createElement(NN,{io:n}),"image"===n.overlay&&t.createElement(kD,{io:n}),"box"===n.overlay&&t.createElement(ID,{io:n}),"blur"===n.filter&&t.createElement(QN,{io:n}),"opacity"===n.filter&&t.createElement(JN,{io:n}),s&&t.createElement(oN,{label:jB(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return a({type:"amount",payload:{value:e,id:n.id}})}}))}var jD=[{label:"Auto (recommended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],AD=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function PD(e){var n,r,i=e.options,a=YB().transformationsDispatch,s="custom",l=_P(o(!1),2),c=l[0],u=l[1],d=(null===(n=jD.find((function(e){return e.value===i.format})))||void 0===n?void 0:n.label)||"Select Format",p=c?"Custom":(null===(r=AD.find((function(e){return e.value===String(i.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(BB,{label:"Format",helpText:"Set the output format"},t.createElement($v,{"aria-label":"Format",onChange:function(e){e===s?u(!0):a({type:"format",payload:e})},label:d,value:i.format},jD.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(BB,{label:"Quality"},t.createElement($v,{"aria-label":"Quality",onChange:function(e){var t=e===s;u(t);var n=t?100:Number(e);a({type:"quality",payload:n})},label:p,value:String(i.quality)},AD.map((function(e){return t.createElement($v.Item,{value:e.value,key:e.label},e.label)})),t.createElement($v.Divider,null),t.createElement($v.Item,{value:s,key:"Custom"},"Custom"))),c&&t.createElement(BB,{label:""},t.createElement(ny,{value:i.quality,min:60,max:100,onChange:function(e){a({type:"quality",payload:Number(e)})},inputPosition:"right"})))}function BD(e){var t=_P(o(),2),n=t[0],r=t[1];return a((function(){var t;(t=e,SN("/v7/featuretreatments/treatment/".concat(t))).then((function(e){r(e.treatment)})).catch((function(t){var n;r("control"),console.error("Something went wrong while fetching the ".concat(e," Split treatment"),t),n=t,pi().captureException(n,void 0)}))}),[e]),n}var ND=function(e){var n,r=e.showEditor,i=e.setShowEditor,a=e.isFromPresets,s=_P(o([]),2),l=s[0],c=s[1],u=_P(o(!1),2),d=u[0],p=u[1],f=YB(),h=f.transformationsState,m=f.transformationsDispatch,g="on"===BD("redirect_public_links_to_dat");return t.createElement(qm,null,h.content.io.map((function(e,n){var o,a=l.includes(e.id),s=e.transform||e.overlay||e.filter,u=jB((o=s)===AB.mirror?AB.flip:o)||"New transformation",d=DD(e);return t.createElement(t.Fragment,{key:"".concat(e.id,"-").concat(n)},t.createElement(qm.Item,{subtext:d,thumbnail:t.createElement(Ah,{variant:"clean",icon:t.createElement(PB,{type:s}),shape:"square"}),rightElements:t.createElement(zD,{isExpanded:a,onDeleteClick:function(t){i&&["fill","crop"].includes(s)&&i({show:!1}),function(e,t){e.stopPropagation(),m({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return t=e.id,void(l.includes(t)?c((function(e){return e.filter((function(e){return e!==t}))})):c((function(e){return[].concat(OP(e),[t])})));var t}},u),a&&t.createElement(OD,{io:e,focusPoint:h.content.focuspoint,showEditor:r,setShowEditor:i,key:"".concat(e.id,"-transformation")}),t.createElement(qm.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(qm.Item,{key:"add-button",onClick:function(){var e=wC();m({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(OP(t),[e])})),i&&i({show:!1})},thumbnail:t.createElement(Ah,{icon:t.createElement(bE,null),shape:"square"})},"Add transformation"),t.createElement(qm.Divider,{key:"add-button-divider"}),t.createElement(qm.Item,{key:"advanced-button",subtext:"Format: ".concat((null===(n=h.content)||void 0===n||null===(n=n.format)||void 0===n?void 0:n.toUpperCase())||"Auto"," • Quality: ").concat(h.content.quality),thumbnail:t.createElement(Ah,{variant:"clean",icon:t.createElement(PB,{type:"advanced"}),shape:"square"}),rightElements:d?t.createElement(NE,null):t.createElement(DE,null),onClick:function(){p(!d)}},"Output options"),d&&t.createElement(PD,{options:h.content,key:"advanced-options"}),t.createElement(qm.Divider,{key:"redirect-public-links-divider"}),g&&a&&t.createElement(qm.Item,{checkedVariant:"switch",onClick:function(){m({type:"redirectPublicLinksTnPreset",payload:!h.redirectPublicLinks})},isChecked:h.redirectPublicLinks},"Redirect public links"))},DD=function(e){var t="Focus Point";e.gravity&&(t=jB(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",s=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(s&&"• "+s);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},zD=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(Yd,{alignItems:"center"},t.createElement(kp,{content:"Remove transformation"},t.createElement(hu,{variant:"clean",icon:t.createElement(fE,{fill:bc.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(NE,null):t.createElement(DE,null))};function MD(e){var n,r,o=e.showEditor,i=e.setShowEditor,a=null!==(n=null===(r=YB().transformationsState.content)||void 0===r||null===(r=r.io)||void 0===r?void 0:r.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(RD,null,t.createElement(LD,null,"Transformations"),t.createElement($D,null,1===a?"".concat(a," transformation applied"):a>1?"".concat(a," transformations applied"):"No transformations")),t.createElement(FD,null,t.createElement(ND,{isFromPresets:!1,showEditor:o,setShowEditor:i})))}var RD=lc.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],bc.spacing6,bc.white,bc.spacing4),FD=lc.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),LD=lc.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],bc.gray800),$D=lc.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],bc.gray600),HD=function(){return t.createElement(VD,null,t.createElement(qD,null),t.createElement(ZD,null,t.createElement(GD,{large:!0}),t.createElement(GD,null)))},UD=function(){return t.createElement(YD,null)},VD=lc.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),WD=dc(["0%{background-color:","}100%{background-color:","}"],bc.gray50a,bc.gray100a),qD=lc.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],WD),ZD=lc.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],bc.spacing4),GD=lc.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],bc.spacing3,(function(e){return e.large?"110px":"60px"}),bc.radiusSmall,WD),YD=lc.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],WD),KD=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.selectedPreset,s=e.isLoading,l=e.baseURL,c=e.canViewPresets,u=e.canViewTransformations,d=e.showEditor,p=e.setShowEditor,f=YB(),h=f.transformationsState,m=f.transformationsDispatch,g="on"===BD("dat_presets_grouping");return a((function(){var e,t,n,o=!(null!=h&&null!==(e=h.content)&&void 0!==e&&null!==(e=e.io)&&void 0!==e&&e.length)&&(null==h||null===(t=h.content)||void 0===t?void 0:t.quality)===$B.content.quality&&(null==h||null===(n=h.content)||void 0===n?void 0:n.format)===$B.content.format;r===RB.transformations&&o&&m({type:"init"})}),[r,m,h]),t.createElement(XD,{direction:"column"},r===RB.presets?c?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(HD,{key:"preset-skeleton-".concat(e)})}))):t.createElement(OB,{baseURL:l,presets:o,onPresetSelected:n,selectedPreset:i,presetGroupingActive:g}):null:u?t.createElement(JD,null,t.createElement(MD,{showEditor:d,setShowEditor:p})):null)},XD=lc(Yd).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],bc.white),JD=lc.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],bc.spacing6);function QD(e){var n=e.url,r=l(null);return d((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(ez,null,t.createElement(tz,null,t.createElement(nz,null,t.createElement(ME,null)),t.createElement(rz,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(iz,null,n))),t.createElement(oz,null,t.createElement(kp,{content:"Copy URL"},t.createElement(GE.CopyToClipboard,{text:n,onCopy:function(){Rv({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(hu,{variant:"clean",icon:t.createElement(xE,null),"aria-label":"Copy to clipboard"}))),t.createElement(fB,{alwaysVisible:!0,presetURL:n})))}var ez=lc.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],bc.white,bc.radiusLarge,bc.elevationStatic),tz=lc.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),nz=lc.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],bc.spacing5,bc.spacing4,bc.gray600),rz=lc.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],bc.gray800,bc.fontSize100),oz=lc.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],bc.spacing2),iz=lc.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]),az=lc.div.withConfig({displayName:"ImageWrapper",componentId:"sc-1w8edrw-0"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&ic(["margin-bottom:",";"],bc.spacing8)})),sz=lc.img.withConfig({displayName:"Image",componentId:"sc-1w8edrw-1"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(bc.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),lz=function(e,t){var n=_P(t,2),r=n[0],o=n[1],i=e.clientWidth*r/100,a=e.clientHeight*o/100;return[Math.ceil(i||0),Math.ceil(a||0)]},cz=function(e,t){var n=_P(t,2),r=n[0],o=n[1],i=r/e.clientWidth*100,a=o/e.clientHeight*100;return[Math.ceil(i||0),Math.ceil(a||0)]},uz=function(e){var t=e.point,n=e.renderedSize,r=e.background;if(n){var o=t-n/2,i=r-n;return o<0?0:o>i?i:o}},dz=lc.div.withConfig({displayName:"DivStyled",componentId:"sc-1sqkkxm-0"})(["position:absolute;top:0;left:auto;right:auto;bottom:0;right:0;z-index:9;text-align:center;height:","px;width:","px;"],(function(e){return e.height||0}),(function(e){return e.width||0})),pz=lc.img.withConfig({displayName:"StyledImage",componentId:"sc-1sqkkxm-1"})(["display:",";max-width:100%;max-height:100%;background:",";position:absolute;top:0;left:0;opacity:1;max-width:auto;max-height:auto;height:",";width:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(bc.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px"),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),fz=lc(dz).withConfig({displayName:"DraggableWrapper",componentId:"sc-1sqkkxm-2"})(["z-index:100;"]),hz=lc(pz).withConfig({displayName:"PreviewImage",componentId:"sc-1sqkkxm-3"})(["visibility:",";top:","px;left:","px;"],(function(e){return e.displayNone?"hidden":"visible"}),(function(e){return e.top||0}),(function(e){return e.left||0})),mz=lc.div.withConfig({displayName:"Wrapper",componentId:"sc-1sqkkxm-4"})(["display:flex;justify-content:center;text-align:center,position:relative;width:100%;background-color:#f1f1f1;"]),gz=lc(yP).withConfig({displayName:"StyledDraggable",componentId:"sc-1sqkkxm-5"})(["position:absolute;top:0;bottom:0;left:0;right:0;"]),vz=lc.img.withConfig({displayName:"StyledBackground",componentId:"sc-1sqkkxm-6"})(["display:",";max-width:100%;max-height:100%;background:",";opacity:0.5;display:block;"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(bc.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),yz=lc.div.withConfig({displayName:"DivFocusPoint",componentId:"sc-1sqkkxm-7"})(["position:absolute;cursor:move;height:80px;width:80px;margin:-40px;user-select:none;"]),bz=lc.div.withConfig({displayName:"StyledPreviewWrapper",componentId:"sc-1sqkkxm-8"})(["display:flex;justify-content:center;text-align:center;overflow:hidden;position:absolute;top:0;height:",";width:",";"],(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),wz=lc(hz).withConfig({displayName:"FillPreview",componentId:"sc-1sqkkxm-9"})(["object-fit:cover;width:100%;height:100%;object-fit:contain;"]),xz=lc(wz).withConfig({displayName:"FillPreviewInvisible",componentId:"sc-1sqkkxm-10"})(["visibility:hidden;opacity:0;"]),Ez=lc.div.withConfig({displayName:"FillPreviewWrapper",componentId:"sc-1sqkkxm-11"})(["position:absolute;background-image:url('","');background-size:cover;background-position:",";height:",";width:",";top:","px;left:","px;"],(function(e){return e.background}),(function(e){return e.backgroundPosition}),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"}),(function(e){return e.top||0}),(function(e){return e.left||0})),Cz=lc.div.withConfig({displayName:"EditorMainDiv",componentId:"sc-1sqkkxm-12"})(["position:relative;display:flex;justify-content:center;text-align:center;max-height:100%;width:100%;"]);function kz(){return t.createElement("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"40",cy:"40",r:"39.5",stroke:"white"}),t.createElement("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(1 0 0 -1 39 41)",fill:"white"}))}function Sz(e){var n=e.url,r=e.isLoading,i=e.backgroundSize,a=e.setIsLoading,s=e.trackPos,l=e.focuspoint,c=e.type,u=e.baseURL,d=_P(o({}),2),p=d[0],f=d[1],h=_P(o(!0),2),m=h[0],g=h[1],v=_P(l||[50,50],2),y=v[0],b=v[1],w=_P(lz(i,[y,b]),2),x=w[0],E=w[1],C=function(e){var t=e.backgroundSize,n=e.renderedImageSize,r=e.type,o=_P(e.focuspoint,2),i=o[0],a=o[1];if(!t.naturalHeight)return{top:0,left:0};if("crop"===r){var s=uz({point:i,renderedSize:n.clientWidth,background:t.clientWidth});return{top:uz({point:a,renderedSize:n.clientHeight,background:t.clientHeight}),left:s}}var l=t.naturalWidth/t.naturalHeight>n.naturalWidth/n.naturalHeight;return Math.ceil(n.naturalWidth/n.naturalHeight)===Math.ceil(t.naturalWidth/t.naturalHeight)?{top:0,left:0}:l?{top:0,left:i-n.clientWidth/2}:{top:a-n.clientHeight/2,left:0}}({type:c,backgroundSize:i,renderedImageSize:p,focuspoint:[x||0,E||0]}),k=C.top,S=C.left,I=function(e){a(!1),function(e){var t,n,r=e.backgroundSize,o=e.setRenderedImageSize,i=e.type,a=e.img.target,s=a.naturalHeight,l=a.naturalWidth,c=l/s;if("crop"===i)t=r.clientWidth*l/r.naturalWidth,n=r.clientHeight*s/r.naturalHeight;else{t=r.clientWidth;var u=l*(n=r.clientHeight)==s*t;n*l<t*s?t=Math.floor(n*c):u||(n=Math.floor(t/c))}o({clientWidth:t,clientHeight:n,naturalHeight:s,naturalWidth:l})}({img:e,setRenderedImageSize:f,backgroundSize:i,type:c})},T=void 0===y||void 0===b||void 0===k||void 0===S,_=function(e,t,n){return e<0?0:e<=t-n?e:t-n};return t.createElement(bz,{width:i.clientWidth,height:i.clientHeight},t.createElement(dz,{width:i.clientWidth,height:i.clientHeight},"crop"===c?t.createElement(hz,{isImageLoading:r||!m,displayNone:T,width:p.clientWidth,height:p.clientHeight,top:k,left:S,src:n,onLoad:I}):t.createElement(t.Fragment,null,t.createElement(xz,{isImageLoading:r&&!m,top:k,left:S,src:n,onLoad:I}),t.createElement(Ez,{top:_(k,i.clientHeight,p.clientHeight),left:_(S,i.clientWidth,p.clientWidth),background:u,backgroundPosition:"-".concat(_(S,i.clientWidth,p.clientWidth),"px -").concat(_(k,i.clientHeight,p.clientHeight),"px"),height:p.clientHeight,width:p.clientWidth}))),t.createElement(fz,{width:i.clientWidth,height:i.clientHeight},t.createElement(gz,{bounds:"parent",position:{x:x,y:E},onStart:function(){a(!0),g(!1)},onStop:function(e,t){s(t),g(!0)}},t.createElement(yz,null,t.createElement(kz,null)))))}function Iz(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality,s=r.focuspoint;if(o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),"string"==typeof s&&n.push({key:"focuspoint",value:s}),Array.isArray(s)){var l=_P(s,2),c=l[0],u=l[1];(c||u)&&n.push({key:"focuspoint",value:"".concat((c||50)/100,",").concat((u||50)/100)})}return i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}function Tz(e){var n=e.url,r=e.baseURL,s=e.isLoading,l=e.setIsLoading,c=e.type,u=e.defaultValues,d=YB(),p=d.transformationsState,f=d.transformationsDispatch,h=_P(o({}),2),m=h[0],g=h[1],v=_P(o(r),2),y=v[0],b=v[1],w=_P(o(!0),2),x=w[0],E=w[1],C=_P(o(!1),2),k=C[0],S=C[1],I=i((function(){return wP(wP({},p),{},{content:wP(wP({},p.content),{},{focuspoint:void 0,io:p.content.io.filter((function(e){var t=e.transform;return!["crop","fill"].includes(t)}))})})}),[p]);a((function(){var e=Iz(I,u);b("".concat(r,"?").concat(e)),E(!1)}),[u,I,r]);var T=p.content.focuspoint;return t.createElement(Cz,{className:"Editor Main"},t.createElement(mz,null,t.createElement(vz,{id:"backgroundImage",src:y||r,alt:"",isImageLoading:s||x,onLoad:function(e){var t=e.target,n=t.clientHeight,r=t.clientWidth,o=t.naturalHeight,i=t.naturalWidth;g({clientHeight:n,clientWidth:r,naturalHeight:o,naturalWidth:i}),k||S(!0)}}),k&&t.createElement(Sz,{type:c,url:n,baseURL:y||r,isLoading:s,backgroundSize:m,setIsLoading:l,trackPos:function(e){var t=[e.x||0,e.y||0],n=_P(cz(m,t),2);!function(e){f({type:"focuspoint",payload:{value:e,id:p.content.io[0].id}})}([n[0]||0,n[1]||0])},focuspoint:T})))}function _z(e){var n=e.mediaInfo,r=e.url,s=e.canViewTransformations,c=e.hideBottomBar,u=e.activeTab,d=e.onBack,p=e.onDone,f=e.onApply,h=e.onShowTransformations,m=e.hasActiveChanges,g=e.showEditor,v=e.defaultValues,y=n.name,b=n.extension,w=n.baseURL,x=_P(o(!0),2),E=x[0],C=x[1],k=i((function(){return mB(r)}),[r]),S=l();return a((function(){var e;C(!0),null===(e=S.current)||void 0===e||e.blur()}),[r]),t.createElement(Oz,null,t.createElement(jz,{justifyContent:"space-between",alignItems:"center"},t.createElement(Az,null,t.createElement(hu,{ref:S,variant:"clean",icon:t.createElement(SE,null),"aria-label":"Go back",onClick:d})),t.createElement(Bz,null,y,".",b),u===RB.presets&&s&&t.createElement(Dz,{variant:"clean",onClick:h,icon:t.createElement(YE,null)},"Transform"),u===RB.transformations&&("function"==typeof f&&m?t.createElement(Pz,null,t.createElement(Dz,{variant:"primary",onClick:f},"Apply transformations")):t.createElement(Dz,{variant:"primary",onClick:p},"Done"))),g.show?t.createElement(az,{hideBottomBar:c},w&&t.createElement(Tz,{type:g.type,baseURL:w,url:k,isLoading:E,setIsLoading:C,defaultValues:v})):t.createElement(az,{hideBottomBar:c},r&&t.createElement(sz,{"data-testid":"previewImage",src:k,alt:"",isImageLoading:E,onLoad:function(){C(!1)}}),E&&t.createElement(UD,null)),!c&&t.createElement(Nz,null,t.createElement(QD,{url:r})))}var Oz=lc.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-0"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),jz=lc(Yd).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-1"})(["height:90px;width:100%;"]),Az=lc.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-2"})(["margin-left:",";"],bc.layoutSpacing1),Pz=lc.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-3"})(["display:flex;gap:",";"],bc.spacing4),Bz=lc.span.withConfig({displayName:"ImageName",componentId:"sc-dpw9jp-4"})(["font-size:",";width:100%;line-height:24px;margin-left:",";"],bc.fontSize200,bc.spacing4),Nz=lc.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],bc.spacing5),Dz=lc(hu).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-6"})(["float:right;margin-right:",";"],bc.layoutSpacing1),zz=["content"],Mz=function(e){return e.content.io.map((function(e){return wP({},e)}))},Rz=function(e){var t=e.preset,n=e.ioId;return wP(wP({},t),{},{content:wP(wP({},t.content),{},{io:[].concat(OP(Mz(t)),[wP(wP({},HB),{},{id:n,transform:AB.fill})])})})},Fz=function(e){var t=e.preset,n=e.ioId;return wP(wP({},t),{},{content:wP(wP({},t.content),{},{io:t.content.io.filter((function(e){return e.id!==n}))})})};function Lz(e,t){var n;switch(t.type){case"init":return $B;case"edit":return wP(wP({isValid:!0},t.payload),{},{content:wP(wP({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return wP(wP({},e),{},{id:wC()})}))}),redirectPublicLinks:t.payload.redirectPublicLinks||!1});case"addTransformation":return Rz({preset:e,ioId:t.payload.id});case"deleteTransformation":return Fz({preset:e,ioId:t.payload.id});case"isValid":case"name":case"description":return wP(wP({},e),{},(kP(n={},t.type,t.payload),kP(n,"content",wP(wP({},e.content),{},{io:Mz(e)})),n));case"format":case"quality":return wP(wP({},e),{},{content:wP(wP({},e.content),{},kP({io:Mz(e)},t.type,t.payload))});case"focuspoint":return wP(wP({},e),{},{content:wP(wP({},e.content),{},kP({io:Mz(e)},t.type,t.payload.value))});case"transformation":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?wP({},e):wP(wP({},qB(t.payload.value)),{},kP({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?wP({},e):wP(wP({},e),{},kP({},t.type,t.payload.value))}))})});case"opacity":case"asset":return wP(wP({},e),{},{content:wP(wP({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?wP({},e):wP(wP({},e),{},kP({},t.type,t.payload.value.toString()))}))})});case"groupId":return wP(wP({},e),{},{groupId:t.payload});default:return e}}function $z(e){var n,r,i=e.mediaInfo,s=e.canViewPresets,c=e.canViewTransformations,u=e.hideBottomBar,d=void 0!==u&&u,f=e.initialTransformations,h=e.onDone,m=e.onApply,g=e.onBack,v=s?RB.presets:RB.transformations,y=_P(o(i.baseURL),2),b=y[0],w=y[1],x=_P(o(v),2),E=x[0],C=x[1],k=_P(o(""),2),S=k[0],I=k[1],T=_P(o({show:!1}),2),_=T[0],O=T[1],j=YB(),A=j.transformationsState,P=j.transformationsDispatch,B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=wP(wP({},$B),{},{content:wP(wP({},$B.content),{},{io:t})}),r=_P(o([]),2),i=r[0],s=r[1],c=_P(o({}),2),u=c[0],d=c[1],f=_P(o(!1),2),h=f[0],m=f[1],g=_P(p(Lz,n),2),v=g[0],y=g[1],b=l(!0);a((function(){return e&&(m(!0),w()),function(){b.current=!1}}),[e]);var w=function(){vD.getAllPresets().then((function(e){b.current&&(s(function(e){var t,n,r=e.presets.map((function(e){var t=e.content;return wP(wP({},TP(e,zz)),{},{type:"Preset",content:t&&JSON.parse(t)})})),o=null!==(t=null==e||null===(n=e.groups)||void 0===n?void 0:n.map((function(e){return wP(wP({},SP({},(IP(e),e))),{},{type:"Group"})})))&&void 0!==t?t:[];return r.concat(o)}(e)),d(function(e){var t=e.groups.reduce((function(e,t){return wP(wP({},e),{},kP({},t.id,wP(wP({},t),{},{presetCount:0})))}),{});return e.presets.forEach((function(e){var n=e.groupId;if(n&&t[n]){var r=t[n].presetCount;t[n].presetCount=r+1}})),t}(e)),m(!1))})).catch((function(e){b.current&&(m(!1),Rv({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presetsOrGroups:i,setPresetsOrGroups:s,setGroups:d,groups:u,preset:v,dispatch:y,isLoading:h,defaultValues:n}}(s,f),N=B.presetsOrGroups,D=B.isLoading,z=B.defaultValues,M=i.baseURL.split("/"),R=M[M.length-1],F=A.content.io.length>0,L=iE((function(){var e=A.content.io.length>0,t=A.content.format!==$B.content.format||A.content.quality!==$B.content.quality;if(e||t){var n=Iz(A,z);w("".concat(i.baseURL,"?").concat(n))}else w(i.baseURL)}),500);return a((function(){return L(),function(){return L.cancel()}}),[L,A,i.baseURL]),a((function(){var e,t;P({type:"focuspoint",payload:{value:[Math.floor(100*(null==i||null===(e=i.activeOriginalFocusPoint)||void 0===e?void 0:e.x)/i.width),Math.floor(100*(null==i||null===(t=i.activeOriginalFocusPoint)||void 0===t?void 0:t.y)/i.height)],id:void 0}})}),[null==i||null===(n=i.activeOriginalFocusPoint)||void 0===n?void 0:n.x,null==i||null===(r=i.activeOriginalFocusPoint)||void 0===r?void 0:r.y,i.height,i.width,P]),a((function(){s||c&&C(RB.transformations)}),[s,c]),t.createElement(Hz,null,t.createElement(Uz,{alignItems:"stretch"},t.createElement(_z,{mediaInfo:i,url:b,canViewTransformations:c,activeTab:E,onApply:m?function(){return m(b,A)}:void 0,onBack:function(){return g(b,A)},hasActiveChanges:F,onDone:function(){var e=!s&&!F;O&&O({show:!1}),e?h(b,A):s&&C(RB.presets)},onShowTransformations:function(){c&&C(RB.transformations)},hideBottomBar:d,showEditor:_,defaultValues:z}),t.createElement(KD,{onPresetSelected:function(e){""!==e?w(i.baseURL.split("/transform")[0]+"/transform/".concat(e,"/").concat(gB(i.baseURL),"/").concat(R)):(P({type:"init"}),w(i.baseURL)),I(e)},activeTab:E,presets:N,selectedPreset:S,isLoading:D,baseURL:i.baseURL,canViewPresets:s,canViewTransformations:c,setShowEditor:O,showEditor:_})))}var Hz=lc.div.withConfig({displayName:"MainWrapper",componentId:"sc-inplsu-0"})(["overflow:hidden;height:100%;width:100%;"]),Uz=lc(Yd).withConfig({displayName:"StyledFlex",componentId:"sc-inplsu-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;"]);lc(ff).withConfig({displayName:"StyledCheckbox",componentId:"sc-bpy0n2-0"})(["padding-top:",";padding-bottom:",";"],bc.spacing3,bc.spacing3),lc(Yd).withConfig({displayName:"PresetNameIconContainer",componentId:"sc-1xqeu8r-0"})(["padding-left:",";"],(function(e){return e.belongsToAGroup?bc.spacing5:"0"})),lc.div.withConfig({displayName:"DateContainer",componentId:"sc-1xqeu8r-1"})(["font-size:",";color:",";"],bc.fontSize75,bc.gray600),lc.div.withConfig({displayName:"Name",componentId:"sc-1xqeu8r-2"})(["font-size:",";color:",";flex:1;"],bc.fontSize100,bc.gray800),lc(Yd).withConfig({displayName:"DescriptionContainer",componentId:"sc-1xqeu8r-3"})(["flex-direction:column;flex:1;padding:0 ",";"],bc.spacing4),lc.div.withConfig({displayName:"Description",componentId:"sc-1xqeu8r-4"})(["font-size:",";color:",";"],bc.fontSize75,bc.gray600),lc(Yd).withConfig({displayName:"Actions",componentId:"sc-1xqeu8r-5"})(["margin-left:",";justify-content:end;"],bc.spacing4),lc(Yd).withConfig({displayName:"GroupNameIconContainer",componentId:"sc-1wo12bf-0"})([""]),lc(Yd).withConfig({displayName:"PresetGroupHeader",componentId:"sc-n34u1w-0"})(["z-index:1;position:sticky;z-index:1;top:var(--pageHeaderTopPosition);margin-bottom:",";padding:"," ",";background:",";"],bc.spacing7,bc.spacing5,bc.spacing6,bc.white),lc(Yd).withConfig({displayName:"PresetGroupHeaderTitle",componentId:"sc-n34u1w-1"})(["flex:1 0 0;align-self:stretch;height:40px;"]),lc.label.withConfig({displayName:"HeaderText",componentId:"sc-n34u1w-2"})([""," min-width:200px;flex:1 0 0;"],Gd.uiTextL),lc.header.withConfig({displayName:"Header",componentId:"sc-1ty8ai5-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],bc.spacing4,bc.spacing7,bc.spacing5,bc.spacing6,bc.white),lc.h3.withConfig({displayName:"Title",componentId:"sc-1ty8ai5-1"})([""," margin:0;"],Gd.uiTextL);var Vz=lc.p.withConfig({displayName:"Text",componentId:"sc-17jdf49-0"})([""," color:",";margin:0;"],Gd.uiTextS,bc.gray800a);lc(Vz).withConfig({displayName:"SubTitle",componentId:"sc-17jdf49-1"})([""," font-weight:bold;margin:0;margin-bottom:0;"],Gd.uiTextS),lc(Vz).withConfig({displayName:"Title",componentId:"sc-17jdf49-2"})([""," font-weight:bold;margin:0;margin-bottom:",";"],Gd.uiTextS,bc.spacing3),lc.p.withConfig({displayName:"TransparentText",componentId:"sc-17jdf49-3"})([""," color:",";margin-bottom:",";margin-top:",";height:20px;"],Gd.uiTextS,bc.gray400a,bc.spacing1,bc.spacing1),lc.div.withConfig({displayName:"TitleIconWrapper",componentId:"sc-17jdf49-4"})(["display:flex;align-items:center;display:flex;padding:"," 0px;"],bc.spacing3);var Wz,qz,Zz,Gz,Yz,Kz,Xz,Jz,Qz,eM,tM,nM=function(e){return lc(e).withConfig({componentId:"sc-17jdf49-5"})(["margin-right:",";width:12px;height:12px;color:",";"],bc.spacing3,bc.gray800a)};function rM(){return(rM=CP(xP().mark((function e(t){var n;return xP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;case 2:return e.prev=2,e.next=5,$A.getJWT();case 5:if(n=e.sent){e.next=8;break}return e.abrupt("return",t);case 8:return e.abrupt("return",wP(wP({},t),{},{headers:wP(wP({},t.headers),{},{Authorization:"Bearer ".concat(n)})}));case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}lc(Yd).attrs((function(){return{justifyContent:"space-between",alignItems:"center",gap:"1"}})).withConfig({displayName:"StyledFlex",componentId:"sc-17jdf49-6"})(["margin:0;padding:0;height:20px;margin-bottom:",";","{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}"],bc.spacing1,Vz),lc.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-17jdf49-7"})(["margin:"," 0 0 0;display:flex;justify-content:center;"],bc.spacing5),lc.div.withConfig({displayName:"MainWrapper",componentId:"sc-17jdf49-8"})(["margin-bottom:",";"],bc.spacing7),function(e){e.totalViews="Total views",e.website="Website",e.datPresets="DAT Presets",e.transformations="Transformations",e.typeOfUrl="Type of URL"}(Wz||(Wz={})),function(e){e.table="table",e.graph="graph"}(qz||(qz={})),function(e){e.timestamp="timestamp",e.website="website",e.transformation="transformation",e.preset="preset"}(Zz||(Zz={})),function(e){e.views="views",e.use="use"}(Gz||(Gz={})),function(e){e.viewsOverTime="viewsOverTime",e.websitesOverTime="websitesOverTime",e.transformations="transformations",e.presets="presets"}(Yz||(Yz={})),kN.interceptors.request.use((function(e){return function(e){return rM.apply(this,arguments)}(e)}),(function(e){return Promise.reject(e)})),kP(Kz={},Yz.viewsOverTime,""),kP(Kz,Yz.websitesOverTime,"&aggregation=website"),kP(Kz,Yz.transformations,"&aggregation=transformations"),kP(Kz,Yz.presets,"&aggregation=presets"),lc.div.withConfig({displayName:"TooltipGuide",componentId:"sc-ikpb3e-0"})(["width:10px;height:10px;postion:absolute;top:","px;left:","px;"],(function(e){return e.top||0}),(function(e){return e.left||0})),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-1eva1zc-0"})(["height:350px;width:100%;max-width:",";position:relative;"],(function(e){return e.maxWidth||"auto"})),Wz.totalViews,kP(Xz={},Yz.websitesOverTime,{sortingColumn:Gz.views,isAscending:!1,dateFiltering:{interval:"months"}}),kP(Xz,Yz.transformations,{sortingColumn:Gz.use,isAscending:!1,dateFiltering:{interval:"months"}}),kP(Xz,Yz.viewsOverTime,{sortingColumn:Zz.timestamp,isAscending:!1,dateFiltering:{interval:"months"}}),kP(Xz,Yz.presets,{sortingColumn:Gz.views,isAscending:!1,dateFiltering:{interval:"months"}}),function(e){e.metricType="Metric Type",e.visualization="Visualization",e.metricsModal="Metrics Modal",e.statisticsTab="Statistics Tab"}(Jz||(Jz={})),function(e){e.selected="Selected",e.opened="Opened",e.closed="Closed"}(Qz||(Qz={})),kP(eM={},Yz.viewsOverTime,{key:Zz.timestamp,value:Gz.views}),kP(eM,Yz.websitesOverTime,{key:Zz.website,value:Gz.views}),kP(eM,Yz.transformations,{key:Zz.transformation,value:Gz.use}),kP(eM,Yz.presets,{key:Zz.preset,value:Gz.views}),kP(tM={},Zz.timestamp,"Month"),kP(tM,Zz.website,"Website"),kP(tM,Zz.transformation,"Transformation"),kP(tM,Zz.preset,"Preset"),kP(tM,Gz.views,"Views"),kP(tM,Gz.use,"Usage"),lc.div.withConfig({displayName:"Container",componentId:"sc-12s3spg-0"})(["display:flex;flex:none;flex-grow:1;flex-direction:column;gap:",";align-items:flex-start;order:0;padding:"," 0;"],bc.spacing2,bc.spacing5),lc.div.withConfig({displayName:"ItemsRow",componentId:"sc-12s3spg-1"})(["display:flex;flex:none;flex-grow:0;flex-direction:row;gap:",";align-items:flex-start;order:0;height:68px;padding:0 ",";border-radius:5px;"],bc.spacing2,bc.spacing5);var oM=lc.div.withConfig({displayName:"ItemUnselected",componentId:"sc-12s3spg-2"})(["flex:none;flex-grow:1;order:0;width:",";height:68px;border-radius:5px;background:",";cursor:pointer;&:hover{background-color:",";color:",";}",""],(function(e){return 3===e.itemsPerRow?"165px":"123px"}),bc.gray25,bc.gray50,bc.gray800,(function(e){return e.isDotted?"\n\t\t::after {\n\t\t\tcontent: '.';\n\t\t\tposition: relative;\n\t\t\tbottom: ".concat(bc.spacing5,";\n\t\t\tdisplay: grid;\n\t\t\twidth: 4px;\n\t\t\theight: 4px;\n\t\t\tpadding: 0;\n\t\t\tborder-radius: 4px;\n\t\t\tbackground: #09f;\n\t\t\tcolor: #09f0;\n\t\t\tleft: ").concat(3===e.itemsPerRow?"80px":"60px",";\n\t\t}\n\t"):""}));lc(oM).withConfig({displayName:"ItemSelected",componentId:"sc-12s3spg-3"})(["background:",";color:",";&:hover{background-color:",";color:",";}",""],bc.blue500,bc.white,bc.blue600,bc.white,(function(e){return e.isDotted?"\n\t::after {\n\t\tbackground: ".concat(bc.white,";\n\t}\n\t"):""})),lc(oM).withConfig({displayName:"ItemInBetween",componentId:"sc-12s3spg-4"})(["background:",";color:",";&:hover{background-color:",";}"],bc.blue100,bc.gray800,bc.blue200),lc.div.withConfig({displayName:"ItemText",componentId:"sc-12s3spg-5"})(["position:relative;display:flex;flex-direction:column;align-items:center;height:40px;padding-top:14px;padding-bottom:14px;"," letter-spacing:0.01em;text-align:center;"],Gd.uiTextM),lc.div.withConfig({displayName:"StyledContainer",componentId:"sc-zdosa4-0"})(["min-width:500px;.rdp-months{display:flex;gap:16px;}"]),lc(Yd).withConfig({displayName:"FooterContainer",componentId:"sc-zdosa4-1"})(["margin-top:",";"],bc.spacing4),lc((function(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 8c0 1.1-.9 2-2 2a1.7 1.7 0 01-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56A1.7 1.7 0 0119 8c0-1.1.9-2 2-2s2 .9 2 2z"}}]})(e)})).withConfig({displayName:"GraphIcon",componentId:"sc-1a1xt2-0"})(["width:22px;"]),lc((function(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 8h-6V5h6v6zm-8-6v6H5V5h6zm-6 8h6v6H5v-6zm8 6v-6h6v6h-6z"}}]})(e)})).withConfig({displayName:"TableIcon",componentId:"sc-1a1xt2-1"})(["width:18px;height:18px;"]);var iM,aM,sM,lM,cM=lc(hu).withConfig({displayName:"ButtonGroupButton",componentId:"sc-1a1xt2-2"})(["display:flex;flex-direction:row;justify-content:center;width:46px;height:36px;border-radius:",";align-items:center;padding:0px 10px;"],bc.radiusMedium);lc(cM).withConfig({displayName:"ActiveButtonGroupButton",componentId:"sc-1a1xt2-3"})(["background:",";box-shadow:",";"],bc.gray10,bc.elevationStatic),lc.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1a1xt2-4"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";gap:",";width:98px;height:",";background:",";border-radius:",";"],bc.spacing1,bc.spacing1,bc.spacing8,bc.gray50a,bc.radiusLarge),lc.div.withConfig({displayName:"Left",componentId:"sc-1a1xt2-5"})(["display:flex;flex-direction:row;align-items:center;padding:0;gap:",";height:",";"],bc.spacing3,bc.spacing8),lc(Yd).withConfig({displayName:"Filters",componentId:"sc-1a1xt2-6"})(["padding:"," "," "," 0;height:56px;"],bc.spacing3,bc.spacing6,bc.spacing3),lc.div.withConfig({displayName:"StyledDropdown",componentId:"sc-1a1xt2-7"})(["& > div{z-index:1;}"]),uc(["#layers > div{z-index:1032;}"]),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-iweq3l-0"})(["padding:"," 0 0 0;"],bc.spacing6),lc.div.withConfig({displayName:"WebsiteContainer",componentId:"sc-lus667-0"})(["color:#99a7ad;"]),lc.div.withConfig({displayName:"ViewsContainer",componentId:"sc-lus667-1"})(["color:#ffffff;"]),lc.div.withConfig({displayName:"TooltipContainer",componentId:"sc-lus667-2"})(["flex-direction:column;align-items:flex-start;padding:8px 12px;gap:8px;background:rgba(0,34,51,0.9);box-shadow:0px 0px 1px rgba(0,34,51,0.1),0px 2px 4px -1px rgba(0,34,51,0.1);border-radius:5px;flex:none;order:1;flex-grow:0;z-index:1;"]),lc.i.withConfig({displayName:"Icon",componentId:"sc-24wsyz-0"})(["padding:0;margin:0;display:inline-block;width:16px;height:16px;background:",";"],(function(e){return e.color})),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-24wsyz-1"})(["padding:",";min-width:240px;"],bc.spacing4),lc.div.withConfig({displayName:"MinHeightDiv",componentId:"sc-gqtbev-0"})(["min-height:488px;"]),lc.span.withConfig({displayName:"BoldVerticalNavTitle",componentId:"sc-16u0rfh-0"})(["font-weight:600;"]),lc.div.withConfig({displayName:"DivWithBottomPadding",componentId:"sc-16u0rfh-1"})(["margin-bottom:",";"],bc.spacing6),nM(AE),nM((function(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z"}}]})(e)})),nM((function(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}}]})(e)})),nM((function(e){return dE({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)})),function(e){e.property="property",e.status="status",e.migratedAssets="migratedAssets",e.initiatedBy="initiatedBy",e.startTime="startTime",e.endTime="endTime",e.note="note",e.id="id",e.accountId="accountId",e.totalAssets="totalAssets"}(aM||(aM={})),function(e){e.failed="failed",e.inProgress="in progress",e.completed="completed",e.test="test"}(sM||(sM={})),kP(iM={},aM.property,"Property"),kP(iM,aM.status,"Status"),kP(iM,aM.migratedAssets,"Affected assets"),kP(iM,aM.initiatedBy,"Initiated by"),kP(iM,aM.startTime,"Start time"),kP(iM,aM.endTime,"End time"),kP(iM,aM.note,"Note"),kP(iM,aM.id,"Task ID"),kP(iM,aM.accountId,"Account ID"),kP(lM={},aM.property,"Property"),kP(lM,aM.status,"Status"),kP(lM,aM.migratedAssets,"Affected assets"),kP(lM,aM.initiatedBy,"Initiated by"),kP(lM,aM.startTime,"Start time"),kP(lM,aM.endTime,"End time"),kP(lM,aM.note,"Note"),kP(lM,aM.id,"Task ID"),kP(lM,aM.accountId,"Account ID"),lc.div.withConfig({displayName:"TableWrapper",componentId:"sc-k1dhhi-0"})(["width:","px;"],(function(e){return 220*e.colsnumber})),lc.label.withConfig({displayName:"TextM",componentId:"sc-k1dhhi-1"})(["",""],Gd.uiTextM),lc.div.withConfig({displayName:"Wrapper",componentId:"sc-k1dhhi-2"})(["overflow-x:scroll;width:100%;"]),lc.h2.withConfig({displayName:"TextL",componentId:"sc-k1dhhi-3"})(["",""],Gd.uiTextL),lc.div.withConfig({displayName:"Hidden",componentId:"sc-1q2e3yp-0"})(["display:none;"]),lc.span.withConfig({displayName:"PaddedSpan",componentId:"sc-1q2e3yp-1"})(["padding-left:8px;"]),lc.label.withConfig({displayName:"HeadingM",componentId:"sc-1q2e3yp-2"})(["",""],Gd.headingM),lc.label.withConfig({displayName:"TextM",componentId:"sc-1q2e3yp-3"})(["",""],Gd.uiTextM),lc.label.withConfig({displayName:"TextS",componentId:"sc-1q2e3yp-4"})(["",""],Gd.uiTextS);lc.div.withConfig({displayName:"WidthHeightFlex",componentId:"sc-rwsoao-0"})(["display:flex;padding-top:",";padding-left:",";align-self:stretch;gap:",";"],bc.spacing3,bc.spacing6,bc.spacing2);var uM=lc.div.withConfig({displayName:"BaseFlexFrame",componentId:"sc-rwsoao-1"})(["margin-bottom:",";padding:",";background:",";border-radius:",";"],bc.spacing4,bc.spacing4,bc.gray25a,bc.radiusMedium);function dM(e){var n,r=e.transformBaseUrl,i=e.assetName,s=e.extension,l=e.transformation,c=e.setTransformation,u=e.closeDat,d=Ea(),p=o(),f=p[0],h=p[1],g=o(),v=g[0],y=g[1];a((function(){var e=d.querySelector(".cv-root");e&&h(e)}),[d]);var b=function(e,t){e&&l&&c({url:e,preset:t,asset:l.asset}),u()},w=function(e,t){E(t)&&l?y({url:e,preset:t,asset:l.asset}):b(e,t)},x=function(){return y(void 0)},E=function(e){return e.content.io.length>0};return f?m(t.createElement(hM,null,t.createElement(mM,{mediaInfo:{extension:s,baseURL:r,name:i,width:1,height:1},canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:b,onDone:w,onBack:w,initialTransformations:null===(n=null==l?void 0:l.preset)||void 0===n?void 0:n.content.io}),t.createElement(iv,{isOpen:!!v,title:"Transformations not yet applied",container:f,onClose:x,actionPrimary:t.createElement(hu,{variant:"primary",onClick:function(){b(null==v?void 0:v.url,null==v?void 0:v.preset),x()}},"Apply transformations"),actionSecondary:t.createElement(hu,{variant:"secondary",onClick:x},"Cancel"),actionTertiary:t.createElement(hu,{variant:"secondary",onClick:function(){c(void 0),x(),u()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),f):null}lc(uM).withConfig({displayName:"AdaptiveVideoLinksFlex",componentId:"sc-rwsoao-2"})(["border-radius:",";"],bc.radiusMedium),lc(uM).withConfig({displayName:"CodeControlsFlex",componentId:"sc-rwsoao-3"})(["display:flex;justify-content:stretch;padding:0;gap:",";"],bc.spacing3),lc(uM).withConfig({displayName:"CodeSnippetFlex",componentId:"sc-rwsoao-4"})(["padding:0;"]),lc.span.withConfig({displayName:"GrayText",componentId:"sc-rwsoao-5"})(["color:",";"],bc.gray600a),lc.div.withConfig({displayName:"AdvancedLinkContainer",componentId:"sc-rwsoao-6"})(["display:flex;justify-content:space-between;"]),lc(wh).withConfig({displayName:"WidthHeightInput",componentId:"sc-rwsoao-7"})(["background:",";padding:0 ",";"],bc.gray25a,bc.spacing5),lc(hu).withConfig({displayName:"ButtonWith3PercentBackground",componentId:"sc-rwsoao-8"})(["background:"," !important;"],bc.gray25a),lc.div.withConfig({displayName:"CopyCodeDiv",componentId:"sc-rwsoao-9"})(["flex:1;"]),lc.div.withConfig({displayName:"ShowCodeDiv",componentId:"sc-rwsoao-10"})(["flex:0 0 auto;"]),lc(wh).withConfig({displayName:"AdaptiveFormatInput",componentId:"sc-rwsoao-11"})(["background-color:",";"],bc.gray25a),lc.label.withConfig({displayName:"Label",componentId:"sc-rwsoao-12"})(["color:",";padding:0;"],bc.gray1000),lc.div.withConfig({displayName:"SizeInputContainer",componentId:"sc-rwsoao-13"})(["min-width:0;"]);var pM,fM,hM=lc.div(pM||(pM=la(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),bc.white,bc.radiusBase),mM=lc((function(e){return t.createElement(KB,null,t.createElement($z,wP({},e)))}))(fM||(fM=la(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),gM=n(null);function vM(e){var n=o(),r=n[0],a=n[1],s=o(""),l=s[0],c=s[1],u=o(""),d=u[0],p=u[1],f=o(""),h=f[0],m=f[1],g=function(e,t,n){c(e),m(n),p(t.extensions[0]||""),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},v=i((function(){return{transformation:r,setTransformation:a,openDat:g,closeDat:function(){return c("")}}}),[r]);return t.createElement(gM.Provider,{value:v},e.children,l&&t.createElement(dM,{transformBaseUrl:l,assetName:h,extension:d,transformation:r,setTransformation:a,closeDat:function(){return c("")}}))}function yM(){var e=r(gM);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function bM(e){var n,r,i,s,l=e.transformBaseUrl,c=e.asset,u=e.toggleDropdown,d=yM(),p=d.transformation,f=d.openDat,h=o(),m=h[0],g=h[1],v=null!==(s=null===(i=null===(r=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===r?void 0:r.io)||void 0===i?void 0:i.length)&&void 0!==s?s:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(qm.Divider,null),t.createElement(xM,{thumbnail:p&&0!==v?t.createElement(Ah,{variant:"content",imageUrl:m,"data-testid":"thumbnail-image"}):t.createElement(Ah,{icon:t.createElement(Iu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(yu,null),onClick:function(){u(),f(l,c,c.name)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var wM,xM=lc(qm.Item)(wM||(wM=la(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),EM=n(null);function CM(e){var n=o([]),r=n[0],s=n[1],l=o([]),c=l[0],u=l[1],d=o(),p=d[0],f=d[1],h=function(e){var t=this,n=o([]),r=n[0],i=n[1],s=Gi(),l=s.selectionMode,c=s.language,u=s.noCache,d=lw(),p=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,ia(t,void 0,void 0,(function(){var e,t,n;return aa(this,(function(o){switch(o.label){case 0:return r.length?[4,Ex({ids:r,auth:d,language:c,noCache:u})]:[3,2];case 1:e=o.sent(),p||eb(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){p=!0}}),[e]),r}(p),m=Ki(),g=yM().transformation;function v(e){"Loaded"===e.tag&&e.value&&u(e.value)}function y(){s((function(e){var t=c.filter((function(t){return!e.some((function(e){return e.value.id===t.id}))}));return sa(sa([],e,!0),t.map((function(e){return{type:"asset",value:e}})),!0)}))}function b(){s([])}function w(e){s((function(t){var n=e.filter((function(e){return!kM(t,e)}));return sa(sa([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function x(e){var t;"MultiSelect"!==m?(t=e[0],r.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!kM(t,e)})),r=e.filter((function(e){return kM(t,e)}));return sa(sa([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function E(e){s((function(t){return kM(t,e)?t.filter((function(t){return t.value.id!==e.id})):sa(sa([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;f((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){w(h)}),[h]),a((function(){g&&(b(),w([null==g?void 0:g.asset]))}),[g]);var C=i((function(){return{selection:r,preselectedAssetIds:p,clear:b,selectAssets:w,toggleAssets:x,toggleCollection:E,selectAll:y,setAllAssets:v}}),[r,c]);return t.createElement(EM.Provider,{value:C},e.children)}function kM(e,t){return e.some((function(e){return e.value.id===t.id}))}function SM(){var e=r(EM);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function IM(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,l=Ki(),c=da()[1],u=SM(),d=Gi().hideExternalAccess;return t.createElement("div",{id:r.id,style:s,className:My("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(af,{contextAction:!d&&t.createElement(af.ContextActionButton,{"aria-label":my("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Pu,null)),selectButtonAriaLabel:my(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return c({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(af.Frame,null,t.createElement(af.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(af.Img,{key:e,src:e,alt:r.name})})))),t.createElement(af.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},Zy(r.assetCount,my("{} asset"),my("{} assets")))))}function TM(e){var t=o(void 0),n=t[0],r=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var o=n.getBoundingClientRect();r({width:o.width,height:o.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function _M(e){var n=ly(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(Gb,{className:My(!o&&"hidden")})))}function OM(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function jM(e){return t.createElement(MM,null,t.createElement(RM,null,t.createElement(OM,null),t.createElement(FM,null)),t.createElement(LM,null,my("No results found")),t.createElement($M,null,my("Try adjusting the filter to find assets.")),t.createElement(HM,null,t.createElement(hu,{variant:"primary",title:my("Reset filters"),onClick:e.onReset},my("Reset filters"))))}var AM,PM,BM,NM,DM,zM,MM=lc.div(AM||(AM=la(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),RM=lc.div(PM||(PM=la(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),bc.gray25),FM=lc(Bu)(BM||(BM=la(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),bc.spacing2,bc.gray300),LM=lc.h1(NM||(NM=la(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),bc.spacing6,bc.fontSize400),$M=lc.span(DM||(DM=la(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),bc.spacing5,bc.colorTextDisabled),HM=lc.div(zM||(zM=la(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),bc.spacing7);function UM(e){var n,r,i=o(null),a=i[0],s=i[1],l=TM(a).dimensions,c=SM().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=ma().setSearch,d=e.connection,p=d.data,f=d.isLoading,h=d.loadMore,m=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){s(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(Ky,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"},Gy)}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(jM,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(_M,{hasNextPage:m,isLoading:f,loadMore:h},null===(r=p.value)||void 0===r?void 0:r.collections.nodes.map((function(e,n){return t.createElement(IM,{key:e.id,isSelected:c.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}var VM="\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";function WM(){var e=ga("collections"),n=e.value,r=e.setIsLoading,i=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=lw(),s=o({tag:"Loading",value:null}),l=s[0],c=s[1],u=!1,d=function(n){return ia(r,void 0,void 0,(function(){var r,o,a;return aa(this,(function(s){switch(s.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=ra(ra({},e),{searchTerm:null!==(a=e.searchTerm)&&void 0!==a?a:null,after:null!=n?n:null}),[4,lb({query:VM,variables:r,auth:i,noCache:t})];case 1:return o=s.sent(),u||(eb(o)?c({tag:"Failure",value:o.error}):p(o,n)),[2]}}))}))},p=function(e,t){f()&&t?c((function(t){var n,r,o=null!==(r=null===(n=f(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:ra(ra({},e.value.collections),{nodes:sa(sa([],o,!0),e.value.collections.nodes,!0)})}}})):c({tag:"Loaded",value:e.value})},f=function(e){var t,n=null!=e?e:l;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return d(),function(){u=!0}}),[e.searchTerm,e.orderBy]),{data:l,executeQuery:function(){return d()},isLoading:!l||"Loading"===l.tag,loadMore:function(){var e;return d(null===(e=f())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(n=f())||void 0===n?void 0:n.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:ta("collections")[0]},Gi().noCache);return a((function(){i.isLoading||r(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(By,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},Zy(i.data.value.collections.totalCount,my("{} collection"),my("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(Vy,{options:["CREATED_AT","NAME"]}),t.createElement(Ny,null)),t.createElement(UM,{connection:i}))}var qM=n(null);function ZM(e){var n=e.children,r=e.hideLimitedUse,s=void 0!==r&&r,l=e.predefinedFilter,c=o((null==l?void 0:l.assetType_in)?sa([],null==l?void 0:l.assetType_in,!0):[]),u=c[0],d=c[1],p=o([]),f=p[0],h=p[1],m=o((null==l?void 0:l.tagNames_in)?sa([],l.tagNames_in,!0):[]),g=m[0],v=m[1],y=o(),b=y[0],w=y[1],x=o({}),E=x[0],C=x[1];function k(e){d((function(t){return GM(t,e)}))}function S(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.assetType_in)||void 0===t?void 0:t.includes(e))||d((function(t){return YM(t,e)}))}function I(e){h((function(t){return GM(t,e.id)})),C((function(t){var n;return ra(ra({},t),((n={})[e.id]=e,n))}))}function T(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.metapropertyOptionId_in)||void 0===t?void 0:t.includes(e.id))||(h((function(t){return YM(t,e.id)})),C((function(t){var n=t,r=e.id;return oa(n,["symbol"==typeof r?r:r+""])})))}function _(e){(null==l?void 0:l.metapropertyOptionId_in)&&(h(l.metapropertyOptionId_in),C(e))}function O(e){v((function(t){return GM(t,e)}))}function j(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.tagNames_in)||void 0===t?void 0:t.includes(e))||v((function(t){return YM(t,e)}))}function A(){d((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.assetType_in)?sa([],l.assetType_in,!0):[]),h((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?sa([],l.metapropertyOptionId_in,!0):[]),C((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?function(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}(E,l.metapropertyOptionId_in):{}),v((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.tagNames_in)?sa([],l.tagNames_in,!0):[])}a((function(){w(!s&&void 0)}),[s]);var P=f.map((function(e){return E[e]})),B=i((function(){return{assetTypes:u,metaproperties:P,metapropertyIds:f,tags:g,isLimited:b,addAssetType:k,removeAssetType:S,addMetaproperty:I,removeMetaproperty:T,setPredefinedMetaproperties:_,addTag:O,removeTag:j,clear:A}}),[u,P,g,b,f]);return t.createElement(qM.Provider,{value:B},n)}function GM(e,t){return e.includes(t)?e:sa(sa([],e,!0),[t],!1)}function YM(e,t){return e.filter((function(e){return e!==t}))}function KM(){var e=r(qM);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function XM(e){return my({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function JM(e){switch(e){case"AUDIO":return Ru;case"DOCUMENT":return _u;case"IMAGE":return wu;case"VIDEO":return Mu;case"ARCHIVE":return gu}}function QM(e){return t.createElement(tR,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(yu,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var eR,tR=lc.div(eR||(eR=la(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function nR(e){return t.createElement(oR,{$isVisible:e.isVisible},t.createElement(hu,{icon:t.createElement(vu,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var rR,oR=lc.div(rR||(rR=la(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function iR(e){var n=o(0),r=n[0],i=n[1],s=l(null),c=TM(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=r>0,m=p>5&&r!==p;return t.createElement("div",{className:My("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(nR,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-r,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(QM,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function aR(e){return t.createElement(lR,{icon:e.icon,size:"s",onDelete:e.onClick,"data-testid":"selected-filter:".concat(e.title)},e.title)}var sR,lR=lc(xf)(sR||(sR=la(["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"],["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"])),bc.spacing3);function cR(){var e=KM(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(dR,null,t.createElement(hu,{variant:"clean",isSmall:!0,onClick:e.clear},my("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(iR,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=JM(n);return t.createElement(aR,{key:n,onClick:function(){return e.removeAssetType(n)},title:XM(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(aR,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(aR,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var uR,dR=lc.div(uR||(uR=la(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),pR=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function fR(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return pR.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function hR(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function mR(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=Gi(),a=i.hideExternalAccess,s="SingleSelectFile"===i.selectionMode&&n;return!s&&a?null:s||a?s&&a?t.createElement(af.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(Iu,null)):t.createElement(Jm,{trigger:function(e){var n=e.isOpen,r=oa(e,["isOpen"]);return t.createElement(af.ContextActionButton,ra({"aria-label":"Menu",isPressed:n},r),t.createElement(Au,null))},isClosedOnScroll:!0},t.createElement(Jm.Item,{icon:t.createElement(Pu,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Jm.Divider,null),t.createElement(Jm.Item,{icon:t.createElement(Iu,null),onClick:o},"New transformation")):t.createElement(af.ContextActionButton,{"aria-label":my("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Pu,null))}var gR,vR,yR,bR,wR=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},xR=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t,n=e.label,r=e.value,o=e.type,i=e.zIndex;return{label:n,value:"date"===o?(t=r)?isNaN(Date.parse(t))?t:new Intl.DateTimeFormat("en-GB",ob).format(new Date(new Date(t).valueOf()+60*new Date(t).getTimezoneOffset()*1e3)):"":r,zIndex:i}}));return sa(sa([],n,!0),r,!0).sort(wR)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(af.AdditionalInfo,null,t.createElement(ER,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(CR,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(kR,null,n,":"),t.createElement(SR,{title:r},o))})))):null},ER=lc.dl(gR||(gR=la(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),bc.fontSize75),CR=lc.div(vR||(vR=la(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),kR=lc.dt(yR||(yR=la(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),SR=lc.dd(bR||(bR=la(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function IR(e){var n,r,i=e.className,s=e.fadeIn,l=void 0===s||s,c=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,h=void 0===f?null:f,m=o(),g=m[0],v=m[1],y=o(),b=y[0],w=y[1],x=yM(),E=x.openDat,C=x.setTransformation,k=Gi().theme,S=function(e){return[e.isArchived&&my("archived"),e.isWatermarked&&my("watermarked"),e.isLimitedUse&&my("limited")].filter((function(e){return e})).join(", ")}(c),I=hR(c);a((function(){var e,t=null===(e=c.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[c.metaproperties]),a((function(){var e,t=null===(e=c.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));w(t)}),[c.textMetaproperties]);var T=function(e){void 0!==p&&(e.stopPropagation(),C(),p(c,e))};return t.createElement(jR,{id:c.id,$theme:k,$isOutlined:(u||d)&&void 0!==(null==k?void 0:k.colorPrimary),$fadeIn:l,className:My("group",i),"data-drag-select-id":c.id},t.createElement(af,{contextAction:t.createElement(mR,{transformBaseUrl:null===(r=null===(n=c.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===r?void 0:r.url,portalUrl:c.url,onOpenDAT:function(){var e,t;return E(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,c,c.name)}}),selectButtonAriaLabel:my(u?"Deselect":"Select"),onSelect:T,onClick:T,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(af.Frame,{icon:S?t.createElement(AR,{$limitWidth:!!I},t.createElement(wc,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(Lp,null,S))):void 0,"data-testid":"asset-type",badge:I},t.createElement(af.Images,null,fR(c)&&t.createElement(af.Img,{src:fR(c),alt:c.name,contentResize:"fit"}))),h,t.createElement(PR,{"data-testid":"asset-name"},c.name),t.createElement(xR,{metaproperties:g,textMetaproperties:b})))}var TR,_R,OR,jR=lc.div(TR||(TR=la(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),bc.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryActive})),AR=lc.div(_R||(_R=la(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),PR=lc.p(OR||(OR=la(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"]))),BR={x:null,y:null},NR="drag-select-container",DR=function(e){var n=e.dragContainer,r=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=o(BR),f=p[0],h=p[1],g=o(BR),v=g[0],y=g[1],b=jS(v,10,{leading:!0,maxWait:10})[0],w=o(),x=w[0],E=w[1],C=Ea(),k=t.useMemo((function(){return MR(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=jS(k,50,{leading:!1,maxWait:50})[0],I=o([]),T=I[0],_=I[1],O=HR(T),j=l(f),A=l(v),P=l(null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y),B=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",N,!1),document.addEventListener("keyup",N,!1),function(){document.removeEventListener("keydown",N,!1),document.removeEventListener("keyup",N,!1)}}),[]);var N=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},P.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof u&&P.current?(N(B.current),u(null!=x?x:"select")):"function"!=typeof d||P.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[P.current,x]);var D=function(e){j.current=e,h(e),M()},z=function(e){A.current=e,y(e),M()},M=function(){P.current=null!==j.current.x&&null!==j.current.y&&null!==A.current.x&&null!==A.current.y},R=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),F=c((function(){C.removeEventListener("mousemove",R),C.removeEventListener("mouseup",F),D(BR),z(BR)}),[R,C]),L=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",R),C.addEventListener("mouseup",F),D({x:n,y:t}))}),[R,F,C]);a((function(){var e=C.querySelector(n);return e&&(LR(C),e.addEventListener("mousedown",L)),function(){e&&(e.removeEventListener("mousedown",L),$R(C))}}),[n,L,R,F,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=FR(t);return t instanceof HTMLElement&&RR(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);_(t)}),[S,C]),a((function(){if(O&&O!==T&&P.current){var e=T.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,O,i,s,P]);var $=C.querySelector("#".concat(NR));return P.current&&$?m(t.createElement("div",ra({},r,{style:r.style?ra(ra(ra({},zR),r.style),k):ra(ra({},zR),k),"data-testid":"drag-selection"})),$):null},zR={position:"absolute",zIndex:100},MR=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},RR=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},FR=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},LR=function(e){var t=document.createElement("div");t.id=NR,e.appendChild(t)},$R=function(e){var t=e.querySelector("#".concat(NR));t&&t.remove()},HR=function(e){var t=l();return a((function(){t.current=e})),t.current};function UR(e){var n,r=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.theme,k=e.children,S=void 0===k?null:k,I=l(null),T=TM(I.current).dimensions,_=o([]),O=_[0],j=_[1],A=o("inactive"),P=A[0],B=A[1],N=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,T),D=N[0],z=N[1];function M(e){return("inverse"!==P||!w.includes(e.id)||!O.includes(e.id))&&(w.includes(e.id)||O.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:I,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===r.tag&&!r.value&&t.createElement(Ky,{rows:D,columns:z}),"Loaded"===r.tag&&0===r.value.length&&y,("Loading"===r.tag&&r.value||"Loaded"===r.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(DR,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){j((function(t){return sa(sa([],t,!0),e,!0)}))},onDeselect:function(e){j((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),O.length){var t=[];O.forEach((function(e){var n=function(e){var t;if("Loading"!==r.tag||r.value)return null===(t=r.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),j([])}}}),t.createElement(_M,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=r.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(IR,{key:e.id,isSelected:M(e),isOutlined:M(e),asset:e,fadeIn:n>=D*z,onClick:function(e,t){return function(e,t){var n,o,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=r.value)||void 0===n?void 0:n.length)){var a=r.value.findIndex((function(t){return t.id===e.id})),s=null===(o=r.value)||void 0===o?void 0:o.findIndex((function(e){return e.id===w[w.length-1]}));-1===s&&(s=0),h(s<a?null===(i=r.value)||void 0===i?void 0:i.slice(s,a+1):r.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function VR(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=ma().setIsLoading,h=Gi(),m=SM().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=SM(),v=g.selectAssets,y=g.toggleAssets,b=g.setAllAssets,w=ma().setSearch,x=KM();if(a((function(){c||f(!1)}),[c]),a((function(){"Failure"!==l.tag&&b(WR(l))}),[l]),"Failure"===l.tag)return t.createElement(By,{error:new Error(l.value),onRetry:p});var E=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(UR,{assets:WR(l),count:E,isLoading:c,loadMore:u,hasNextPage:d,theme:h.theme,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(jM,{onReset:function(){x.clear(),w("assets",""),w("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==E&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down","data-testid":"assets-amount",key:E},Zy(E,my("{} asset"),my("{} assets"))),e.showActiveFilters&&t.createElement(cR,null),t.createElement(Vy,null),t.createElement(Ny,null)))}function WR(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function qR(e){var n=ga("collection").value,r=da()[1],o=ta("collection")[0],i=Gi(),a=i.language,s=i.noCache,l=KM(),c=l.assetTypes,u=l.metaproperties,d=l.tags,p=l.isLimited,f=fw({collection:e.collection,filter:{assetTypes:c,metaproperties:u,tags:d,isLimited:p},searchTerm:n,orderBy:o,language:a},s);return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},my("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(VR,{connection:f,totalCount:e.collection.assetCount,showActiveFilters:!0}))}var ZR="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";var GR,YR,KR,XR,JR=lc.div(GR||(GR=la(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),bc.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),QR=lc.li(YR||(YR=la(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),bc.spacing2,bc.spacing5,bc.gray25),eF=lc.div(KR||(KR=la(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.$isChecked?"inherit":bc.gray500})),tF=lc.span(XR||(XR=la(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),bc.spacing4);function nF(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(QR,null,t.createElement(JR,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(ff,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(eF,{$isChecked:n},t.createElement(tF,{title:e.metapropertyOption.label},t.createElement(Lp,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function rF(e){return t.createElement(aF,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(sF,null,e.metaproperty.options.map((function(n){return t.createElement(nF,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var oF,iF,aF=lc.div(oF||(oF=la(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),bc.spacing5),sF=lc.ul(iF||(iF=la(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function lF(e){return t.createElement(uF,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(rF,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var cF,uF=lc.div(cF||(cF=la(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),bc.spacing4);function dF(e){var n,r=KM(),o=r.metaproperties.map((function(e){return e.id})),i=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),a=(n=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},sa([],i,!0).sort((function(e,t){return n(e)-n(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(Ly,{key:n.id,title:t.createElement(pF,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(rF,{metaproperty:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}):t.createElement(lF,{smartfilter:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}))}))})))}function pF(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:My("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function fF(e){var n=My("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function hF(e){var n=KM(),r=n.tags.includes(e.tag.name),o=My("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(fF,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function mF(e){var n=sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(Ly,{title:t.createElement(gF,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",my("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(hF,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function gF(){return t.createElement(t.Fragment,null,t.createElement(zu,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},my("Tags")))}function vF(e){var n=KM(),r=n.assetTypes.includes(e.type),o=JM(e.type);return t.createElement(QR,{"data-testid":"advanced-options"},t.createElement(JR,{$isChecked:r,$isLoading:e.isLoading},t.createElement(ff,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat(XM(e.type),"-filter")},t.createElement(eF,{$isChecked:r},t.createElement(o,null),t.createElement(bF,null,XM(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var yF,bF=lc.div(yF||(yF=la(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),bc.spacing3);function wF(e){var n=Gi().assetTypes,r=n.filter((function(t){return EF(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(Ly,{title:t.createElement(xF,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},my("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(vF,{key:n,type:n,count:EF(e.count,n),isLoading:e.isLoading})}))))}))}function xF(){return t.createElement(t.Fragment,null,t.createElement(mu,{className:"mr-2 inline w-6 h-6"}),my("Advanced"))}function EF(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function CF(){var e=KM(),n=da()[0],r=ga("assets").value,i=Gi(),s=i.assetTypes,l=i.language,c=i.assetFilter,u=i.noCache,d=o(n.page),p=d[0],f=d[1];vy(l);var h=function(e,t){var n=this;void 0===t&&(t=!1);var r=lw(),i=o({tag:"Loading",value:null}),s=i[0],l=i[1],c=!1;return a((function(){return ia(n,void 0,void 0,(function(){var n,o,i,a,s,u,d,p,f,h;return aa(this,(function(m){switch(m.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=e.filter,o=e.searchTerm,i=e.allAssetTypes,a=e.language,s=e.predefinedFilter,u=cw({filters:null==n?void 0:n.assetTypes,predefinedFilters:null==s?void 0:s.assetType_in,showToolbar:null==s?void 0:s.showToolbar}),d=cw({filters:uw(null==n?void 0:n.metaproperties),predefinedFilters:null==s?void 0:s.metapropertyOptionId_in,showToolbar:null==s?void 0:s.showToolbar}),p=cw({filters:null==n?void 0:n.tags,predefinedFilters:null==s?void 0:s.tagNames_in,showToolbar:null==s?void 0:s.showToolbar}),f={filter:{assetType_in:null!=u?u:i,collectionId:e.collectionId||(null==s?void 0:s.collectionId),metapropertyOptionId_in:d,searchTerm:o,tagNames_in:p,isLimitedUse:n.isLimited},language:a},[4,lb({query:ZR,variables:f,auth:r,noCache:t})];case 1:return h=m.sent(),c||(eb(h)?l({tag:"Failure",value:h.error}):l({tag:"Loaded",value:h.value})),[2]}}))})),function(){c=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:s,isLoading:"Loading"===s.tag}}({filter:e,searchTerm:r||null,allAssetTypes:s,language:l,predefinedFilter:c,collectionId:"collection"===n.page?n.collection.id:null},u),m=h.data,g=h.isLoading;if(a((function(){return n.page!==p&&(f(n.page),e.clear()),function(){e.clear()}}),[p,n.page]),a((function(){var t;if("Loading"!==m.tag&&"Failure"!==m.tag&&m.value){var n=m.value.searchAssets.metapropertyFilters;if((null==c?void 0:c.metapropertyOptionId_in)&&(null===(t=null==n?void 0:n.nodes)||void 0===t?void 0:t.length)&&!e.metaproperties.length){var r=n.nodes.reduce((function(t,n){return("Metaproperty"===n.__typename?n.options:n.metaproperties.reduce((function(e,t){return sa(sa([],e,!0),t.options,!0)}),[])).forEach((function(n){var r,o;(null===(r=null==c?void 0:c.metapropertyOptionId_in)||void 0===r?void 0:r.includes(n.id))&&((null===(o=e.metapropertyIds)||void 0===o?void 0:o.includes(n.id))||(t[n.id]=n))})),t}),{});Object.keys(r).length&&e.setPredefinedMetaproperties(r)}}}),[m]),"Failure"===m.tag||!m.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(kF,null));var v=m.value.searchAssets,y=v.metapropertyFilters,b=v.tags,w=v.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(iR,{className:"h-8"},y&&y.nodes.length>0&&t.createElement(dF,{metapropertyFilters:y.nodes,isLoading:g}),b&&b.nodes.length>0&&t.createElement(mF,{tags:b.nodes,isLoading:g}),t.createElement(wF,{isLoading:g,count:w.assetType})))}function kF(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(Yy,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(Yy,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(Yy,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var SF,IF,TF=uc(IF||(IF=la(["",""],["",""])),ic(SF||(SF=la(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function _F(){var e=da()[0],n=Xi(),r=ga(e.page),i=r.value,s=r.isLoading,l=TS(r.setSearch,500),c=o(i),u=c[0],d=c[1];a((function(){d(i)}),[e,i]),a((function(){return function(){l.flush()}}),[e,l]);var p="collections"===e.page?my("Search for collections"):my("Search for assets");return t.createElement(jF,{$hideSwitch:n},t.createElement(wh,{value:u,placeholder:p,"aria-label":p,onChange:function(e){return d(t=e),void l(t);var t},"data-testid":"search-input",icon:t.createElement(Bu,null),iconRight:s?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Gb,{className:"relative right-0"})):void 0,hasClearButton:!s&&!!i}))}var OF,jF=lc.div(OF||(OF=la(["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"])),(function(e){return e.$hideSwitch?"auto":"none"}));function AF(){var e=da(),n=e[0],r=e[1];return t.createElement(BF,null,t.createElement(hu,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},my("Assets")),t.createElement(hu,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},my("Collections")))}var PF,BF=lc.div(PF||(PF=la(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),bc.spacing2);function NF(){var e=sw(),n=Nb(),r=lw(),o=Yi(),i=Xi(),a=void 0!==o&&!o.showToolbar;return e||n||!a?t.createElement(MF,null,!a&&t.createElement(t.Fragment,null,!i&&t.createElement(AF,null),t.createElement(_F,null)),t.createElement(RF,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(hu,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(Tu,null)},my("Log out")),n&&t.createElement(hu,{variant:"clean",onClick:function(){return n.onClose()},title:my("Close"),icon:t.createElement(xu,null)}))):null}var DF,zF,MF=lc.nav(DF||(DF=la(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),bc.gray10,bc.spacing5,bc.spacing4),RF=lc.div(zF||(zF=la(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function FF(){var e=KM(),n=e.assetTypes,r=e.metaproperties,o=e.tags,a=e.isLimited,s=ga("assets").value,l=ta("assets")[0],c=Gi(),u=c.assetFilter,d=c.assetTypes,p=c.language,f=c.noCache,h=fw(i((function(){return void 0===u?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:a},searchTerm:s,orderBy:l,allAssetTypes:d,language:p}:u&&u.showToolbar?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:a},searchTerm:s,orderBy:l,predefinedFilter:u,allAssetTypes:d,language:p}:{predefinedFilter:u,orderBy:l,language:p}}),[n,r,o,a,s,l,u,d,p]),f);return t.createElement(VR,{connection:h,showActiveFilters:void 0===u||u&&u.showToolbar})}var LF="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function $F(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a;return aa(this,(function(s){switch(s.label){case 0:return t=e.assetId,n=e.auth,r=e.assetFieldSelection,o=void 0===r?LF:r,i=e.noCache,[4,lb({query:"\n fragment AddMediaAsset on Asset {\n ".concat(o,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),variables:{id:t},auth:n,noCache:i})];case 1:return eb(a=s.sent())?[2,a]:[2,Xy(a.value.node)]}}))}))}function HF(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var UF="Custom transformation";function VF(e){var n=e.asset,r=e.onChange,i=o({status:"Loading"}),s=i[0],l=i[1],c=lw(),u=Gi(),d=u.assetFieldSelection,p=u.noCache,f=u.__shouldAddOriginal__,h=yM().transformation;function m(e){l((function(t){return"Data"!==t.status?t:(e===UF&&h?setTimeout((function(){return r({url:null==h?void 0:h.url})})):setTimeout((function(){return r(t.files[e])})),ra(ra({},t),{key:e}))}))}return a((function(){var e,t;(null==h?void 0:h.url)&&"Data"===s.status&&m(h.url!==(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?UF:"transformBaseUrl")}),[h]),a((function(){l({status:"Loading"}),r(void 0),function(e){return ia(this,void 0,void 0,(function(){var t,n,r,o;return aa(this,(function(i){switch(i.label){case 0:return t=e.auth,n=e.assetFieldSelection,r=e.noCache,[4,$F({assetId:e.asset.id,auth:t,assetFieldSelection:n,noCache:r})];case 1:return Qy(o=i.sent())&&o.value.files?[2,Xy({files:ab(o.value.files),databaseId:o.value.databaseId||""})]:[2,Jy("Error retrieving asset files")]}}))}))}({asset:n,auth:c,assetFieldSelection:d,noCache:p}).then((function(e){if(eb(e))return ba.error(e.error),void l({status:"Failure"});var t=ra({},e.value.files);f&&!("original"in t)&&(t.original={url:e.value.databaseId,isFakeOriginal:!0});var n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),r(t[n])}))}),[n.id,c,d]),t.createElement(GF,null,t.createElement(Ly,{title:t.createElement(WF,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){var r,o;return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(Uy,{key:o,className:"px-3 py-2",selected:s.key===o,onClick:function(){m(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(bu,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(ju,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},HF(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(bM,{transformBaseUrl:null===(o=null===(r=s.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function WF(e){var n=e.state;return"Loading"===n.status?t.createElement(Yy,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(YF,null,n.key===UF&&t.createElement(Iu,null),HF(n.key)):t.createElement(t.Fragment,null,"Error")}var qF,ZF,GF=lc.div(qF||(qF=la(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),bc.spacing5),YF=lc.div(ZF||(ZF=la(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),bc.spacing4),KF=function(e,t){for(var n=[],r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},XF="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n",JF=function(e){var t=e.selectedItems,n=e.auth,r=e.assetFieldSelection,o=e.noCache;return ia(void 0,void 0,void 0,(function(){var e,i,a,s,l,c,u,d,p,f,h,m,g,v;return aa(this,(function(y){switch(y.label){case 0:return e="\n fragment AddMediaAsset on Asset {\n ".concat(r,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),i=t.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),a=i.reduce((function(e,t){return e+t}),0),s={ids:t.map((function(e){return e.value.id})),collectionCount:a},[4,lb({query:e,variables:s,auth:n,noCache:o})];case 1:if(eb(l=y.sent()))return[2,l];for(c=[],u=0,d=l.value.nodes;u<d.length;u++)"Collection"===(p=d[u]).__typename?c.push.apply(c,p.assets.nodes):c.push(p);for(f=new Set,h=[],m=0,g=c;m<g.length;m++)v=g[m],f.has(v.id)||(h.push(v),f.add(v.id));return[2,Xy(h)]}}))}))};function QF(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(Cu,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,my("Retry")):t.createElement(t.Fragment,null,Zy(r,my("Add asset"),my("Add assets")))}function eL(e){var n,r=Gi(),i=r.assetFieldSelection,s=r.onSuccess,c=r.selectionMode,u=r.noCache,d=SM().preselectedAssetIds,p=lw(),f=l(!0),h=o("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=h[0],g=h[1];function v(e,t){if(eb(e))g({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,d)})),s(n,{selectedFile:t})}catch(e){ba.error(e)}f.current&&(g({status:"Done"}),setTimeout((function(){f.current&&g((function(e){return"ReadyWithFile"===e.status?e:t?{status:"ReadyWithFile",file:t}:{status:"Ready"}}))}),2e3))}}return a((function(){return function(){f.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(VF,{asset:e.selection[0].value,onChange:function(e){g(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(hu,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;g({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?$F({assetId:e.selection[0].value.id,auth:p,assetFieldSelection:i,noCache:u}).then((function(e){v(e,n)})):function(e){return ia(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p;return aa(this,(function(f){switch(f.label){case 0:return n=e.auth,o=void 0===(r=e.assetFieldSelection)?XF:r,i=e.noCache,(t=e.selectedItems).length<=ib?[2,JF({selectedItems:t,auth:n,assetFieldSelection:o,noCache:i})]:(a=KF(t,280),s=a.map((function(e){return JF({selectedItems:e,auth:n,assetFieldSelection:o,noCache:i})})),[4,Promise.all(s)]);case 1:for(l=f.sent(),c=[],u=0,d=l;u<d.length;u++){if(eb(p=d[u]))return[2,p];c.push.apply(c,p.value)}return[2,Xy(c)]}}))}))}({selectedItems:e.selection,auth:p,assetFieldSelection:i,noCache:u}).then((function(e){v(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(QF,{status:m.status,numberOfSelectedItems:e.selection.length})))}function tL(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(JR,{$isChecked:!0,$isFlex:!0},t.createElement(ff,{"aria-label":my("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(rL,{htmlFor:"deselect-".concat(n)},o)))}var nL,rL=lc.label(nL||(nL=la(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),bc.fontSize100,bc.spacing3);function oL(e){var n=e.asset,r=SM();return t.createElement(tL,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(aL,null,t.createElement(Ah,{variant:"preview",imageUrl:fR(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),hR(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},hR(n)))}var iL,aL=lc.div(iL||(iL=la(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),bc.spacing4);function sL(e){var n=e.collection,r=SM();return t.createElement(tL,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(cL,null,t.createElement(Ah,{variant:"clean",icon:t.createElement(Su,null)})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},Zy(n.assetCount,my("{} asset"),my("{} assets"))))}var lL,cL=lc.div(lL||(lL=la(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),bc.spacing4);function uL(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(oL,{key:e.value.id,asset:e.value}):t.createElement(sL,{key:e.value.id,collection:e.value})})))}function dL(){var e=SM(),n=e.selection,r=e.clear,o=e.selectAll,i=Gi(),a=i.selectionMode,s=i.selectAllOption,l=da()[0],c=n.length;return 0===c?null:t.createElement(mL,{"data-testid":"selection-footer"},t.createElement(gL,null,t.createElement(Ly,{buttonKind:"secondary",direction:"Up",title:my("View {} selected").replace("{}",c.toString())},(function(){return t.createElement(uL,{selection:n})})),"MultiSelect"===a&&s&&"assets"===l.page&&t.createElement(hu,{variant:"secondary",onClick:o},my("Select all")),t.createElement(hu,{variant:"clean",onClick:r},my("Clear selection"))),t.createElement(eL,{selection:n}))}var pL,fL,hL,mL=lc.div(pL||(pL=la(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),bc.layoutSpacing5,bc.spacing6),gL=lc.span(fL||(fL=la(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),bc.spacing2);function vL(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,s=e.language,l=void 0===s?"en_US":s,c=e.mode,u=void 0===c?"MultiSelect":c,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,h=e.hideExternalAccess,m=e.selectedAssets,g=e.hideLimitedUse,v=e.isContainerMode,y=void 0!==v&&v,b=e.__shouldAddOriginal__,w=e.hideSwitch,x=void 0!==w&&w,E=e.noCache,C=void 0!==E&&E,k=e.selectAllOption,S=void 0!==k&&k;vy(l);var I={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:h,__shouldAddOriginal__:b,hideSwitch:x,noCache:C,selectAllOption:S};return t.createElement(nw,{sentryClient:hL},t.createElement(ua,null,t.createElement(Pb,{isContainerMode:y},t.createElement(vM,null,t.createElement(ea,null,t.createElement(ZM,{hideLimitedUse:g,predefinedFilter:r},t.createElement(ha,{defaultValue:a},t.createElement(Zi,{value:I},t.createElement(CM,{preselectedAssetIds:null!=m?m:[]},t.createElement(TF,{theme:I.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(NF,null),t.createElement(yL,null),t.createElement(dL,null)))))))))))}function yL(){var e=da()[0],n=Gi().assetFilter;return t.createElement(t.Fragment,null,"collections"!==e.page&&(void 0===n||n&&n.showToolbar)&&t.createElement(CF,null),"assets"===e.page&&t.createElement(FF,null),"collections"===e.page&&t.createElement(WM,null),"collection"===e.page&&t.createElement(qR,{collection:e.collection}))}hL=new class extends bi{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:ai}))),version:ai}),e._metadata=o}(e,"browser",["browser"],ki.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ki.document&&ki.document.addEventListener("visibilitychange",(()=>{"hidden"===ki.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=function(e,t,n,r,o){let i;if(Rr(t)&&t.error)return Ti(e,t.error);if(Fr(t)||Mr(t,"DOMException")){const o=t;if("stack"in t)i=Ti(e,t);else{const t=o.name||(Fr(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;i=Ai(e,a,n,r),vo(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return zr(t)?Ti(e,t):$r(t)||Hr(t)?(i=function(e,t,n,r){const o=Ko(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:Hr(t)?t.constructor.name:"Error",value:Pi(t,{isUnhandledRejection:r})}]},extra:{__serialized__:xo(t,i)}};if(n){const t=_i(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,void 0),yo(i,{synthetic:!0}),i):(i=Ai(e,t,n,r),vo(i,`${t}`),yo(i,{synthetic:!0}),i)}(e,t,n&&n.syntheticException||void 0,r);return yo(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ko(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Ai(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),ko(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Si&&no.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:oo(r)}},i=function(e){return[{type:"user_report"},e]}(e);return jo(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Si&&no.log("No outcomes to send"));if(!this._dsn)return void(Si&&no.log("No dsn provided, will not send outcomes"));Si&&no.log("Sending outcomes:",e);const t=(n=e,jo((r=this._options.tunnel&&oo(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:_o(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,integrations:[],stackParser:Vi,transport:function(e,t=function(){if(Bi)return Bi;if((e=ki.fetch)&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()))return Bi=ki.fetch.bind(ki);var e;const t=ki.document;let n=ki.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(e){Si&&no.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Bi=n.bind(ki)}()){let n=0,r=0;return Ei(e,(function(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Bi=void 0,n-=i,r--,So(e)}}))}}),new ci(hL);var bL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opazität","datepicker.clear-date":"Datum löschen","datepicker.next-month":"Nächsten Monat","datepicker.open-calendar":"Kalender öffnen","datepicker.previous-month":"Vorheriger Monat","input.clear":"Eingabe löschen","input.hide-password":"Passwort verbergen","input.show-password":"Passwort anzeigen","modal.close":"Schließen","multiselectchips.add-value":"Füge ‘{value}’ hinzu","multiselectchips.remove-all":"Alle entfernen","pagination.next-page":"Nächste Seite","pagination.previous-page":"Vorherige Seite"}}),wL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Quitar todos","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),xL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Eliminar todo","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),EL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacité","datepicker.clear-date":"Effacer une date","datepicker.next-month":"Le mois prochain","datepicker.open-calendar":"Ouvrir le calendrier","datepicker.previous-month":"Le mois précédent","input.clear":"Effacer l'entrée","input.hide-password":"Masquer le mot de passe","input.show-password":"Montrer le mot de passe","modal.close":"Fermer","multiselectchips.add-value":"Ajouter ‘{value}’","multiselectchips.remove-all":"Supprimer tout","pagination.next-page":"Page suivante","pagination.previous-page":"Page précédente"}}),CL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacità","datepicker.clear-date":"Annulla data","datepicker.next-month":"Il prossimo mese","datepicker.open-calendar":"Calendario aperto","datepicker.previous-month":"Il mese scorso","input.clear":"Ingresso chiaro","input.hide-password":"Nascondi password","input.show-password":"Mostra password","modal.close":"Chiudi","multiselectchips.add-value":"Aggiungi ‘{value}’","multiselectchips.remove-all":"Rimuovi tutti","pagination.next-page":"Pagina seguente","pagination.previous-page":"Pagina precedente"}}),kL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"日付を消去する","datepicker.next-month":"来月","datepicker.open-calendar":"カレンダーを開く","datepicker.previous-month":"前月","input.clear":"入力をクリア","input.hide-password":"パスワードを隠す","input.show-password":"パスワードを表示","modal.close":"閉じる","multiselectchips.add-value":"「 {value} 」を追加","multiselectchips.remove-all":"すべてを削除する","pagination.next-page":"次のページ","pagination.previous-page":"前のページ"}}),SL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"불투명","datepicker.clear-date":"완료일","datepicker.next-month":"다음 달","datepicker.open-calendar":"캘린더 열기","datepicker.previous-month":"지난달","input.clear":"입력 지우기","input.hide-password":"비밀번호 숨기기","input.show-password":"비밀번호 표시","modal.close":"닫기","multiselectchips.add-value":"' {value} ' 추가","multiselectchips.remove-all":"모두 제거","pagination.next-page":"다음 페이지","pagination.previous-page":"이전 페이지"}}),IL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Ondoorzichtigheid","datepicker.clear-date":"Datum legen","datepicker.next-month":"Volgende maand","datepicker.open-calendar":"Kalender openen","datepicker.previous-month":"Vorige maand","input.clear":"Invoer wissen","input.hide-password":"Verberg wachtwoord","input.show-password":"Laat wachtwoord zien","modal.close":"Sluiten","multiselectchips.add-value":"Voeg ‘{value}’ toe","multiselectchips.remove-all":"Verwijder alles","pagination.next-page":"Volgende pagina","pagination.previous-page":"Vorige pagina"}}),TL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Nieprzezroczystość","datepicker.clear-date":"Wyczyść datę","datepicker.next-month":"Następny miesiąc","datepicker.open-calendar":"Otwórz kalendarz","datepicker.previous-month":"Poprzedni miesiąc","input.clear":"Wyczyść pole wprowadzania","input.hide-password":"Ukryj hasło","input.show-password":"Pokaż hasło","modal.close":"Zamknij","multiselectchips.add-value":"Dodaj „{value}”","multiselectchips.remove-all":"Usuń wszystko","pagination.next-page":"Następna strona","pagination.previous-page":"Poprzednia strona"}}),_L=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidade","datepicker.clear-date":"Limpar data","datepicker.next-month":"Próximo mês","datepicker.open-calendar":"Calendário aberto","datepicker.previous-month":"Mês anterior","input.clear":"Limpar entrada","input.hide-password":"Esconder a senha","input.show-password":"Mostrar senha","modal.close":"Fechar","multiselectchips.add-value":"Adicionar ‘{value}’","multiselectchips.remove-all":"Remover tudo","pagination.next-page":"Próxima página","pagination.previous-page":"Página anterior"}}),OL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Непрозрачность","datepicker.clear-date":"Очистить дату","datepicker.next-month":"Следующий месяц","datepicker.open-calendar":"Открыть календарь","datepicker.previous-month":"Предыдущий месяц","input.clear":"Очистить поле ввода","input.hide-password":"Скрыть пароль","input.show-password":"Показать пароль","modal.close":"Закрыть","multiselectchips.add-value":"Добавить «{value}»","multiselectchips.remove-all":"Удалить всё","pagination.next-page":"Следующая страница","pagination.previous-page":"Предыдущая страница"}}),jL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opaklık","datepicker.clear-date":"Tarihi sil","datepicker.next-month":"Gelecek ay","datepicker.open-calendar":"Takvimi aç","datepicker.previous-month":"Geçtiğimiz ay","input.clear":"Girişi temizle","input.hide-password":"Şifreyi gizle","input.show-password":"Şifreyi göster","modal.close":"Kapat","multiselectchips.add-value":"‘{value}’ ekleyin","multiselectchips.remove-all":"Tümünü kaldır","pagination.next-page":"Sonraki sayfa","pagination.previous-page":"Önceki sayfa"}}),AL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下个月","datepicker.open-calendar":"打开日历","datepicker.previous-month":"前一个月","input.clear":"清除输入","input.hide-password":"隐藏密码","input.show-password":"显示密码","modal.close":"关闭","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一页","pagination.previous-page":"前一页"}}),PL=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下個月","datepicker.open-calendar":"打開日曆","datepicker.previous-month":"前一個月","input.clear":"清除輸入","input.hide-password":"隱藏密碼","input.show-password":"顯示密碼","modal.close":"關閉","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一頁","pagination.previous-page":"前一頁"}});export{vL as CompactView,aw as Login,Db as Modal};