@tnf-dev/react 1.0.1-17 → 1.0.1-19
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/dist/cjs/components/inbox/empty.cjs +1 -1
- package/dist/cjs/components/inbox/inbox.cjs +12 -12
- package/dist/cjs/components/inbox/inbox.d.cts +1 -1
- package/dist/cjs/components/inbox/index.cjs +12 -12
- package/dist/cjs/components/inbox/index.d.cts +1 -1
- package/dist/cjs/components/inbox/loader.cjs +1 -1
- package/dist/cjs/components/inbox/notification-header.cjs +1 -1
- package/dist/cjs/components/inbox/notification-item/actions.d.cts +1 -1
- package/dist/cjs/components/inbox/notification-item/index.cjs +12 -12
- package/dist/cjs/components/inbox/notification-item/index.d.cts +1 -1
- package/dist/cjs/components/index.cjs +9 -9
- package/dist/cjs/components/index.d.cts +1 -1
- package/dist/cjs/contexts/TeknifyProvider.cjs +1 -1
- package/dist/cjs/contexts/TeknifyProvider.d.cts +1 -1
- package/dist/cjs/contexts/index.cjs +1 -1
- package/dist/cjs/contexts/index.d.cts +1 -1
- package/dist/cjs/dto/index.d.cts +1 -1
- package/dist/cjs/dto/notifications/index.d.cts +1 -1
- package/dist/cjs/dto/notifications/notification.interface.d.cts +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/index.d.cts +1 -1
- package/dist/cjs/hooks/useNotifications.cjs +1 -1
- package/dist/cjs/hooks/useNotifications.d.cts +1 -1
- package/dist/cjs/index.cjs +9 -9
- package/dist/cjs/index.d.cts +2 -2
- package/dist/esm/components/inbox/empty.js +1 -1
- package/dist/esm/components/inbox/inbox.d.ts +1 -1
- package/dist/esm/components/inbox/inbox.js +5 -5
- package/dist/esm/components/inbox/index.d.ts +1 -1
- package/dist/esm/components/inbox/index.js +5 -5
- package/dist/esm/components/inbox/loader.js +1 -1
- package/dist/esm/components/inbox/notification-header.js +1 -1
- package/dist/esm/components/inbox/notification-item/actions.d.ts +1 -1
- package/dist/esm/components/inbox/notification-item/index.d.ts +1 -1
- package/dist/esm/components/inbox/notification-item/index.js +6 -6
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/index.js +5 -5
- package/dist/esm/contexts/TeknifyProvider.d.ts +1 -1
- package/dist/esm/contexts/TeknifyProvider.js +1 -1
- package/dist/esm/contexts/index.d.ts +1 -1
- package/dist/esm/contexts/index.js +1 -1
- package/dist/esm/dto/index.d.ts +1 -1
- package/dist/esm/dto/notifications/index.d.ts +1 -1
- package/dist/esm/dto/notifications/notification.interface.d.ts +1 -1
- package/dist/esm/hooks/index.d.ts +1 -1
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/hooks/useNotifications.d.ts +1 -1
- package/dist/esm/hooks/useNotifications.js +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +5 -5
- package/package.json +2 -2
@@ -1,16 +1,16 @@
|
|
1
1
|
"use client"
|
2
|
-
"use strict";var ki=Object.create;var $e=Object.defineProperty;var Ni=Object.getOwnPropertyDescriptor;var _i=Object.getOwnPropertyNames;var Ai=Object.getPrototypeOf,Ii=Object.prototype.hasOwnProperty;var ee=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ji=(e,r)=>{for(var n in r)$e(e,n,{get:r[n],enumerable:!0})},kt=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _i(r))!Ii.call(e,i)&&i!==n&&$e(e,i,{get:()=>r[i],enumerable:!(t=Ni(r,i))||t.enumerable});return e};var ue=(e,r,n)=>(n=e!=null?ki(Ai(e)):{},kt(r||!e||!e.__esModule?$e(n,"default",{value:e,enumerable:!0}):n,e)),Mi=e=>kt($e({},"__esModule",{value:!0}),e);var At=ee(j=>{"use strict";var J=typeof Symbol=="function"&&Symbol.for,Nr=J?Symbol.for("react.element"):60103,_r=J?Symbol.for("react.portal"):60106,Be=J?Symbol.for("react.fragment"):60107,Ue=J?Symbol.for("react.strict_mode"):60108,qe=J?Symbol.for("react.profiler"):60114,He=J?Symbol.for("react.provider"):60109,Ye=J?Symbol.for("react.context"):60110,Ar=J?Symbol.for("react.async_mode"):60111,Je=J?Symbol.for("react.concurrent_mode"):60111,Ge=J?Symbol.for("react.forward_ref"):60112,Ke=J?Symbol.for("react.suspense"):60113,Di=J?Symbol.for("react.suspense_list"):60120,Xe=J?Symbol.for("react.memo"):60115,Ze=J?Symbol.for("react.lazy"):60116,Fi=J?Symbol.for("react.block"):60121,Vi=J?Symbol.for("react.fundamental"):60117,Wi=J?Symbol.for("react.responder"):60118,$i=J?Symbol.for("react.scope"):60119;function Q(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Nr:switch(e=e.type,e){case Ar:case Je:case Be:case qe:case Ue:case Ke:return e;default:switch(e=e&&e.$$typeof,e){case Ye:case Ge:case Ze:case Xe:case He:return e;default:return r}}case _r:return r}}}function _t(e){return Q(e)===Je}j.AsyncMode=Ar;j.ConcurrentMode=Je;j.ContextConsumer=Ye;j.ContextProvider=He;j.Element=Nr;j.ForwardRef=Ge;j.Fragment=Be;j.Lazy=Ze;j.Memo=Xe;j.Portal=_r;j.Profiler=qe;j.StrictMode=Ue;j.Suspense=Ke;j.isAsyncMode=function(e){return _t(e)||Q(e)===Ar};j.isConcurrentMode=_t;j.isContextConsumer=function(e){return Q(e)===Ye};j.isContextProvider=function(e){return Q(e)===He};j.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr};j.isForwardRef=function(e){return Q(e)===Ge};j.isFragment=function(e){return Q(e)===Be};j.isLazy=function(e){return Q(e)===Ze};j.isMemo=function(e){return Q(e)===Xe};j.isPortal=function(e){return Q(e)===_r};j.isProfiler=function(e){return Q(e)===qe};j.isStrictMode=function(e){return Q(e)===Ue};j.isSuspense=function(e){return Q(e)===Ke};j.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Be||e===Je||e===qe||e===Ue||e===Ke||e===Di||typeof e=="object"&&e!==null&&(e.$$typeof===Ze||e.$$typeof===Xe||e.$$typeof===He||e.$$typeof===Ye||e.$$typeof===Ge||e.$$typeof===Vi||e.$$typeof===Wi||e.$$typeof===$i||e.$$typeof===Fi)};j.typeOf=Q});var It=ee(M=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,t=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,V=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function $(m){return typeof m=="string"||typeof m=="function"||m===t||m===l||m===o||m===i||m===p||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===w||m.$$typeof===y||m.$$typeof===a||m.$$typeof===s||m.$$typeof===d||m.$$typeof===F||m.$$typeof===V||m.$$typeof===O||m.$$typeof===S)}function x(m){if(typeof m=="object"&&m!==null){var kr=m.$$typeof;switch(kr){case r:var We=m.type;switch(We){case u:case l:case t:case o:case i:case p:return We;default:var Ot=We&&We.$$typeof;switch(Ot){case s:case d:case w:case y:case a:return Ot;default:return kr}}case n:return kr}}}var D=u,B=l,q=s,re=a,Z=r,oe=d,Tr=t,Or=w,c=y,h=n,E=o,C=i,b=p,T=!1;function P(m){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(m)||x(m)===u}function R(m){return x(m)===l}function k(m){return x(m)===s}function A(m){return x(m)===a}function N(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function X(m){return x(m)===d}function G(m){return x(m)===t}function se(m){return x(m)===w}function wi(m){return x(m)===y}function Ci(m){return x(m)===n}function Ei(m){return x(m)===o}function Ti(m){return x(m)===i}function Oi(m){return x(m)===p}M.AsyncMode=D,M.ConcurrentMode=B,M.ContextConsumer=q,M.ContextProvider=re,M.Element=Z,M.ForwardRef=oe,M.Fragment=Tr,M.Lazy=Or,M.Memo=c,M.Portal=h,M.Profiler=E,M.StrictMode=C,M.Suspense=b,M.isAsyncMode=P,M.isConcurrentMode=R,M.isContextConsumer=k,M.isContextProvider=A,M.isElement=N,M.isForwardRef=X,M.isFragment=G,M.isLazy=se,M.isMemo=wi,M.isPortal=Ci,M.isProfiler=Ei,M.isStrictMode=Ti,M.isSuspense=Oi,M.isValidElementType=$,M.typeOf=x}()});var Qe=ee((uu,Ir)=>{"use strict";process.env.NODE_ENV==="production"?Ir.exports=At():Ir.exports=It()});var Lr=ee((fu,Vt)=>{"use strict";var jr=Qe(),zi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ui={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mr={};Mr[jr.ForwardRef]=Ui;Mr[jr.Memo]=Dt;function jt(e){return jr.isMemo(e)?Dt:Mr[e.$$typeof]||zi}var qi=Object.defineProperty,Hi=Object.getOwnPropertyNames,Mt=Object.getOwnPropertySymbols,Yi=Object.getOwnPropertyDescriptor,Ji=Object.getPrototypeOf,Lt=Object.prototype;function Ft(e,r,n){if(typeof r!="string"){if(Lt){var t=Ji(r);t&&t!==Lt&&Ft(e,t,n)}var i=Hi(r);Mt&&(i=i.concat(Mt(r)));for(var o=jt(e),a=jt(r),s=0;s<i.length;++s){var u=i[s];if(!Bi[u]&&!(n&&n[u])&&!(a&&a[u])&&!(o&&o[u])){var l=Yi(r,u);try{qi(e,u,l)}catch{}}}}return e}Vt.exports=Ft});var zt=ee((cu,$t)=>{"use strict";var Wt=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable;function Qi(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function eo(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;var t=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(t.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}$t.exports=eo()?Object.assign:function(e,r){for(var n,t=Qi(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)Xi.call(n,a)&&(t[a]=n[a]);if(Wt){i=Wt(n);for(var s=0;s<i.length;s++)Zi.call(n,i[s])&&(t[i[s]]=n[i[s]])}}return t}});var er=ee((du,Bt)=>{"use strict";var ro="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Bt.exports=ro});var Dr=ee((pu,Ut)=>{"use strict";Ut.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Gt=ee((hu,Jt)=>{"use strict";var Fr=function(){};process.env.NODE_ENV!=="production"&&(qt=er(),rr={},Ht=Dr(),Fr=function(e){var r="Warning: "+e;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});var qt,rr,Ht;function Yt(e,r,n,t,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(Ht(e,o)){var a;try{if(typeof e[o]!="function"){var s=Error((t||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[o](r,o,t,n,null,qt)}catch(l){a=l}if(a&&!(a instanceof Error)&&Fr((t||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in rr)){rr[a.message]=!0;var u=i?i():"";Fr("Failed "+n+" type: "+a.message+(u??""))}}}}Yt.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(rr={})};Jt.exports=Yt});var Zt=ee((mu,Xt)=>{"use strict";var to=Qe(),no=zt(),be=er(),Vr=Dr(),Kt=Gt(),xe=function(){};process.env.NODE_ENV!=="production"&&(xe=function(e){var r="Warning: "+e;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});function tr(){return null}Xt.exports=function(e,r){var n=typeof Symbol=="function"&&Symbol.iterator,t="@@iterator";function i(c){var h=c&&(n&&c[n]||c[t]);if(typeof h=="function")return h}var o="<<anonymous>>",a={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(),arrayOf:v,element:y(),elementType:w(),instanceOf:S,node:$(),objectOf:V,oneOf:F,oneOfType:O,shape:D,exact:B};function s(c,h){return c===h?c!==0||1/c===1/h:c!==c&&h!==h}function u(c,h){this.message=c,this.data=h&&typeof h=="object"?h:{},this.stack=""}u.prototype=Error.prototype;function l(c){if(process.env.NODE_ENV!=="production")var h={},E=0;function C(T,P,R,k,A,N,X){if(k=k||o,N=N||R,X!==be){if(r){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=k+":"+R;!h[se]&&E<3&&(xe("You are manually calling a React.PropTypes validation function for the `"+N+"` prop on `"+k+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),h[se]=!0,E++)}}return P[R]==null?T?P[R]===null?new u("The "+A+" `"+N+"` is marked as required "+("in `"+k+"`, but its value is `null`.")):new u("The "+A+" `"+N+"` is marked as required in "+("`"+k+"`, but its value is `undefined`.")):null:c(P,R,k,A,N)}var b=C.bind(null,!1);return b.isRequired=C.bind(null,!0),b}function d(c){function h(E,C,b,T,P,R){var k=E[C],A=Z(k);if(A!==c){var N=oe(k);return new u("Invalid "+T+" `"+P+"` of type "+("`"+N+"` supplied to `"+b+"`, expected ")+("`"+c+"`."),{expectedType:c})}return null}return l(h)}function p(){return l(tr)}function v(c){function h(E,C,b,T,P){if(typeof c!="function")return new u("Property `"+P+"` of component `"+b+"` has invalid PropType notation inside arrayOf.");var R=E[C];if(!Array.isArray(R)){var k=Z(R);return new u("Invalid "+T+" `"+P+"` of type "+("`"+k+"` supplied to `"+b+"`, expected an array."))}for(var A=0;A<R.length;A++){var N=c(R,A,b,T,P+"["+A+"]",be);if(N instanceof Error)return N}return null}return l(h)}function y(){function c(h,E,C,b,T){var P=h[E];if(!e(P)){var R=Z(P);return new u("Invalid "+b+" `"+T+"` of type "+("`"+R+"` supplied to `"+C+"`, expected a single ReactElement."))}return null}return l(c)}function w(){function c(h,E,C,b,T){var P=h[E];if(!to.isValidElementType(P)){var R=Z(P);return new u("Invalid "+b+" `"+T+"` of type "+("`"+R+"` supplied to `"+C+"`, expected a single ReactElement type."))}return null}return l(c)}function S(c){function h(E,C,b,T,P){if(!(E[C]instanceof c)){var R=c.name||o,k=Or(E[C]);return new u("Invalid "+T+" `"+P+"` of type "+("`"+k+"` supplied to `"+b+"`, expected ")+("instance of `"+R+"`."))}return null}return l(h)}function F(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&(arguments.length>1?xe("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):xe("Invalid argument supplied to oneOf, expected an array.")),tr;function h(E,C,b,T,P){for(var R=E[C],k=0;k<c.length;k++)if(s(R,c[k]))return null;var A=JSON.stringify(c,function(X,G){var se=oe(G);return se==="symbol"?String(G):G});return new u("Invalid "+T+" `"+P+"` of value `"+String(R)+"` "+("supplied to `"+b+"`, expected one of "+A+"."))}return l(h)}function V(c){function h(E,C,b,T,P){if(typeof c!="function")return new u("Property `"+P+"` of component `"+b+"` has invalid PropType notation inside objectOf.");var R=E[C],k=Z(R);if(k!=="object")return new u("Invalid "+T+" `"+P+"` of type "+("`"+k+"` supplied to `"+b+"`, expected an object."));for(var A in R)if(Vr(R,A)){var N=c(R,A,b,T,P+"."+A,be);if(N instanceof Error)return N}return null}return l(h)}function O(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&xe("Invalid argument supplied to oneOfType, expected an instance of array."),tr;for(var h=0;h<c.length;h++){var E=c[h];if(typeof E!="function")return xe("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Tr(E)+" at index "+h+"."),tr}function C(b,T,P,R,k){for(var A=[],N=0;N<c.length;N++){var X=c[N],G=X(b,T,P,R,k,be);if(G==null)return null;G.data&&Vr(G.data,"expectedType")&&A.push(G.data.expectedType)}var se=A.length>0?", expected one of type ["+A.join(", ")+"]":"";return new u("Invalid "+R+" `"+k+"` supplied to "+("`"+P+"`"+se+"."))}return l(C)}function $(){function c(h,E,C,b,T){return q(h[E])?null:new u("Invalid "+b+" `"+T+"` supplied to "+("`"+C+"`, expected a ReactNode."))}return l(c)}function x(c,h,E,C,b){return new u((c||"React class")+": "+h+" type `"+E+"."+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+b+"`.")}function D(c){function h(E,C,b,T,P){var R=E[C],k=Z(R);if(k!=="object")return new u("Invalid "+T+" `"+P+"` of type `"+k+"` "+("supplied to `"+b+"`, expected `object`."));for(var A in c){var N=c[A];if(typeof N!="function")return x(b,T,P,A,oe(N));var X=N(R,A,b,T,P+"."+A,be);if(X)return X}return null}return l(h)}function B(c){function h(E,C,b,T,P){var R=E[C],k=Z(R);if(k!=="object")return new u("Invalid "+T+" `"+P+"` of type `"+k+"` "+("supplied to `"+b+"`, expected `object`."));var A=no({},E[C],c);for(var N in A){var X=c[N];if(Vr(c,N)&&typeof X!="function")return x(b,T,P,N,oe(X));if(!X)return new u("Invalid "+T+" `"+P+"` key `"+N+"` supplied to `"+b+"`.\nBad object: "+JSON.stringify(E[C],null," ")+`
|
3
|
-
Valid keys: `+JSON.stringify(Object.keys(c),null," "));var G=
|
4
|
-
`,space:" "}}function Te(e,r){for(var n="",t=0;t<r;t++)n+=" ";return n+e}function ke(e,r,n){n===void 0&&(n={});var t="";if(!r)return t;var i=n,o=i.indent,a=o===void 0?0:o,s=r.fallbacks;n.format===!1&&(a=-1/0);var
|
5
|
-
`);return i}return this.key+" "+this.value+";"},e}(),jo={"@charset":!0,"@import":!0,"@namespace":!0},Mo={onCreateRule:function(r,n,t){return r in jo?new Io(r,n,t):null}},gn=[yo,So,Co,To,No,Ao,Mo],Lo={process:!0},bn={force:!0,process:!0},Ne=function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var r=e.prototype;return r.add=function(t,i,o){var a=this.options,s=a.parent,u=a.sheet,l=a.jss,d=a.Renderer,p=a.generateId,v=a.scoped,y=L({classes:this.classes,parent:s,sheet:u,jss:l,Renderer:d,generateId:p,scoped:v,name:t,keyframes:this.keyframes,selector:void 0},o),w=t;t in this.raw&&(w=t+"-d"+this.counter++),this.raw[w]=i,w in this.classes&&(y.selector="."+rt(this.classes[w]));var S=Se(w,i,y);if(!S)return null;this.register(S);var F=y.index===void 0?this.index.length:y.index;return this.index.splice(F,0,S),S},r.replace=function(t,i,o){var a=this.get(t),s=this.index.indexOf(a);a&&this.remove(a);var u=o;return s!==-1&&(u=L({},o,{index:s})),this.add(t,i,u)},r.get=function(t){return this.map[t]},r.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},r.indexOf=function(t){return this.index.indexOf(t)},r.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},r.register=function(t){this.map[t.key]=t,t instanceof Gr?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof Kr&&this.keyframes&&(this.keyframes[t.name]=t.id)},r.unregister=function(t){delete this.map[t.key],t instanceof Gr?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof Kr&&delete this.keyframes[t.name]},r.update=function(){var t,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(t=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.get(t),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},r.updateOne=function(t,i,o){o===void 0&&(o=Lo);var a=this.options,s=a.jss.plugins,u=a.sheet;if(t.rules instanceof e){t.rules.update(i,o);return}var l=t.style;if(s.onUpdate(i,t,u,o),o.process&&l&&l!==t.style){s.onProcessStyle(t.style,t,u);for(var d in t.style){var p=t.style[d],v=l[d];p!==v&&t.prop(d,p,bn)}for(var y in l){var w=t.style[y],S=l[y];w==null&&w!==S&&t.prop(y,null,bn)}}},r.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=Pe(t),u=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],p=d.toString(t);!p&&!a||(i&&(i+=u),i+=p)}return i},e}(),wn=function(){function e(n,t){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=L({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ne(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var r=e.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(t,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(t,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},r.replaceRule=function(t,i,o){var a=this.rules.get(t);if(!a)return this.addRule(t,i,o);var s=this.rules.replace(t,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},r.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},r.addRules=function(t,i){var o=[];for(var a in t){var s=this.addRule(a,t[a],i);s&&o.push(s)}return o},r.getRule=function(t){return this.rules.get(t)},r.deleteRule=function(t){var i=typeof t=="object"?t:this.rules.get(t);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},r.indexOf=function(t){return this.rules.indexOf(t)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},r.updateOne=function(t,i,o){return this.rules.updateOne(t,i,o),this},r.toString=function(t){return this.rules.toString(t)},e}(),Do=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var r=e.prototype;return r.onCreateRule=function(t,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](t,i,o);if(s)return s}return null},r.onProcessRule=function(t){if(!t.isProcessed){for(var i=t.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](t,i);t.style&&this.onProcessStyle(t.style,t,i),t.isProcessed=!0}},r.onProcessStyle=function(t,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},r.onProcessSheet=function(t){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](t)},r.onUpdate=function(t,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](t,i,o,a)},r.onChangeValue=function(t,i,o){for(var a=t,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},r.use=function(t,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(t)===-1&&(o.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var u in s)u in a?a[u].push(s[u]):process.env.NODE_ENV!=="production"&&_(!1,'[JSS] Unknown hook "'+u+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Fo=function(){function e(){this.registry=[]}var r=e.prototype;return r.add=function(t){var i=this.registry,o=t.options.index;if(i.indexOf(t)===-1){if(i.length===0||o>=this.index){i.push(t);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,t);return}}},r.reset=function(){this.registry=[]},r.remove=function(t){var i=this.registry.indexOf(t);this.registry.splice(i,1)},r.toString=function(t){for(var i=t===void 0?{}:t,o=i.attached,a=ze(i,["attached"]),s=Pe(a),u=s.linebreak,l="",d=0;d<this.registry.length;d++){var p=this.registry[d];o!=null&&p.attached!==o||(l&&(l+=u),l+=p.toString(a))}return l},ar(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),Oe=new Fo,Zr=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Qr="2f1acc6c3a606b082e5eef5e54414ffb";Zr[Qr]==null&&(Zr[Qr]=0);var xn=Zr[Qr]++,Vo=1e10,et=function(r){r===void 0&&(r={});var n=0,t=function(o,a){n+=1,n>Vo&&process.env.NODE_ENV!=="production"&&_(!1,"[JSS] You might have a memory leak. Rule counter is at "+n+".");var s="",u="";return a&&(a.options.classNamePrefix&&(u=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),r.minify?""+(u||"c")+xn+s+n:u+o.key+"-"+xn+(s?"-"+s:"")+"-"+n};return t},Cn=function(r){var n;return function(){return n||(n=r()),n}},Wo=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},$o=function(r,n,t){try{var i=t;if(Array.isArray(t)&&(i=le(t)),r.attributeStyleMap)r.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;r.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},zo=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch(t){process.env.NODE_ENV!=="production"&&_(!1,'[JSS] DOMException "'+t.message+'" was thrown. Tried to remove property "'+n+'".')}},Bo=function(r,n){return r.selectorText=n,r.selectorText===n},En=Cn(function(){return document.querySelector("head")});function Uo(e,r){for(var n=0;n<e.length;n++){var t=e[n];if(t.attached&&t.options.index>r.index&&t.options.insertionPoint===r.insertionPoint)return t}return null}function qo(e,r){for(var n=e.length-1;n>=0;n--){var t=e[n];if(t.attached&&t.options.insertionPoint===r.insertionPoint)return t}return null}function Ho(e){for(var r=En(),n=0;n<r.childNodes.length;n++){var t=r.childNodes[n];if(t.nodeType===8&&t.nodeValue.trim()===e)return t}return null}function Yo(e){var r=Oe.registry;if(r.length>0){var n=Uo(r,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=qo(r,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var t=e.insertionPoint;if(t&&typeof t=="string"){var i=Ho(t);if(i)return{parent:i.parentNode,node:i.nextSibling};process.env.NODE_ENV!=="production"&&_(!1,'[JSS] Insertion point "'+t+'" not found.')}return!1}function Jo(e,r){var n=r.insertionPoint,t=Yo(r);if(t!==!1&&t.parent){t.parent.insertBefore(e,t.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o?o.insertBefore(e,i.nextSibling):process.env.NODE_ENV!=="production"&&_(!1,"[JSS] Insertion point is not in the DOM.");return}En().appendChild(e)}var Go=Cn(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Sn=function(r,n,t){try{"insertRule"in r?r.insertRule(n,t):"appendRule"in r&&r.appendRule(n)}catch(i){return process.env.NODE_ENV!=="production"&&_(!1,"[JSS] "+i.message),!1}return r.cssRules[t]},Pn=function(r,n){var t=r.cssRules.length;return n===void 0||n>t?t:n},Ko=function(){var r=document.createElement("style");return r.textContent=`
|
2
|
+
"use strict";var ki=Object.create;var $e=Object.defineProperty;var Ni=Object.getOwnPropertyDescriptor;var Ai=Object.getOwnPropertyNames;var _i=Object.getPrototypeOf,Ii=Object.prototype.hasOwnProperty;var ee=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ji=(e,r)=>{for(var n in r)$e(e,n,{get:r[n],enumerable:!0})},kt=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ai(r))!Ii.call(e,i)&&i!==n&&$e(e,i,{get:()=>r[i],enumerable:!(t=Ni(r,i))||t.enumerable});return e};var fe=(e,r,n)=>(n=e!=null?ki(_i(e)):{},kt(r||!e||!e.__esModule?$e(n,"default",{value:e,enumerable:!0}):n,e)),Mi=e=>kt($e({},"__esModule",{value:!0}),e);var _t=ee(j=>{"use strict";var J=typeof Symbol=="function"&&Symbol.for,Nr=J?Symbol.for("react.element"):60103,Ar=J?Symbol.for("react.portal"):60106,Be=J?Symbol.for("react.fragment"):60107,Ue=J?Symbol.for("react.strict_mode"):60108,qe=J?Symbol.for("react.profiler"):60114,He=J?Symbol.for("react.provider"):60109,Ye=J?Symbol.for("react.context"):60110,_r=J?Symbol.for("react.async_mode"):60111,Je=J?Symbol.for("react.concurrent_mode"):60111,Ge=J?Symbol.for("react.forward_ref"):60112,Ke=J?Symbol.for("react.suspense"):60113,Di=J?Symbol.for("react.suspense_list"):60120,Xe=J?Symbol.for("react.memo"):60115,Ze=J?Symbol.for("react.lazy"):60116,Fi=J?Symbol.for("react.block"):60121,Vi=J?Symbol.for("react.fundamental"):60117,Wi=J?Symbol.for("react.responder"):60118,$i=J?Symbol.for("react.scope"):60119;function Q(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Nr:switch(e=e.type,e){case _r:case Je:case Be:case qe:case Ue:case Ke:return e;default:switch(e=e&&e.$$typeof,e){case Ye:case Ge:case Ze:case Xe:case He:return e;default:return r}}case Ar:return r}}}function At(e){return Q(e)===Je}j.AsyncMode=_r;j.ConcurrentMode=Je;j.ContextConsumer=Ye;j.ContextProvider=He;j.Element=Nr;j.ForwardRef=Ge;j.Fragment=Be;j.Lazy=Ze;j.Memo=Xe;j.Portal=Ar;j.Profiler=qe;j.StrictMode=Ue;j.Suspense=Ke;j.isAsyncMode=function(e){return At(e)||Q(e)===_r};j.isConcurrentMode=At;j.isContextConsumer=function(e){return Q(e)===Ye};j.isContextProvider=function(e){return Q(e)===He};j.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr};j.isForwardRef=function(e){return Q(e)===Ge};j.isFragment=function(e){return Q(e)===Be};j.isLazy=function(e){return Q(e)===Ze};j.isMemo=function(e){return Q(e)===Xe};j.isPortal=function(e){return Q(e)===Ar};j.isProfiler=function(e){return Q(e)===qe};j.isStrictMode=function(e){return Q(e)===Ue};j.isSuspense=function(e){return Q(e)===Ke};j.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Be||e===Je||e===qe||e===Ue||e===Ke||e===Di||typeof e=="object"&&e!==null&&(e.$$typeof===Ze||e.$$typeof===Xe||e.$$typeof===He||e.$$typeof===Ye||e.$$typeof===Ge||e.$$typeof===Vi||e.$$typeof===Wi||e.$$typeof===$i||e.$$typeof===Fi)};j.typeOf=Q});var It=ee(M=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,t=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,V=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function $(m){return typeof m=="string"||typeof m=="function"||m===t||m===l||m===o||m===i||m===p||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===w||m.$$typeof===y||m.$$typeof===a||m.$$typeof===s||m.$$typeof===d||m.$$typeof===F||m.$$typeof===V||m.$$typeof===O||m.$$typeof===S)}function x(m){if(typeof m=="object"&&m!==null){var kr=m.$$typeof;switch(kr){case r:var We=m.type;switch(We){case f:case l:case t:case o:case i:case p:return We;default:var Ot=We&&We.$$typeof;switch(Ot){case s:case d:case w:case y:case a:return Ot;default:return kr}}case n:return kr}}}var D=f,B=l,q=s,re=a,Z=r,ie=d,Tr=t,Or=w,c=y,h=n,E=o,C=i,b=p,T=!1;function P(m){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(m)||x(m)===f}function R(m){return x(m)===l}function k(m){return x(m)===s}function _(m){return x(m)===a}function N(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function K(m){return x(m)===d}function G(m){return x(m)===t}function se(m){return x(m)===w}function wi(m){return x(m)===y}function Ci(m){return x(m)===n}function Ei(m){return x(m)===o}function Ti(m){return x(m)===i}function Oi(m){return x(m)===p}M.AsyncMode=D,M.ConcurrentMode=B,M.ContextConsumer=q,M.ContextProvider=re,M.Element=Z,M.ForwardRef=ie,M.Fragment=Tr,M.Lazy=Or,M.Memo=c,M.Portal=h,M.Profiler=E,M.StrictMode=C,M.Suspense=b,M.isAsyncMode=P,M.isConcurrentMode=R,M.isContextConsumer=k,M.isContextProvider=_,M.isElement=N,M.isForwardRef=K,M.isFragment=G,M.isLazy=se,M.isMemo=wi,M.isPortal=Ci,M.isProfiler=Ei,M.isStrictMode=Ti,M.isSuspense=Oi,M.isValidElementType=$,M.typeOf=x}()});var Qe=ee((uf,Ir)=>{"use strict";process.env.NODE_ENV==="production"?Ir.exports=_t():Ir.exports=It()});var Lr=ee((lf,Vt)=>{"use strict";var jr=Qe(),zi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ui={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mr={};Mr[jr.ForwardRef]=Ui;Mr[jr.Memo]=Dt;function jt(e){return jr.isMemo(e)?Dt:Mr[e.$$typeof]||zi}var qi=Object.defineProperty,Hi=Object.getOwnPropertyNames,Mt=Object.getOwnPropertySymbols,Yi=Object.getOwnPropertyDescriptor,Ji=Object.getPrototypeOf,Lt=Object.prototype;function Ft(e,r,n){if(typeof r!="string"){if(Lt){var t=Ji(r);t&&t!==Lt&&Ft(e,t,n)}var i=Hi(r);Mt&&(i=i.concat(Mt(r)));for(var o=jt(e),a=jt(r),s=0;s<i.length;++s){var f=i[s];if(!Bi[f]&&!(n&&n[f])&&!(a&&a[f])&&!(o&&o[f])){var l=Yi(r,f);try{qi(e,f,l)}catch{}}}}return e}Vt.exports=Ft});var zt=ee((df,$t)=>{"use strict";var Wt=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable;function Qi(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function eo(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;var t=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(t.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}$t.exports=eo()?Object.assign:function(e,r){for(var n,t=Qi(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)Xi.call(n,a)&&(t[a]=n[a]);if(Wt){i=Wt(n);for(var s=0;s<i.length;s++)Zi.call(n,i[s])&&(t[i[s]]=n[i[s]])}}return t}});var er=ee((pf,Bt)=>{"use strict";var ro="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Bt.exports=ro});var Dr=ee((hf,Ut)=>{"use strict";Ut.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Gt=ee((mf,Jt)=>{"use strict";var Fr=function(){};process.env.NODE_ENV!=="production"&&(qt=er(),rr={},Ht=Dr(),Fr=function(e){var r="Warning: "+e;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});var qt,rr,Ht;function Yt(e,r,n,t,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(Ht(e,o)){var a;try{if(typeof e[o]!="function"){var s=Error((t||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[o](r,o,t,n,null,qt)}catch(l){a=l}if(a&&!(a instanceof Error)&&Fr((t||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in rr)){rr[a.message]=!0;var f=i?i():"";Fr("Failed "+n+" type: "+a.message+(f??""))}}}}Yt.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(rr={})};Jt.exports=Yt});var Zt=ee((vf,Xt)=>{"use strict";var to=Qe(),no=zt(),be=er(),Vr=Dr(),Kt=Gt(),xe=function(){};process.env.NODE_ENV!=="production"&&(xe=function(e){var r="Warning: "+e;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});function tr(){return null}Xt.exports=function(e,r){var n=typeof Symbol=="function"&&Symbol.iterator,t="@@iterator";function i(c){var h=c&&(n&&c[n]||c[t]);if(typeof h=="function")return h}var o="<<anonymous>>",a={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(),arrayOf:v,element:y(),elementType:w(),instanceOf:S,node:$(),objectOf:V,oneOf:F,oneOfType:O,shape:D,exact:B};function s(c,h){return c===h?c!==0||1/c===1/h:c!==c&&h!==h}function f(c,h){this.message=c,this.data=h&&typeof h=="object"?h:{},this.stack=""}f.prototype=Error.prototype;function l(c){if(process.env.NODE_ENV!=="production")var h={},E=0;function C(T,P,R,k,_,N,K){if(k=k||o,N=N||R,K!==be){if(r){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=k+":"+R;!h[se]&&E<3&&(xe("You are manually calling a React.PropTypes validation function for the `"+N+"` prop on `"+k+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),h[se]=!0,E++)}}return P[R]==null?T?P[R]===null?new f("The "+_+" `"+N+"` is marked as required "+("in `"+k+"`, but its value is `null`.")):new f("The "+_+" `"+N+"` is marked as required in "+("`"+k+"`, but its value is `undefined`.")):null:c(P,R,k,_,N)}var b=C.bind(null,!1);return b.isRequired=C.bind(null,!0),b}function d(c){function h(E,C,b,T,P,R){var k=E[C],_=Z(k);if(_!==c){var N=ie(k);return new f("Invalid "+T+" `"+P+"` of type "+("`"+N+"` supplied to `"+b+"`, expected ")+("`"+c+"`."),{expectedType:c})}return null}return l(h)}function p(){return l(tr)}function v(c){function h(E,C,b,T,P){if(typeof c!="function")return new f("Property `"+P+"` of component `"+b+"` has invalid PropType notation inside arrayOf.");var R=E[C];if(!Array.isArray(R)){var k=Z(R);return new f("Invalid "+T+" `"+P+"` of type "+("`"+k+"` supplied to `"+b+"`, expected an array."))}for(var _=0;_<R.length;_++){var N=c(R,_,b,T,P+"["+_+"]",be);if(N instanceof Error)return N}return null}return l(h)}function y(){function c(h,E,C,b,T){var P=h[E];if(!e(P)){var R=Z(P);return new f("Invalid "+b+" `"+T+"` of type "+("`"+R+"` supplied to `"+C+"`, expected a single ReactElement."))}return null}return l(c)}function w(){function c(h,E,C,b,T){var P=h[E];if(!to.isValidElementType(P)){var R=Z(P);return new f("Invalid "+b+" `"+T+"` of type "+("`"+R+"` supplied to `"+C+"`, expected a single ReactElement type."))}return null}return l(c)}function S(c){function h(E,C,b,T,P){if(!(E[C]instanceof c)){var R=c.name||o,k=Or(E[C]);return new f("Invalid "+T+" `"+P+"` of type "+("`"+k+"` supplied to `"+b+"`, expected ")+("instance of `"+R+"`."))}return null}return l(h)}function F(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&(arguments.length>1?xe("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):xe("Invalid argument supplied to oneOf, expected an array.")),tr;function h(E,C,b,T,P){for(var R=E[C],k=0;k<c.length;k++)if(s(R,c[k]))return null;var _=JSON.stringify(c,function(K,G){var se=ie(G);return se==="symbol"?String(G):G});return new f("Invalid "+T+" `"+P+"` of value `"+String(R)+"` "+("supplied to `"+b+"`, expected one of "+_+"."))}return l(h)}function V(c){function h(E,C,b,T,P){if(typeof c!="function")return new f("Property `"+P+"` of component `"+b+"` has invalid PropType notation inside objectOf.");var R=E[C],k=Z(R);if(k!=="object")return new f("Invalid "+T+" `"+P+"` of type "+("`"+k+"` supplied to `"+b+"`, expected an object."));for(var _ in R)if(Vr(R,_)){var N=c(R,_,b,T,P+"."+_,be);if(N instanceof Error)return N}return null}return l(h)}function O(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&xe("Invalid argument supplied to oneOfType, expected an instance of array."),tr;for(var h=0;h<c.length;h++){var E=c[h];if(typeof E!="function")return xe("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Tr(E)+" at index "+h+"."),tr}function C(b,T,P,R,k){for(var _=[],N=0;N<c.length;N++){var K=c[N],G=K(b,T,P,R,k,be);if(G==null)return null;G.data&&Vr(G.data,"expectedType")&&_.push(G.data.expectedType)}var se=_.length>0?", expected one of type ["+_.join(", ")+"]":"";return new f("Invalid "+R+" `"+k+"` supplied to "+("`"+P+"`"+se+"."))}return l(C)}function $(){function c(h,E,C,b,T){return q(h[E])?null:new f("Invalid "+b+" `"+T+"` supplied to "+("`"+C+"`, expected a ReactNode."))}return l(c)}function x(c,h,E,C,b){return new f((c||"React class")+": "+h+" type `"+E+"."+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+b+"`.")}function D(c){function h(E,C,b,T,P){var R=E[C],k=Z(R);if(k!=="object")return new f("Invalid "+T+" `"+P+"` of type `"+k+"` "+("supplied to `"+b+"`, expected `object`."));for(var _ in c){var N=c[_];if(typeof N!="function")return x(b,T,P,_,ie(N));var K=N(R,_,b,T,P+"."+_,be);if(K)return K}return null}return l(h)}function B(c){function h(E,C,b,T,P){var R=E[C],k=Z(R);if(k!=="object")return new f("Invalid "+T+" `"+P+"` of type `"+k+"` "+("supplied to `"+b+"`, expected `object`."));var _=no({},E[C],c);for(var N in _){var K=c[N];if(Vr(c,N)&&typeof K!="function")return x(b,T,P,N,ie(K));if(!K)return new f("Invalid "+T+" `"+P+"` key `"+N+"` supplied to `"+b+"`.\nBad object: "+JSON.stringify(E[C],null," ")+`
|
3
|
+
Valid keys: `+JSON.stringify(Object.keys(c),null," "));var G=K(R,N,b,T,P+"."+N,be);if(G)return G}return null}return l(h)}function q(c){switch(typeof c){case"number":case"string":case"undefined":return!0;case"boolean":return!c;case"object":if(Array.isArray(c))return c.every(q);if(c===null||e(c))return!0;var h=i(c);if(h){var E=h.call(c),C;if(h!==c.entries){for(;!(C=E.next()).done;)if(!q(C.value))return!1}else for(;!(C=E.next()).done;){var b=C.value;if(b&&!q(b[1]))return!1}}else return!1;return!0;default:return!1}}function re(c,h){return c==="symbol"?!0:h?h["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&h instanceof Symbol:!1}function Z(c){var h=typeof c;return Array.isArray(c)?"array":c instanceof RegExp?"object":re(h,c)?"symbol":h}function ie(c){if(typeof c>"u"||c===null)return""+c;var h=Z(c);if(h==="object"){if(c instanceof Date)return"date";if(c instanceof RegExp)return"regexp"}return h}function Tr(c){var h=ie(c);switch(h){case"array":case"object":return"an "+h;case"boolean":case"date":case"regexp":return"a "+h;default:return h}}function Or(c){return!c.constructor||!c.constructor.name?o:c.constructor.name}return a.checkPropTypes=Kt,a.resetWarningCache=Kt.resetWarningCache,a.PropTypes=a,a}});var tn=ee((yf,rn)=>{"use strict";var io=er();function Qt(){}function en(){}en.resetWarningCache=Qt;rn.exports=function(){function e(t,i,o,a,s,f){if(f!==io){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function r(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:en,resetWarningCache:Qt};return n.PropTypes=n,n}});var an=ee((gf,Wr)=>{"use strict";process.env.NODE_ENV!=="production"?(nn=Qe(),on=!0,Wr.exports=Zt()(nn.isElement,on)):Wr.exports=tn()();var nn,on});var sn=ee($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.default=oo;function oo(e){return e.displayName||e.name||(typeof e=="string"&&e.length>0?e:"Unknown")}});var rf={};ji(rf,{Bell:()=>xr,Button:()=>ae,Empty:()=>Sr,Inbox:()=>Tt,Loader:()=>Rr,NotificationError:()=>Pr,NotificationHeader:()=>wr,NotificationItem:()=>Cr,NotificationPopover:()=>Er,TeknifyInbox:()=>Tt});module.exports=Mi(rf);function Nt(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(n=Nt(e[r]))&&(t&&(t+=" "),t+=n)}else for(n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function Li(){for(var e,r,n=0,t="",i=arguments.length;n<i;n++)(e=arguments[n])&&(r=Nt(e))&&(t&&(t+=" "),t+=r);return t}var I=Li;var Ct=require("react");function L(){return L=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},L.apply(null,arguments)}function ze(e,r){if(e==null)return{};var n={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(r.indexOf(t)!==-1)continue;n[t]=e[t]}return n}var W=fe(require("react")),hs=fe(Lr());var te=fe(require("react"));var Gi=process.env.NODE_ENV==="production";function Ki(e,r){if(!Gi){if(e)return;var n="Warning: "+r;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var A=Ki;var Ee=fe(an()),fn=fe(Lr()),un=fe(sn());function nr(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function ir(){return ir=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},ir.apply(this,arguments)}function ao(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function or(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function so(e){var r=function(n){ao(t,n);function t(){for(var o,a=arguments.length,s=new Array(a),f=0;f<a;f++)s[f]=arguments[f];return o=n.call.apply(n,[this].concat(s))||this,nr(ue(ue(o)),"cachedTheme",void 0),nr(ue(ue(o)),"lastOuterTheme",void 0),nr(ue(ue(o)),"lastTheme",void 0),nr(ue(ue(o)),"renderProvider",function(l){var d=o.props.children;return te.default.createElement(e.Provider,{value:o.getTheme(l)},d)}),o}var i=t.prototype;return i.getTheme=function(a){if(this.props.theme!==this.lastTheme||a!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=a,this.lastTheme=this.props.theme,typeof this.lastTheme=="function"){var s=this.props.theme;this.cachedTheme=s(a),process.env.NODE_ENV!=="production"&&A(or(this.cachedTheme),"[ThemeProvider] Please return an object from your theme function")}else{var f=this.props.theme;process.env.NODE_ENV!=="production"&&A(or(f),"[ThemeProvider] Please make your theme prop a plain object"),this.cachedTheme=a?ir({},a,f):f}return this.cachedTheme},i.render=function(){var a=this.props.children;return a?te.default.createElement(e.Consumer,null,this.renderProvider):null},t}(te.default.Component);return process.env.NODE_ENV!=="production"&&(r.propTypes={children:Ee.default.node,theme:Ee.default.oneOfType([Ee.default.shape({}),Ee.default.func]).isRequired}),r}function fo(e){return function(n){var t=te.default.forwardRef(function(i,o){return te.default.createElement(e.Consumer,null,function(a){return process.env.NODE_ENV!=="production"&&A(or(a),"[theming] Please use withTheme only with the ThemeProvider"),te.default.createElement(n,ir({theme:a,ref:o},i))})});return process.env.NODE_ENV!=="production"&&(t.displayName="WithTheme("+(0,un.default)(n)+")"),(0,fn.default)(t,n),t}}function uo(e){var r=function(){var t=te.default.useContext(e);return process.env.NODE_ENV!=="production"&&A(or(t),"[theming] Please use useTheme only with the ThemeProvider"),t};return r}function ln(e){return{context:e,withTheme:fo(e),useTheme:uo(e),ThemeProvider:so(e)}}var zr=(0,te.createContext)(),Br=ln(zr),lo=Br.withTheme,co=Br.ThemeProvider,po=Br.useTheme;var cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ho=(typeof window>"u"?"undefined":cn(window))==="object"&&(typeof document>"u"?"undefined":cn(document))==="object"&&document.nodeType===9,oe=ho;function me(e){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},me(e)}function dn(e,r){if(me(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var t=n.call(e,r||"default");if(me(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pn(e){var r=dn(e,"string");return me(r)=="symbol"?r:r+""}function hn(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,pn(t.key),t)}}function ar(e,r,n){return r&&hn(e.prototype,r),n&&hn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sr(e,r){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},sr(e,r)}function Ur(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,sr(e,r)}function qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mo={}.constructor;function Jr(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Jr);if(e.constructor!==mo)return e;var r={};for(var n in e)r[n]=Jr(e[n]);return r}function Se(e,r,n){e===void 0&&(e="unnamed");var t=n.jss,i=Jr(r),o=t.plugins.onCreateRule(e,i,n);return o||(e[0]==="@"&&process.env.NODE_ENV!=="production"&&A(!1,"[JSS] Unknown rule "+e),null)}var mn=function(r,n){for(var t="",i=0;i<r.length&&r[i]!=="!important";i++)t&&(t+=n),t+=r[i];return t},le=function(r){if(!Array.isArray(r))return r;var n="";if(Array.isArray(r[0]))for(var t=0;t<r.length&&r[t]!=="!important";t++)n&&(n+=", "),n+=mn(r[t]," ");else n=mn(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function Pe(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
|
4
|
+
`,space:" "}}function Te(e,r){for(var n="",t=0;t<r;t++)n+=" ";return n+e}function ke(e,r,n){n===void 0&&(n={});var t="";if(!r)return t;var i=n,o=i.indent,a=o===void 0?0:o,s=r.fallbacks;n.format===!1&&(a=-1/0);var f=Pe(n),l=f.linebreak,d=f.space;if(e&&a++,s)if(Array.isArray(s))for(var p=0;p<s.length;p++){var v=s[p];for(var y in v){var w=v[y];w!=null&&(t&&(t+=l),t+=Te(y+":"+d+le(w)+";",a))}}else for(var S in s){var F=s[S];F!=null&&(t&&(t+=l),t+=Te(S+":"+d+le(F)+";",a))}for(var V in r){var O=r[V];O!=null&&V!=="fallbacks"&&(t&&(t+=l),t+=Te(V+":"+d+le(O)+";",a))}return!t&&!n.allowEmpty||!e?t:(a--,t&&(t=""+l+t+l),Te(""+e+d+"{"+t,a)+Te("}",a))}var vo=/([[\].#*$><+~=|^:(),"'`\s])/g,vn=typeof CSS<"u"&&CSS.escape,rt=function(e){return vn?vn(e):e.replace(vo,"\\$1")},Rn=function(){function e(n,t,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=t,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var r=e.prototype;return r.prop=function(t,i,o){if(i===void 0)return this.style[t];var a=o?o.force:!1;if(!a&&this.style[t]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,t,this));var f=s==null||s===!1,l=t in this.style;if(f&&!l&&!a)return this;var d=f&&l;if(d?delete this.style[t]:this.style[t]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,s),this;var p=this.options.sheet;return p&&p.attached&&process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},e}(),Gr=function(e){Ur(r,e);function r(t,i,o){var a;a=e.call(this,t,i,o)||this;var s=o.selector,f=o.scoped,l=o.sheet,d=o.generateId;return s?a.selectorText=s:f!==!1&&(a.id=d(qr(qr(a)),l),a.selectorText="."+rt(a.id)),a}var n=r.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=le(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?L({},i,{allowEmpty:!0}):i;return ke(this.selectorText,this.style,s)},ar(r,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(Rn),yo={onCreateRule:function(r,n,t){return r[0]==="@"||t.parent&&t.parent.type==="keyframes"?null:new Gr(r,n,t)}},Hr={indent:1,children:!0},go=/@([\w-]+)/,bo=function(){function e(n,t,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(go);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new Ne(L({},i,{parent:this}));for(var a in t)this.rules.add(a,t[a]);this.rules.process()}var r=e.prototype;return r.getRule=function(t){return this.rules.get(t)},r.indexOf=function(t){return this.rules.indexOf(t)},r.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(t){t===void 0&&(t=Hr);var i=Pe(t),o=i.linebreak;if(t.indent==null&&(t.indent=Hr.indent),t.children==null&&(t.children=Hr.children),t.children===!1)return this.query+" {}";var a=this.rules.toString(t);return a?this.query+" {"+o+a+o+"}":""},e}(),xo=/@container|@media|@supports\s+/,So={onCreateRule:function(r,n,t){return xo.test(r)?new bo(r,n,t):null}},Yr={indent:1,children:!0},Po=/@keyframes\s+([\w-]+)/,Kr=function(){function e(n,t,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(Po);o&&o[1]?this.name=o[1]:(this.name="noname",process.env.NODE_ENV!=="production"&&A(!1,"[JSS] Bad keyframes name "+n)),this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,f=i.generateId;this.id=a===!1?this.name:rt(f(this,s)),this.rules=new Ne(L({},i,{parent:this}));for(var l in t)this.rules.add(l,t[l],L({},i,{parent:this}));this.rules.process()}var r=e.prototype;return r.toString=function(t){t===void 0&&(t=Yr);var i=Pe(t),o=i.linebreak;if(t.indent==null&&(t.indent=Yr.indent),t.children==null&&(t.children=Yr.children),t.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(t);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},e}(),Ro=/@keyframes\s+/,wo=/\$([\w-]+)/g,Xr=function(r,n){return typeof r=="string"?r.replace(wo,function(t,i){return i in n?n[i]:(process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Referenced keyframes rule "'+i+'" is not defined.'),t)}):r},yn=function(r,n,t){var i=r[n],o=Xr(i,t);o!==i&&(r[n]=o)},Co={onCreateRule:function(r,n,t){return typeof r=="string"&&Ro.test(r)?new Kr(r,n,t):null},onProcessStyle:function(r,n,t){return n.type!=="style"||!t||("animation-name"in r&&yn(r,"animation-name",t.keyframes),"animation"in r&&yn(r,"animation",t.keyframes)),r},onChangeValue:function(r,n,t){var i=t.options.sheet;if(!i)return r;switch(n){case"animation":return Xr(r,i.keyframes);case"animation-name":return Xr(r,i.keyframes);default:return r}}},Eo=function(e){Ur(r,e);function r(){return e.apply(this,arguments)||this}var n=r.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?L({},i,{allowEmpty:!0}):i;return ke(this.key,this.style,s)},r}(Rn),To={onCreateRule:function(r,n,t){return t.parent&&t.parent.type==="keyframes"?new Eo(r,n,t):null}},Oo=function(){function e(n,t,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var r=e.prototype;return r.toString=function(t){var i=Pe(t),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=ke(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return ke(this.at,this.style,t)},e}(),ko=/@font-face/,No={onCreateRule:function(r,n,t){return ko.test(r)?new Oo(r,n,t):null}},Ao=function(){function e(n,t,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var r=e.prototype;return r.toString=function(t){return ke(this.key,this.style,t)},e}(),_o={onCreateRule:function(r,n,t){return r==="@viewport"||r==="@-ms-viewport"?new Ao(r,n,t):null}},Io=function(){function e(n,t,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=t,this.options=i}var r=e.prototype;return r.toString=function(t){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
|
5
|
+
`);return i}return this.key+" "+this.value+";"},e}(),jo={"@charset":!0,"@import":!0,"@namespace":!0},Mo={onCreateRule:function(r,n,t){return r in jo?new Io(r,n,t):null}},gn=[yo,So,Co,To,No,_o,Mo],Lo={process:!0},bn={force:!0,process:!0},Ne=function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var r=e.prototype;return r.add=function(t,i,o){var a=this.options,s=a.parent,f=a.sheet,l=a.jss,d=a.Renderer,p=a.generateId,v=a.scoped,y=L({classes:this.classes,parent:s,sheet:f,jss:l,Renderer:d,generateId:p,scoped:v,name:t,keyframes:this.keyframes,selector:void 0},o),w=t;t in this.raw&&(w=t+"-d"+this.counter++),this.raw[w]=i,w in this.classes&&(y.selector="."+rt(this.classes[w]));var S=Se(w,i,y);if(!S)return null;this.register(S);var F=y.index===void 0?this.index.length:y.index;return this.index.splice(F,0,S),S},r.replace=function(t,i,o){var a=this.get(t),s=this.index.indexOf(a);a&&this.remove(a);var f=o;return s!==-1&&(f=L({},o,{index:s})),this.add(t,i,f)},r.get=function(t){return this.map[t]},r.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},r.indexOf=function(t){return this.index.indexOf(t)},r.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},r.register=function(t){this.map[t.key]=t,t instanceof Gr?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof Kr&&this.keyframes&&(this.keyframes[t.name]=t.id)},r.unregister=function(t){delete this.map[t.key],t instanceof Gr?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof Kr&&delete this.keyframes[t.name]},r.update=function(){var t,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(t=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.get(t),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},r.updateOne=function(t,i,o){o===void 0&&(o=Lo);var a=this.options,s=a.jss.plugins,f=a.sheet;if(t.rules instanceof e){t.rules.update(i,o);return}var l=t.style;if(s.onUpdate(i,t,f,o),o.process&&l&&l!==t.style){s.onProcessStyle(t.style,t,f);for(var d in t.style){var p=t.style[d],v=l[d];p!==v&&t.prop(d,p,bn)}for(var y in l){var w=t.style[y],S=l[y];w==null&&w!==S&&t.prop(y,null,bn)}}},r.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=Pe(t),f=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],p=d.toString(t);!p&&!a||(i&&(i+=f),i+=p)}return i},e}(),wn=function(){function e(n,t){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=L({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ne(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var r=e.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(t,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(t,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},r.replaceRule=function(t,i,o){var a=this.rules.get(t);if(!a)return this.addRule(t,i,o);var s=this.rules.replace(t,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},r.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},r.addRules=function(t,i){var o=[];for(var a in t){var s=this.addRule(a,t[a],i);s&&o.push(s)}return o},r.getRule=function(t){return this.rules.get(t)},r.deleteRule=function(t){var i=typeof t=="object"?t:this.rules.get(t);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},r.indexOf=function(t){return this.rules.indexOf(t)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},r.updateOne=function(t,i,o){return this.rules.updateOne(t,i,o),this},r.toString=function(t){return this.rules.toString(t)},e}(),Do=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var r=e.prototype;return r.onCreateRule=function(t,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](t,i,o);if(s)return s}return null},r.onProcessRule=function(t){if(!t.isProcessed){for(var i=t.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](t,i);t.style&&this.onProcessStyle(t.style,t,i),t.isProcessed=!0}},r.onProcessStyle=function(t,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},r.onProcessSheet=function(t){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](t)},r.onUpdate=function(t,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](t,i,o,a)},r.onChangeValue=function(t,i,o){for(var a=t,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},r.use=function(t,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(t)===-1&&(o.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var f in s)f in a?a[f].push(s[f]):process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Unknown hook "'+f+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Fo=function(){function e(){this.registry=[]}var r=e.prototype;return r.add=function(t){var i=this.registry,o=t.options.index;if(i.indexOf(t)===-1){if(i.length===0||o>=this.index){i.push(t);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,t);return}}},r.reset=function(){this.registry=[]},r.remove=function(t){var i=this.registry.indexOf(t);this.registry.splice(i,1)},r.toString=function(t){for(var i=t===void 0?{}:t,o=i.attached,a=ze(i,["attached"]),s=Pe(a),f=s.linebreak,l="",d=0;d<this.registry.length;d++){var p=this.registry[d];o!=null&&p.attached!==o||(l&&(l+=f),l+=p.toString(a))}return l},ar(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),Oe=new Fo,Zr=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Qr="2f1acc6c3a606b082e5eef5e54414ffb";Zr[Qr]==null&&(Zr[Qr]=0);var xn=Zr[Qr]++,Vo=1e10,et=function(r){r===void 0&&(r={});var n=0,t=function(o,a){n+=1,n>Vo&&process.env.NODE_ENV!=="production"&&A(!1,"[JSS] You might have a memory leak. Rule counter is at "+n+".");var s="",f="";return a&&(a.options.classNamePrefix&&(f=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),r.minify?""+(f||"c")+xn+s+n:f+o.key+"-"+xn+(s?"-"+s:"")+"-"+n};return t},Cn=function(r){var n;return function(){return n||(n=r()),n}},Wo=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},$o=function(r,n,t){try{var i=t;if(Array.isArray(t)&&(i=le(t)),r.attributeStyleMap)r.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;r.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},zo=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch(t){process.env.NODE_ENV!=="production"&&A(!1,'[JSS] DOMException "'+t.message+'" was thrown. Tried to remove property "'+n+'".')}},Bo=function(r,n){return r.selectorText=n,r.selectorText===n},En=Cn(function(){return document.querySelector("head")});function Uo(e,r){for(var n=0;n<e.length;n++){var t=e[n];if(t.attached&&t.options.index>r.index&&t.options.insertionPoint===r.insertionPoint)return t}return null}function qo(e,r){for(var n=e.length-1;n>=0;n--){var t=e[n];if(t.attached&&t.options.insertionPoint===r.insertionPoint)return t}return null}function Ho(e){for(var r=En(),n=0;n<r.childNodes.length;n++){var t=r.childNodes[n];if(t.nodeType===8&&t.nodeValue.trim()===e)return t}return null}function Yo(e){var r=Oe.registry;if(r.length>0){var n=Uo(r,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=qo(r,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var t=e.insertionPoint;if(t&&typeof t=="string"){var i=Ho(t);if(i)return{parent:i.parentNode,node:i.nextSibling};process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Insertion point "'+t+'" not found.')}return!1}function Jo(e,r){var n=r.insertionPoint,t=Yo(r);if(t!==!1&&t.parent){t.parent.insertBefore(e,t.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o?o.insertBefore(e,i.nextSibling):process.env.NODE_ENV!=="production"&&A(!1,"[JSS] Insertion point is not in the DOM.");return}En().appendChild(e)}var Go=Cn(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Sn=function(r,n,t){try{"insertRule"in r?r.insertRule(n,t):"appendRule"in r&&r.appendRule(n)}catch(i){return process.env.NODE_ENV!=="production"&&A(!1,"[JSS] "+i.message),!1}return r.cssRules[t]},Pn=function(r,n){var t=r.cssRules.length;return n===void 0||n>t?t:n},Ko=function(){var r=document.createElement("style");return r.textContent=`
|
6
6
|
`,r},Xo=function(){function e(n){this.getPropertyValue=Wo,this.setProperty=$o,this.removeProperty=zo,this.setSelector=Bo,this.hasInsertedRules=!1,this.cssRules=[],n&&Oe.add(n),this.sheet=n;var t=this.sheet?this.sheet.options:{},i=t.media,o=t.meta,a=t.element;this.element=a||Ko(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=Go();s&&this.element.setAttribute("nonce",s)}var r=e.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){Jo(this.element,this.sheet.options);var t=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},r.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
7
7
|
`)}},r.deploy=function(){var t=this.sheet;if(t){if(t.options.link){this.insertRules(t.rules);return}this.element.textContent=`
|
8
8
|
`+t.toString()+`
|
9
|
-
`}},r.insertRules=function(t,i){for(var o=0;o<t.index.length;o++)this.insertRule(t.index[o],o,i)},r.insertRule=function(t,i,o){if(o===void 0&&(o=this.element.sheet),t.rules){var a=t,s=o;if(t.type==="conditional"||t.type==="keyframes"){var
|
10
|
-
`+r.toString());return}var a=o.options.parent;if(a){var s=a.rules.raw[e.extend];ve(s,r,n,t)}return}if(Array.isArray(e.extend)){for(var
|
11
|
-
`+e.toString()),!1):(i.classes[e.key]+=" "+i.classes[o.key],!0):(process.env.NODE_ENV!=="production"&&
|
12
|
-
`+e.toString()),!1)}return i.classes[e.key]+=" "+r,!0}function ba(){function e(r,n){return"composes"in r&&(lt(n,r.composes),delete r.composes),r}return{onProcessStyle:e}}var Dn=ba;var xa=/[A-Z]/g,Sa=/^ms-/,ct={};function Pa(e){return"-"+e.toLowerCase()}function Ra(e){if(ct.hasOwnProperty(e))return ct[e];var r=e.replace(xa,Pa);return ct[e]=Sa.test(r)?"-"+r:r}var dt=Ra;function lr(e){var r={};for(var n in e){var t=n.indexOf("--")===0?n:dt(n);r[t]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(lr):r.fallbacks=lr(e.fallbacks)),r}function wa(){function e(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=lr(n[t]);return n}return lr(n)}function r(n,t,i){if(t.indexOf("--")===0)return n;var o=dt(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:r}}var Fn=wa;var
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jn(e){return Un(e)||qn(e)||Hn(e)||Yn()}var Me="",ht="",Zn="",Qn="",Ia=ae&&"ontouchstart"in document.documentElement;if(ae){pr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Gn=document.createElement("p"),hr=Gn.style,Kn="Transform";for(mr in pr)if(mr+Kn in hr){Me=mr,ht=pr[mr];break}Me==="Webkit"&&"msHyphens"in hr&&(Me="ms",ht=pr.ms,Qn="edge"),Me==="Webkit"&&"-apple-trailing-word"in hr&&(Zn="apple")}var pr,Gn,hr,Kn,mr,g={js:Me,css:ht,vendor:Zn,browser:Qn,isTouch:Ia};function ei(e){return e[1]==="-"||g.js==="ms"?e:"@"+g.css+"keyframes"+e.substr(10)}var ja={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:g.js==="ms"?"-webkit-"+r:g.css+r}},Ma={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:g.js==="Webkit"?g.css+"print-"+r:r}},La=/[-\s]+(.)?/g;function Da(e,r){return r?r.toUpperCase():""}function mt(e){return e.replace(La,Da)}function pe(e){return mt("-"+e)}var Fa={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(g.js==="Webkit"){var t="mask-image";if(mt(t)in n)return r;if(g.js+pe(t)in n)return g.css+r}return r}},Va={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:g.vendor==="apple"&&!g.isTouch?g.css+r:r}},Wa={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:g.css+r}},$a={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:g.css+r}},za={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:g.js==="Webkit"||g.js==="ms"&&g.browser!=="edge"?g.css+r:r}},Ba={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:g.js==="Moz"||g.js==="ms"||g.vendor==="apple"?g.css+r:r}},Ua={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(g.js==="Webkit"){var t="WebkitColumn"+pe(r);return t in n?g.css+"column-"+r:!1}if(g.js==="Moz"){var i="page"+pe(r);return i in n?"page-"+r:!1}return!1}},qa={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(g.js==="Moz")return r;var t=r.replace("-inline","");return g.js+pe(t)in n?g.css+t:!1}},Ha={supportedProperty:function(r,n){return mt(r)in n?r:!1}},Ya={supportedProperty:function(r,n){var t=pe(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:g.js+t in n?g.css+r:g.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},Ja={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:g.js==="ms"?""+g.css+r:r}},Ga={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:g.js==="ms"?g.css+"scroll-chaining":r}},Ka={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Xa={supportedProperty:function(r,n){var t=Ka[r];return t&&g.js+pe(t)in n?g.css+t:!1}},ri={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Za=Object.keys(ri),Qa=function(r){return g.css+r},es={supportedProperty:function(r,n,t){var i=t.multiple;if(Za.indexOf(r)>-1){var o=ri[r];if(!Array.isArray(o))return g.js+pe(o)in n?g.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(g.js+pe(o[0])in n))return!1;return o.map(Qa)}return!1}},ti=[ja,Ma,Fa,Va,Wa,$a,za,Ba,Ua,qa,Ha,Ya,Ja,Ga,Xa,es],Xn=ti.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),rs=ti.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,Jn(r.noPrefill)),e},[]),Le,ye={};if(ae){Le=document.createElement("p"),vr=window.getComputedStyle(document.documentElement,"");for(yr in vr)isNaN(yr)||(ye[vr[yr]]=vr[yr]);rs.forEach(function(e){return delete ye[e]})}var vr,yr;function gr(e,r){if(r===void 0&&(r={}),!Le)return e;if(process.env.NODE_ENV!=="benchmark"&&ye[e]!=null)return ye[e];(e==="transition"||e==="transform")&&(r[e]=e in Le.style);for(var n=0;n<Xn.length&&(ye[e]=Xn[n](e,Le.style,r),!ye[e]);n++);try{Le.style[e]=""}catch{return!1}return ye[e]}var Ce={},ts={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ns=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,de;function is(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?gr(r):", "+gr(n);return t||r||n}ae&&(de=document.createElement("p"));function vt(e,r){var n=r;if(!de||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(process.env.NODE_ENV!=="benchmark"&&Ce[t]!=null)return Ce[t];try{de.style[e]=n}catch{return Ce[t]=!1,!1}if(ts[e])n=n.replace(ns,is);else if(de.style[e]===""&&(n=g.css+n,n==="-ms-flex"&&(de.style[e]="-ms-flexbox"),de.style[e]=n,de.style[e]===""))return Ce[t]=!1,!1;return de.style[e]="",Ce[t]=n,Ce[t]}function os(){function e(i){if(i.type==="keyframes"){var o=i;o.at=ei(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,u=gr(o);u&&u!==o&&(s=!0);var l=!1,d=vt(u,le(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[u||o]=d||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function t(i,o){return vt(o,le(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}var ni=os;function as(){var e=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var ii=as;var ss=function(r){return r===void 0&&(r={}),{plugins:[On(),Nn(r.observable),_n(),In(),jn(),Ln(),Dn(),Fn(),Wn(r.defaultUnit),Bn(),ni(),ii()]}},br=ss;function us(e){var r={};return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var oi=us;var fs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|default|defer|dir|disabled|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|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)-.*))$/,Qf=oi(function(e){return fs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var ls=1e4,cs=_e(br()),ds=function(r){r===void 0&&(r=cs);var n=new Map,t=0,i,o=function(){return(!i||i.rules.index.length>ls)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,u=JSON.stringify(s),l=n.get(u);if(l)return l.className;var d=[];for(var p in s){var v=s[p];if(!Array.isArray(v)){d.push(v);continue}for(var y=0;y<v.length;y++)d.push(v[y])}for(var w={},S=[],F=0;F<d.length;F++){var V=d[F];if(V){var O=V;if(typeof V=="string"){var $=n.get(V);$&&($.labels.length&&S.push.apply(S,$.labels),O=$.style)}O.label&&S.indexOf(O.label)===-1&&S.push(O.label),Object.assign(w,O)}}delete w.label;var x=S.length===0?"css":S.join("-"),D=x+"-"+t++;o().addRule(D,w);var B=o().classes[D],q={style:w,labels:S,className:B};return n.set(u,q),n.set(B,q),B}return a.getSheet=o,a},ps=ds(),ai=ps;var ms=Number.MIN_SAFE_INTEGER||-1e9,vs=function(){return ms++},ys=(0,W.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!ae}),si=new Map,gt=function(r,n){var t=r.managers;if(t)return t[n]||(t[n]=new tt),t[n];var i=si.get(n);return i||(i=new tt,si.set(n,i)),i},ui=function(r){var n=r.sheet,t=r.context,i=r.index,o=r.theme;if(n){var a=gt(t,i);a.manage(o),t.registry&&t.registry.add(n)}},gs=function(r){if(r.sheet){var n=gt(r.context,r.index);n.unmanage(r.theme)}},bs=_e(br()),li=new WeakMap,ci=function(r){return li.get(r)},xs=function(r,n){li.set(r,n)},Ss=function(r){var n=r.styles;return typeof n!="function"?n:(process.env.NODE_ENV!=="production"&&_(n.length!==0,"[JSS] <"+(r.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),n(r.theme))};function Ps(e,r){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var t=e.context.classNamePrefix||"";e.name&&!n&&(t+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+=typeof e.styles=="function"?"Themed":"Unthemed",L({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:t,link:r,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var Rs=function(r){if(!r.context.disableStylesGeneration){var n=gt(r.context,r.index),t=n.get(r.theme);if(t)return t;var i=r.context.jss||bs,o=Ss(r),a=nt(o),s=i.createStyleSheet(o,Ps(r,a!==null));return xs(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},ws=function(r,n){for(var t in n)r.deleteRule(n[t])},Cs=function(r,n,t){for(var i in t)n.updateOne(t[i],r)},Es=function(r,n){var t=ci(r);if(t){var i={};for(var o in t.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,t.dynamicStyles[o]),u=a;u<r.rules.index.length;u++){var l=r.rules.index[u];r.updateOne(l,n),i[s===l?o:l.key]=l}return i}},Ts=function(r,n){if(!n)return r.classes;var t=ci(r);if(!t)return r.classes;var i={};for(var o in t.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function fi(e){return e?W.useEffect:W.default.useInsertionEffect||W.useLayoutEffect}var yt={},U=function(r,n){n===void 0&&(n={});var t=n,i=t.index,o=i===void 0?vs():i,a=t.theming,s=t.name,u=ze(t,["index","theming","name"]),l=a&&a.context||zr,d=function(y){return typeof r=="function"&&(y||(0,W.useContext)(l))||yt},p={};return function(y){var w=(0,W.useRef)(!0),S=(0,W.useContext)(ys),F=d(y&&y.theme),V=(0,W.useMemo)(function(){var D=Rs({context:S,styles:r,name:s,theme:F,index:o,sheetOptions:u});return D&&S.isSSR&&ui({index:o,context:S,sheet:D,theme:F}),[D,D?Es(D,y):null]},[S,F]),O=V[0],$=V[1];fi(S.isSSR)(function(){O&&$&&!w.current&&Cs(y,O,$)},[y]),fi(S.isSSR)(function(){return O&&ui({index:o,context:S,sheet:O,theme:F}),function(){O&&(gs({index:o,context:S,sheet:O,theme:F}),$&&ws(O,$))}},[O]);var x=(0,W.useMemo)(function(){return O&&$?Ts(O,$):p},[O,$]);return(0,W.useDebugValue)(x),(0,W.useDebugValue)(F===yt?"No theme":F),(0,W.useEffect)(function(){w.current=!1}),x}};var vl=Symbol("react-jss-styled");var Os=function(r){return r===void 0&&(r=ai),function(t,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return W.createElement.apply(void 0,o)}},yl=Os();var H="teknify";var bt=require("react/jsx-runtime"),ks=e=>(0,bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),xt=ks;var St=require("react/jsx-runtime"),Ns=e=>(0,St.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,St.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})}),Pt=Ns;var Rt=require("react/jsx-runtime"),_s=e=>(0,Rt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,Rt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),wt=_s;var De=require("react/jsx-runtime"),As=U({button:e=>({width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#fff",border:"none",cursor:"pointer",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:"#f5f5f5"},...e.active&&{backgroundColor:"#f1f1f1"}}),badge:{position:"absolute",top:0,right:0,padding:"2px 6px",height:18,minWidth:18,backgroundColor:"red",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:100,color:"#fff",fontSize:10,visibility:"hidden",opacity:0,transition:"all 0.2s ease-in-out",scale:.8,userSelect:"none"},badgeOpen:{visibility:"visible",opacity:1,scale:1}},{name:H}),Is=({className:e,counts:r,active:n,...t})=>{let i=As({counts:r,active:n}),o=(0,Ct.useMemo)(()=>r<=99?`${r}`:"99+",[r]),a=(0,Ct.useMemo)(()=>r>0,[r]);return(0,De.jsxs)("button",{...t,className:`${i.button} ${e}`,children:[(0,De.jsx)(Pt,{width:24,height:24}),(0,De.jsx)("div",{className:I(i.badge,a&&i.badgeOpen),children:o})]})},xr=Is;var di=require("react/jsx-runtime"),js=U({button:e=>({textDecoration:"none",background:`var(--${e.variant}-color)`,borderRadius:"var(--border-radius)",color:e.variant==="tertiary"?"#000":"#fff",fontWeight:500,border:"none",cursor:"pointer",fontSize:12,...e.icon?{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"}:{minWidth:100,padding:"8px 12px"},"&:hover":{background:`var(--${e.variant}-color-darker)`}})},{name:H}),Ms=({className:e,variant:r="tertiary",icon:n=!1,...t})=>{let i=js({variant:r,icon:n});return(0,di.jsx)("button",{...t,className:I(i.button,e)})},ne=Ms;var pi=require("react");var Ls=require("@teknify/js"),Et=require("react");var Ds=require("react/jsx-runtime"),he=(0,Et.createContext)({applicationId:"",subscriberId:""});var hi=require("react/jsx-runtime"),Fs=U({empty:{textAlign:"center",padding:"20px 0"}},{name:H}),Vs=()=>{let e=Fs(),{locale:r}=(0,pi.useContext)(he);return(0,hi.jsx)("div",{className:I(e.empty),children:r.components.Empty.noNotifications})},Sr=Vs;var mi=require("react/jsx-runtime"),Ws=U({error:{padding:10}}),$s=({message:e})=>{let r=Ws();return(0,mi.jsx)("div",{className:I(r.error),children:e})},Pr=$s;var Ve=require("react"),Ri=ue(require("react-infinite-scroller"),1);var Y=require("react");var vi=()=>{let{client:e}=(0,Y.useContext)(he),[r,n]=(0,Y.useState)([]),[t,i]=(0,Y.useState)(!1),[o,a]=(0,Y.useState)(null),[s,u]=(0,Y.useState)(!1),[l,d]=(0,Y.useState)(!0),[p,v]=(0,Y.useState)(!0),[y,w]=(0,Y.useState)(),[S,F]=(0,Y.useState)(0),V=(0,Y.useCallback)(async x=>{try{n(D=>D.map(B=>B._id===x?{...B,isRead:!0}:B)),await e.notification.markAsRead(x)}catch{n(B=>B.map(q=>q._id===x?{...q,isRead:!1}:q))}},[]),O=(0,Y.useCallback)(async()=>{if(!(s||t))try{u(!0);let x=await e.notification.getNotifications({...y?{cursor:y}:{}});n(D=>[...D,...x.data.filter(B=>!D.find(q=>q._id===B._id)).map(B=>({...B,markAsRead:()=>V(B._id)}))]),v(!!x.pagination.continueCursor),w(x.pagination.continueCursor),F(x.unread)}catch(x){i(!0),x instanceof Error?a(x):a(new Error("Unknown error"))}finally{u(!1),d(!1)}},[s,y,V,t,e]);(0,Y.useEffect)(()=>{O()},[]),(0,Y.useEffect)(()=>{let x=(D,{counts:B})=>{F(B.unread),n(q=>[...D.filter(re=>{let Z=q.findIndex(oe=>oe._id===re._id);return Z!==-1?(q[Z]={...re,markAsRead:()=>V(re._id)},!1):!0}).map(re=>({...re,markAsRead:()=>V(re._id)})),...q])};return e.notification.on(x),()=>{e.notification.off(x)}},[V,e]);let $=(0,Y.useCallback)(()=>{O()},[O]);return(0,Y.useEffect)(()=>{n([]),v(!0),w(void 0),d(!0),O()},[e]),{notifications:r,isLoading:s,isFirstLoad:l,isError:t,error:o,hasMore:p,unread:S,fetchMore:$}};var yi=require("react");var gi=require("react/jsx-runtime"),zs=U({loader:{textAlign:"center",padding:"20px 0"}}),Bs=()=>{let e=zs(),{locale:r}=(0,yi.useContext)(he);return(0,gi.jsx)("div",{className:I(e.loader),children:r.components.Loader.loading})},Rr=Bs;var bi=require("react");var Fe=require("react/jsx-runtime"),Us=U({notificationHeader:{padding:"10px 15px",borderBottom:"1px solid #0001",display:"flex",justifyContent:"space-between",background:"var(--card-background-color)",borderRadius:"5px 5px 0 0",height:36,alignItems:"center"},notificationHeaderTitle:{fontSize:15,fontWeight:600,flex:1}},{name:H}),qs=()=>{let e=Us(),{locale:r}=(0,bi.useContext)(he);return(0,Fe.jsxs)("div",{className:I(e.notificationHeader),children:[(0,Fe.jsx)("h2",{className:I(e.notificationHeaderTitle),children:r.components.NotificationHeader.notifications}),(0,Fe.jsx)("div",{})]})},wr=qs;var Si=ue(require("sanitize-html"),1);var ge=require("react/jsx-runtime"),Hs=U({actions:{position:"absolute",top:5,right:5,display:"flex",gap:5,padding:0,background:"#fafafa",borderRadius:5},button:{background:"transparent","&:hover":{background:"#fafafa"}}},{name:H}),Ys=({notification:e})=>{let r=Hs();return(0,ge.jsxs)("div",{className:I(r.actions,`${H}-actions`),children:[!e.isRead&&(0,ge.jsx)(ne,{icon:!0,onClick:e.markAsRead,className:I(r.button),children:(0,ge.jsx)(wt,{width:12,height:12})}),(0,ge.jsx)(ne,{icon:!0,className:I(r.button),children:(0,ge.jsx)(xt,{width:12,height:12})})]})},xi=Ys;var K=require("react/jsx-runtime"),Js=U({notificationItem:{padding:"10px 15px",display:"flex",flexWrap:"wrap",columnGap:10,flexDirection:"column",margin:10,background:"var(--card-background-color)",borderRadius:10,border:"1px solid #ddd",position:"relative",[`& .${H}-actions`]:{visibility:"hidden",opacity:0,transition:"0.3s ease-in-out"},[`&:hover .${H}-actions`]:{visibility:"visible",opacity:1}},notificationItemImage:{width:24,height:24,objectFit:"cover"},notificationItemTitle:{fontSize:14,fontWeight:600,paddingBottom:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},notificationItemBody:{fontSize:14,lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},notificationItemActions:{display:"flex",gap:8,marginTop:10,alignItems:"center",justifyContent:"flex-end",width:"100%"},unreadDot:{width:7,height:7,borderRadius:100,background:"var(--primary-color)",position:"relative","&::before":{content:'""',position:"absolute",top:-3,left:-3,width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:100,background:"var(--primary-color)",opacity:.2}}},{name:H}),Gs=({notification:e})=>{let r=Js();return(0,K.jsxs)("div",{className:I(r.notificationItem),children:[(0,K.jsxs)("div",{style:{display:"flex",gap:10,width:"100%"},children:[(0,K.jsx)("div",{children:e.icon&&(0,K.jsx)("img",{src:e.icon,alt:e.title,width:32,height:32,className:I(r.notificationItemImage)})}),(0,K.jsxs)("div",{style:{flex:1,overflow:"hidden"},children:[(0,K.jsx)("h3",{className:I(r.notificationItemTitle),children:e.title}),(0,K.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,Si.default)(e.message)},className:I(r.notificationItemBody)})]}),!e.isRead&&(0,K.jsx)("div",{className:I(r.unreadDot)})]}),(0,K.jsxs)("div",{className:I(r.notificationItemActions),children:[e.secondary_action&&(0,K.jsx)("a",{href:e.secondary_action.href,target:e.secondary_action.target,rel:e.secondary_action.rel,children:(0,K.jsx)(ne,{variant:"secondary",children:e.secondary_action.label})}),e.primary_action&&(0,K.jsx)("a",{href:e.primary_action.href,target:e.primary_action.target,rel:e.primary_action.rel,children:(0,K.jsx)(ne,{variant:"primary",children:e.primary_action.label})})]}),(0,K.jsx)(xi,{notification:e})]})},Cr=Gs;var ie=require("react");var Pi=require("react/jsx-runtime"),Ks=U({popover:{width:"100%",height:"100%",maxWidth:400,maxHeight:500,boxShadow:"0 10px 40px #0001",position:"fixed",background:"#fff",borderRadius:10,visibility:"hidden",opacity:0,scale:.8,transition:"all 0.3s",backgroundColor:"var(--background-color)",border:"1px solid var(--card-background-color)"},popoverOpen:{top:0,left:0,visibility:"visible",opacity:1,scale:1}},{name:H}),Xs=({open:e,anchorElement:r,onClose:n,children:t})=>{let i=Ks(),[o,a]=(0,ie.useState)(null),[s,u]=(0,ie.useState)(typeof window>"u"?0:window.innerWidth),l=(0,ie.useMemo)(()=>{if(!r)return 0;let v=r.getBoundingClientRect();return v.top+v.height+20},[r,s]),d=(0,ie.useMemo)(()=>r?r.getBoundingClientRect().left+10:0,[r,s]),p=(0,ie.useMemo)(()=>{if(!o||!r)return!0;let v=r.getBoundingClientRect(),y=o.getBoundingClientRect();return v.left+y.width>s},[o,r,s]);return(0,ie.useEffect)(()=>{let v=()=>{e&&(n==null||n())};return window.addEventListener("click",v),()=>{window.removeEventListener("click",v)}},[e]),(0,ie.useEffect)(()=>{let v=()=>{u(window.innerWidth)};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[]),(0,Pi.jsx)("div",{className:I(i.popover,e&&i.popoverOpen),style:{top:l,left:d,...p?{transform:"translateX(calc(-100% + 20px))"}:{}},ref:a,onClick:v=>{v.stopPropagation()},children:t})},Er=Xs;var z=require("react/jsx-runtime"),Zs=U({inboxContent:{height:"100%",display:"flex",flexDirection:"column"},inboxContentList:{flex:1,overflowY:"auto"}},{name:H}),Qs={Bell:xr,Button:ne,NotificationHeader:wr,Empty:Sr,Loader:Rr,NotificationItem:Cr,NotificationPopover:Er,NotificationError:Pr},eu=({components:e})=>{let[r,n]=(0,Ve.useState)(null),[t,i]=(0,Ve.useState)(!1),{Bell:o,Empty:a,Loader:s,NotificationHeader:u,NotificationItem:l,NotificationPopover:d,NotificationError:p}={...Qs,...e},v=(0,Ve.useCallback)(()=>{i(D=>!D)},[]),{notifications:y,unread:w,isFirstLoad:S,hasMore:F,fetchMore:V,isError:O,error:$}=vi(),x=Zs();return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(o,{onClick:D=>{D.stopPropagation(),v()},ref:n,active:t,counts:w}),(0,z.jsx)(d,{open:t,anchorElement:r,onClose:v,children:(0,z.jsxs)("div",{className:I(x.inboxContent),children:[(0,z.jsx)(u,{}),(0,z.jsx)("div",{className:I(x.inboxContentList),children:(0,z.jsxs)(Ri.default,{loadMore:V,hasMore:F&&!O,loader:(0,z.jsx)(s,{},0),useWindow:!1,children:[S?(0,z.jsx)(z.Fragment,{}):(0,z.jsx)(z.Fragment,{children:y.length?(0,z.jsx)(z.Fragment,{children:y.map(D=>(0,z.jsx)(l,{notification:D},D._id))}):(0,z.jsx)(a,{})}),O&&(0,z.jsx)(p,{message:$==null?void 0:$.message})]})})]})})]})},Tt=eu;0&&(module.exports={Bell,Button,Empty,Inbox,Loader,NotificationError,NotificationHeader,NotificationItem,NotificationPopover,TeknifyInbox});
|
9
|
+
`}},r.insertRules=function(t,i){for(var o=0;o<t.index.length;o++)this.insertRule(t.index[o],o,i)},r.insertRule=function(t,i,o){if(o===void 0&&(o=this.element.sheet),t.rules){var a=t,s=o;if(t.type==="conditional"||t.type==="keyframes"){var f=Pn(o,i);if(s=Sn(o,a.toString({children:!1}),f),s===!1)return!1;this.refCssRule(t,f,s)}return this.insertRules(a.rules,s),s}var l=t.toString();if(!l)return!1;var d=Pn(o,i),p=Sn(o,l,d);return p===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(t,d,p),p)},r.refCssRule=function(t,i,o){t.renderable=o,t.options.parent instanceof wn&&this.cssRules.splice(i,0,o)},r.deleteRule=function(t){var i=this.element.sheet,o=this.indexOf(t);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},r.indexOf=function(t){return this.cssRules.indexOf(t)},r.replaceRule=function(t,i){var o=this.indexOf(t);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},r.getRules=function(){return this.element.sheet.cssRules},e}(),Zo=0,Qo=function(){function e(n){this.id=Zo++,this.version="10.10.0",this.plugins=new Do,this.options={id:{minify:!1},createGenerateId:et,Renderer:oe?Xo:null,plugins:[]},this.generateId=et({minify:!1});for(var t=0;t<gn.length;t++)this.plugins.use(gn[t],{queue:"internal"});this.setup(n)}var r=e.prototype;return r.setup=function(t){return t===void 0&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=L({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),t.insertionPoint!=null&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},r.createStyleSheet=function(t,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Oe.index===0?0:Oe.index+1);var s=new wn(t,L({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},r.removeStyleSheet=function(t){return t.detach(),Oe.remove(t),this},r.createRule=function(t,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof t=="object")return this.createRule(void 0,t,i);var a=L({},o,{name:t,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=Se(t,i,a);return s&&this.plugins.onProcessRule(s),s},r.use=function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){t.plugins.use(s)}),this},e}(),Ae=function(r){return new Qo(r)},tt=function(){function e(){this.length=0,this.sheets=new WeakMap}var r=e.prototype;return r.get=function(t){var i=this.sheets.get(t);return i&&i.sheet},r.add=function(t,i){this.sheets.has(t)||(this.length++,this.sheets.set(t,{sheet:i,refs:0}))},r.manage=function(t){var i=this.sheets.get(t);if(i)return i.refs===0&&i.sheet.attach(),i.refs++,i.sheet;A(!1,"[JSS] SheetsManager: can't find sheet to manage")},r.unmanage=function(t){var i=this.sheets.get(t);i?i.refs>0&&(i.refs--,i.refs===0&&i.sheet.detach()):A(!1,"SheetsManager: can't find sheet to unmanage")},ar(e,[{key:"size",get:function(){return this.length}}]),e}(),fr=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function nt(e){var r=null;for(var n in e){var t=e[n],i=typeof t;if(i==="function")r||(r={}),r[n]=t;else if(i==="object"&&t!==null&&!Array.isArray(t)){var o=nt(t);o&&(r||(r={}),r[n]=o)}}return r}var zf=Ae();var Tn=Date.now(),it="fnValues"+Tn,ot="fnStyle"+ ++Tn,ea=function(){return{onCreateRule:function(n,t,i){if(typeof t!="function")return null;var o=Se(n,{},i);return o[ot]=t,o},onProcessStyle:function(n,t){if(it in t||ot in t)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return t[it]=i,n},onUpdate:function(n,t,i,o){var a=t,s=a[ot];if(s&&(a.style=s(n)||{},process.env.NODE_ENV==="development")){for(var f in a.style)if(typeof a.style[f]=="function"){process.env.NODE_ENV!=="production"&&A(!1,"[JSS] Function values inside function rules are not supported.");break}}var l=a[it];if(l)for(var d in l)a.prop(d,l[d](n),o)}}},On=ea;function at(e){var r,n=e.Symbol;return typeof n=="function"?n.observable?r=n.observable:(r=n("observable"),n.observable=r):r="@@observable",r}var Re;typeof self<"u"?Re=self:typeof window<"u"?Re=window:typeof global<"u"?Re=global:typeof module<"u"?Re=module:Re=Function("return this")();var ra=at(Re),st=ra;var kn=function(r){return r&&r[st]&&r===r[st]()},ta=function(r){return{onCreateRule:function(t,i,o){if(!kn(i))return null;var a=i,s=Se(t,{},o);return a.subscribe(function(f){for(var l in f)s.prop(l,f[l],r)}),s},onProcessRule:function(t){if(!(t&&t.type!=="style")){var i=t,o=i.style,a=function(d){var p=o[d];if(!kn(p))return"continue";delete o[d],p.subscribe({next:function(y){i.prop(d,y,r)}})};for(var s in o)var f=a(s)}}}},Nn=ta;var na=/;\n/,ia=function(r){for(var n={},t=r.split(na),i=0;i<t.length;i++){var o=(t[i]||"").trim();if(o){var a=o.indexOf(":");if(a===-1){process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Malformed CSS string "'+o+'"');continue}var s=o.substr(0,a).trim(),f=o.substr(a+1).trim();n[s]=f}}return n},oa=function(r){typeof r.style=="string"&&(r.style=ia(r.style))};function aa(){return{onProcessRule:oa}}var An=aa;var ce="@global",ft="@global ",sa=function(){function e(n,t,i){this.type="global",this.at=ce,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new Ne(L({},i,{parent:this}));for(var o in t)this.rules.add(o,t[o]);this.rules.process()}var r=e.prototype;return r.getRule=function(t){return this.rules.get(t)},r.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(t){return this.rules.indexOf(t)},r.toString=function(t){return this.rules.toString(t)},e}(),fa=function(){function e(n,t,i){this.type="global",this.at=ce,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(ft.length);this.rule=i.jss.createRule(o,t,L({},i,{parent:this}))}var r=e.prototype;return r.toString=function(t){return this.rule?this.rule.toString(t):""},e}(),ua=/\s*,\s*/g;function _n(e,r){for(var n=e.split(ua),t="",i=0;i<n.length;i++)t+=r+" "+n[i].trim(),n[i+1]&&(t+=", ");return t}function la(e,r){var n=e.options,t=e.style,i=t?t[ce]:null;if(i){for(var o in i)r.addRule(o,i[o],L({},n,{selector:_n(o,e.selector)}));delete t[ce]}}function ca(e,r){var n=e.options,t=e.style;for(var i in t)if(!(i[0]!=="@"||i.substr(0,ce.length)!==ce)){var o=_n(i.substr(ce.length),e.selector);r.addRule(o,t[i],L({},n,{selector:o})),delete t[i]}}function da(){function e(n,t,i){if(!n)return null;if(n===ce)return new sa(n,t,i);if(n[0]==="@"&&n.substr(0,ft.length)===ft)return new fa(n,t,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function r(n,t){n.type!=="style"||!t||(la(n,t),ca(n,t))}return{onCreateRule:e,onProcessRule:r}}var In=da;var ur=function(r){return r&&typeof r=="object"&&!Array.isArray(r)},ut="extendCurrValue"+Date.now();function pa(e,r,n,t){var i=typeof e.extend;if(i==="string"){if(!n)return;var o=n.getRule(e.extend);if(!o)return;if(o===r){process.env.NODE_ENV!=="production"&&A(!1,`[JSS] A rule tries to extend itself
|
10
|
+
`+r.toString());return}var a=o.options.parent;if(a){var s=a.rules.raw[e.extend];ve(s,r,n,t)}return}if(Array.isArray(e.extend)){for(var f=0;f<e.extend.length;f++){var l=e.extend[f],d=typeof l=="string"?L({},e,{extend:l}):e.extend[f];ve(d,r,n,t)}return}for(var p in e.extend){if(p==="extend"){ve(e.extend.extend,r,n,t);continue}if(ur(e.extend[p])){p in t||(t[p]={}),ve(e.extend[p],r,n,t[p]);continue}t[p]=e.extend[p]}}function ha(e,r,n,t){for(var i in e)if(i!=="extend"){if(ur(t[i])&&ur(e[i])){ve(e[i],r,n,t[i]);continue}if(ur(e[i])){t[i]=ve(e[i],r,n);continue}t[i]=e[i]}}function ve(e,r,n,t){return t===void 0&&(t={}),pa(e,r,n,t),ha(e,r,n,t),t}function ma(){function e(n,t,i){return"extend"in n?ve(n,t,i):n}function r(n,t,i){if(t!=="extend")return n;if(n==null||n===!1){for(var o in i[ut])i.prop(o,null);return i[ut]=null,null}if(typeof n=="object"){for(var a in n)i.prop(a,n[a]);i[ut]=n}return null}return{onProcessStyle:e,onChangeValue:r}}var jn=ma;var Mn=/\s*,\s*/g,va=/&/g,ya=/\$([\w-]+)/g;function ga(){function e(i,o){return function(a,s){var f=i.getRule(s)||o&&o.getRule(s);return f?f.selector:(process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Could not find the referenced rule "'+s+'" in "'+(i.options.meta||i.toString())+'".'),s)}}function r(i,o){for(var a=o.split(Mn),s=i.split(Mn),f="",l=0;l<a.length;l++)for(var d=a[l],p=0;p<s.length;p++){var v=s[p];f&&(f+=", "),f+=v.indexOf("&")!==-1?v.replace(va,d):d+" "+v}return f}function n(i,o,a){if(a)return L({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var f=L({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete f.name,f}function t(i,o,a){if(o.type!=="style")return i;var s=o,f=s.options.parent,l,d;for(var p in i){var v=p.indexOf("&")!==-1,y=p[0]==="@";if(!(!v&&!y)){if(l=n(s,f,l),v){var w=r(p,s.selector);d||(d=e(f,a)),w=w.replace(ya,d);var S=s.key+"-"+p;"replaceRule"in f?f.replaceRule(S,i[p],L({},l,{selector:w})):f.addRule(S,i[p],L({},l,{selector:w}))}else y&&f.addRule(p,{},l).addRule(s.key,i[p],{selector:s.selector});delete i[p]}}return i}return{onProcessStyle:t}}var Ln=ga;function lt(e,r){if(!r)return!0;if(Array.isArray(r)){for(var n=0;n<r.length;n++){var t=lt(e,r[n]);if(!t)return!1}return!0}if(r.indexOf(" ")>-1)return lt(e,r.split(" "));var i=e.options.parent;if(r[0]==="$"){var o=i.getRule(r.substr(1));return o?o===e?(process.env.NODE_ENV!=="production"&&A(!1,`[JSS] Cyclic composition detected.
|
11
|
+
`+e.toString()),!1):(i.classes[e.key]+=" "+i.classes[o.key],!0):(process.env.NODE_ENV!=="production"&&A(!1,`[JSS] Referenced rule is not defined.
|
12
|
+
`+e.toString()),!1)}return i.classes[e.key]+=" "+r,!0}function ba(){function e(r,n){return"composes"in r&&(lt(n,r.composes),delete r.composes),r}return{onProcessStyle:e}}var Dn=ba;var xa=/[A-Z]/g,Sa=/^ms-/,ct={};function Pa(e){return"-"+e.toLowerCase()}function Ra(e){if(ct.hasOwnProperty(e))return ct[e];var r=e.replace(xa,Pa);return ct[e]=Sa.test(r)?"-"+r:r}var dt=Ra;function lr(e){var r={};for(var n in e){var t=n.indexOf("--")===0?n:dt(n);r[t]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(lr):r.fallbacks=lr(e.fallbacks)),r}function wa(){function e(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=lr(n[t]);return n}return lr(n)}function r(n,t,i){if(t.indexOf("--")===0)return n;var o=dt(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:r}}var Fn=wa;var u=fr&&CSS?CSS.px:"px",cr=fr&&CSS?CSS.ms:"ms",we=fr&&CSS?CSS.percent:"%",Ca={"animation-delay":cr,"animation-duration":cr,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":we,"perspective-origin-y":we,"transform-origin":we,"transform-origin-x":we,"transform-origin-y":we,"transform-origin-z":we,"transition-delay":cr,"transition-duration":cr,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function Vn(e){var r=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},t={};for(var i in e)t[i]=e[i],t[i.replace(r,n)]=e[i];return t}var Ea=Vn(Ca);function _e(e,r,n){if(r==null)return r;if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=_e(e,r[t],n);else if(typeof r=="object")if(e==="fallbacks")for(var i in r)r[i]=_e(i,r[i],n);else for(var o in r)r[o]=_e(e+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[e]||Ea[e];return a&&!(r===0&&a===u)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ta(e){e===void 0&&(e={});var r=Vn(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=_e(a,i[a],r);return i}function t(i,o){return _e(o,i,r)}return{onProcessStyle:n,onChangeValue:t}}var Wn=Ta;var Oa={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},ka={position:!0,size:!0},dr={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},pt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function Na(e,r,n){return e.map(function(t){return zn(t,r,n,!1,!0)})}function $n(e,r,n,t){return n[r]==null?e:e.length===0?[]:Array.isArray(e[0])?$n(e[0],r,n,t):typeof e[0]=="object"?Na(e,r,t):[e]}function zn(e,r,n,t,i){if(!(dr[r]||pt[r]))return[];var o=[];if(pt[r]&&(e=Aa(e,n,pt[r],t)),Object.keys(e).length)for(var a in dr[r]){if(e[a]){Array.isArray(e[a])?o.push(ka[a]===null?e[a]:e[a].join(" ")):o.push(e[a]);continue}dr[r][a]!=null&&o.push(dr[r][a])}return!o.length||i?o:[o]}function Aa(e,r,n,t){for(var i in n){var o=n[i];if(typeof e[i]<"u"&&(t||!r.prop(o))){var a,s=Ie((a={},a[o]=e[i],a),r)[o];t?r.style.fallbacks[o]=s:r.style[o]=s}delete e[i]}return e}function Ie(e,r,n){for(var t in e){var i=e[t];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(t==="fallbacks"){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=Ie(e.fallbacks[o],r,!0);continue}e[t]=$n(i,t,Oa,r),e[t].length||delete e[t]}}else if(typeof i=="object"){if(t==="fallbacks"){e.fallbacks=Ie(e.fallbacks,r,!0);continue}e[t]=zn(i,t,r,n),e[t].length||delete e[t]}else e[t]===""&&delete e[t]}return e}function _a(){function e(r,n){if(!r||n.type!=="style")return r;if(Array.isArray(r)){for(var t=0;t<r.length;t++)r[t]=Ie(r[t],n);return r}return Ie(r,n)}return{onProcessStyle:e}}var Bn=_a;function je(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function Un(e){if(Array.isArray(e))return je(e)}function qn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hn(e,r){if(e){if(typeof e=="string")return je(e,r);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,r):void 0}}function Yn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jn(e){return Un(e)||qn(e)||Hn(e)||Yn()}var Me="",ht="",Zn="",Qn="",Ia=oe&&"ontouchstart"in document.documentElement;if(oe){pr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Gn=document.createElement("p"),hr=Gn.style,Kn="Transform";for(mr in pr)if(mr+Kn in hr){Me=mr,ht=pr[mr];break}Me==="Webkit"&&"msHyphens"in hr&&(Me="ms",ht=pr.ms,Qn="edge"),Me==="Webkit"&&"-apple-trailing-word"in hr&&(Zn="apple")}var pr,Gn,hr,Kn,mr,g={js:Me,css:ht,vendor:Zn,browser:Qn,isTouch:Ia};function ei(e){return e[1]==="-"||g.js==="ms"?e:"@"+g.css+"keyframes"+e.substr(10)}var ja={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:g.js==="ms"?"-webkit-"+r:g.css+r}},Ma={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:g.js==="Webkit"?g.css+"print-"+r:r}},La=/[-\s]+(.)?/g;function Da(e,r){return r?r.toUpperCase():""}function mt(e){return e.replace(La,Da)}function pe(e){return mt("-"+e)}var Fa={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(g.js==="Webkit"){var t="mask-image";if(mt(t)in n)return r;if(g.js+pe(t)in n)return g.css+r}return r}},Va={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:g.vendor==="apple"&&!g.isTouch?g.css+r:r}},Wa={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:g.css+r}},$a={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:g.css+r}},za={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:g.js==="Webkit"||g.js==="ms"&&g.browser!=="edge"?g.css+r:r}},Ba={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:g.js==="Moz"||g.js==="ms"||g.vendor==="apple"?g.css+r:r}},Ua={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(g.js==="Webkit"){var t="WebkitColumn"+pe(r);return t in n?g.css+"column-"+r:!1}if(g.js==="Moz"){var i="page"+pe(r);return i in n?"page-"+r:!1}return!1}},qa={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(g.js==="Moz")return r;var t=r.replace("-inline","");return g.js+pe(t)in n?g.css+t:!1}},Ha={supportedProperty:function(r,n){return mt(r)in n?r:!1}},Ya={supportedProperty:function(r,n){var t=pe(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:g.js+t in n?g.css+r:g.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},Ja={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:g.js==="ms"?""+g.css+r:r}},Ga={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:g.js==="ms"?g.css+"scroll-chaining":r}},Ka={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Xa={supportedProperty:function(r,n){var t=Ka[r];return t&&g.js+pe(t)in n?g.css+t:!1}},ri={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Za=Object.keys(ri),Qa=function(r){return g.css+r},es={supportedProperty:function(r,n,t){var i=t.multiple;if(Za.indexOf(r)>-1){var o=ri[r];if(!Array.isArray(o))return g.js+pe(o)in n?g.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(g.js+pe(o[0])in n))return!1;return o.map(Qa)}return!1}},ti=[ja,Ma,Fa,Va,Wa,$a,za,Ba,Ua,qa,Ha,Ya,Ja,Ga,Xa,es],Xn=ti.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),rs=ti.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,Jn(r.noPrefill)),e},[]),Le,ye={};if(oe){Le=document.createElement("p"),vr=window.getComputedStyle(document.documentElement,"");for(yr in vr)isNaN(yr)||(ye[vr[yr]]=vr[yr]);rs.forEach(function(e){return delete ye[e]})}var vr,yr;function gr(e,r){if(r===void 0&&(r={}),!Le)return e;if(process.env.NODE_ENV!=="benchmark"&&ye[e]!=null)return ye[e];(e==="transition"||e==="transform")&&(r[e]=e in Le.style);for(var n=0;n<Xn.length&&(ye[e]=Xn[n](e,Le.style,r),!ye[e]);n++);try{Le.style[e]=""}catch{return!1}return ye[e]}var Ce={},ts={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ns=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,de;function is(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?gr(r):", "+gr(n);return t||r||n}oe&&(de=document.createElement("p"));function vt(e,r){var n=r;if(!de||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(process.env.NODE_ENV!=="benchmark"&&Ce[t]!=null)return Ce[t];try{de.style[e]=n}catch{return Ce[t]=!1,!1}if(ts[e])n=n.replace(ns,is);else if(de.style[e]===""&&(n=g.css+n,n==="-ms-flex"&&(de.style[e]="-ms-flexbox"),de.style[e]=n,de.style[e]===""))return Ce[t]=!1,!1;return de.style[e]="",Ce[t]=n,Ce[t]}function os(){function e(i){if(i.type==="keyframes"){var o=i;o.at=ei(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,f=gr(o);f&&f!==o&&(s=!0);var l=!1,d=vt(f,le(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[f||o]=d||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function t(i,o){return vt(o,le(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}var ni=os;function as(){var e=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var ii=as;var ss=function(r){return r===void 0&&(r={}),{plugins:[On(),Nn(r.observable),An(),In(),jn(),Ln(),Dn(),Fn(),Wn(r.defaultUnit),Bn(),ni(),ii()]}},br=ss;function fs(e){var r={};return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var oi=fs;var us=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|default|defer|dir|disabled|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|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)-.*))$/,Qu=oi(function(e){return us.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var ls=1e4,cs=Ae(br()),ds=function(r){r===void 0&&(r=cs);var n=new Map,t=0,i,o=function(){return(!i||i.rules.index.length>ls)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,f=JSON.stringify(s),l=n.get(f);if(l)return l.className;var d=[];for(var p in s){var v=s[p];if(!Array.isArray(v)){d.push(v);continue}for(var y=0;y<v.length;y++)d.push(v[y])}for(var w={},S=[],F=0;F<d.length;F++){var V=d[F];if(V){var O=V;if(typeof V=="string"){var $=n.get(V);$&&($.labels.length&&S.push.apply(S,$.labels),O=$.style)}O.label&&S.indexOf(O.label)===-1&&S.push(O.label),Object.assign(w,O)}}delete w.label;var x=S.length===0?"css":S.join("-"),D=x+"-"+t++;o().addRule(D,w);var B=o().classes[D],q={style:w,labels:S,className:B};return n.set(f,q),n.set(B,q),B}return a.getSheet=o,a},ps=ds(),ai=ps;var ms=Number.MIN_SAFE_INTEGER||-1e9,vs=function(){return ms++},ys=(0,W.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!oe}),si=new Map,gt=function(r,n){var t=r.managers;if(t)return t[n]||(t[n]=new tt),t[n];var i=si.get(n);return i||(i=new tt,si.set(n,i)),i},fi=function(r){var n=r.sheet,t=r.context,i=r.index,o=r.theme;if(n){var a=gt(t,i);a.manage(o),t.registry&&t.registry.add(n)}},gs=function(r){if(r.sheet){var n=gt(r.context,r.index);n.unmanage(r.theme)}},bs=Ae(br()),li=new WeakMap,ci=function(r){return li.get(r)},xs=function(r,n){li.set(r,n)},Ss=function(r){var n=r.styles;return typeof n!="function"?n:(process.env.NODE_ENV!=="production"&&A(n.length!==0,"[JSS] <"+(r.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),n(r.theme))};function Ps(e,r){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var t=e.context.classNamePrefix||"";e.name&&!n&&(t+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+=typeof e.styles=="function"?"Themed":"Unthemed",L({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:t,link:r,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var Rs=function(r){if(!r.context.disableStylesGeneration){var n=gt(r.context,r.index),t=n.get(r.theme);if(t)return t;var i=r.context.jss||bs,o=Ss(r),a=nt(o),s=i.createStyleSheet(o,Ps(r,a!==null));return xs(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},ws=function(r,n){for(var t in n)r.deleteRule(n[t])},Cs=function(r,n,t){for(var i in t)n.updateOne(t[i],r)},Es=function(r,n){var t=ci(r);if(t){var i={};for(var o in t.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,t.dynamicStyles[o]),f=a;f<r.rules.index.length;f++){var l=r.rules.index[f];r.updateOne(l,n),i[s===l?o:l.key]=l}return i}},Ts=function(r,n){if(!n)return r.classes;var t=ci(r);if(!t)return r.classes;var i={};for(var o in t.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function ui(e){return e?W.useEffect:W.default.useInsertionEffect||W.useLayoutEffect}var yt={},U=function(r,n){n===void 0&&(n={});var t=n,i=t.index,o=i===void 0?vs():i,a=t.theming,s=t.name,f=ze(t,["index","theming","name"]),l=a&&a.context||zr,d=function(y){return typeof r=="function"&&(y||(0,W.useContext)(l))||yt},p={};return function(y){var w=(0,W.useRef)(!0),S=(0,W.useContext)(ys),F=d(y&&y.theme),V=(0,W.useMemo)(function(){var D=Rs({context:S,styles:r,name:s,theme:F,index:o,sheetOptions:f});return D&&S.isSSR&&fi({index:o,context:S,sheet:D,theme:F}),[D,D?Es(D,y):null]},[S,F]),O=V[0],$=V[1];ui(S.isSSR)(function(){O&&$&&!w.current&&Cs(y,O,$)},[y]),ui(S.isSSR)(function(){return O&&fi({index:o,context:S,sheet:O,theme:F}),function(){O&&(gs({index:o,context:S,sheet:O,theme:F}),$&&ws(O,$))}},[O]);var x=(0,W.useMemo)(function(){return O&&$?Ts(O,$):p},[O,$]);return(0,W.useDebugValue)(x),(0,W.useDebugValue)(F===yt?"No theme":F),(0,W.useEffect)(function(){w.current=!1}),x}};var vl=Symbol("react-jss-styled");var Os=function(r){return r===void 0&&(r=ai),function(t,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return W.createElement.apply(void 0,o)}},yl=Os();var H="teknify";var bt=require("react/jsx-runtime"),ks=e=>(0,bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),xt=ks;var St=require("react/jsx-runtime"),Ns=e=>(0,St.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,St.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})}),Pt=Ns;var Rt=require("react/jsx-runtime"),As=e=>(0,Rt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,Rt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),wt=As;var De=require("react/jsx-runtime"),_s=U({button:e=>({width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#fff",border:"none",cursor:"pointer",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:"#f5f5f5"},...e.active&&{backgroundColor:"#f1f1f1"}}),badge:{position:"absolute",top:0,right:0,padding:"2px 6px",height:18,minWidth:18,backgroundColor:"red",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:100,color:"#fff",fontSize:10,visibility:"hidden",opacity:0,transition:"all 0.2s ease-in-out",scale:.8,userSelect:"none"},badgeOpen:{visibility:"visible",opacity:1,scale:1}},{name:H}),Is=({className:e,counts:r,active:n,...t})=>{let i=_s({counts:r,active:n}),o=(0,Ct.useMemo)(()=>r<=99?`${r}`:"99+",[r]),a=(0,Ct.useMemo)(()=>r>0,[r]);return(0,De.jsxs)("button",{...t,className:`${i.button} ${e}`,children:[(0,De.jsx)(Pt,{width:24,height:24}),(0,De.jsx)("div",{className:I(i.badge,a&&i.badgeOpen),children:o})]})},xr=Is;var di=require("react/jsx-runtime"),js=U({button:e=>({textDecoration:"none",background:`var(--${e.variant}-color)`,borderRadius:"var(--border-radius)",color:e.variant==="tertiary"?"#000":"#fff",fontWeight:500,border:"none",cursor:"pointer",fontSize:12,...e.icon?{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"}:{minWidth:100,padding:"8px 12px"},"&:hover":{background:`var(--${e.variant}-color-darker)`}})},{name:H}),Ms=({className:e,variant:r="tertiary",icon:n=!1,...t})=>{let i=js({variant:r,icon:n});return(0,di.jsx)("button",{...t,className:I(i.button,e)})},ae=Ms;var pi=require("react");var Ls=require("@tnf-dev/js"),Et=require("react");var Ds=require("react/jsx-runtime"),he=(0,Et.createContext)({applicationId:"",subscriberId:""});var hi=require("react/jsx-runtime"),Fs=U({empty:{textAlign:"center",padding:"20px 0"}},{name:H}),Vs=()=>{let e=Fs(),{locale:r}=(0,pi.useContext)(he);return(0,hi.jsx)("div",{className:I(e.empty),children:r.components.Empty.noNotifications})},Sr=Vs;var mi=require("react/jsx-runtime"),Ws=U({error:{padding:10}}),$s=({message:e})=>{let r=Ws();return(0,mi.jsx)("div",{className:I(r.error),children:e})},Pr=$s;var Ve=require("react"),Ri=fe(require("react-infinite-scroller"),1);var Y=require("react");var vi=()=>{let{client:e}=(0,Y.useContext)(he),[r,n]=(0,Y.useState)([]),[t,i]=(0,Y.useState)(!1),[o,a]=(0,Y.useState)(null),[s,f]=(0,Y.useState)(!1),[l,d]=(0,Y.useState)(!0),[p,v]=(0,Y.useState)(!0),[y,w]=(0,Y.useState)(),[S,F]=(0,Y.useState)(0),V=(0,Y.useCallback)(async x=>{try{n(D=>D.map(B=>B._id===x?{...B,isRead:!0}:B)),await e.notification.markAsRead(x)}catch{n(B=>B.map(q=>q._id===x?{...q,isRead:!1}:q))}},[]),O=(0,Y.useCallback)(async()=>{if(!(s||t))try{f(!0);let x=await e.notification.getNotifications({...y?{cursor:y}:{}});n(D=>[...D,...x.data.filter(B=>!D.find(q=>q._id===B._id)).map(B=>({...B,markAsRead:()=>V(B._id)}))]),v(!!x.pagination.continueCursor),w(x.pagination.continueCursor),F(x.unread)}catch(x){i(!0),x instanceof Error?a(x):a(new Error("Unknown error"))}finally{f(!1),d(!1)}},[s,y,V,t,e]);(0,Y.useEffect)(()=>{O()},[]),(0,Y.useEffect)(()=>{let x=(D,{counts:B})=>{F(B.unread),n(q=>[...D.filter(re=>{let Z=q.findIndex(ie=>ie._id===re._id);return Z!==-1?(q[Z]={...re,markAsRead:()=>V(re._id)},!1):!0}).map(re=>({...re,markAsRead:()=>V(re._id)})),...q])};return e.notification.on(x),()=>{e.notification.off(x)}},[V,e]);let $=(0,Y.useCallback)(()=>{O()},[O]);return(0,Y.useEffect)(()=>{n([]),v(!0),w(void 0),d(!0),O()},[e]),{notifications:r,isLoading:s,isFirstLoad:l,isError:t,error:o,hasMore:p,unread:S,fetchMore:$}};var yi=require("react");var gi=require("react/jsx-runtime"),zs=U({loader:{textAlign:"center",padding:"20px 0"}}),Bs=()=>{let e=zs(),{locale:r}=(0,yi.useContext)(he);return(0,gi.jsx)("div",{className:I(e.loader),children:r.components.Loader.loading})},Rr=Bs;var bi=require("react");var Fe=require("react/jsx-runtime"),Us=U({notificationHeader:{padding:"10px 15px",borderBottom:"1px solid #0001",display:"flex",justifyContent:"space-between",background:"var(--card-background-color)",borderRadius:"5px 5px 0 0",height:36,alignItems:"center"},notificationHeaderTitle:{fontSize:15,fontWeight:600,flex:1}},{name:H}),qs=()=>{let e=Us(),{locale:r}=(0,bi.useContext)(he);return(0,Fe.jsxs)("div",{className:I(e.notificationHeader),children:[(0,Fe.jsx)("h2",{className:I(e.notificationHeaderTitle),children:r.components.NotificationHeader.notifications}),(0,Fe.jsx)("div",{})]})},wr=qs;var Si=fe(require("sanitize-html"),1);var ge=require("react/jsx-runtime"),Hs=U({actions:{position:"absolute",top:5,right:5,display:"flex",gap:5,padding:0,background:"#fafafa",borderRadius:5},button:{background:"transparent","&:hover":{background:"#fafafa"}}},{name:H}),Ys=({notification:e})=>{let r=Hs();return(0,ge.jsxs)("div",{className:I(r.actions,`${H}-actions`),children:[!e.isRead&&(0,ge.jsx)(ae,{icon:!0,onClick:e.markAsRead,className:I(r.button),children:(0,ge.jsx)(wt,{width:12,height:12})}),(0,ge.jsx)(ae,{icon:!0,className:I(r.button),children:(0,ge.jsx)(xt,{width:12,height:12})})]})},xi=Ys;var X=require("react/jsx-runtime"),Js=U({notificationItem:{padding:"10px 15px",display:"flex",flexWrap:"wrap",columnGap:10,flexDirection:"column",margin:10,background:"var(--card-background-color)",borderRadius:10,border:"1px solid #ddd",position:"relative",[`& .${H}-actions`]:{visibility:"hidden",opacity:0,transition:"0.3s ease-in-out"},[`&:hover .${H}-actions`]:{visibility:"visible",opacity:1}},notificationItemImage:{width:24,height:24,objectFit:"cover"},notificationItemTitle:{fontSize:14,fontWeight:600,paddingBottom:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},notificationItemBody:{fontSize:14,lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},notificationItemActions:{display:"flex",gap:8,marginTop:10,alignItems:"center",justifyContent:"flex-end",width:"100%"},unreadDot:{width:7,height:7,borderRadius:100,background:"var(--primary-color)",position:"relative","&::before":{content:'""',position:"absolute",top:-3,left:-3,width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:100,background:"var(--primary-color)",opacity:.2}}},{name:H}),Gs=({notification:e})=>{var n;let r=Js();return(0,X.jsxs)("div",{className:I(r.notificationItem),children:[(0,X.jsxs)("div",{style:{display:"flex",gap:10,width:"100%"},children:[(0,X.jsx)("div",{children:e.icon&&(0,X.jsx)("img",{src:e.icon,alt:e.title,width:32,height:32,className:I(r.notificationItemImage)})}),(0,X.jsxs)("div",{style:{flex:1,overflow:"hidden"},children:[(0,X.jsx)("h3",{className:I(r.notificationItemTitle),children:e.title}),(0,X.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,Si.default)(e.message)},className:I(r.notificationItemBody)})]}),!e.isRead&&(0,X.jsx)("div",{className:I(r.unreadDot)})]}),(0,X.jsx)("div",{className:I(r.notificationItemActions),children:(n=e.actionButtons)==null?void 0:n.map(t=>(0,X.jsx)("a",{href:t.href,target:t.target,children:(0,X.jsx)(ae,{variant:"secondary",children:t.label})},t.href))}),(0,X.jsx)(xi,{notification:e})]})},Cr=Gs;var ne=require("react");var Pi=require("react/jsx-runtime"),Ks=U({popover:{width:"100%",height:"100%",maxWidth:400,maxHeight:500,boxShadow:"0 10px 40px #0001",position:"fixed",background:"#fff",borderRadius:10,visibility:"hidden",opacity:0,scale:.8,transition:"all 0.3s",backgroundColor:"var(--background-color)",border:"1px solid var(--card-background-color)"},popoverOpen:{top:0,left:0,visibility:"visible",opacity:1,scale:1}},{name:H}),Xs=({open:e,anchorElement:r,onClose:n,children:t})=>{let i=Ks(),[o,a]=(0,ne.useState)(null),[s,f]=(0,ne.useState)(typeof window>"u"?0:window.innerWidth),l=(0,ne.useMemo)(()=>{if(!r)return 0;let v=r.getBoundingClientRect();return v.top+v.height+20},[r,s]),d=(0,ne.useMemo)(()=>r?r.getBoundingClientRect().left+10:0,[r,s]),p=(0,ne.useMemo)(()=>{if(!o||!r)return!0;let v=r.getBoundingClientRect(),y=o.getBoundingClientRect();return v.left+y.width>s},[o,r,s]);return(0,ne.useEffect)(()=>{let v=()=>{e&&(n==null||n())};return window.addEventListener("click",v),()=>{window.removeEventListener("click",v)}},[e]),(0,ne.useEffect)(()=>{let v=()=>{f(window.innerWidth)};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[]),(0,Pi.jsx)("div",{className:I(i.popover,e&&i.popoverOpen),style:{top:l,left:d,...p?{transform:"translateX(calc(-100% + 20px))"}:{}},ref:a,onClick:v=>{v.stopPropagation()},children:t})},Er=Xs;var z=require("react/jsx-runtime"),Zs=U({inboxContent:{height:"100%",display:"flex",flexDirection:"column"},inboxContentList:{flex:1,overflowY:"auto"}},{name:H}),Qs={Bell:xr,Button:ae,NotificationHeader:wr,Empty:Sr,Loader:Rr,NotificationItem:Cr,NotificationPopover:Er,NotificationError:Pr},ef=({components:e})=>{let[r,n]=(0,Ve.useState)(null),[t,i]=(0,Ve.useState)(!1),{Bell:o,Empty:a,Loader:s,NotificationHeader:f,NotificationItem:l,NotificationPopover:d,NotificationError:p}={...Qs,...e},v=(0,Ve.useCallback)(()=>{i(D=>!D)},[]),{notifications:y,unread:w,isFirstLoad:S,hasMore:F,fetchMore:V,isError:O,error:$}=vi(),x=Zs();return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(o,{onClick:D=>{D.stopPropagation(),v()},ref:n,active:t,counts:w}),(0,z.jsx)(d,{open:t,anchorElement:r,onClose:v,children:(0,z.jsxs)("div",{className:I(x.inboxContent),children:[(0,z.jsx)(f,{}),(0,z.jsx)("div",{className:I(x.inboxContentList),children:(0,z.jsxs)(Ri.default,{loadMore:V,hasMore:F&&!O,loader:(0,z.jsx)(s,{},0),useWindow:!1,children:[S?(0,z.jsx)(z.Fragment,{}):(0,z.jsx)(z.Fragment,{children:y.length?(0,z.jsx)(z.Fragment,{children:y.map(D=>(0,z.jsx)(l,{notification:D},D._id))}):(0,z.jsx)(a,{})}),O&&(0,z.jsx)(p,{message:$==null?void 0:$.message})]})})]})})]})},Tt=ef;0&&(module.exports={Bell,Button,Empty,Inbox,Loader,NotificationError,NotificationHeader,NotificationItem,NotificationPopover,TeknifyInbox});
|
14
14
|
/*! Bundled license information:
|
15
15
|
|
16
16
|
react-is/cjs/react-is.production.min.js:
|
@@ -9,4 +9,4 @@ export { default as NotificationItem, NotificationItemProps } from './inbox/noti
|
|
9
9
|
export { default as NotificationPopover, NotificationPopoverProps } from './inbox/popover.cjs';
|
10
10
|
import 'react';
|
11
11
|
import '../dto/notifications/notification.interface.cjs';
|
12
|
-
import '@
|
12
|
+
import '@tnf-dev/core';
|