@standardbeagle/edit-db 0.3.223 → 0.3.226
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/components/ui/button.d.ts +11 -0
- package/dist/edit-db.css +1 -1
- package/dist/editor.es.js +4627 -1554
- package/dist/editor.umd.cjs +88 -88
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +9 -2
package/dist/editor.umd.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`+
|
|
3
|
-
`),
|
|
4
|
-
`),
|
|
5
|
-
`+
|
|
1
|
+
(function(Ae,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@tanstack/react-query")):typeof define=="function"&&define.amd?define(["exports","react","@tanstack/react-query"],g):(Ae=typeof globalThis<"u"?globalThis:Ae||self,g(Ae.editor={},Ae.React,Ae.ReactQuery))})(this,(function(Ae,g,ze){"use strict";function qa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=qa(g);var tn={exports:{}},Ft={};var zr;function Ya(){if(zr)return Ft;zr=1;var e=g,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,c,d){var p,f={},h=null,y=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(p in c)r.call(c,p)&&!a.hasOwnProperty(p)&&(f[p]=c[p]);if(i&&i.defaultProps)for(p in c=i.defaultProps,c)f[p]===void 0&&(f[p]=c[p]);return{$$typeof:t,type:i,key:h,ref:y,props:f,_owner:o.current}}return Ft.Fragment=n,Ft.jsx=s,Ft.jsxs=s,Ft}var Mt={};var Hr;function Ua(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&(function(){var e=g,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C=Symbol.iterator,x="@@iterator";function k(l){if(l===null||typeof l!="object")return null;var b=C&&l[C]||l[x];return typeof b=="function"?b:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(l){{for(var b=arguments.length,R=new Array(b>1?b-1:0),D=1;D<b;D++)R[D-1]=arguments[D];_("error",l,R)}}function _(l,b,R){{var D=T.ReactDebugCurrentFrame,G=D.getStackAddendum();G!==""&&(b+="%s",R=R.concat([G]));var X=R.map(function(L){return String(L)});X.unshift("Warning: "+b),Function.prototype.apply.call(console[l],console,X)}}var A=!1,I=!1,$=!1,S=!1,w=!1,H;H=Symbol.for("react.module.reference");function N(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===a||w||l===o||l===d||l===p||S||l===y||A||I||$||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===f||l.$$typeof===s||l.$$typeof===i||l.$$typeof===c||l.$$typeof===H||l.getModuleId!==void 0))}function ne(l,b,R){var D=l.displayName;if(D)return D;var G=b.displayName||b.name||"";return G!==""?R+"("+G+")":R}function we(l){return l.displayName||"Context"}function q(l){if(l==null)return null;if(typeof l.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case i:var b=l;return we(b)+".Consumer";case s:var R=l;return we(R._context)+".Provider";case c:return ne(l,l.render,"ForwardRef");case f:var D=l.displayName||null;return D!==null?D:q(l.type)||"Memo";case h:{var G=l,X=G._payload,L=G._init;try{return q(L(X))}catch{return null}}}return null}var de=Object.assign,ue=0,ae,le,je,pe,j,ke,Z;function Oe(){}Oe.__reactDisabledLog=!0;function ye(){{if(ue===0){ae=console.log,le=console.info,je=console.warn,pe=console.error,j=console.group,ke=console.groupCollapsed,Z=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}ue++}}function ee(){{if(ue--,ue===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:de({},l,{value:ae}),info:de({},l,{value:le}),warn:de({},l,{value:je}),error:de({},l,{value:pe}),group:de({},l,{value:j}),groupCollapsed:de({},l,{value:ke}),groupEnd:de({},l,{value:Z})})}ue<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=T.ReactCurrentDispatcher,Ce;function xe(l,b,R){{if(Ce===void 0)try{throw Error()}catch(G){var D=G.stack.trim().match(/\n( *(at )?)/);Ce=D&&D[1]||""}return`
|
|
2
|
+
`+Ce+l}}var Y=!1,Re;{var fe=typeof WeakMap=="function"?WeakMap:Map;Re=new fe}function re(l,b){if(!l||Y)return"";{var R=Re.get(l);if(R!==void 0)return R}var D;Y=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var X;X=U.current,U.current=null,ye();try{if(b){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(K){D=K}Reflect.construct(l,[],L)}else{try{L.call()}catch(K){D=K}l.call(L.prototype)}}else{try{throw Error()}catch(K){D=K}l()}}catch(K){if(K&&D&&typeof K.stack=="string"){for(var V=K.stack.split(`
|
|
3
|
+
`),me=D.stack.split(`
|
|
4
|
+
`),oe=V.length-1,ie=me.length-1;oe>=1&&ie>=0&&V[oe]!==me[ie];)ie--;for(;oe>=1&&ie>=0;oe--,ie--)if(V[oe]!==me[ie]){if(oe!==1||ie!==1)do if(oe--,ie--,ie<0||V[oe]!==me[ie]){var Pe=`
|
|
5
|
+
`+V[oe].replace(" at new "," at ");return l.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",l.displayName)),typeof l=="function"&&Re.set(l,Pe),Pe}while(oe>=1&&ie>=0);break}}}finally{Y=!1,U.current=X,ee(),Error.prepareStackTrace=G}var tt=l?l.displayName||l.name:"",Ge=tt?xe(tt):"";return typeof l=="function"&&Re.set(l,Ge),Ge}function Me(l,b,R){return re(l,!1)}function Ie(l){var b=l.prototype;return!!(b&&b.isReactComponent)}function Xe(l,b,R){if(l==null)return"";if(typeof l=="function")return re(l,Ie(l));if(typeof l=="string")return xe(l);switch(l){case d:return xe("Suspense");case p:return xe("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return Me(l.render);case f:return Xe(l.type,b,R);case h:{var D=l,G=D._payload,X=D._init;try{return Xe(X(G),b,R)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,Pt={},se=T.ReactDebugCurrentFrame;function jt(l){if(l){var b=l._owner,R=Xe(l.type,l._source,b?b.type:null);se.setExtraStackFrame(R)}else se.setExtraStackFrame(null)}function Tt(l,b,R,D,G){{var X=Function.call.bind(Be);for(var L in l)if(X(l,L)){var V=void 0;try{if(typeof l[L]!="function"){var me=Error((D||"React class")+": "+R+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw me.name="Invariant Violation",me}V=l[L](b,L,D,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){V=oe}V&&!(V instanceof Error)&&(jt(G),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",R,L,typeof V),jt(null)),V instanceof Error&&!(V.message in Pt)&&(Pt[V.message]=!0,jt(G),E("Failed %s type: %s",R,V.message),jt(null))}}}var Dn=Array.isArray;function _t(l){return Dn(l)}function In(l){{var b=typeof Symbol=="function"&&Symbol.toStringTag,R=b&&l[Symbol.toStringTag]||l.constructor.name||"Object";return R}}function Nn(l){try{return Fn(l),!1}catch{return!0}}function Fn(l){return""+l}function Mn(l){if(Nn(l))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",In(l)),Fn(l)}var Yt=T.ReactCurrentOwner,Ut={key:!0,ref:!0,__self:!0,__source:!0},Ln,zn;function Hn(l){if(Be.call(l,"ref")){var b=Object.getOwnPropertyDescriptor(l,"ref").get;if(b&&b.isReactWarning)return!1}return l.ref!==void 0}function Wn(l){if(Be.call(l,"key")){var b=Object.getOwnPropertyDescriptor(l,"key").get;if(b&&b.isReactWarning)return!1}return l.key!==void 0}function jr(l,b){typeof l.ref=="string"&&Yt.current}function Tr(l,b){{var R=function(){Ln||(Ln=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};R.isReactWarning=!0,Object.defineProperty(l,"key",{get:R,configurable:!0})}}function Vn(l,b){{var R=function(){zn||(zn=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};R.isReactWarning=!0,Object.defineProperty(l,"ref",{get:R,configurable:!0})}}var _r=function(l,b,R,D,G,X,L){var V={$$typeof:t,type:l,key:b,ref:R,props:L,_owner:X};return V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(V,"_self",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function Ar(l,b,R,D,G){{var X,L={},V=null,me=null;R!==void 0&&(Mn(R),V=""+R),Wn(b)&&(Mn(b.key),V=""+b.key),Hn(b)&&(me=b.ref,jr(b,G));for(X in b)Be.call(b,X)&&!Ut.hasOwnProperty(X)&&(L[X]=b[X]);if(l&&l.defaultProps){var oe=l.defaultProps;for(X in oe)L[X]===void 0&&(L[X]=oe[X])}if(V||me){var ie=typeof l=="function"?l.displayName||l.name||"Unknown":l;V&&Tr(L,ie),me&&Vn(L,ie)}return _r(l,V,me,G,D,Yt.current,L)}}var Kt=T.ReactCurrentOwner,Jt=T.ReactDebugCurrentFrame;function Ze(l){if(l){var b=l._owner,R=Xe(l.type,l._source,b?b.type:null);Jt.setExtraStackFrame(R)}else Jt.setExtraStackFrame(null)}var At;At=!1;function Dt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function et(){{if(Kt.current){var l=q(Kt.current.type);if(l)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+
|
|
7
|
+
Check the render method of \``+l+"`."}return""}}function Dr(l){return""}var Bn={};function Gn(l){{var b=et();if(!b){var R=typeof l=="string"?l:l.displayName||l.name;R&&(b=`
|
|
8
8
|
|
|
9
|
-
Check the top-level render call using <`+
|
|
9
|
+
Check the top-level render call using <`+R+">.")}return b}}function Qt(l,b){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var R=Gn(b);if(Bn[R])return;Bn[R]=!0;var D="";l&&l._owner&&l._owner!==Kt.current&&(D=" It was passed a child from "+q(l._owner.type)+"."),Ze(l),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,D),Ze(null)}}function Xt(l,b){{if(typeof l!="object")return;if(_t(l))for(var R=0;R<l.length;R++){var D=l[R];Dt(D)&&Qt(D,b)}else if(Dt(l))l._store&&(l._store.validated=!0);else if(l){var G=k(l);if(typeof G=="function"&&G!==l.entries)for(var X=G.call(l),L;!(L=X.next()).done;)Dt(L.value)&&Qt(L.value,b)}}}function qn(l){{var b=l.type;if(b==null||typeof b=="string")return;var R;if(typeof b=="function")R=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===c||b.$$typeof===f))R=b.propTypes;else return;if(R){var D=q(b);Tt(R,l.props,"prop",D,l)}else if(b.PropTypes!==void 0&&!At){At=!0;var G=q(b);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yn(l){{for(var b=Object.keys(l.props),R=0;R<b.length;R++){var D=b[R];if(D!=="children"&&D!=="key"){Ze(l),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),Ze(null);break}}l.ref!==null&&(Ze(l),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}var Zt={};function en(l,b,R,D,G,X){{var L=N(l);if(!L){var V="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var me=Dr();me?V+=me:V+=et();var oe;l===null?oe="null":_t(l)?oe="array":l!==void 0&&l.$$typeof===t?(oe="<"+(q(l.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof l,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,V)}var ie=Ar(l,b,R,G,X);if(ie==null)return ie;if(L){var Pe=b.children;if(Pe!==void 0)if(D)if(_t(Pe)){for(var tt=0;tt<Pe.length;tt++)Xt(Pe[tt],l);Object.freeze&&Object.freeze(Pe)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Xt(Pe,l)}if(Be.call(b,"key")){var Ge=q(l),K=Object.keys(b).filter(function(Mr){return Mr!=="key"}),qe=K.length>0?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}";if(!Zt[Ge+qe]){var Fr=K.length>0?"{"+K.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
10
10
|
let props = %s;
|
|
11
11
|
<%s {...props} />
|
|
12
12
|
React keys must be passed directly to JSX without using spread:
|
|
13
13
|
let props = %s;
|
|
14
|
-
<%s key={someKey} {...props} />`,Le,Me,yr,Me),Wt[Me+Le]=!0}}return s===r?_n(X):Tn(X),X}}function mr(s,m,w){return qt(s,m,w,!0)}function br(s,m,w){return qt(s,m,w,!1)}var _e=br,ve=mr;Pt.Fragment=r,Pt.jsx=_e,Pt.jsxs=ve})()),Pt}var Sr;function ra(){return Sr||(Sr=1,process.env.NODE_ENV==="production"?Vt.exports=ta():Vt.exports=na()),Vt.exports}var d=ra(),ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ie.apply(this,arguments)};function nt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function oa(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var aa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ia=oa(function(e){return aa.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Y="-ms-",kt="-moz-",V="-webkit-",Er="comm",Bt="rule",Dn="decl",sa="@import",Rr="@keyframes",la="@layer",$r=Math.abs,An=String.fromCharCode,In=Object.assign;function ca(e,t){return oe(e,0)^45?(((t<<2^oe(e,0))<<2^oe(e,1))<<2^oe(e,2))<<2^oe(e,3):0}function Or(e){return e.trim()}function Ae(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,n){return e.replace(t,n)}function Gt(e,t,n){return e.indexOf(t,n)}function oe(e,t){return e.charCodeAt(t)|0}function rt(e,t,n){return e.slice(t,n)}function Te(e){return e.length}function Pr(e){return e.length}function jt(e,t){return t.push(e),e}function ua(e,t){return e.map(t).join("")}function kr(e,t){return e.filter(function(n){return!Ae(n,t)})}var Yt=1,ot=1,jr=0,we=0,Z=0,at="";function Ut(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Yt,column:ot,length:i,return:"",siblings:l}}function He(e,t){return In(Ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function it(e){for(;e.root;)e=He(e.root,{children:[e]});jt(e,e.siblings)}function da(){return Z}function pa(){return Z=we>0?oe(at,--we):0,ot--,Z===10&&(ot=1,Yt--),Z}function $e(){return Z=we<jr?oe(at,we++):0,ot++,Z===10&&(ot=1,Yt++),Z}function Ye(){return oe(at,we)}function Kt(){return we}function Jt(e,t){return rt(at,e,t)}function Nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fa(e){return Yt=ot=1,jr=Te(at=e),we=0,[]}function ga(e){return at="",e}function Fn(e){return Or(Jt(we-1,Mn(e===91?e+2:e===40?e+1:e)))}function ha(e){for(;(Z=Ye())&&Z<33;)$e();return Nn(e)>2||Nn(Z)>3?"":" "}function ma(e,t){for(;--t&&$e()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return Jt(e,Kt()+(t<6&&Ye()==32&&$e()==32))}function Mn(e){for(;$e();)switch(Z){case e:return we;case 34:case 39:e!==34&&e!==39&&Mn(Z);break;case 40:e===41&&Mn(e);break;case 92:$e();break}return we}function ba(e,t){for(;$e()&&e+Z!==57;)if(e+Z===84&&Ye()===47)break;return"/*"+Jt(t,we-1)+"*"+An(e===47?e:$e())}function ya(e){for(;!Nn(Ye());)$e();return Jt(e,we)}function va(e){return ga(Qt("",null,null,null,[""],e=fa(e),0,[0],e))}function Qt(e,t,n,r,o,a,i,l,c){for(var p=0,g=0,f=i,y=0,v=0,C=0,S=1,R=1,j=1,E=0,P="",k=o,D=a,$=r,x=P;R;)switch(C=E,E=$e()){case 40:if(C!=108&&oe(x,f-1)==58){Gt(x+=N(Fn(E),"&","&\f"),"&\f",$r(p?l[p-1]:0))!=-1&&(j=-1);break}case 34:case 39:case 91:x+=Fn(E);break;case 9:case 10:case 13:case 32:x+=ha(C);break;case 92:x+=ma(Kt()-1,7);continue;case 47:switch(Ye()){case 42:case 47:jt(wa(ba($e(),Kt()),t,n,c),c);break;default:x+="/"}break;case 123*S:l[p++]=Te(x)*j;case 125*S:case 59:case 0:switch(E){case 0:case 125:R=0;case 59+g:j==-1&&(x=N(x,/\f/g,"")),v>0&&Te(x)-f&&jt(v>32?_r(x+";",r,n,f-1,c):_r(N(x," ","")+";",r,n,f-2,c),c);break;case 59:x+=";";default:if(jt($=Tr(x,t,n,p,g,o,l,P,k=[],D=[],f,a),a),E===123)if(g===0)Qt(x,t,$,$,k,a,f,l,D);else switch(y===99&&oe(x,3)===110?100:y){case 100:case 108:case 109:case 115:Qt(e,$,$,r&&jt(Tr(e,$,$,0,0,o,l,P,o,k=[],f,D),D),o,D,f,l,r?k:D);break;default:Qt(x,$,$,$,[""],D,0,l,D)}}p=g=v=0,S=j=1,P=x="",f=i;break;case 58:f=1+Te(x),v=C;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&pa()==125)continue}switch(x+=An(E),E*S){case 38:j=g>0?1:(x+="\f",-1);break;case 44:l[p++]=(Te(x)-1)*j,j=1;break;case 64:Ye()===45&&(x+=Fn($e())),y=Ye(),g=f=Te(P=x+=ya(Kt())),E++;break;case 45:C===45&&Te(x)==2&&(S=0)}}return a}function Tr(e,t,n,r,o,a,i,l,c,p,g,f){for(var y=o-1,v=o===0?a:[""],C=Pr(v),S=0,R=0,j=0;S<r;++S)for(var E=0,P=rt(e,y+1,y=$r(R=i[S])),k=e;E<C;++E)(k=Or(R>0?v[E]+" "+P:N(P,/&\f/g,v[E])))&&(c[j++]=k);return Ut(e,t,n,o===0?Bt:l,c,p,g,f)}function wa(e,t,n,r){return Ut(e,t,n,Er,An(da()),rt(e,2,-2),0,r)}function _r(e,t,n,r,o){return Ut(e,t,n,Dn,rt(e,0,r),rt(e,r+1,-1),r,o)}function Dr(e,t,n){switch(ca(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 4789:return kt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+kt+e+Y+e+e;case 5936:switch(oe(e,t+11)){case 114:return V+e+Y+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Y+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Y+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return V+e+Y+e+e;case 6165:return V+e+Y+"flex-"+e+e;case 5187:return V+e+N(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Y+"flex-$1$2")+e;case 5443:return V+e+Y+"flex-item-"+N(e,/flex-|-self/g,"")+(Ae(e,/flex-|baseline/)?"":Y+"grid-row-"+N(e,/flex-|-self/g,""))+e;case 4675:return V+e+Y+"flex-line-pack"+N(e,/align-content|flex-|-self/g,"")+e;case 5548:return V+e+Y+N(e,"shrink","negative")+e;case 5292:return V+e+Y+N(e,"basis","preferred-size")+e;case 6060:return V+"box-"+N(e,"-grow","")+V+e+Y+N(e,"grow","positive")+e;case 4554:return V+N(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Y+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4200:if(!Ae(e,/flex-|baseline/))return Y+"grid-column-align"+rt(e,t)+e;break;case 2592:case 3360:return Y+N(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Ae(r.props,/grid-\w+-end/)})?~Gt(e+(n=n[t].value),"span",0)?e:Y+N(e,"-start","")+e+Y+"grid-row-span:"+(~Gt(n,"span",0)?Ae(n,/\d+/):+Ae(n,/\d+/)-+Ae(e,/\d+/))+";":Y+N(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ae(r.props,/grid-\w+-start/)})?e:Y+N(N(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Te(e)-1-t>6)switch(oe(e,t+1)){case 109:if(oe(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+kt+(oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gt(e,"stretch",0)?Dr(N(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return N(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,i,l,c,p){return Y+o+":"+a+p+(i?Y+o+"-span:"+(l?c:+c-+a)+p:"")+e});case 4949:if(oe(e,t+6)===121)return N(e,":",":"+V)+e;break;case 6444:switch(oe(e,oe(e,14)===45?18:11)){case 120:return N(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+V+(oe(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Y+"$2box$3")+e;case 100:return N(e,":",":"+Y)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return N(e,"scroll-","scroll-snap-")+e}return e}function Xt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xa(e,t,n,r){switch(e.type){case la:if(e.children.length)break;case sa:case Dn:return e.return=e.return||e.value;case Er:return"";case Rr:return e.return=e.value+"{"+Xt(e.children,r)+"}";case Bt:if(!Te(e.value=e.props.join(",")))return""}return Te(n=Xt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ca(e){var t=Pr(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function Sa(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ea(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dn:e.return=Dr(e.value,e.length,n);return;case Rr:return Xt([He(e,{value:N(e.value,"@","@"+V)})],r);case Bt:if(e.length)return ua(n=e.props,function(o){switch(Ae(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":it(He(e,{props:[N(o,/:(read-\w+)/,":"+kt+"$1")]})),it(He(e,{props:[o]})),In(e,{props:kr(n,r)});break;case"::placeholder":it(He(e,{props:[N(o,/:(plac\w+)/,":"+V+"input-$1")]})),it(He(e,{props:[N(o,/:(plac\w+)/,":"+kt+"$1")]})),it(He(e,{props:[N(o,/:(plac\w+)/,Y+"input-$1")]})),it(He(e,{props:[o]})),In(e,{props:kr(n,r)});break}return""})}}var Ra={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ue=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ar="active",Ir="data-styled-version",Zt="6.1.11",Ln=`/*!sc*/
|
|
15
|
-
`,
|
|
14
|
+
<%s key={someKey} {...props} />`,qe,Ge,Fr,Ge),Zt[Ge+qe]=!0}}return l===r?Yn(ie):qn(ie),ie}}function Ir(l,b,R){return en(l,b,R,!0)}function Nr(l,b,R){return en(l,b,R,!1)}var Le=Nr,Te=Ir;Mt.Fragment=r,Mt.jsx=Le,Mt.jsxs=Te})()),Mt}var Wr;function Ka(){return Wr||(Wr=1,process.env.NODE_ENV==="production"?tn.exports=Ya():tn.exports=Ua()),tn.exports}var m=Ka(),Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ja(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Qa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xa=Ja(function(e){return Qa.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),te="-ms-",Lt="-moz-",Q="-webkit-",Vr="comm",nn="rule",Un="decl",Za="@import",Br="@keyframes",es="@layer",Gr=Math.abs,Kn=String.fromCharCode,Jn=Object.assign;function ts(e,t){return ve(e,0)^45?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}function qr(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function rn(e,t,n){return e.indexOf(t,n)}function ve(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Fe(e){return e.length}function Yr(e){return e.length}function zt(e,t){return t.push(e),e}function ns(e,t){return e.map(t).join("")}function Ur(e,t){return e.filter(function(n){return!He(n,t)})}var on=1,ht=1,Kr=0,_e=0,ce=0,bt="";function an(e,t,n,r,o,a,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:on,column:ht,length:s,return:"",siblings:i}}function Ye(e,t){return Jn(an("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function yt(e){for(;e.root;)e=Ye(e.root,{children:[e]});zt(e,e.siblings)}function rs(){return ce}function os(){return ce=_e>0?ve(bt,--_e):0,ht--,ce===10&&(ht=1,on--),ce}function De(){return ce=_e<Kr?ve(bt,_e++):0,ht++,ce===10&&(ht=1,on++),ce}function rt(){return ve(bt,_e)}function sn(){return _e}function ln(e,t){return gt(bt,e,t)}function Qn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function as(e){return on=ht=1,Kr=Fe(bt=e),_e=0,[]}function ss(e){return bt="",e}function Xn(e){return qr(ln(_e-1,Zn(e===91?e+2:e===40?e+1:e)))}function is(e){for(;(ce=rt())&&ce<33;)De();return Qn(e)>2||Qn(ce)>3?"":" "}function ls(e,t){for(;--t&&De()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return ln(e,sn()+(t<6&&rt()==32&&De()==32))}function Zn(e){for(;De();)switch(ce){case e:return _e;case 34:case 39:e!==34&&e!==39&&Zn(ce);break;case 40:e===41&&Zn(e);break;case 92:De();break}return _e}function cs(e,t){for(;De()&&e+ce!==57;)if(e+ce===84&&rt()===47)break;return"/*"+ln(t,_e-1)+"*"+Kn(e===47?e:De())}function ds(e){for(;!Qn(rt());)De();return ln(e,_e)}function us(e){return ss(cn("",null,null,null,[""],e=as(e),0,[0],e))}function cn(e,t,n,r,o,a,s,i,c){for(var d=0,p=0,f=s,h=0,y=0,C=0,x=1,k=1,T=1,E=0,_="",A=o,I=a,$=r,S=_;k;)switch(C=E,E=De()){case 40:if(C!=108&&ve(S,f-1)==58){rn(S+=z(Xn(E),"&","&\f"),"&\f",Gr(d?i[d-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:S+=Xn(E);break;case 9:case 10:case 13:case 32:S+=is(C);break;case 92:S+=ls(sn()-1,7);continue;case 47:switch(rt()){case 42:case 47:zt(ps(cs(De(),sn()),t,n,c),c);break;default:S+="/"}break;case 123*x:i[d++]=Fe(S)*T;case 125*x:case 59:case 0:switch(E){case 0:case 125:k=0;case 59+p:T==-1&&(S=z(S,/\f/g,"")),y>0&&Fe(S)-f&&zt(y>32?Qr(S+";",r,n,f-1,c):Qr(z(S," ","")+";",r,n,f-2,c),c);break;case 59:S+=";";default:if(zt($=Jr(S,t,n,d,p,o,i,_,A=[],I=[],f,a),a),E===123)if(p===0)cn(S,t,$,$,A,a,f,i,I);else switch(h===99&&ve(S,3)===110?100:h){case 100:case 108:case 109:case 115:cn(e,$,$,r&&zt(Jr(e,$,$,0,0,o,i,_,o,A=[],f,I),I),o,I,f,i,r?A:I);break;default:cn(S,$,$,$,[""],I,0,i,I)}}d=p=y=0,x=T=1,_=S="",f=s;break;case 58:f=1+Fe(S),y=C;default:if(x<1){if(E==123)--x;else if(E==125&&x++==0&&os()==125)continue}switch(S+=Kn(E),E*x){case 38:T=p>0?1:(S+="\f",-1);break;case 44:i[d++]=(Fe(S)-1)*T,T=1;break;case 64:rt()===45&&(S+=Xn(De())),h=rt(),p=f=Fe(_=S+=ds(sn())),E++;break;case 45:C===45&&Fe(S)==2&&(x=0)}}return a}function Jr(e,t,n,r,o,a,s,i,c,d,p,f){for(var h=o-1,y=o===0?a:[""],C=Yr(y),x=0,k=0,T=0;x<r;++x)for(var E=0,_=gt(e,h+1,h=Gr(k=s[x])),A=e;E<C;++E)(A=qr(k>0?y[E]+" "+_:z(_,/&\f/g,y[E])))&&(c[T++]=A);return an(e,t,n,o===0?nn:i,c,d,p,f)}function ps(e,t,n,r){return an(e,t,n,Vr,Kn(rs()),gt(e,2,-2),0,r)}function Qr(e,t,n,r,o){return an(e,t,n,Un,gt(e,0,r),gt(e,r+1,-1),r,o)}function Xr(e,t,n){switch(ts(e,t)){case 5103:return Q+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Q+e+e;case 4789:return Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+Lt+e+te+e+e;case 5936:switch(ve(e,t+11)){case 114:return Q+e+te+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+te+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+te+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Q+e+te+e+e;case 6165:return Q+e+te+"flex-"+e+e;case 5187:return Q+e+z(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+te+"flex-$1$2")+e;case 5443:return Q+e+te+"flex-item-"+z(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":te+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return Q+e+te+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return Q+e+te+z(e,"shrink","negative")+e;case 5292:return Q+e+te+z(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+z(e,"-grow","")+Q+e+te+z(e,"grow","positive")+e;case 4554:return Q+z(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4200:if(!He(e,/flex-|baseline/))return te+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return te+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~rn(e+(n=n[t].value),"span",0)?e:te+z(e,"-start","")+e+te+"grid-row-span:"+(~rn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":te+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:te+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,Q+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fe(e)-1-t>6)switch(ve(e,t+1)){case 109:if(ve(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+Lt+(ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rn(e,"stretch",0)?Xr(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,s,i,c,d){return te+o+":"+a+d+(s?te+o+"-span:"+(i?c:+c-+a)+d:"")+e});case 4949:if(ve(e,t+6)===121)return z(e,":",":"+Q)+e;break;case 6444:switch(ve(e,ve(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Q+(ve(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+te+"$2box$3")+e;case 100:return z(e,":",":"+te)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function dn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function fs(e,t,n,r){switch(e.type){case es:if(e.children.length)break;case Za:case Un:return e.return=e.return||e.value;case Vr:return"";case Br:return e.return=e.value+"{"+dn(e.children,r)+"}";case nn:if(!Fe(e.value=e.props.join(",")))return""}return Fe(n=dn(e.children,r))?e.return=e.value+"{"+n+"}":""}function ms(e){var t=Yr(e);return function(n,r,o,a){for(var s="",i=0;i<t;i++)s+=e[i](n,r,o,a)||"";return s}}function gs(e){return function(t){t.root||(t=t.return)&&e(t)}}function hs(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Un:e.return=Xr(e.value,e.length,n);return;case Br:return dn([Ye(e,{value:z(e.value,"@","@"+Q)})],r);case nn:if(e.length)return ns(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yt(Ye(e,{props:[z(o,/:(read-\w+)/,":"+Lt+"$1")]})),yt(Ye(e,{props:[o]})),Jn(e,{props:Ur(n,r)});break;case"::placeholder":yt(Ye(e,{props:[z(o,/:(plac\w+)/,":"+Q+"input-$1")]})),yt(Ye(e,{props:[z(o,/:(plac\w+)/,":"+Lt+"$1")]})),yt(Ye(e,{props:[z(o,/:(plac\w+)/,te+"input-$1")]})),yt(Ye(e,{props:[o]})),Jn(e,{props:Ur(n,r)});break}return""})}}var bs={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ot=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Zr="active",eo="data-styled-version",un="6.1.11",er=`/*!sc*/
|
|
15
|
+
`,tr=typeof window<"u"&&"HTMLElement"in window,ys=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),to=/invalid hook call/i,pn=new Set,vs=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
16
16
|
`)+`You may see this warning because you've called styled inside another component.
|
|
17
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(
|
|
17
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(s){for(var i=[],c=1;c<arguments.length;c++)i[c-1]=arguments[c];to.test(s)?(a=!1,pn.delete(r)):o.apply(void 0,mt([s],i,!1))},g.useRef(),a&&!pn.has(r)&&(console.warn(r),pn.add(r))}catch(s){to.test(s.message)&&pn.delete(r)}finally{console.error=o}}},fn=Object.freeze([]),vt=Object.freeze({});function ws(e,t,n){return n===void 0&&(n=vt),e.theme!==n.theme&&e.theme||t||n.theme}var nr=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xs=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Cs=/(^-|-$)/g;function no(e){return e.replace(xs,"-").replace(Cs,"")}var Ss=/(a)(d)/gi,mn=52,ro=function(e){return String.fromCharCode(e+(e>25?39:97))};function rr(e){var t,n="";for(t=Math.abs(e);t>mn;t=t/mn|0)n=ro(t%mn)+n;return(ro(t%mn)+n).replace(Ss,"$1-$2")}var or,oo=5381,at=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ao=function(e){return at(oo,e)};function ks(e){return rr(ao(e)>>>0)}function so(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ar(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var io=typeof Symbol=="function"&&Symbol.for,lo=io?Symbol.for("react.memo"):60115,Rs=io?Symbol.for("react.forward_ref"):60112,Es={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},co={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Os=((or={})[Rs]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},or[lo]=co,or);function uo(e){return("type"in(t=e)&&t.type.$$typeof)===lo?co:"$$typeof"in e?Os[e.$$typeof]:Es;var t}var Ps=Object.defineProperty,js=Object.getOwnPropertyNames,po=Object.getOwnPropertySymbols,Ts=Object.getOwnPropertyDescriptor,_s=Object.getPrototypeOf,fo=Object.prototype;function mo(e,t,n){if(typeof t!="string"){if(fo){var r=_s(t);r&&r!==fo&&mo(e,r,n)}var o=js(t);po&&(o=o.concat(po(t)));for(var a=uo(e),s=uo(t),i=0;i<o.length;++i){var c=o[i];if(!(c in $s||n&&n[c]||s&&c in s||a&&c in a)){var d=Ts(t,c);try{Ps(e,c,d)}catch{}}}}return e}function st(e){return typeof e=="function"}function sr(e){return typeof e=="object"&&"styledComponentId"in e}function it(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function go(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function wt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ir(e,t,n){if(n===void 0&&(n=!1),!n&&!wt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ir(e[r],t[r]);else if(wt(t))for(var r in t)e[r]=ir(e[r],t[r]);return e}function lr(e,t){Object.defineProperty(e,"toString",{value:t})}var As=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
18
18
|
|
|
19
19
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
20
20
|
|
|
@@ -55,7 +55,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
55
55
|
|
|
56
56
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
57
57
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
58
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Wa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function Ie(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Wa.apply(void 0,nt([za[e]],t,!1)).trim())}var qa=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw Ie(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var l=this.indexOfGroup(t+1),c=(i=0,n.length);i<c;i++)this.tag.insertRule(l,n[i])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,i=o;i<a;i++)n+="".concat(this.tag.getRule(i)).concat(Ln);return n},e})(),Va=1<<30,rn=new Map,on=new Map,an=1,sn=function(e){if(rn.has(e))return rn.get(e);for(;on.has(an);)an++;var t=an++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Va))throw Ie(16,"".concat(t));return rn.set(e,t),on.set(t,e),t},Ba=function(e,t){an=t+1,rn.set(e,t),on.set(t,e)},Ga="style[".concat(Ue,"][").concat(Ir,'="').concat(Zt,'"]'),Ya=new RegExp("^".concat(Ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ua=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},Ka=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ln),o=[],a=0,i=r.length;a<i;a++){var l=r[a].trim();if(l){var c=l.match(Ya);if(c){var p=0|parseInt(c[1],10),g=c[2];p!==0&&(Ba(g,p),Ua(e,g,c[3]),e.getTag().insertRules(p,o)),o.length=0}else o.push(l)}}};function Ja(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Jr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(l){var c=Array.from(l.querySelectorAll("style[".concat(Ue,"]")));return c[c.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute(Ue,Ar),r.setAttribute(Ir,Zt);var i=Ja();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},Qa=(function(){function e(t){this.element=Jr(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,a=r.length;o<a;o++){var i=r[o];if(i.ownerNode===n)return i}throw Ie(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Xa=(function(){function e(t){this.element=Jr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Za=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Qr=Hn,ei={isServer:!Hn,useCSSOMInjection:!$a},Xr=(function(){function e(t,n,r){t===void 0&&(t=st),n===void 0&&(n={});var o=this;this.options=ie(ie({},ei),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Hn&&Qr&&(Qr=!1,(function(a){for(var i=document.querySelectorAll(Ga),l=0,c=i.length;l<c;l++){var p=i[l];p&&p.getAttribute(Ue)!==Ar&&(Ka(a,p),p.parentNode&&p.parentNode.removeChild(p))}})(this)),Yn(this,function(){return(function(a){for(var i=a.getTag(),l=i.length,c="",p=function(f){var y=(function(j){return on.get(j)})(f);if(y===void 0)return"continue";var v=a.names.get(y),C=i.getGroup(f);if(v===void 0||C.length===0)return"continue";var S="".concat(Ue,".g").concat(f,'[id="').concat(y,'"]'),R="";v!==void 0&&v.forEach(function(j){j.length>0&&(R+="".concat(j,","))}),c+="".concat(C).concat(S,'{content:"').concat(R,'"}').concat(Ln)},g=0;g<l;g++)p(g);return c})(o)})}return e.registerId=function(t){return sn(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ie(ie({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Za(o):r?new Qa(o):new Xa(o)})(this.options),new qa(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(sn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(sn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(sn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),ti=/&/g,ni=/^\s*\/\/.*$/gm;function Zr(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Zr(n.children,t)),n})}function ri(e){var t,n,r,o=st,a=o.options,i=a===void 0?st:a,l=o.plugins,c=l===void 0?tn:l,p=function(y,v,C){return C.startsWith(n)&&C.endsWith(n)&&C.replaceAll(n,"").length>0?".".concat(t):y},g=c.slice();g.push(function(y){y.type===Bt&&y.value.includes("&")&&(y.props[0]=y.props[0].replace(ti,n).replace(r,p))}),i.prefix&&g.push(Ea),g.push(xa);var f=function(y,v,C,S){v===void 0&&(v=""),C===void 0&&(C=""),S===void 0&&(S="&"),t=S,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var R=y.replace(ni,""),j=va(C||v?"".concat(C," ").concat(v," { ").concat(R," }"):R);i.namespace&&(j=Zr(j,i.namespace));var E=[];return Xt(j,Ca(g.concat(Sa(function(P){return E.push(P)})))),E};return f.hash=c.length?c.reduce(function(y,v){return v.name||Ie(15),Ke(y,v.name)},Lr).toString():"",f}var oi=new Xr,Un=ri(),eo=h.createContext({shouldForwardProp:void 0,styleSheet:oi,stylis:Un});eo.Consumer,h.createContext(void 0);function to(){return h.useContext(eo)}var no=(function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=Un);var i=r.name+a.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,a(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Yn(this,function(){throw Ie(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Un),this.name+t.hash},e})(),ai=function(e){return e>="A"&&e<="Z"};function ro(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ai(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var oo=function(e){return e==null||e===!1||e===""},ao=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!oo(a)&&(Array.isArray(a)&&a.isCss||Je(a)?r.push("".concat(ro(o),":"),a,";"):lt(a)?r.push.apply(r,nt(nt(["".concat(o," {")],ao(a),!1),["}"],!1)):r.push("".concat(ro(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Ra||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Xe(e,t,n,r){if(oo(e))return[];if(Bn(e))return[".".concat(e.styledComponentId)];if(Je(e)){if(!Je(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof no||lt(o)||o===null||console.error("".concat(zr(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(o,t,n,r)}var a;return e instanceof no?n?(e.inject(n,r),[e.getName(r)]):[e]:lt(e)?ao(e):Array.isArray(e)?Array.prototype.concat.apply(tn,e.map(function(i){return Xe(i,t,n,r)})):[e.toString()]}function ii(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Je(n)&&!Bn(n))return!1}return!0}var si=Hr(Zt),li=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ii(t),this.componentId=n,this.baseHash=Ke(si,n),this.baseStyle=r,Xr.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=Qe(o,this.staticRulesId);else{var a=Kr(Xe(this.rules,t,n,r)),i=Wn(Ke(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,i)){var l=r(a,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,l)}o=Qe(o,i),this.staticRulesId=i}else{for(var c=Ke(this.baseHash,r.hash),p="",g=0;g<this.rules.length;g++){var f=this.rules[g];if(typeof f=="string")p+=f,process.env.NODE_ENV!=="production"&&(c=Ke(c,f));else if(f){var y=Kr(Xe(f,t,n,r));c=Ke(c,y+g),p+=y}}if(p){var v=Wn(c>>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(p,".".concat(v),void 0,this.componentId)),o=Qe(o,v)}}return o},e})(),ln=h.createContext(void 0);ln.Consumer;function ci(e){var t=h.useContext(ln),n=h.useMemo(function(){return(function(r,o){if(!r)throw Ie(14);if(Je(r)){var a=r(o);if(process.env.NODE_ENV!=="production"&&(a===null||Array.isArray(a)||typeof a!="object"))throw Ie(7);return a}if(Array.isArray(r)||typeof r!="object")throw Ie(8);return o?ie(ie({},o),r):r})(e.theme,t)},[e.theme,t]);return e.children?h.createElement(ln.Provider,{value:n},e.children):null}var Kn={},io=new Set;function ui(e,t,n){var r=Bn(e),o=e,a=!Vn(e),i=t.attrs,l=i===void 0?tn:i,c=t.componentId,p=c===void 0?(function(k,D){var $=typeof k!="string"?"sc":Fr(k);Kn[$]=(Kn[$]||0)+1;var x="".concat($,"-").concat(_a(Zt+$+Kn[$]));return D?"".concat(D,"-").concat(x):x})(t.displayName,t.parentComponentId):c,g=t.displayName,f=g===void 0?(function(k){return Vn(k)?"styled.".concat(k):"Styled(".concat(zr(k),")")})(e):g,y=t.displayName&&t.componentId?"".concat(Fr(t.displayName),"-").concat(t.componentId):t.componentId||p,v=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,C=t.shouldForwardProp;if(r&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var R=t.shouldForwardProp;C=function(k,D){return S(k,D)&&R(k,D)}}else C=S}var j=new li(n,y,r?o.componentStyle:void 0);function E(k,D){return(function($,x,L){var G=$.attrs,A=$.componentStyle,J=$.defaultProps,me=$.foldedComponentIds,z=$.styledComponentId,se=$.target,be=h.useContext(ln),Oe=to(),ye=$.shouldForwardProp||Oe.shouldForwardProp;process.env.NODE_ENV!=="production"&&h.useDebugValue(z);var Ne=Pa(x,be,J)||st,le=(function(ke,ae,Se){for(var de,ce=ie(ie({},ae),{className:void 0,theme:Se}),Ee=0;Ee<ke.length;Ee+=1){var pe=Je(de=ke[Ee])?de(ce):de;for(var re in pe)ce[re]=re==="className"?Qe(ce[re],pe[re]):re==="style"?ie(ie({},ce[re]),pe[re]):pe[re]}return ae.className&&(ce.className=Qe(ce.className,ae.className)),ce})(G,x,Ne),xe=le.as||se,Ce={};for(var U in le)le[U]===void 0||U[0]==="$"||U==="as"||U==="theme"&&le.theme===Ne||(U==="forwardedAs"?Ce.as=le.forwardedAs:ye&&!ye(U,xe)||(Ce[U]=le[U],ye||process.env.NODE_ENV!=="development"||ia(U)||io.has(U)||!zn.has(xe)||(io.add(U),console.warn('styled-components: it looks like an unknown prop "'.concat(U,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Pe=(function(ke,ae){var Se=to(),de=ke.generateAndInjectStyles(ae,Se.styleSheet,Se.stylis);return process.env.NODE_ENV!=="production"&&h.useDebugValue(de),de})(A,le);process.env.NODE_ENV!=="production"&&$.warnTooManyClasses&&$.warnTooManyClasses(Pe);var ue=Qe(me,z);return Pe&&(ue+=" "+Pe),le.className&&(ue+=" "+le.className),Ce[Vn(xe)&&!zn.has(xe)?"class":"className"]=ue,Ce.ref=L,h.createElement(xe,Ce)})(P,k,D)}E.displayName=f;var P=h.forwardRef(E);return P.attrs=v,P.componentStyle=j,P.displayName=f,P.shouldForwardProp=C,P.foldedComponentIds=r?Qe(o.foldedComponentIds,o.styledComponentId):"",P.styledComponentId=y,P.target=r?o.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?(function(D){for(var $=[],x=1;x<arguments.length;x++)$[x-1]=arguments[x];for(var L=0,G=$;L<G.length;L++)Gn(D,G[L],!0);return D})({},o.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Oa(f,y),P.warnTooManyClasses=(function(k,D){var $={},x=!1;return function(L){if(!x&&($[L]=!0,Object.keys($).length>=200)){var G=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(G,`.
|
|
58
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ds(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function We(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ds.apply(void 0,mt([As[e]],t,!1)).trim())}var Is=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw We(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(t+1),c=(s=0,n.length);s<c;s++)this.tag.insertRule(i,n[s])&&(this.groupSizes[t]++,i++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,s=o;s<a;s++)n+="".concat(this.tag.getRule(s)).concat(er);return n},e})(),Ns=1<<30,gn=new Map,hn=new Map,bn=1,yn=function(e){if(gn.has(e))return gn.get(e);for(;hn.has(bn);)bn++;var t=bn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ns))throw We(16,"".concat(t));return gn.set(e,t),hn.set(t,e),t},Fs=function(e,t){bn=t+1,gn.set(e,t),hn.set(t,e)},Ms="style[".concat(ot,"][").concat(eo,'="').concat(un,'"]'),Ls=new RegExp("^".concat(ot,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zs=function(e,t,n){for(var r,o=n.split(","),a=0,s=o.length;a<s;a++)(r=o[a])&&e.registerName(t,r)},Hs=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(er),o=[],a=0,s=r.length;a<s;a++){var i=r[a].trim();if(i){var c=i.match(Ls);if(c){var d=0|parseInt(c[1],10),p=c[2];d!==0&&(Fs(p,d),zs(e,p,c[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(i)}}};function Ws(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ho=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(i){var c=Array.from(i.querySelectorAll("style[".concat(ot,"]")));return c[c.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute(ot,Zr),r.setAttribute(eo,un);var s=Ws();return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Vs=(function(){function e(t){this.element=ho(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,a=r.length;o<a;o++){var s=r[o];if(s.ownerNode===n)return s}throw We(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Bs=(function(){function e(t){this.element=ho(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Gs=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),bo=tr,qs={isServer:!tr,useCSSOMInjection:!ys},yo=(function(){function e(t,n,r){t===void 0&&(t=vt),n===void 0&&(n={});var o=this;this.options=Se(Se({},qs),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&tr&&bo&&(bo=!1,(function(a){for(var s=document.querySelectorAll(Ms),i=0,c=s.length;i<c;i++){var d=s[i];d&&d.getAttribute(ot)!==Zr&&(Hs(a,d),d.parentNode&&d.parentNode.removeChild(d))}})(this)),lr(this,function(){return(function(a){for(var s=a.getTag(),i=s.length,c="",d=function(f){var h=(function(T){return hn.get(T)})(f);if(h===void 0)return"continue";var y=a.names.get(h),C=s.getGroup(f);if(y===void 0||C.length===0)return"continue";var x="".concat(ot,".g").concat(f,'[id="').concat(h,'"]'),k="";y!==void 0&&y.forEach(function(T){T.length>0&&(k+="".concat(T,","))}),c+="".concat(C).concat(x,'{content:"').concat(k,'"}').concat(er)},p=0;p<i;p++)d(p);return c})(o)})}return e.registerId=function(t){return yn(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Se(Se({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Gs(o):r?new Vs(o):new Bs(o)})(this.options),new Is(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(yn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(yn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(yn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Ys=/&/g,Us=/^\s*\/\/.*$/gm;function vo(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=vo(n.children,t)),n})}function Ks(e){var t,n,r,o=vt,a=o.options,s=a===void 0?vt:a,i=o.plugins,c=i===void 0?fn:i,d=function(h,y,C){return C.startsWith(n)&&C.endsWith(n)&&C.replaceAll(n,"").length>0?".".concat(t):h},p=c.slice();p.push(function(h){h.type===nn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Ys,n).replace(r,d))}),s.prefix&&p.push(hs),p.push(fs);var f=function(h,y,C,x){y===void 0&&(y=""),C===void 0&&(C=""),x===void 0&&(x="&"),t=x,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var k=h.replace(Us,""),T=us(C||y?"".concat(C," ").concat(y," { ").concat(k," }"):k);s.namespace&&(T=vo(T,s.namespace));var E=[];return dn(T,ms(p.concat(gs(function(_){return E.push(_)})))),E};return f.hash=c.length?c.reduce(function(h,y){return y.name||We(15),at(h,y.name)},oo).toString():"",f}var Js=new yo,cr=Ks(),wo=g.createContext({shouldForwardProp:void 0,styleSheet:Js,stylis:cr});wo.Consumer,g.createContext(void 0);function xo(){return g.useContext(wo)}var Co=(function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=cr);var s=r.name+a.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,a(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,lr(this,function(){throw We(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=cr),this.name+t.hash},e})(),Qs=function(e){return e>="A"&&e<="Z"};function So(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Qs(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ko=function(e){return e==null||e===!1||e===""},Ro=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!ko(a)&&(Array.isArray(a)&&a.isCss||st(a)?r.push("".concat(So(o),":"),a,";"):wt(a)?r.push.apply(r,mt(mt(["".concat(o," {")],Ro(a),!1),["}"],!1)):r.push("".concat(So(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in bs||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function lt(e,t,n,r){if(ko(e))return[];if(sr(e))return[".".concat(e.styledComponentId)];if(st(e)){if(!st(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Co||wt(o)||o===null||console.error("".concat(so(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),lt(o,t,n,r)}var a;return e instanceof Co?n?(e.inject(n,r),[e.getName(r)]):[e]:wt(e)?Ro(e):Array.isArray(e)?Array.prototype.concat.apply(fn,e.map(function(s){return lt(s,t,n,r)})):[e.toString()]}function Xs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(st(n)&&!sr(n))return!1}return!0}var Zs=ao(un),ei=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Xs(t),this.componentId=n,this.baseHash=at(Zs,n),this.baseStyle=r,yo.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=it(o,this.staticRulesId);else{var a=go(lt(this.rules,t,n,r)),s=rr(at(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,s)){var i=r(a,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,i)}o=it(o,s),this.staticRulesId=s}else{for(var c=at(this.baseHash,r.hash),d="",p=0;p<this.rules.length;p++){var f=this.rules[p];if(typeof f=="string")d+=f,process.env.NODE_ENV!=="production"&&(c=at(c,f));else if(f){var h=go(lt(f,t,n,r));c=at(c,h+p),d+=h}}if(d){var y=rr(c>>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(d,".".concat(y),void 0,this.componentId)),o=it(o,y)}}return o},e})(),vn=g.createContext(void 0);vn.Consumer;function ti(e){var t=g.useContext(vn),n=g.useMemo(function(){return(function(r,o){if(!r)throw We(14);if(st(r)){var a=r(o);if(process.env.NODE_ENV!=="production"&&(a===null||Array.isArray(a)||typeof a!="object"))throw We(7);return a}if(Array.isArray(r)||typeof r!="object")throw We(8);return o?Se(Se({},o),r):r})(e.theme,t)},[e.theme,t]);return e.children?g.createElement(vn.Provider,{value:n},e.children):null}var dr={},Eo=new Set;function ni(e,t,n){var r=sr(e),o=e,a=!ar(e),s=t.attrs,i=s===void 0?fn:s,c=t.componentId,d=c===void 0?(function(A,I){var $=typeof A!="string"?"sc":no(A);dr[$]=(dr[$]||0)+1;var S="".concat($,"-").concat(ks(un+$+dr[$]));return I?"".concat(I,"-").concat(S):S})(t.displayName,t.parentComponentId):c,p=t.displayName,f=p===void 0?(function(A){return ar(A)?"styled.".concat(A):"Styled(".concat(so(A),")")})(e):p,h=t.displayName&&t.componentId?"".concat(no(t.displayName),"-").concat(t.componentId):t.componentId||d,y=r&&o.attrs?o.attrs.concat(i).filter(Boolean):i,C=t.shouldForwardProp;if(r&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;C=function(A,I){return x(A,I)&&k(A,I)}}else C=x}var T=new ei(n,h,r?o.componentStyle:void 0);function E(A,I){return(function($,S,w){var H=$.attrs,N=$.componentStyle,ne=$.defaultProps,we=$.foldedComponentIds,q=$.styledComponentId,de=$.target,ue=g.useContext(vn),ae=xo(),le=$.shouldForwardProp||ae.shouldForwardProp;process.env.NODE_ENV!=="production"&&g.useDebugValue(q);var je=ws(S,ue,ne)||vt,pe=(function(ee,U,Ce){for(var xe,Y=Se(Se({},U),{className:void 0,theme:Ce}),Re=0;Re<ee.length;Re+=1){var fe=st(xe=ee[Re])?xe(Y):xe;for(var re in fe)Y[re]=re==="className"?it(Y[re],fe[re]):re==="style"?Se(Se({},Y[re]),fe[re]):fe[re]}return U.className&&(Y.className=it(Y.className,U.className)),Y})(H,S,je),j=pe.as||de,ke={};for(var Z in pe)pe[Z]===void 0||Z[0]==="$"||Z==="as"||Z==="theme"&&pe.theme===je||(Z==="forwardedAs"?ke.as=pe.forwardedAs:le&&!le(Z,j)||(ke[Z]=pe[Z],le||process.env.NODE_ENV!=="development"||Xa(Z)||Eo.has(Z)||!nr.has(j)||(Eo.add(Z),console.warn('styled-components: it looks like an unknown prop "'.concat(Z,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Oe=(function(ee,U){var Ce=xo(),xe=ee.generateAndInjectStyles(U,Ce.styleSheet,Ce.stylis);return process.env.NODE_ENV!=="production"&&g.useDebugValue(xe),xe})(N,pe);process.env.NODE_ENV!=="production"&&$.warnTooManyClasses&&$.warnTooManyClasses(Oe);var ye=it(we,q);return Oe&&(ye+=" "+Oe),pe.className&&(ye+=" "+pe.className),ke[ar(j)&&!nr.has(j)?"class":"className"]=ye,ke.ref=w,g.createElement(j,ke)})(_,A,I)}E.displayName=f;var _=g.forwardRef(E);return _.attrs=y,_.componentStyle=T,_.displayName=f,_.shouldForwardProp=C,_.foldedComponentIds=r?it(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=h,_.target=r?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(I){for(var $=[],S=1;S<arguments.length;S++)$[S-1]=arguments[S];for(var w=0,H=$;w<H.length;w++)ir(I,H[w],!0);return I})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(vs(f,h),_.warnTooManyClasses=(function(A,I){var $={},S=!1;return function(w){if(!S&&($[w]=!0,Object.keys($).length>=200)){var H=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(H,`.
|
|
59
59
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
60
60
|
Example:
|
|
61
61
|
const Component = styled.div.attrs(props => ({
|
|
@@ -64,14 +64,14 @@ Example:
|
|
|
64
64
|
},
|
|
65
65
|
}))\`width: 100%;\`
|
|
66
66
|
|
|
67
|
-
<Component />`),
|
|
67
|
+
<Component />`),S=!0,$={}}}})(f,h)),lr(_,function(){return".".concat(_.styledComponentId)}),a&&mo(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function $o(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Oo=function(e){return Object.assign(e,{isCss:!0})};function ge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(st(e)||wt(e))return Oo(lt($o(fn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?lt(r):Oo(lt($o(r,t)))}function ur(e,t,n){if(n===void 0&&(n=vt),!t)throw We(1,t);var r=function(o){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(t,n,ge.apply(void 0,mt([o],a,!1)))};return r.attrs=function(o){return ur(e,t,Se(Se({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ur(e,t,Se(Se({},n),o))},r}var Po=function(e){return ur(ni,e)},B=Po;nr.forEach(function(e){B[e]=Po(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
68
68
|
Perhaps you're looking to import 'styled-components/native'?
|
|
69
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
69
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var wn="__sc-".concat(ot,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[wn]||(window[wn]=0),window[wn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
70
70
|
|
|
71
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
71
|
+
See https://s-c.sh/2BAXzed for more info.`),window[wn]+=1);var Ue;function xt(e,t){return e[t]}function ri(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function oi(e=[],t,n="id"){const r=e.slice(),o=xt(t,n);return o?r.splice(r.findIndex((a=>xt(a,n)===o)),1):r.splice(r.findIndex((a=>a===t)),1),r}function jo(e){return e.map(((t,n)=>{const r=Object.assign(Object.assign({},t),{sortable:t.sortable||!!t.sortFunction||void 0});return t.id||(r.id=n+1),r}))}function Ht(e,t){return Math.ceil(e/t)}function pr(e,t){return Math.min(e,t)}(function(e){e.ASC="asc",e.DESC="desc"})(Ue||(Ue={}));const he=()=>null;function To(e,t=[],n=[]){let r={},o=[...n];return t.length&&t.forEach((a=>{if(!a.when||typeof a.when!="function")throw new Error('"when" must be defined in the conditional style object and must be function');a.when(e)&&(r=a.style||{},a.classNames&&(o=[...o,...a.classNames]),typeof a.style=="function"&&(r=a.style(e)||{}))})),{conditionalStyle:r,classNames:o.join(" ")}}function xn(e,t=[],n="id"){const r=xt(e,n);return r?t.some((o=>xt(o,n)===r)):t.some((o=>o===e))}function Cn(e,t){return t?e.findIndex((n=>Wt(n.id,t))):-1}function Wt(e,t){return e==t}function ai(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:r,rows:o,rowCount:a,mergeSelections:s}=t,i=!e.allSelected,c=!e.toggleOnSelectedRowsChange;if(s){const d=i?[...e.selectedRows,...o.filter((p=>!xn(p,e.selectedRows,r)))]:e.selectedRows.filter((p=>!xn(p,o,r)));return Object.assign(Object.assign({},e),{allSelected:i,selectedCount:d.length,selectedRows:d,toggleOnSelectedRowsChange:c})}return Object.assign(Object.assign({},e),{allSelected:i,selectedCount:i?a:0,selectedRows:i?o:[],toggleOnSelectedRowsChange:c})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:o,isSelected:a,rowCount:s,singleSelect:i}=t;return i?a?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[o],toggleOnSelectedRowsChange:n}):a?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:oi(e.selectedRows,o,r),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===s,selectedRows:ri(e.selectedRows,o),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:r,selectedRows:o,totalRows:a,mergeSelections:s}=t;if(s){const i=[...e.selectedRows,...o.filter((c=>!xn(c,e.selectedRows,r)))];return Object.assign(Object.assign({},e),{selectedCount:i.length,allSelected:!1,selectedRows:i,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:o.length,allSelected:o.length===a,selectedRows:o,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:r}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:r})}case"SORT_CHANGE":{const{sortDirection:r,selectedColumn:o,clearSelectedOnSort:a}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:o,sortDirection:r,currentPage:1}),a&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:r,paginationServer:o,visibleOnly:a,persistSelectedOnPageChange:s}=t,i=o&&s,c=o&&!s||a;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:r}),i&&{allSelected:!1}),c&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:r,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:r})}}}const si=ge`
|
|
72
72
|
pointer-events: none;
|
|
73
73
|
opacity: 0.4;
|
|
74
|
-
`,
|
|
74
|
+
`,ii=B.div`
|
|
75
75
|
position: relative;
|
|
76
76
|
box-sizing: border-box;
|
|
77
77
|
display: flex;
|
|
@@ -79,41 +79,41 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
79
79
|
width: 100%;
|
|
80
80
|
height: 100%;
|
|
81
81
|
max-width: 100%;
|
|
82
|
-
${({disabled:e})=>e&&
|
|
82
|
+
${({disabled:e})=>e&&si};
|
|
83
83
|
${({theme:e})=>e.table.style};
|
|
84
|
-
`,
|
|
84
|
+
`,li=ge`
|
|
85
85
|
position: sticky;
|
|
86
86
|
position: -webkit-sticky; /* Safari */
|
|
87
87
|
top: 0;
|
|
88
88
|
z-index: 1;
|
|
89
|
-
`,
|
|
89
|
+
`,ci=B.div`
|
|
90
90
|
display: flex;
|
|
91
91
|
width: 100%;
|
|
92
|
-
${({$fixedHeader:e})=>e&&
|
|
92
|
+
${({$fixedHeader:e})=>e&&li};
|
|
93
93
|
${({theme:e})=>e.head.style};
|
|
94
|
-
`,
|
|
94
|
+
`,di=B.div`
|
|
95
95
|
display: flex;
|
|
96
96
|
align-items: stretch;
|
|
97
97
|
width: 100%;
|
|
98
98
|
${({theme:e})=>e.headRow.style};
|
|
99
99
|
${({$dense:e,theme:t})=>e&&t.headRow.denseStyle};
|
|
100
|
-
`,
|
|
100
|
+
`,_o=(e,...t)=>ge`
|
|
101
101
|
@media screen and (max-width: ${599}px) {
|
|
102
|
-
${
|
|
102
|
+
${ge(e,...t)}
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,ui=(e,...t)=>ge`
|
|
105
105
|
@media screen and (max-width: ${959}px) {
|
|
106
|
-
${
|
|
106
|
+
${ge(e,...t)}
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,pi=(e,...t)=>ge`
|
|
109
109
|
@media screen and (max-width: ${1280}px) {
|
|
110
|
-
${
|
|
110
|
+
${ge(e,...t)}
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
112
|
+
`,fi=e=>(t,...n)=>ge`
|
|
113
113
|
@media screen and (max-width: ${e}px) {
|
|
114
|
-
${
|
|
114
|
+
${ge(t,...n)}
|
|
115
115
|
}
|
|
116
|
-
`,
|
|
116
|
+
`,Ct=B.div`
|
|
117
117
|
position: relative;
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
@@ -121,13 +121,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
121
121
|
line-height: normal;
|
|
122
122
|
${({theme:e,$headCell:t})=>e[t?"headCells":"cells"].style};
|
|
123
123
|
${({$noPadding:e})=>e&&"padding: 0"};
|
|
124
|
-
`,
|
|
124
|
+
`,Ao=B(Ct)`
|
|
125
125
|
flex-grow: ${({button:e,grow:t})=>t===0||e?0:t||1};
|
|
126
126
|
flex-shrink: 0;
|
|
127
127
|
flex-basis: 0;
|
|
128
128
|
max-width: ${({maxWidth:e})=>e||"100%"};
|
|
129
129
|
min-width: ${({minWidth:e})=>e||"100px"};
|
|
130
|
-
${({width:e})=>e&&
|
|
130
|
+
${({width:e})=>e&&ge`
|
|
131
131
|
min-width: ${e};
|
|
132
132
|
max-width: ${e};
|
|
133
133
|
`};
|
|
@@ -136,36 +136,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
136
136
|
${({compact:e,button:t})=>(e||t)&&"padding: 0"};
|
|
137
137
|
|
|
138
138
|
/* handle hiding cells */
|
|
139
|
-
${({hide:e})=>e&&e==="sm"&&
|
|
139
|
+
${({hide:e})=>e&&e==="sm"&&_o`
|
|
140
140
|
display: none;
|
|
141
141
|
`};
|
|
142
|
-
${({hide:e})=>e&&e==="md"&&
|
|
142
|
+
${({hide:e})=>e&&e==="md"&&ui`
|
|
143
143
|
display: none;
|
|
144
144
|
`};
|
|
145
|
-
${({hide:e})=>e&&e==="lg"&&
|
|
145
|
+
${({hide:e})=>e&&e==="lg"&&pi`
|
|
146
146
|
display: none;
|
|
147
147
|
`};
|
|
148
|
-
${({hide:e})=>e&&Number.isInteger(e)&&
|
|
148
|
+
${({hide:e})=>e&&Number.isInteger(e)&&fi(e)`
|
|
149
149
|
display: none;
|
|
150
150
|
`};
|
|
151
|
-
`,
|
|
151
|
+
`,mi=ge`
|
|
152
152
|
div:first-child {
|
|
153
153
|
white-space: ${({$wrapCell:e})=>e?"normal":"nowrap"};
|
|
154
154
|
overflow: ${({$allowOverflow:e})=>e?"visible":"hidden"};
|
|
155
155
|
text-overflow: ellipsis;
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
158
|
-
${({$renderAsCell:e})=>!e&&
|
|
157
|
+
`,gi=B(Ao).attrs((e=>({style:e.style})))`
|
|
158
|
+
${({$renderAsCell:e})=>!e&&mi};
|
|
159
159
|
${({theme:e,$isDragging:t})=>t&&e.cells.draggingStyle};
|
|
160
160
|
${({$cellStyle:e})=>e};
|
|
161
|
-
`;var
|
|
161
|
+
`;var hi=u.memo((function({id:e,column:t,row:n,rowIndex:r,dataTag:o,isDragging:a,onDragStart:s,onDragOver:i,onDragEnd:c,onDragEnter:d,onDragLeave:p}){const{conditionalStyle:f,classNames:h}=To(n,t.conditionalCellStyles,["rdt_TableCell"]);return u.createElement(gi,{id:e,"data-column-id":t.id,role:"cell",className:h,"data-tag":o,$cellStyle:t.style,$renderAsCell:!!t.cell,$allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,$wrapCell:t.wrap,style:f,$isDragging:a,onDragStart:s,onDragOver:i,onDragEnd:c,onDragEnter:d,onDragLeave:p},!t.cell&&u.createElement("div",{"data-tag":o},(function(y,C,x,k){return C?x&&typeof x=="function"?x(y,k):C(y,k):null})(n,t.selector,t.format,r)),t.cell&&t.cell(n,r,t,e))}));const Do="input";var Io=u.memo((function({name:e,component:t=Do,componentOptions:n={style:{}},indeterminate:r=!1,checked:o=!1,disabled:a=!1,onClick:s=he}){const i=t,c=i!==Do?n.style:(p=>Object.assign(Object.assign({fontSize:"18px"},!p&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(a),d=u.useMemo((()=>(function(p,...f){let h;return Object.keys(p).map((y=>p[y])).forEach(((y,C)=>{typeof y=="function"&&(h=Object.assign(Object.assign({},p),{[Object.keys(p)[C]]:y(...f)}))})),h||p})(n,r)),[n,r]);return u.createElement(i,Object.assign({type:"checkbox",ref:p=>{p&&(p.indeterminate=r)},style:c,onClick:a?he:s,name:e,"aria-label":e,checked:o,disabled:a},d,{onChange:he}))}));const bi=B(Ct)`
|
|
162
162
|
flex: 0 0 48px;
|
|
163
163
|
min-width: 48px;
|
|
164
164
|
justify-content: center;
|
|
165
165
|
align-items: center;
|
|
166
166
|
user-select: none;
|
|
167
167
|
white-space: nowrap;
|
|
168
|
-
`;function
|
|
168
|
+
`;function yi({name:e,keyField:t,row:n,rowCount:r,selected:o,selectableRowsComponent:a,selectableRowsComponentProps:s,selectableRowsSingle:i,selectableRowDisabled:c,onSelectedRow:d}){const p=!(!c||!c(n));return u.createElement(bi,{onClick:f=>f.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},u.createElement(Io,{name:e,component:a,componentOptions:s,checked:o,"aria-checked":o,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:n,isSelected:o,keyField:t,rowCount:r,singleSelect:i})},disabled:p}))}const vi=B.button`
|
|
169
169
|
display: inline-flex;
|
|
170
170
|
align-items: center;
|
|
171
171
|
user-select: none;
|
|
@@ -173,25 +173,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
173
173
|
border: none;
|
|
174
174
|
background-color: transparent;
|
|
175
175
|
${({theme:e})=>e.expanderButton.style};
|
|
176
|
-
`;function
|
|
176
|
+
`;function wi({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:r,row:o,onToggled:a}){const s=t?n.expanded:n.collapsed;return u.createElement(vi,{"aria-disabled":e,onClick:()=>a&&a(o),"data-testid":`expander-button-${r}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},s)}const xi=B(Ct)`
|
|
177
177
|
white-space: nowrap;
|
|
178
178
|
font-weight: 400;
|
|
179
179
|
min-width: 48px;
|
|
180
180
|
${({theme:e})=>e.expanderCell.style};
|
|
181
|
-
`;function
|
|
181
|
+
`;function Ci({row:e,expanded:t=!1,expandableIcon:n,id:r,onToggled:o,disabled:a=!1}){return u.createElement(xi,{onClick:s=>s.stopPropagation(),$noPadding:!0},u.createElement(wi,{id:r,row:e,expanded:t,expandableIcon:n,disabled:a,onToggled:o}))}const Si=B.div`
|
|
182
182
|
width: 100%;
|
|
183
183
|
box-sizing: border-box;
|
|
184
184
|
${({theme:e})=>e.expanderRow.style};
|
|
185
185
|
${({$extendedRowStyle:e})=>e};
|
|
186
|
-
`;var
|
|
186
|
+
`;var ki=u.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:n,extendedRowStyle:r,extendedClassNames:o}){const a=["rdt_ExpanderRow",...o.split(" ").filter((s=>s!=="rdt_TableRow"))].join(" ");return u.createElement(Si,{className:a,$extendedRowStyle:r},u.createElement(t,Object.assign({data:e},n)))}));const fr="allowRowEvents";var Sn,mr,No;(function(e){e.LTR="ltr",e.RTL="rtl",e.AUTO="auto"})(Sn||(Sn={})),(function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center"})(mr||(mr={})),(function(e){e.SM="sm",e.MD="md",e.LG="lg"})(No||(No={}));const Ri=ge`
|
|
187
187
|
&:hover {
|
|
188
188
|
${({$highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Ei=ge`
|
|
191
191
|
&:hover {
|
|
192
192
|
cursor: pointer;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
`,$i=B.div.attrs((e=>({style:e.style})))`
|
|
195
195
|
display: flex;
|
|
196
196
|
align-items: stretch;
|
|
197
197
|
align-content: stretch;
|
|
@@ -200,21 +200,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
200
200
|
${({theme:e})=>e.rows.style};
|
|
201
201
|
${({$dense:e,theme:t})=>e&&t.rows.denseStyle};
|
|
202
202
|
${({$striped:e,theme:t})=>e&&t.rows.stripedStyle};
|
|
203
|
-
${({$highlightOnHover:e})=>e&&
|
|
204
|
-
${({$pointerOnHover:e})=>e&&
|
|
203
|
+
${({$highlightOnHover:e})=>e&&Ri};
|
|
204
|
+
${({$pointerOnHover:e})=>e&&Ei};
|
|
205
205
|
${({$selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
|
|
206
206
|
${({$conditionalStyle:e})=>e};
|
|
207
|
-
`;function
|
|
207
|
+
`;function Oi({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:r=!1,dense:o=!1,expandableIcon:a,expandableRows:s=!1,expandableRowsComponent:i,expandableRowsComponentProps:c,expandableRowsHideExpander:d,expandOnRowClicked:p=!1,expandOnRowDoubleClicked:f=!1,highlightOnHover:h=!1,id:y,expandableInheritConditionalStyles:C,keyField:x,onRowClicked:k=he,onRowDoubleClicked:T=he,onRowMouseEnter:E=he,onRowMouseLeave:_=he,onRowExpandToggled:A=he,onSelectedRow:I=he,pointerOnHover:$=!1,row:S,rowCount:w,rowIndex:H,selectableRowDisabled:N=null,selectableRows:ne=!1,selectableRowsComponent:we,selectableRowsComponentProps:q,selectableRowsHighlight:de=!1,selectableRowsSingle:ue=!1,selected:ae,striped:le=!1,draggingColumnId:je,onDragStart:pe,onDragOver:j,onDragEnd:ke,onDragEnter:Z,onDragLeave:Oe}){const[ye,ee]=u.useState(n);u.useEffect((()=>{ee(n)}),[n]);const U=u.useCallback((()=>{ee(!ye),A(!ye,S)}),[ye,A,S]),Ce=$||s&&(p||f),xe=u.useCallback((se=>{se.target.getAttribute("data-tag")===fr&&(k(S,se),!r&&s&&p&&U())}),[r,p,s,U,k,S]),Y=u.useCallback((se=>{se.target.getAttribute("data-tag")===fr&&(T(S,se),!r&&s&&f&&U())}),[r,f,s,U,T,S]),Re=u.useCallback((se=>{E(S,se)}),[E,S]),fe=u.useCallback((se=>{_(S,se)}),[_,S]),re=xt(S,x),{conditionalStyle:Me,classNames:Ie}=To(S,t,["rdt_TableRow"]),Xe=de&&ae,Be=C?Me:{},Pt=le&&H%2==0;return u.createElement(u.Fragment,null,u.createElement($i,{id:`row-${y}`,role:"row",$striped:Pt,$highlightOnHover:h,$pointerOnHover:!r&&Ce,$dense:o,onClick:xe,onDoubleClick:Y,onMouseEnter:Re,onMouseLeave:fe,className:Ie,$selected:Xe,$conditionalStyle:Me},ne&&u.createElement(yi,{name:`select-row-${re}`,keyField:x,row:S,rowCount:w,selected:ae,selectableRowsComponent:we,selectableRowsComponentProps:q,selectableRowDisabled:N,selectableRowsSingle:ue,onSelectedRow:I}),s&&!d&&u.createElement(Ci,{id:re,expandableIcon:a,expanded:ye,row:S,onToggled:U,disabled:r}),e.map((se=>se.omit?null:u.createElement(hi,{id:`cell-${se.id}-${re}`,key:`cell-${se.id}-${re}`,dataTag:se.ignoreRowClick||se.button?null:fr,column:se,row:S,rowIndex:H,isDragging:Wt(je,se.id),onDragStart:pe,onDragOver:j,onDragEnd:ke,onDragEnter:Z,onDragLeave:Oe})))),s&&ye&&u.createElement(ki,{key:`expander-${re}`,data:S,extendedRowStyle:Be,extendedClassNames:Ie,ExpanderComponent:i,expanderComponentProps:c}))}const Pi=B.span`
|
|
208
208
|
padding: 2px;
|
|
209
209
|
color: inherit;
|
|
210
210
|
flex-grow: 0;
|
|
211
211
|
flex-shrink: 0;
|
|
212
212
|
${({$sortActive:e})=>e?"opacity: 1":"opacity: 0"};
|
|
213
213
|
${({$sortDirection:e})=>e==="desc"&&"transform: rotate(180deg)"};
|
|
214
|
-
`,
|
|
214
|
+
`,ji=({sortActive:e,sortDirection:t})=>g.createElement(Pi,{$sortActive:e,$sortDirection:t},"▲"),Ti=B(Ao)`
|
|
215
215
|
${({button:e})=>e&&"text-align: center"};
|
|
216
216
|
${({theme:e,$isDragging:t})=>t&&e.headCells.draggingStyle};
|
|
217
|
-
`,
|
|
217
|
+
`,_i=ge`
|
|
218
218
|
cursor: pointer;
|
|
219
219
|
span.__rdt_custom_sort_icon__ {
|
|
220
220
|
i,
|
|
@@ -237,7 +237,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
${({$sortActive:e})=>!e&&
|
|
240
|
+
${({$sortActive:e})=>!e&&ge`
|
|
241
241
|
&:hover,
|
|
242
242
|
&:focus {
|
|
243
243
|
opacity: 0.7;
|
|
@@ -248,7 +248,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
`};
|
|
251
|
-
`,
|
|
251
|
+
`,Ai=B.div`
|
|
252
252
|
display: inline-flex;
|
|
253
253
|
align-items: center;
|
|
254
254
|
justify-content: inherit;
|
|
@@ -257,19 +257,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
257
257
|
outline: none;
|
|
258
258
|
user-select: none;
|
|
259
259
|
overflow: hidden;
|
|
260
|
-
${({disabled:e})=>!e&&
|
|
261
|
-
`,
|
|
260
|
+
${({disabled:e})=>!e&&_i};
|
|
261
|
+
`,Di=B.div`
|
|
262
262
|
overflow: hidden;
|
|
263
263
|
white-space: nowrap;
|
|
264
264
|
text-overflow: ellipsis;
|
|
265
|
-
`;var
|
|
265
|
+
`;var Ii=u.memo((function({column:e,disabled:t,draggingColumnId:n,selectedColumn:r={},sortDirection:o,sortIcon:a,sortServer:s,pagination:i,paginationServer:c,persistSelectedOnSort:d,selectableRowsVisibleOnly:p,onSort:f,onDragStart:h,onDragOver:y,onDragEnd:C,onDragEnter:x,onDragLeave:k}){u.useEffect((()=>{typeof e.selector=="string"&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[T,E]=u.useState(!1),_=u.useRef(null);if(u.useEffect((()=>{_.current&&E(_.current.scrollWidth>_.current.clientWidth)}),[T]),e.omit)return null;const A=()=>{if(!e.sortable&&!e.selector)return;let q=o;Wt(r.id,e.id)&&(q=o===Ue.ASC?Ue.DESC:Ue.ASC),f({type:"SORT_CHANGE",sortDirection:q,selectedColumn:e,clearSelectedOnSort:i&&c&&!d||s||p})},I=q=>u.createElement(ji,{sortActive:q,sortDirection:o}),$=()=>u.createElement("span",{className:[o,"__rdt_custom_sort_icon__"].join(" ")},a),S=!(!e.sortable||!Wt(r.id,e.id)),w=!e.sortable||t,H=e.sortable&&!a&&!e.right,N=e.sortable&&!a&&e.right,ne=e.sortable&&a&&!e.right,we=e.sortable&&a&&e.right;return u.createElement(Ti,{"data-column-id":e.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,$isDragging:Wt(e.id,n),onDragStart:h,onDragOver:y,onDragEnd:C,onDragEnter:x,onDragLeave:k},e.name&&u.createElement(Ai,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:w?void 0:A,onKeyPress:w?void 0:q=>{q.key==="Enter"&&A()},$sortActive:!w&&S,disabled:w},!w&&we&&$(),!w&&N&&I(S),typeof e.name=="string"?u.createElement(Di,{title:T?e.name:void 0,ref:_,"data-column-id":e.id},e.name):e.name,!w&&ne&&$(),!w&&H&&I(S)))}));const Ni=B(Ct)`
|
|
266
266
|
flex: 0 0 48px;
|
|
267
267
|
justify-content: center;
|
|
268
268
|
align-items: center;
|
|
269
269
|
user-select: none;
|
|
270
270
|
white-space: nowrap;
|
|
271
271
|
font-size: unset;
|
|
272
|
-
`;function
|
|
272
|
+
`;function Fi({headCell:e=!0,rowData:t,keyField:n,allSelected:r,mergeSelections:o,selectedRows:a,selectableRowsComponent:s,selectableRowsComponentProps:i,selectableRowDisabled:c,onSelectAllRows:d}){const p=a.length>0&&!r,f=c?t.filter((C=>!c(C))):t,h=f.length===0,y=Math.min(t.length,f.length);return u.createElement(Ni,{className:"rdt_TableCol",$headCell:e,$noPadding:!0},u.createElement(Io,{name:"select-all-rows",component:s,componentOptions:i,onClick:()=>{d({type:"SELECT_ALL_ROWS",rows:f,rowCount:y,mergeSelections:o,keyField:n})},checked:r,indeterminate:p,disabled:h}))}function Fo(e=Sn.AUTO){const t=typeof window=="object",[n,r]=u.useState(!1);return u.useEffect((()=>{if(t)if(e!=="auto")r(e==="rtl");else{const o=!(!window.document||!window.document.createElement),a=document.getElementsByTagName("BODY")[0],s=document.getElementsByTagName("HTML")[0],i=a.dir==="rtl"||s.dir==="rtl";r(o&&i)}}),[e,t]),n}const Mi=B.div`
|
|
273
273
|
display: flex;
|
|
274
274
|
align-items: center;
|
|
275
275
|
flex: 1 0 auto;
|
|
@@ -277,12 +277,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
277
277
|
color: ${({theme:e})=>e.contextMenu.fontColor};
|
|
278
278
|
font-size: ${({theme:e})=>e.contextMenu.fontSize};
|
|
279
279
|
font-weight: 400;
|
|
280
|
-
`,
|
|
280
|
+
`,Li=B.div`
|
|
281
281
|
display: flex;
|
|
282
282
|
align-items: center;
|
|
283
283
|
justify-content: flex-end;
|
|
284
284
|
flex-wrap: wrap;
|
|
285
|
-
`,
|
|
285
|
+
`,Mo=B.div`
|
|
286
286
|
position: absolute;
|
|
287
287
|
top: 0;
|
|
288
288
|
left: 0;
|
|
@@ -296,7 +296,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
296
296
|
${({$rtl:e})=>e&&"direction: rtl"};
|
|
297
297
|
${({theme:e})=>e.contextMenu.style};
|
|
298
298
|
${({theme:e,$visible:t})=>t&&e.contextMenu.activeStyle};
|
|
299
|
-
`;function
|
|
299
|
+
`;function zi({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:r,direction:o}){const a=Fo(o),s=r>0;return n?u.createElement(Mo,{$visible:s},u.cloneElement(n,{selectedCount:r})):u.createElement(Mo,{$visible:s,$rtl:a},u.createElement(Mi,null,((i,c,d)=>{if(c===0)return null;const p=c===1?i.singular:i.plural;return d?`${c} ${i.message||""} ${p}`:`${c} ${p} ${i.message||""}`})(e,r,a)),u.createElement(Li,null,t))}const Hi=B.div`
|
|
300
300
|
position: relative;
|
|
301
301
|
box-sizing: border-box;
|
|
302
302
|
overflow: hidden;
|
|
@@ -307,12 +307,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
307
307
|
width: 100%;
|
|
308
308
|
flex-wrap: wrap;
|
|
309
309
|
${({theme:e})=>e.header.style}
|
|
310
|
-
`,
|
|
310
|
+
`,Wi=B.div`
|
|
311
311
|
flex: 1 0 auto;
|
|
312
312
|
color: ${({theme:e})=>e.header.fontColor};
|
|
313
313
|
font-size: ${({theme:e})=>e.header.fontSize};
|
|
314
314
|
font-weight: 400;
|
|
315
|
-
`,
|
|
315
|
+
`,Vi=B.div`
|
|
316
316
|
flex: 1 0 auto;
|
|
317
317
|
display: flex;
|
|
318
318
|
align-items: center;
|
|
@@ -321,7 +321,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
321
321
|
> * {
|
|
322
322
|
margin-left: 5px;
|
|
323
323
|
}
|
|
324
|
-
`,
|
|
324
|
+
`,Bi=({title:e,actions:t=null,contextMessage:n,contextActions:r,contextComponent:o,selectedCount:a,direction:s,showMenu:i=!0})=>u.createElement(Hi,{className:"rdt_TableHeader",role:"heading","aria-level":1},u.createElement(Wi,null,e),t&&u.createElement(Vi,null,t),i&&u.createElement(zi,{contextMessage:n,contextActions:r,contextComponent:o,direction:s,selectedCount:a}));function Lo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;const Gi={left:"flex-start",right:"flex-end",center:"center"},qi=B.header`
|
|
325
325
|
position: relative;
|
|
326
326
|
display: flex;
|
|
327
327
|
flex: 1 1 auto;
|
|
@@ -329,17 +329,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
329
329
|
align-items: center;
|
|
330
330
|
padding: 4px 16px 4px 24px;
|
|
331
331
|
width: 100%;
|
|
332
|
-
justify-content: ${({align:e})=>
|
|
332
|
+
justify-content: ${({align:e})=>Gi[e]};
|
|
333
333
|
flex-wrap: ${({$wrapContent:e})=>e?"wrap":"nowrap"};
|
|
334
334
|
${({theme:e})=>e.subHeader.style}
|
|
335
|
-
`,
|
|
335
|
+
`,Yi=e=>{var{align:t="right",wrapContent:n=!0}=e,r=Lo(e,["align","wrapContent"]);return u.createElement(qi,Object.assign({align:t,$wrapContent:n},r))},Ui=B.div`
|
|
336
336
|
display: flex;
|
|
337
337
|
flex-direction: column;
|
|
338
|
-
`,
|
|
338
|
+
`,Ki=B.div`
|
|
339
339
|
position: relative;
|
|
340
340
|
width: 100%;
|
|
341
341
|
border-radius: inherit;
|
|
342
|
-
${({$responsive:e,$fixedHeader:t})=>e&&
|
|
342
|
+
${({$responsive:e,$fixedHeader:t})=>e&&ge`
|
|
343
343
|
overflow-x: auto;
|
|
344
344
|
|
|
345
345
|
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
|
|
@@ -347,31 +347,31 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
347
347
|
min-height: 0;
|
|
348
348
|
`};
|
|
349
349
|
|
|
350
|
-
${({$fixedHeader:e=!1,$fixedHeaderScrollHeight:t="100vh"})=>e&&
|
|
350
|
+
${({$fixedHeader:e=!1,$fixedHeaderScrollHeight:t="100vh"})=>e&&ge`
|
|
351
351
|
max-height: ${t};
|
|
352
352
|
-webkit-overflow-scrolling: touch;
|
|
353
353
|
`};
|
|
354
354
|
|
|
355
355
|
${({theme:e})=>e.responsiveWrapper.style};
|
|
356
|
-
`,
|
|
356
|
+
`,zo=B.div`
|
|
357
357
|
position: relative;
|
|
358
358
|
box-sizing: border-box;
|
|
359
359
|
width: 100%;
|
|
360
360
|
height: 100%;
|
|
361
361
|
${e=>e.theme.progress.style};
|
|
362
|
-
`,
|
|
362
|
+
`,Ji=B.div`
|
|
363
363
|
position: relative;
|
|
364
364
|
width: 100%;
|
|
365
365
|
${({theme:e})=>e.tableWrapper.style};
|
|
366
|
-
`,
|
|
366
|
+
`,Qi=B(Ct)`
|
|
367
367
|
white-space: nowrap;
|
|
368
368
|
${({theme:e})=>e.expanderCell.style};
|
|
369
|
-
`,
|
|
369
|
+
`,Xi=B.div`
|
|
370
370
|
box-sizing: border-box;
|
|
371
371
|
width: 100%;
|
|
372
372
|
height: 100%;
|
|
373
373
|
${({theme:e})=>e.noData.style};
|
|
374
|
-
`,
|
|
374
|
+
`,Zi=()=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},g.createElement("path",{d:"M7 10l5 5 5-5z"}),g.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),el=B.select`
|
|
375
375
|
cursor: pointer;
|
|
376
376
|
height: 24px;
|
|
377
377
|
max-width: 100%;
|
|
@@ -398,7 +398,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
398
398
|
option {
|
|
399
399
|
color: initial;
|
|
400
400
|
}
|
|
401
|
-
`,
|
|
401
|
+
`,tl=B.div`
|
|
402
402
|
position: relative;
|
|
403
403
|
flex-shrink: 0;
|
|
404
404
|
font-size: inherit;
|
|
@@ -417,7 +417,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
417
417
|
user-select: none;
|
|
418
418
|
pointer-events: none;
|
|
419
419
|
}
|
|
420
|
-
`,
|
|
420
|
+
`,nl=e=>{var{defaultValue:t,onChange:n}=e,r=Lo(e,["defaultValue","onChange"]);return u.createElement(tl,null,u.createElement(el,Object.assign({onChange:n,defaultValue:t},r)),u.createElement(Zi,null))},v={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return g.createElement("div",null,"To add an expander pass in a component instance via ",g.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:g.createElement((()=>g.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),g.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:g.createElement((()=>g.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),g.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:g.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:g.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:mr.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:g.createElement((()=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},g.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),g.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:g.createElement((()=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},g.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),g.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:g.createElement((()=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},g.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),g.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:g.createElement((()=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},g.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),g.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:Sn.AUTO,onChangePage:he,onChangeRowsPerPage:he,onRowClicked:he,onRowDoubleClicked:he,onRowMouseEnter:he,onRowMouseLeave:he,onRowExpandToggled:he,onSelectedRowsChange:he,onSort:he,onColumnOrderChange:he},rl={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},ol=B.nav`
|
|
421
421
|
display: flex;
|
|
422
422
|
flex: 1 1 auto;
|
|
423
423
|
justify-content: flex-end;
|
|
@@ -427,30 +427,30 @@ See https://s-c.sh/2BAXzed for more info.`),window[cn]+=1);var ze;function ct(e,
|
|
|
427
427
|
padding-left: 8px;
|
|
428
428
|
width: 100%;
|
|
429
429
|
${({theme:e})=>e.pagination.style};
|
|
430
|
-
`,
|
|
430
|
+
`,kn=B.button`
|
|
431
431
|
position: relative;
|
|
432
432
|
display: block;
|
|
433
433
|
user-select: none;
|
|
434
434
|
border: none;
|
|
435
435
|
${({theme:e})=>e.pagination.pageButtonsStyle};
|
|
436
436
|
${({$isRTL:e})=>e&&"transform: scale(-1, -1)"};
|
|
437
|
-
`,
|
|
437
|
+
`,al=B.div`
|
|
438
438
|
display: flex;
|
|
439
439
|
align-items: center;
|
|
440
440
|
border-radius: 4px;
|
|
441
441
|
white-space: nowrap;
|
|
442
|
-
${
|
|
442
|
+
${_o`
|
|
443
443
|
width: 100%;
|
|
444
444
|
justify-content: space-around;
|
|
445
445
|
`};
|
|
446
|
-
`,
|
|
446
|
+
`,Ho=B.span`
|
|
447
447
|
flex-shrink: 1;
|
|
448
448
|
user-select: none;
|
|
449
|
-
`,
|
|
449
|
+
`,sl=B(Ho)`
|
|
450
450
|
margin: 0 24px;
|
|
451
|
-
`,
|
|
451
|
+
`,il=B(Ho)`
|
|
452
452
|
margin: 0 4px;
|
|
453
|
-
`;var ms=u.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:r=b.direction,paginationRowsPerPageOptions:o=b.paginationRowsPerPageOptions,paginationIconLastPage:a=b.paginationIconLastPage,paginationIconFirstPage:i=b.paginationIconFirstPage,paginationIconNext:l=b.paginationIconNext,paginationIconPrevious:c=b.paginationIconPrevious,paginationComponentOptions:p=b.paginationComponentOptions,onChangeRowsPerPage:g=b.onChangeRowsPerPage,onChangePage:f=b.onChangePage}){const y=(()=>{const z=typeof window=="object";function se(){return{width:z?window.innerWidth:void 0,height:z?window.innerHeight:void 0}}const[be,Oe]=u.useState(se);return u.useEffect((()=>{if(!z)return()=>null;function ye(){Oe(se())}return window.addEventListener("resize",ye),()=>window.removeEventListener("resize",ye)}),[]),be})(),v=yo(r),C=y.width&&y.width>599,S=Tt(t,e),R=n*e,j=R-e+1,E=n===1,P=n===S,k=Object.assign(Object.assign({},ds),p),D=n===S?`${j}-${t} ${k.rangeSeparatorText} ${t}`:`${j}-${R} ${k.rangeSeparatorText} ${t}`,$=u.useCallback((()=>f(n-1)),[n,f]),x=u.useCallback((()=>f(n+1)),[n,f]),L=u.useCallback((()=>f(1)),[f]),G=u.useCallback((()=>f(Tt(t,e))),[f,t,e]),A=u.useCallback((z=>g(Number(z.target.value),n)),[n,g]),J=o.map((z=>u.createElement("option",{key:z,value:z},z)));k.selectAllRowsItem&&J.push(u.createElement("option",{key:-1,value:t},k.selectAllRowsItemText));const me=u.createElement(us,{onChange:A,defaultValue:e,"aria-label":k.rowsPerPageText},J);return u.createElement(ps,{className:"rdt_Pagination"},!k.noRowsPerPage&&C&&u.createElement(u.Fragment,null,u.createElement(hs,null,k.rowsPerPageText),me),C&&u.createElement(gs,null,D),u.createElement(fs,null,u.createElement(fn,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":E,onClick:L,disabled:E,$isRTL:v},i),u.createElement(fn,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":E,onClick:$,disabled:E,$isRTL:v},c),!k.noRowsPerPage&&!C&&me,u.createElement(fn,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":P,onClick:x,disabled:P,$isRTL:v},l),u.createElement(fn,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":P,onClick:G,disabled:P,$isRTL:v},a)))}));const Ze=(e,t)=>{const n=u.useRef(!0);u.useEffect((()=>{n.current?n.current=!1:e()}),t)};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ys=function(e){return(function(t){return!!t&&typeof t=="object"})(e)&&!(function(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||(function(r){return r.$$typeof===vs})(t)})(e)},vs=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Dt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?dt((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function ws(e,t,n){return e.concat(t).map((function(r){return Dt(r,n)}))}function So(e){return Object.keys(e).concat((function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(n){return Object.propertyIsEnumerable.call(t,n)})):[]})(e))}function Eo(e,t){try{return t in e}catch{return!1}}function xs(e,t,n){var r={};return n.isMergeableObject(e)&&So(e).forEach((function(o){r[o]=Dt(e[o],n)})),So(t).forEach((function(o){(function(a,i){return Eo(a,i)&&!(Object.hasOwnProperty.call(a,i)&&Object.propertyIsEnumerable.call(a,i))})(e,o)||(Eo(e,o)&&n.isMergeableObject(t[o])?r[o]=(function(a,i){if(!i.customMerge)return dt;var l=i.customMerge(a);return typeof l=="function"?l:dt})(o,n)(e[o],t[o],n):r[o]=Dt(t[o],n))})),r}function dt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ws,n.isMergeableObject=n.isMergeableObject||ys,n.cloneUnlessOtherwiseSpecified=Dt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):xs(e,t,n):Dt(t,n)}dt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(n,r){return dt(n,r,t)}),{})};var Cs=bs(dt);const Ro={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},$o={default:Ro,light:Ro,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Ss(e,t,n,r){const[o,a]=u.useState((()=>uo(e))),[i,l]=u.useState(""),c=u.useRef("");Ze((()=>{a(uo(e))}),[e]);const p=u.useCallback((R=>{var j,E,P;const{attributes:k}=R.target,D=(j=k.getNamedItem("data-column-id"))===null||j===void 0?void 0:j.value;D&&(c.current=((P=(E=o[dn(o,D)])===null||E===void 0?void 0:E.id)===null||P===void 0?void 0:P.toString())||"",l(c.current))}),[o]),g=u.useCallback((R=>{var j;const{attributes:E}=R.target,P=(j=E.getNamedItem("data-column-id"))===null||j===void 0?void 0:j.value;if(P&&c.current&&P!==c.current){const k=dn(o,c.current),D=dn(o,P),$=[...o];$[k]=o[D],$[D]=o[k],a($),t($)}}),[t,o]),f=u.useCallback((R=>{R.preventDefault()}),[]),y=u.useCallback((R=>{R.preventDefault()}),[]),v=u.useCallback((R=>{R.preventDefault(),c.current="",l("")}),[]),C=(function(R=!1){return R?ze.ASC:ze.DESC})(r),S=u.useMemo((()=>o[dn(o,n?.toString())]||{}),[n,o]);return{tableColumns:o,draggingColumnId:i,handleDragStart:p,handleDragEnter:g,handleDragOver:f,handleDragLeave:y,handleDragEnd:v,defaultSortDirection:C,defaultSortColumn:S}}var Oo=u.memo((function(e){const{data:t=b.data,columns:n=b.columns,title:r=b.title,actions:o=b.actions,keyField:a=b.keyField,striped:i=b.striped,highlightOnHover:l=b.highlightOnHover,pointerOnHover:c=b.pointerOnHover,dense:p=b.dense,selectableRows:g=b.selectableRows,selectableRowsSingle:f=b.selectableRowsSingle,selectableRowsHighlight:y=b.selectableRowsHighlight,selectableRowsNoSelectAll:v=b.selectableRowsNoSelectAll,selectableRowsVisibleOnly:C=b.selectableRowsVisibleOnly,selectableRowSelected:S=b.selectableRowSelected,selectableRowDisabled:R=b.selectableRowDisabled,selectableRowsComponent:j=b.selectableRowsComponent,selectableRowsComponentProps:E=b.selectableRowsComponentProps,onRowExpandToggled:P=b.onRowExpandToggled,onSelectedRowsChange:k=b.onSelectedRowsChange,expandableIcon:D=b.expandableIcon,onChangeRowsPerPage:$=b.onChangeRowsPerPage,onChangePage:x=b.onChangePage,paginationServer:L=b.paginationServer,paginationServerOptions:G=b.paginationServerOptions,paginationTotalRows:A=b.paginationTotalRows,paginationDefaultPage:J=b.paginationDefaultPage,paginationResetDefaultPage:me=b.paginationResetDefaultPage,paginationPerPage:z=b.paginationPerPage,paginationRowsPerPageOptions:se=b.paginationRowsPerPageOptions,paginationIconLastPage:be=b.paginationIconLastPage,paginationIconFirstPage:Oe=b.paginationIconFirstPage,paginationIconNext:ye=b.paginationIconNext,paginationIconPrevious:Ne=b.paginationIconPrevious,paginationComponent:le=b.paginationComponent,paginationComponentOptions:xe=b.paginationComponentOptions,responsive:Ce=b.responsive,progressPending:U=b.progressPending,progressComponent:Pe=b.progressComponent,persistTableHead:ue=b.persistTableHead,noDataComponent:ke=b.noDataComponent,disabled:ae=b.disabled,noTableHead:Se=b.noTableHead,noHeader:de=b.noHeader,fixedHeader:ce=b.fixedHeader,fixedHeaderScrollHeight:Ee=b.fixedHeaderScrollHeight,pagination:pe=b.pagination,subHeader:re=b.subHeader,subHeaderAlign:bt=b.subHeaderAlign,subHeaderWrap:yt=b.subHeaderWrap,subHeaderComponent:We=b.subHeaderComponent,noContextMenu:Fe=b.noContextMenu,contextMessage:vt=b.contextMessage,contextActions:Q=b.contextActions,contextComponent:wt=b.contextComponent,expandableRows:xt=b.expandableRows,onRowClicked:vn=b.onRowClicked,onRowDoubleClicked:Ct=b.onRowDoubleClicked,onRowMouseEnter:wn=b.onRowMouseEnter,onRowMouseLeave:xn=b.onRowMouseLeave,sortIcon:Cn=b.sortIcon,onSort:Sn=b.onSort,sortFunction:Nt=b.sortFunction,sortServer:Ft=b.sortServer,expandableRowsComponent:En=b.expandableRowsComponent,expandableRowsComponentProps:Rn=b.expandableRowsComponentProps,expandableRowDisabled:$n=b.expandableRowDisabled,expandableRowsHideExpander:On=b.expandableRowsHideExpander,expandOnRowClicked:dr=b.expandOnRowClicked,expandOnRowDoubleClicked:pr=b.expandOnRowDoubleClicked,expandableRowExpanded:Pn=b.expandableRowExpanded,expandableInheritConditionalStyles:fr=b.expandableInheritConditionalStyles,defaultSortFieldId:gr=b.defaultSortFieldId,defaultSortAsc:Mt=b.defaultSortAsc,clearSelectedRows:Lt=b.clearSelectedRows,conditionalRowStyles:qe=b.conditionalRowStyles,theme:St=b.theme,customStyles:Et=b.customStyles,direction:Ve=b.direction,onColumnOrderChange:hr=b.onColumnOrderChange,className:kn}=e,{tableColumns:jn,draggingColumnId:Ht,handleDragStart:zt,handleDragEnter:Tn,handleDragOver:_n,handleDragLeave:Wt,handleDragEnd:qt,defaultSortDirection:mr,defaultSortColumn:br}=Ss(n,hr,gr,Mt),[{rowsPerPage:_e,currentPage:ve,selectedRows:s,allSelected:m,selectedCount:w,selectedColumn:O,sortDirection:H,toggleOnSelectedRowsChange:B},I]=u.useReducer(fi,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:br,toggleOnSelectedRowsChange:!1,sortDirection:mr,currentPage:J,rowsPerPage:z,selectedRowsFlag:!1,contextMessage:b.contextMessage}),{persistSelectedOnSort:F=!1,persistSelectedOnPageChange:ee=!1}=G,K=!(!L||!ee&&!F),X=pe&&!U&&t.length>0,he=le||ms,Be=u.useMemo((()=>((T={},q="default",fe="default")=>{const je=$o[q]?q:fe;return Cs({table:{style:{color:(_=$o[je]).text.primary,backgroundColor:_.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:_.text.primary,backgroundColor:_.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:_.background.default,minHeight:"52px"}},head:{style:{color:_.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:_.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:_.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:_.context.background,fontSize:"18px",fontWeight:400,color:_.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:_.text.primary,backgroundColor:_.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:_.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:_.selected.text,backgroundColor:_.selected.default,borderBottomColor:_.background.default}},highlightOnHoverStyle:{color:_.highlightOnHover.text,backgroundColor:_.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:_.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:_.background.default},stripedStyle:{color:_.striped.text,backgroundColor:_.striped.default}},expanderRow:{style:{color:_.text.primary,backgroundColor:_.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:_.button.default,fill:_.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:_.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:_.button.hover},"&:focus":{outline:"none",backgroundColor:_.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:_.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:_.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:_.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:_.button.default,fill:_.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:_.button.disabled,fill:_.button.disabled},"&:hover:not(:disabled)":{backgroundColor:_.button.hover},"&:focus":{outline:"none",backgroundColor:_.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:_.text.primary,backgroundColor:_.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:_.text.primary,backgroundColor:_.background.default}}},T);var _})(Et,St)),[Et,St]),Me=u.useMemo((()=>Object.assign({},Ve!=="auto"&&{dir:Ve})),[Ve]),W=u.useMemo((()=>{if(Ft)return t;if(O?.sortFunction&&typeof O.sortFunction=="function"){const T=O.sortFunction,q=H===ze.ASC?T:(fe,je)=>-1*T(fe,je);return[...t].sort(q)}return(function(T,q,fe,je){return q?je&&typeof je=="function"?je(T.slice(0),q,fe):T.slice(0).sort(((_,wr)=>{const $t=q(_),Ge=q(wr);if(fe==="asc"){if($t<Ge)return-1;if($t>Ge)return 1}if(fe==="desc"){if($t>Ge)return-1;if($t<Ge)return 1}return 0})):T})(t,O?.selector,H,Nt)}),[Ft,O,H,t,Nt]),Le=u.useMemo((()=>{if(pe&&!L){const T=ve*_e,q=T-_e;return W.slice(q,T)}return W}),[ve,pe,L,_e,W]),yr=u.useCallback((T=>{I(T)}),[]),vr=u.useCallback((T=>{I(T)}),[]),Al=u.useCallback((T=>{I(T)}),[]),Il=u.useCallback(((T,q)=>vn(T,q)),[vn]),Nl=u.useCallback(((T,q)=>Ct(T,q)),[Ct]),Fl=u.useCallback(((T,q)=>wn(T,q)),[wn]),Ml=u.useCallback(((T,q)=>xn(T,q)),[xn]),Rt=u.useCallback((T=>I({type:"CHANGE_PAGE",page:T,paginationServer:L,visibleOnly:C,persistSelectedOnPageChange:ee})),[L,ee,C]),Ll=u.useCallback((T=>{const q=Tt(A||Le.length,T),fe=Qn(ve,q);L||Rt(fe),I({type:"CHANGE_ROWS_PER_PAGE",page:fe,rowsPerPage:T})}),[ve,Rt,L,A,Le.length]);if(pe&&!L&&W.length>0&&Le.length===0){const T=Tt(W.length,_e),q=Qn(ve,T);Rt(q)}Ze((()=>{k({allSelected:m,selectedCount:w,selectedRows:s.slice(0)})}),[B]),Ze((()=>{Sn(O,H,W.slice(0))}),[O,H]),Ze((()=>{x(ve,A||W.length)}),[ve]),Ze((()=>{$(_e,ve)}),[_e]),Ze((()=>{Rt(J)}),[J,me]),Ze((()=>{if(pe&&L&&A>0){const T=Tt(A,_e),q=Qn(ve,T);ve!==q&&Rt(q)}}),[A]),u.useEffect((()=>{I({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Lt})}),[f,Lt]),u.useEffect((()=>{if(!S)return;const T=W.filter((fe=>S(fe))),q=f?T.slice(0,1):T;I({type:"SELECT_MULTIPLE_ROWS",keyField:a,selectedRows:q,totalRows:W.length,mergeSelections:K})}),[t,S]);const Hl=C?Le:W,zl=ee||f||v;return u.createElement(ci,{theme:Be},!de&&(!!r||!!o)&&u.createElement(Xi,{title:r,actions:o,showMenu:!Fe,selectedCount:w,direction:Ve,contextActions:Q,contextComponent:wt,contextMessage:vt}),re&&u.createElement(ts,{align:bt,wrapContent:yt},We),u.createElement(rs,Object.assign({$responsive:Ce,$fixedHeader:ce,$fixedHeaderScrollHeight:Ee,className:kn},Me),u.createElement(os,null,U&&!ue&&u.createElement(xo,null,Pe),u.createElement(hi,{disabled:ae,className:"rdt_Table",role:"table"},!Se&&(!!ue||W.length>0&&!U)&&u.createElement(bi,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:ce},u.createElement(yi,{className:"rdt_TableHeadRow",role:"row",$dense:p},g&&(zl?u.createElement(ut,{style:{flex:"0 0 48px"}}):u.createElement(Bi,{allSelected:m,selectedRows:s,selectableRowsComponent:j,selectableRowsComponentProps:E,selectableRowDisabled:R,rowData:Hl,keyField:a,mergeSelections:K,onSelectAllRows:vr})),xt&&!On&&u.createElement(as,null),jn.map((T=>u.createElement(qi,{key:T.id,column:T,selectedColumn:O,disabled:U||W.length===0,pagination:pe,paginationServer:L,persistSelectedOnSort:F,selectableRowsVisibleOnly:C,sortDirection:H,sortIcon:Cn,sortServer:Ft,onSort:yr,onDragStart:zt,onDragOver:_n,onDragEnd:qt,onDragEnter:Tn,onDragLeave:Wt,draggingColumnId:Ht}))))),!W.length&&!U&&u.createElement(is,null,ke),U&&ue&&u.createElement(xo,null,Pe),!U&&W.length>0&&u.createElement(ns,{className:"rdt_TableBody",role:"rowgroup"},Le.map(((T,q)=>{const fe=ct(T,a),je=(function(Ge=""){return typeof Ge!="number"&&(!Ge||Ge.length===0)})(fe)?q:fe,_=un(T,s,a),wr=!!(xt&&Pn&&Pn(T)),$t=!!(xt&&$n&&$n(T));return u.createElement(Ni,{id:je,key:je,keyField:a,"data-row-id":je,columns:jn,row:T,rowCount:W.length,rowIndex:q,selectableRows:g,expandableRows:xt,expandableIcon:D,highlightOnHover:l,pointerOnHover:c,dense:p,expandOnRowClicked:dr,expandOnRowDoubleClicked:pr,expandableRowsComponent:En,expandableRowsComponentProps:Rn,expandableRowsHideExpander:On,defaultExpanderDisabled:$t,defaultExpanded:wr,expandableInheritConditionalStyles:fr,conditionalRowStyles:qe,selected:_,selectableRowsHighlight:y,selectableRowsComponent:j,selectableRowsComponentProps:E,selectableRowDisabled:R,selectableRowsSingle:f,striped:i,onRowExpandToggled:P,onRowClicked:Il,onRowDoubleClicked:Nl,onRowMouseEnter:Fl,onRowMouseLeave:Ml,onSelectedRow:Al,draggingColumnId:Ht,onDragStart:zt,onDragOver:_n,onDragEnd:qt,onDragEnter:Tn,onDragLeave:Wt})})))))),X&&u.createElement("div",null,u.createElement(he,{onChangePage:Rt,onChangeRowsPerPage:Ll,rowCount:A||W.length,currentPage:ve,rowsPerPage:_e,direction:Ve,paginationRowsPerPageOptions:se,paginationIconLastPage:be,paginationIconFirstPage:Oe,paginationIconNext:ye,paginationIconPrevious:Ne,paginationComponentOptions:xe})))}));function pt(e,t,...n){if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(t.replace(/%s/g,function(){return n[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}const et=e=>typeof e=="function",Es=e=>e.length===0,Po=e=>e.toString(),er=e=>typeof e=="string",tr="/",gn="||",tt=e=>e,ko=e=>e===null;function jo(e,t=tt,n){pt(et(t)||ko(t),"Expected payloadCreator to be a function, undefined or null");const r=ko(t)||t===tt?tt:(l,...c)=>l instanceof Error?l:t(l,...c),o=et(n),a=e.toString(),i=(...l)=>{const c=r(...l),p={type:e};return c instanceof Error&&(p.error=!0),c!==void 0&&(p.payload=c),o&&(p.meta=n(...l)),p};return i.toString=()=>a,i}const ft=e=>{if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},To=e=>Array.isArray(e),_o=e=>e==null,Rs=e=>e[e.length-1],$s=/\s/,Os=/([-.:_])/,Ps=/([a-z][A-Z]|[A-Z][a-z])/,nr="/",ks=/[\W_]+(.|$)/g,js=e=>e.replace(ks,(t,n)=>n?" "+n:""),Ts=/(.)([A-Z]+)/g,_s=e=>e.replace(Ts,(t,n,r)=>n+" "+r.toLowerCase().split("").join(" ")),Ds=e=>$s.test(e)?e.toLowerCase():Os.test(e)?(js(e)||e).toLowerCase():Ps.test(e)?_s(e).toLowerCase():e.toLowerCase(),As=e=>Ds(e).replace(/[\W_]+(.|$)/g,(t,n)=>n?" "+n:"").trim(),Do=e=>As(e).replace(/\s(\w)/g,(t,n)=>n.toUpperCase()),Ao=e=>e.includes(nr)?e.split(nr).map(Do).join(nr):Do(e),rr=(e,t)=>e.reduce((n,r)=>t(n,r),{}),hn=e=>typeof Map<"u"&&e instanceof Map;function or(e){if(hn(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);let t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function Io(e,t){return hn(t)?t.get(e):t[e]}const No=e=>function t(n,{namespace:r=tr,prefix:o}={},a={},i=""){function l(p){if(!i)return p;const g=p.toString().split(gn),f=i.split(gn);return[].concat(...f.map(y=>g.map(v=>`${y}${r}${v}`))).join(gn)}function c(p){return i||!o||o&&new RegExp(`^${o}${r}`).test(p)?p:`${o}${r}${p}`}return or(n).forEach(p=>{const g=c(l(p)),f=Io(p,n);e(f)?t(f,{namespace:r,prefix:o},a,g):a[g]=f}),a},Is=No(ft);function Ns(e,{namespace:t=tr,prefix:n}={}){function r(a,i,l){const c=Ao(l.shift());Es(l)?i[c]=e[a]:(i[c]||(i[c]={}),r(a,i[c],l))}const o={};return Object.getOwnPropertyNames(e).forEach(a=>{const i=n?a.replace(`${n}${t}`,""):a;return r(a,o,i.split(t))}),o}function Fs(e,...t){const n=ft(Rs(t))?t.pop():{};return pt(t.every(er)&&(er(e)||ft(e)),"Expected optional object followed by string action types"),er(e)?Mo([e,...t],n):{...Ms(e,n),...Mo(t,n)}}function Ms(e,t){const n=Is(e,t),r=Fo(n);return Ns(r,t)}function Fo(e,{prefix:t,namespace:n=tr}={}){function r(o){if(et(o)||_o(o))return!0;if(To(o)){const[a=tt,i]=o;return et(a)&&et(i)}return!1}return rr(Object.keys(e),(o,a)=>{const i=e[a];pt(r(i),`Expected function, undefined, null, or array with payload and meta functions for ${a}`);const l=t?`${t}${n}${a}`:a,c=To(i)?jo(l,...i):jo(l,i);return{...o,[a]:c}})}function Mo(e,t){const n=rr(e,(o,a)=>({...o,[a]:tt})),r=Fo(n,t);return rr(Object.keys(r),(o,a)=>({...o,[Ao(a)]:r[a]}))}const Ls=e=>e===void 0;function Hs(e,t=tt,n){const r=Po(e).split(gn);pt(!Ls(n),`defaultState for reducer handling ${r.join(", ")} should be defined`),pt(et(t)||ft(t),"Expected reducer to be a function or object with next and throw reducers");const[o,a]=et(t)?[t,t]:[t.next,t.throw].map(i=>_o(i)?tt:i);return(i=n,l)=>{const{type:c}=l;return!c||!r.includes(Po(c))?i:(l.error===!0?a:o)(i,l)}}const zs=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[0]!="function"&&t.shift(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(a,i){for(var l=arguments.length,c=Array(l>2?l-2:0),p=2;p<l;p++)c[p-2]=arguments[p];var g=typeof a>"u",f=typeof i>"u";return g&&f&&r?r:o.reduce(function(y,v,C){if(typeof v>"u")throw new TypeError("An undefined reducer was passed in at index "+C);return v.apply(void 0,[y,i].concat(c))},g&&!f&&r?r:a)}};function Ws(e){const t=or(e),n=t.every(r=>r==="next"||r==="throw");return t.length>0&&t.length<=2&&n}const qs=No(e=>(ft(e)||hn(e))&&!Ws(e));function Vs(e,t,n={}){pt(ft(e)||hn(e),"Expected handlers to be a plain object.");const r=qs(e,n),o=or(r).map(i=>Hs(i,Io(i,r),t)),a=zs(t,...o);return(i=t,l)=>a(i,l)}const ar={path:"/",history:[],location:0},Lo={path:"*",data:{},hash:"",query:""},mn=h.createContext(ar),ir=h.createContext(null),At=h.createContext(Lo),{navigate:Ho,back:Bs,forward:Gs}=Fs({NAVIGATE:e=>e,BACK:(e=1)=>e,FORWARD:(e=1)=>e}),Ys=Vs({NAVIGATE:(e,t)=>{let{history:n,location:r}=e;return r>0&&(n=n.slice(r)),{path:Xs(e.path,t.payload),history:[t.payload,...n],location:0}},BACK:(e,t)=>{const n=e.location+t.payload,r=e.history.at(n);return r?{path:r,history:e.history,location:n}:e},FORWARD:(e,t)=>{const n=e.location-t.payload,r=e.history.at(n);return r?{path:r,history:e.history,location:n}:e}},ar);function Us(){return h.useContext(mn).path}function sr(){const e=h.useContext(ir);return t=>e?.(Ho(t))}function Ks(){const e=h.useContext(ir),t=h.useContext(mn);return{navigate:n=>e?.(Ho(n)),back:(n=1)=>e?.(Bs(n)),forward:(n=1)=>e?.(Gs(n)),hasBack:t.location<t.history.length-1,...t}}function lr(){return h.useContext(At).data}function Js(){const{query:e,hash:t}=h.useContext(At);return{search:new URLSearchParams(e),hash:t}}function Qs({path:e,children:t}){const n=e?{path:e,history:[],location:0}:ar,[r,o]=h.useReducer(Ys,n);return d.jsx(mn.Provider,{value:r,children:d.jsx(ir.Provider,{value:o,children:d.jsx(At.Provider,{value:Lo,children:t})})})}const gt=h.forwardRef(({to:e,children:t,...n},r)=>{const o=sr(),a=i=>{i.defaultPrevented||i.preventDefault(),o(e)};return d.jsx("a",{...n,href:e,ref:r,onClick:a,children:t})});function cr({children:e}){const t=h.useContext(At),n=h.useContext(mn),r=zo(e,t.path).map(o=>[o,tl(o.route,n.path)]).filter(([,o])=>o.isMatch);return d.jsx(d.Fragment,{children:r.map(([o,a],i)=>d.jsx(At.Provider,{value:{...a},children:o.element},i))})}function ge({path:e,element:t}){return d.jsx(d.Fragment,{})}function zo(e,t){const n=[];return h.Children.map(e,r=>{if(!h.isValidElement(r))return;if(r.type===h.Fragment){n.push.apply(n,zo(r.props.children,t));return}const o=r.props;return n.push({route:el(t,o.path),element:o.element}),r}),n}const Xs=(e,t)=>{if(t.startsWith("/"))return t;if(t.startsWith("?")){const[o]=e?.split("?")??[""];return o+t}let n=0;const r=t.split("/").filter(o=>o!=="");for(;r.length>0&&(r[0]==="."||r[0]==="..");)r.shift()==".."&&++n;return Zs(e,r.join("/"),n)},Zs=(e,t,n)=>{const r=e.split("/").filter(a=>a!==""),o=t.split("/").filter(a=>a!=="");return n===0?`/${r.join("/")}/${o.join("/")}`:`/${r.slice(0,-n).join("/")}/${o.join("/")}`},el=(e,t)=>{const n=e.split("/").filter(o=>o!==""),r=t.split("/").filter(o=>o!=="");return n.length>0&&n.at(-1)==="*"&&n.pop(),n.length===0?`/${r.join("/")}`:`/${n.join("/")}/${r.join("/")}`},tl=(e,t)=>{const n=e.split("/");let r=t.split("/");if(r.at(-1)===""&&(r=r.slice(0,-1)),n.length>r.length)return{isMatch:!1,remainer:"",data:{},query:"",hash:"",path:""};if(n.length<r.length&&n.at(-1)!=="*")return{isMatch:!1,remainer:"",data:{},query:"",hash:"",path:""};let o={},a="",i="";for(let l=0;l<n.length;++l){const c=n[l],g=[...r[l].matchAll(/([?#]?)((?:(?![?#]).)*)/g)],f=g?.find(y=>y[1]==="")?.[2]??"";if(a=g?.find(y=>y[1]==="?")?.[2]??"",i=g?.find(y=>y[1]==="#")?.[2]??"",c.startsWith(":")&&f&&f!==""){o[c.substring(1)]=f;continue}if(c==="*")return{isMatch:!0,data:o,remainer:r.splice(0,l).join("/"),query:a,hash:i,path:r.slice(0,l).join("/")};if(c!==f)return{isMatch:!1,data:{},remainer:"",query:"",hash:"",path:""}}return{isMatch:!0,remainer:"",data:o,query:a,hash:i,path:t?.split("?")?.[0]??""}},nl=`
|
|
453
|
+
`;var ll=u.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:r=v.direction,paginationRowsPerPageOptions:o=v.paginationRowsPerPageOptions,paginationIconLastPage:a=v.paginationIconLastPage,paginationIconFirstPage:s=v.paginationIconFirstPage,paginationIconNext:i=v.paginationIconNext,paginationIconPrevious:c=v.paginationIconPrevious,paginationComponentOptions:d=v.paginationComponentOptions,onChangeRowsPerPage:p=v.onChangeRowsPerPage,onChangePage:f=v.onChangePage}){const h=(()=>{const q=typeof window=="object";function de(){return{width:q?window.innerWidth:void 0,height:q?window.innerHeight:void 0}}const[ue,ae]=u.useState(de);return u.useEffect((()=>{if(!q)return()=>null;function le(){ae(de())}return window.addEventListener("resize",le),()=>window.removeEventListener("resize",le)}),[]),ue})(),y=Fo(r),C=h.width&&h.width>599,x=Ht(t,e),k=n*e,T=k-e+1,E=n===1,_=n===x,A=Object.assign(Object.assign({},rl),d),I=n===x?`${T}-${t} ${A.rangeSeparatorText} ${t}`:`${T}-${k} ${A.rangeSeparatorText} ${t}`,$=u.useCallback((()=>f(n-1)),[n,f]),S=u.useCallback((()=>f(n+1)),[n,f]),w=u.useCallback((()=>f(1)),[f]),H=u.useCallback((()=>f(Ht(t,e))),[f,t,e]),N=u.useCallback((q=>p(Number(q.target.value),n)),[n,p]),ne=o.map((q=>u.createElement("option",{key:q,value:q},q)));A.selectAllRowsItem&&ne.push(u.createElement("option",{key:-1,value:t},A.selectAllRowsItemText));const we=u.createElement(nl,{onChange:N,defaultValue:e,"aria-label":A.rowsPerPageText},ne);return u.createElement(ol,{className:"rdt_Pagination"},!A.noRowsPerPage&&C&&u.createElement(u.Fragment,null,u.createElement(il,null,A.rowsPerPageText),we),C&&u.createElement(sl,null,I),u.createElement(al,null,u.createElement(kn,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":E,onClick:w,disabled:E,$isRTL:y},s),u.createElement(kn,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":E,onClick:$,disabled:E,$isRTL:y},c),!A.noRowsPerPage&&!C&&we,u.createElement(kn,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":_,onClick:S,disabled:_,$isRTL:y},i),u.createElement(kn,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":_,onClick:H,disabled:_,$isRTL:y},a)))}));const ct=(e,t)=>{const n=u.useRef(!0);u.useEffect((()=>{n.current?n.current=!1:e()}),t)};function cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dl=function(e){return(function(t){return!!t&&typeof t=="object"})(e)&&!(function(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||(function(r){return r.$$typeof===ul})(t)})(e)},ul=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Vt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?St((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function pl(e,t,n){return e.concat(t).map((function(r){return Vt(r,n)}))}function Wo(e){return Object.keys(e).concat((function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(n){return Object.propertyIsEnumerable.call(t,n)})):[]})(e))}function Vo(e,t){try{return t in e}catch{return!1}}function fl(e,t,n){var r={};return n.isMergeableObject(e)&&Wo(e).forEach((function(o){r[o]=Vt(e[o],n)})),Wo(t).forEach((function(o){(function(a,s){return Vo(a,s)&&!(Object.hasOwnProperty.call(a,s)&&Object.propertyIsEnumerable.call(a,s))})(e,o)||(Vo(e,o)&&n.isMergeableObject(t[o])?r[o]=(function(a,s){if(!s.customMerge)return St;var i=s.customMerge(a);return typeof i=="function"?i:St})(o,n)(e[o],t[o],n):r[o]=Vt(t[o],n))})),r}function St(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||pl,n.isMergeableObject=n.isMergeableObject||dl,n.cloneUnlessOtherwiseSpecified=Vt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):fl(e,t,n):Vt(t,n)}St.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(n,r){return St(n,r,t)}),{})};var ml=cl(St);const Bo={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Go={default:Bo,light:Bo,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function gl(e,t,n,r){const[o,a]=u.useState((()=>jo(e))),[s,i]=u.useState(""),c=u.useRef("");ct((()=>{a(jo(e))}),[e]);const d=u.useCallback((k=>{var T,E,_;const{attributes:A}=k.target,I=(T=A.getNamedItem("data-column-id"))===null||T===void 0?void 0:T.value;I&&(c.current=((_=(E=o[Cn(o,I)])===null||E===void 0?void 0:E.id)===null||_===void 0?void 0:_.toString())||"",i(c.current))}),[o]),p=u.useCallback((k=>{var T;const{attributes:E}=k.target,_=(T=E.getNamedItem("data-column-id"))===null||T===void 0?void 0:T.value;if(_&&c.current&&_!==c.current){const A=Cn(o,c.current),I=Cn(o,_),$=[...o];$[A]=o[I],$[I]=o[A],a($),t($)}}),[t,o]),f=u.useCallback((k=>{k.preventDefault()}),[]),h=u.useCallback((k=>{k.preventDefault()}),[]),y=u.useCallback((k=>{k.preventDefault(),c.current="",i("")}),[]),C=(function(k=!1){return k?Ue.ASC:Ue.DESC})(r),x=u.useMemo((()=>o[Cn(o,n?.toString())]||{}),[n,o]);return{tableColumns:o,draggingColumnId:s,handleDragStart:d,handleDragEnter:p,handleDragOver:f,handleDragLeave:h,handleDragEnd:y,defaultSortDirection:C,defaultSortColumn:x}}var qo=u.memo((function(e){const{data:t=v.data,columns:n=v.columns,title:r=v.title,actions:o=v.actions,keyField:a=v.keyField,striped:s=v.striped,highlightOnHover:i=v.highlightOnHover,pointerOnHover:c=v.pointerOnHover,dense:d=v.dense,selectableRows:p=v.selectableRows,selectableRowsSingle:f=v.selectableRowsSingle,selectableRowsHighlight:h=v.selectableRowsHighlight,selectableRowsNoSelectAll:y=v.selectableRowsNoSelectAll,selectableRowsVisibleOnly:C=v.selectableRowsVisibleOnly,selectableRowSelected:x=v.selectableRowSelected,selectableRowDisabled:k=v.selectableRowDisabled,selectableRowsComponent:T=v.selectableRowsComponent,selectableRowsComponentProps:E=v.selectableRowsComponentProps,onRowExpandToggled:_=v.onRowExpandToggled,onSelectedRowsChange:A=v.onSelectedRowsChange,expandableIcon:I=v.expandableIcon,onChangeRowsPerPage:$=v.onChangeRowsPerPage,onChangePage:S=v.onChangePage,paginationServer:w=v.paginationServer,paginationServerOptions:H=v.paginationServerOptions,paginationTotalRows:N=v.paginationTotalRows,paginationDefaultPage:ne=v.paginationDefaultPage,paginationResetDefaultPage:we=v.paginationResetDefaultPage,paginationPerPage:q=v.paginationPerPage,paginationRowsPerPageOptions:de=v.paginationRowsPerPageOptions,paginationIconLastPage:ue=v.paginationIconLastPage,paginationIconFirstPage:ae=v.paginationIconFirstPage,paginationIconNext:le=v.paginationIconNext,paginationIconPrevious:je=v.paginationIconPrevious,paginationComponent:pe=v.paginationComponent,paginationComponentOptions:j=v.paginationComponentOptions,responsive:ke=v.responsive,progressPending:Z=v.progressPending,progressComponent:Oe=v.progressComponent,persistTableHead:ye=v.persistTableHead,noDataComponent:ee=v.noDataComponent,disabled:U=v.disabled,noTableHead:Ce=v.noTableHead,noHeader:xe=v.noHeader,fixedHeader:Y=v.fixedHeader,fixedHeaderScrollHeight:Re=v.fixedHeaderScrollHeight,pagination:fe=v.pagination,subHeader:re=v.subHeader,subHeaderAlign:Me=v.subHeaderAlign,subHeaderWrap:Ie=v.subHeaderWrap,subHeaderComponent:Xe=v.subHeaderComponent,noContextMenu:Be=v.noContextMenu,contextMessage:Pt=v.contextMessage,contextActions:se=v.contextActions,contextComponent:jt=v.contextComponent,expandableRows:Tt=v.expandableRows,onRowClicked:Dn=v.onRowClicked,onRowDoubleClicked:_t=v.onRowDoubleClicked,onRowMouseEnter:In=v.onRowMouseEnter,onRowMouseLeave:Nn=v.onRowMouseLeave,sortIcon:Fn=v.sortIcon,onSort:Mn=v.onSort,sortFunction:Yt=v.sortFunction,sortServer:Ut=v.sortServer,expandableRowsComponent:Ln=v.expandableRowsComponent,expandableRowsComponentProps:zn=v.expandableRowsComponentProps,expandableRowDisabled:Hn=v.expandableRowDisabled,expandableRowsHideExpander:Wn=v.expandableRowsHideExpander,expandOnRowClicked:jr=v.expandOnRowClicked,expandOnRowDoubleClicked:Tr=v.expandOnRowDoubleClicked,expandableRowExpanded:Vn=v.expandableRowExpanded,expandableInheritConditionalStyles:_r=v.expandableInheritConditionalStyles,defaultSortFieldId:Ar=v.defaultSortFieldId,defaultSortAsc:Kt=v.defaultSortAsc,clearSelectedRows:Jt=v.clearSelectedRows,conditionalRowStyles:Ze=v.conditionalRowStyles,theme:At=v.theme,customStyles:Dt=v.customStyles,direction:et=v.direction,onColumnOrderChange:Dr=v.onColumnOrderChange,className:Bn}=e,{tableColumns:Gn,draggingColumnId:Qt,handleDragStart:Xt,handleDragEnter:qn,handleDragOver:Yn,handleDragLeave:Zt,handleDragEnd:en,defaultSortDirection:Ir,defaultSortColumn:Nr}=gl(n,Dr,Ar,Kt),[{rowsPerPage:Le,currentPage:Te,selectedRows:l,allSelected:b,selectedCount:R,selectedColumn:D,sortDirection:G,toggleOnSelectedRowsChange:X},L]=u.useReducer(ai,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:Nr,toggleOnSelectedRowsChange:!1,sortDirection:Ir,currentPage:ne,rowsPerPage:q,selectedRowsFlag:!1,contextMessage:v.contextMessage}),{persistSelectedOnSort:V=!1,persistSelectedOnPageChange:me=!1}=H,oe=!(!w||!me&&!V),ie=fe&&!Z&&t.length>0,Pe=pe||ll,tt=u.useMemo((()=>((F={},J="default",Ee="default")=>{const Ne=Go[J]?J:Ee;return ml({table:{style:{color:(M=Go[Ne]).text.primary,backgroundColor:M.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:M.text.primary,backgroundColor:M.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:M.background.default,minHeight:"52px"}},head:{style:{color:M.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:M.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:M.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:M.context.background,fontSize:"18px",fontWeight:400,color:M.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:M.text.primary,backgroundColor:M.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:M.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:M.selected.text,backgroundColor:M.selected.default,borderBottomColor:M.background.default}},highlightOnHoverStyle:{color:M.highlightOnHover.text,backgroundColor:M.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:M.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:M.background.default},stripedStyle:{color:M.striped.text,backgroundColor:M.striped.default}},expanderRow:{style:{color:M.text.primary,backgroundColor:M.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:M.button.default,fill:M.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:M.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:M.button.hover},"&:focus":{outline:"none",backgroundColor:M.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:M.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:M.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:M.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:M.button.default,fill:M.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:M.button.disabled,fill:M.button.disabled},"&:hover:not(:disabled)":{backgroundColor:M.button.hover},"&:focus":{outline:"none",backgroundColor:M.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:M.text.primary,backgroundColor:M.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:M.text.primary,backgroundColor:M.background.default}}},F);var M})(Dt,At)),[Dt,At]),Ge=u.useMemo((()=>Object.assign({},et!=="auto"&&{dir:et})),[et]),K=u.useMemo((()=>{if(Ut)return t;if(D?.sortFunction&&typeof D.sortFunction=="function"){const F=D.sortFunction,J=G===Ue.ASC?F:(Ee,Ne)=>-1*F(Ee,Ne);return[...t].sort(J)}return(function(F,J,Ee,Ne){return J?Ne&&typeof Ne=="function"?Ne(F.slice(0),J,Ee):F.slice(0).sort(((M,Lr)=>{const Nt=J(M),nt=J(Lr);if(Ee==="asc"){if(Nt<nt)return-1;if(Nt>nt)return 1}if(Ee==="desc"){if(Nt>nt)return-1;if(Nt<nt)return 1}return 0})):F})(t,D?.selector,G,Yt)}),[Ut,D,G,t,Yt]),qe=u.useMemo((()=>{if(fe&&!w){const F=Te*Le,J=F-Le;return K.slice(J,F)}return K}),[Te,fe,w,Le,K]),Fr=u.useCallback((F=>{L(F)}),[]),Mr=u.useCallback((F=>{L(F)}),[]),$d=u.useCallback((F=>{L(F)}),[]),Od=u.useCallback(((F,J)=>Dn(F,J)),[Dn]),Pd=u.useCallback(((F,J)=>_t(F,J)),[_t]),jd=u.useCallback(((F,J)=>In(F,J)),[In]),Td=u.useCallback(((F,J)=>Nn(F,J)),[Nn]),It=u.useCallback((F=>L({type:"CHANGE_PAGE",page:F,paginationServer:w,visibleOnly:C,persistSelectedOnPageChange:me})),[w,me,C]),_d=u.useCallback((F=>{const J=Ht(N||qe.length,F),Ee=pr(Te,J);w||It(Ee),L({type:"CHANGE_ROWS_PER_PAGE",page:Ee,rowsPerPage:F})}),[Te,It,w,N,qe.length]);if(fe&&!w&&K.length>0&&qe.length===0){const F=Ht(K.length,Le),J=pr(Te,F);It(J)}ct((()=>{A({allSelected:b,selectedCount:R,selectedRows:l.slice(0)})}),[X]),ct((()=>{Mn(D,G,K.slice(0))}),[D,G]),ct((()=>{S(Te,N||K.length)}),[Te]),ct((()=>{$(Le,Te)}),[Le]),ct((()=>{It(ne)}),[ne,we]),ct((()=>{if(fe&&w&&N>0){const F=Ht(N,Le),J=pr(Te,F);Te!==J&&It(J)}}),[N]),u.useEffect((()=>{L({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Jt})}),[f,Jt]),u.useEffect((()=>{if(!x)return;const F=K.filter((Ee=>x(Ee))),J=f?F.slice(0,1):F;L({type:"SELECT_MULTIPLE_ROWS",keyField:a,selectedRows:J,totalRows:K.length,mergeSelections:oe})}),[t,x]);const Ad=C?qe:K,Dd=me||f||y;return u.createElement(ti,{theme:tt},!xe&&(!!r||!!o)&&u.createElement(Bi,{title:r,actions:o,showMenu:!Be,selectedCount:R,direction:et,contextActions:se,contextComponent:jt,contextMessage:Pt}),re&&u.createElement(Yi,{align:Me,wrapContent:Ie},Xe),u.createElement(Ki,Object.assign({$responsive:ke,$fixedHeader:Y,$fixedHeaderScrollHeight:Re,className:Bn},Ge),u.createElement(Ji,null,Z&&!ye&&u.createElement(zo,null,Oe),u.createElement(ii,{disabled:U,className:"rdt_Table",role:"table"},!Ce&&(!!ye||K.length>0&&!Z)&&u.createElement(ci,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:Y},u.createElement(di,{className:"rdt_TableHeadRow",role:"row",$dense:d},p&&(Dd?u.createElement(Ct,{style:{flex:"0 0 48px"}}):u.createElement(Fi,{allSelected:b,selectedRows:l,selectableRowsComponent:T,selectableRowsComponentProps:E,selectableRowDisabled:k,rowData:Ad,keyField:a,mergeSelections:oe,onSelectAllRows:Mr})),Tt&&!Wn&&u.createElement(Qi,null),Gn.map((F=>u.createElement(Ii,{key:F.id,column:F,selectedColumn:D,disabled:Z||K.length===0,pagination:fe,paginationServer:w,persistSelectedOnSort:V,selectableRowsVisibleOnly:C,sortDirection:G,sortIcon:Fn,sortServer:Ut,onSort:Fr,onDragStart:Xt,onDragOver:Yn,onDragEnd:en,onDragEnter:qn,onDragLeave:Zt,draggingColumnId:Qt}))))),!K.length&&!Z&&u.createElement(Xi,null,ee),Z&&ye&&u.createElement(zo,null,Oe),!Z&&K.length>0&&u.createElement(Ui,{className:"rdt_TableBody",role:"rowgroup"},qe.map(((F,J)=>{const Ee=xt(F,a),Ne=(function(nt=""){return typeof nt!="number"&&(!nt||nt.length===0)})(Ee)?J:Ee,M=xn(F,l,a),Lr=!!(Tt&&Vn&&Vn(F)),Nt=!!(Tt&&Hn&&Hn(F));return u.createElement(Oi,{id:Ne,key:Ne,keyField:a,"data-row-id":Ne,columns:Gn,row:F,rowCount:K.length,rowIndex:J,selectableRows:p,expandableRows:Tt,expandableIcon:I,highlightOnHover:i,pointerOnHover:c,dense:d,expandOnRowClicked:jr,expandOnRowDoubleClicked:Tr,expandableRowsComponent:Ln,expandableRowsComponentProps:zn,expandableRowsHideExpander:Wn,defaultExpanderDisabled:Nt,defaultExpanded:Lr,expandableInheritConditionalStyles:_r,conditionalRowStyles:Ze,selected:M,selectableRowsHighlight:h,selectableRowsComponent:T,selectableRowsComponentProps:E,selectableRowDisabled:k,selectableRowsSingle:f,striped:s,onRowExpandToggled:_,onRowClicked:Od,onRowDoubleClicked:Pd,onRowMouseEnter:jd,onRowMouseLeave:Td,onSelectedRow:$d,draggingColumnId:Qt,onDragStart:Xt,onDragOver:Yn,onDragEnd:en,onDragEnter:qn,onDragLeave:Zt})})))))),ie&&u.createElement("div",null,u.createElement(Pe,{onChangePage:It,onChangeRowsPerPage:_d,rowCount:N||K.length,currentPage:Te,rowsPerPage:Le,direction:et,paginationRowsPerPageOptions:de,paginationIconLastPage:ue,paginationIconFirstPage:ae,paginationIconNext:le,paginationIconPrevious:je,paginationComponentOptions:j})))}));function kt(e,t,...n){if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(t.replace(/%s/g,function(){return n[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}const dt=e=>typeof e=="function",hl=e=>e.length===0,Yo=e=>e.toString(),gr=e=>typeof e=="string",hr="/",Rn="||",ut=e=>e,Uo=e=>e===null;function Ko(e,t=ut,n){kt(dt(t)||Uo(t),"Expected payloadCreator to be a function, undefined or null");const r=Uo(t)||t===ut?ut:(i,...c)=>i instanceof Error?i:t(i,...c),o=dt(n),a=e.toString(),s=(...i)=>{const c=r(...i),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n(...i)),d};return s.toString=()=>a,s}const Rt=e=>{if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},Jo=e=>Array.isArray(e),Qo=e=>e==null,bl=e=>e[e.length-1],yl=/\s/,vl=/([-.:_])/,wl=/([a-z][A-Z]|[A-Z][a-z])/,br="/",xl=/[\W_]+(.|$)/g,Cl=e=>e.replace(xl,(t,n)=>n?" "+n:""),Sl=/(.)([A-Z]+)/g,kl=e=>e.replace(Sl,(t,n,r)=>n+" "+r.toLowerCase().split("").join(" ")),Rl=e=>yl.test(e)?e.toLowerCase():vl.test(e)?(Cl(e)||e).toLowerCase():wl.test(e)?kl(e).toLowerCase():e.toLowerCase(),El=e=>Rl(e).replace(/[\W_]+(.|$)/g,(t,n)=>n?" "+n:"").trim(),Xo=e=>El(e).replace(/\s(\w)/g,(t,n)=>n.toUpperCase()),Zo=e=>e.includes(br)?e.split(br).map(Xo).join(br):Xo(e),yr=(e,t)=>e.reduce((n,r)=>t(n,r),{}),En=e=>typeof Map<"u"&&e instanceof Map;function vr(e){if(En(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);let t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function ea(e,t){return En(t)?t.get(e):t[e]}const ta=e=>function t(n,{namespace:r=hr,prefix:o}={},a={},s=""){function i(d){if(!s)return d;const p=d.toString().split(Rn),f=s.split(Rn);return[].concat(...f.map(h=>p.map(y=>`${h}${r}${y}`))).join(Rn)}function c(d){return s||!o||o&&new RegExp(`^${o}${r}`).test(d)?d:`${o}${r}${d}`}return vr(n).forEach(d=>{const p=c(i(d)),f=ea(d,n);e(f)?t(f,{namespace:r,prefix:o},a,p):a[p]=f}),a},$l=ta(Rt);function Ol(e,{namespace:t=hr,prefix:n}={}){function r(a,s,i){const c=Zo(i.shift());hl(i)?s[c]=e[a]:(s[c]||(s[c]={}),r(a,s[c],i))}const o={};return Object.getOwnPropertyNames(e).forEach(a=>{const s=n?a.replace(`${n}${t}`,""):a;return r(a,o,s.split(t))}),o}function Pl(e,...t){const n=Rt(bl(t))?t.pop():{};return kt(t.every(gr)&&(gr(e)||Rt(e)),"Expected optional object followed by string action types"),gr(e)?ra([e,...t],n):{...jl(e,n),...ra(t,n)}}function jl(e,t){const n=$l(e,t),r=na(n);return Ol(r,t)}function na(e,{prefix:t,namespace:n=hr}={}){function r(o){if(dt(o)||Qo(o))return!0;if(Jo(o)){const[a=ut,s]=o;return dt(a)&&dt(s)}return!1}return yr(Object.keys(e),(o,a)=>{const s=e[a];kt(r(s),`Expected function, undefined, null, or array with payload and meta functions for ${a}`);const i=t?`${t}${n}${a}`:a,c=Jo(s)?Ko(i,...s):Ko(i,s);return{...o,[a]:c}})}function ra(e,t){const n=yr(e,(o,a)=>({...o,[a]:ut})),r=na(n,t);return yr(Object.keys(r),(o,a)=>({...o,[Zo(a)]:r[a]}))}const Tl=e=>e===void 0;function _l(e,t=ut,n){const r=Yo(e).split(Rn);kt(!Tl(n),`defaultState for reducer handling ${r.join(", ")} should be defined`),kt(dt(t)||Rt(t),"Expected reducer to be a function or object with next and throw reducers");const[o,a]=dt(t)?[t,t]:[t.next,t.throw].map(s=>Qo(s)?ut:s);return(s=n,i)=>{const{type:c}=i;return!c||!r.includes(Yo(c))?s:(i.error===!0?a:o)(s,i)}}const Al=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[0]!="function"&&t.shift(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(a,s){for(var i=arguments.length,c=Array(i>2?i-2:0),d=2;d<i;d++)c[d-2]=arguments[d];var p=typeof a>"u",f=typeof s>"u";return p&&f&&r?r:o.reduce(function(h,y,C){if(typeof y>"u")throw new TypeError("An undefined reducer was passed in at index "+C);return y.apply(void 0,[h,s].concat(c))},p&&!f&&r?r:a)}};function Dl(e){const t=vr(e),n=t.every(r=>r==="next"||r==="throw");return t.length>0&&t.length<=2&&n}const Il=ta(e=>(Rt(e)||En(e))&&!Dl(e));function Nl(e,t,n={}){kt(Rt(e)||En(e),"Expected handlers to be a plain object.");const r=Il(e,n),o=vr(r).map(s=>_l(s,ea(s,r),t)),a=Al(t,...o);return(s=t,i)=>a(s,i)}const wr={path:"/",history:[],location:0},oa={path:"*",data:{},hash:"",query:""},$n=g.createContext(wr),xr=g.createContext(null),Bt=g.createContext(oa),{navigate:aa,back:Fl,forward:Ml}=Pl({NAVIGATE:e=>e,BACK:(e=1)=>e,FORWARD:(e=1)=>e}),Ll=Nl({NAVIGATE:(e,t)=>{let{history:n,location:r}=e;return r>0&&(n=n.slice(r)),{path:Bl(e.path,t.payload),history:[t.payload,...n],location:0}},BACK:(e,t)=>{const n=e.location+t.payload,r=e.history.at(n);return r?{path:r,history:e.history,location:n}:e},FORWARD:(e,t)=>{const n=e.location-t.payload,r=e.history.at(n);return r?{path:r,history:e.history,location:n}:e}},wr);function zl(){return g.useContext($n).path}function Cr(){const e=g.useContext(xr);return t=>e?.(aa(t))}function Hl(){const e=g.useContext(xr),t=g.useContext($n);return{navigate:n=>e?.(aa(n)),back:(n=1)=>e?.(Fl(n)),forward:(n=1)=>e?.(Ml(n)),hasBack:t.location<t.history.length-1,...t}}function Sr(){return g.useContext(Bt).data}function Wl(){const{query:e,hash:t}=g.useContext(Bt);return{search:new URLSearchParams(e),hash:t}}function Vl({path:e,children:t}){const n=e?{path:e,history:[],location:0}:wr,[r,o]=g.useReducer(Ll,n);return m.jsx($n.Provider,{value:r,children:m.jsx(xr.Provider,{value:o,children:m.jsx(Bt.Provider,{value:oa,children:t})})})}const Et=g.forwardRef(({to:e,children:t,...n},r)=>{const o=Cr(),a=s=>{s.defaultPrevented||s.preventDefault(),o(e)};return m.jsx("a",{...n,href:e,ref:r,onClick:a,children:t})});function kr({children:e}){const t=g.useContext(Bt),n=g.useContext($n),r=sa(e,t.path).map(o=>[o,Yl(o.route,n.path)]).filter(([,o])=>o.isMatch);return m.jsx(m.Fragment,{children:r.map(([o,a],s)=>m.jsx(Bt.Provider,{value:{...a},children:o.element},s))})}function $e({path:e,element:t}){return m.jsx(m.Fragment,{})}function sa(e,t){const n=[];return g.Children.map(e,r=>{if(!g.isValidElement(r))return;if(r.type===g.Fragment){n.push.apply(n,sa(r.props.children,t));return}const o=r.props;return n.push({route:ql(t,o.path),element:o.element}),r}),n}const Bl=(e,t)=>{if(t.startsWith("/"))return t;if(t.startsWith("?")){const[o]=e?.split("?")??[""];return o+t}let n=0;const r=t.split("/").filter(o=>o!=="");for(;r.length>0&&(r[0]==="."||r[0]==="..");)r.shift()==".."&&++n;return Gl(e,r.join("/"),n)},Gl=(e,t,n)=>{const r=e.split("/").filter(a=>a!==""),o=t.split("/").filter(a=>a!=="");return n===0?`/${r.join("/")}/${o.join("/")}`:`/${r.slice(0,-n).join("/")}/${o.join("/")}`},ql=(e,t)=>{const n=e.split("/").filter(o=>o!==""),r=t.split("/").filter(o=>o!=="");return n.length>0&&n.at(-1)==="*"&&n.pop(),n.length===0?`/${r.join("/")}`:`/${n.join("/")}/${r.join("/")}`},Yl=(e,t)=>{const n=e.split("/");let r=t.split("/");if(r.at(-1)===""&&(r=r.slice(0,-1)),n.length>r.length)return{isMatch:!1,remainer:"",data:{},query:"",hash:"",path:""};if(n.length<r.length&&n.at(-1)!=="*")return{isMatch:!1,remainer:"",data:{},query:"",hash:"",path:""};let o={},a="",s="";for(let i=0;i<n.length;++i){const c=n[i],p=[...r[i].matchAll(/([?#]?)((?:(?![?#]).)*)/g)],f=p?.find(h=>h[1]==="")?.[2]??"";if(a=p?.find(h=>h[1]==="?")?.[2]??"",s=p?.find(h=>h[1]==="#")?.[2]??"",c.startsWith(":")&&f&&f!==""){o[c.substring(1)]=f;continue}if(c==="*")return{isMatch:!0,data:o,remainer:r.splice(0,i).join("/"),query:a,hash:s,path:r.slice(0,i).join("/")};if(c!==f)return{isMatch:!1,data:{},remainer:"",query:"",hash:"",path:""}}return{isMatch:!0,remainer:"",data:o,query:a,hash:s,path:t?.split("?")?.[0]??""}},Ul=`
|
|
454
454
|
query dbSchema {
|
|
455
455
|
_dbSchema {
|
|
456
456
|
dbName
|
|
@@ -488,19 +488,19 @@ query dbSchema {
|
|
|
488
488
|
destinationColumnNames
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
}`;class rl extends Error{constructor(t,n){super(t.map(r=>r.message).join("; ")),this.errors=t,this.data=n,this.name="GraphQLRequestError"}}class Wo{constructor(t){this.uri=t}async query(t,n){const r=await fetch(this.uri,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:t,variables:n})});if(!r.ok)throw new Error(`GraphQL request failed: ${r.status} ${r.statusText}`);const o=await r.json();if(o.errors?.length)throw new rl(o.errors,o.data);return o.data}}const qo=h.createContext(null),ol=qo.Provider;function It(){const e=h.useContext(qo);if(!e)throw new Error("useFetcher must be used within a FetcherProvider");return e}const Vo=h.createContext({loading:!0,error:null,data:[],findTable:()=>{}}),al=({children:e})=>{const t=il();return d.jsx(Vo.Provider,{value:t,children:e})};function ht(){return h.useContext(Vo)}function il(){const e=It(),{isLoading:t,error:n,data:r}=De.useQuery({queryKey:["dbSchema"],queryFn:()=>e.query(nl),staleTime:1/0});return h.useMemo(()=>{if(t)return{loading:!0,error:null,data:[],findTable:()=>{}};if(n)return{loading:!1,error:{message:n.message},data:[],findTable:()=>{}};if(!r)return{loading:!1,error:null,data:[],findTable:()=>{}};const o=r._dbSchema.map(i=>({...i,name:i.graphQlName,label:i.dbName,metadata:Bo(i.metadata),columns:i.columns.map(l=>({...l,name:l.graphQlName,label:l.dbName,metadata:Bo(l.metadata)}))}));return{loading:!1,error:null,data:o,findTable:i=>o.find(l=>l.graphQlName===i)}},[t,n,r])}function Bo(e){return e.reduce((t,n)=>({...t,[n.key]:sl(n)}),{})}function sl({key:e,value:t}){return e==="type"?ll(t):t}function ll(e){const t=e.match(/lookup\s*\(\s*(?<id>\w+)\s*,\s*(?<label>\w+)\s*\)/m);if(t?.groups?.id&&t?.groups?.label)return{type:"lookup",id:t.groups.id,label:t.groups.label}}const cl=[{name:"Table",cell:e=>d.jsx(gt,{to:`/${e.name}`,className:"plain-link",children:e.label})}];function ul(){const{loading:e,error:t,data:n}=ht();return e?d.jsx("div",{children:"Loading..."}):t?d.jsxs("div",{children:["Error: ",t.message]}):d.jsx("div",{children:d.jsx(Oo,{columns:cl,data:n})})}const dl=["Int","Int!","Float","Float!"],Go=e=>{try{if(!e)return{variables:{},param:"",filterText:""};const[t,n,r,o]=JSON.parse(e);return{variables:{filter:r},param:`, $filter: ${o}`,filterText:`{${t}: {${n}: $filter} }`}}catch{return{variables:{},param:"",filterText:""}}},pl=e=>{if(!e)return"";const t=new Date(e);return t.toString()==="Invalid Date"||t<new Date("1973-01-01")?"":t.toLocaleString()},Yo=(e,t)=>{const n=t.primaryKeys?.[0];return String(n?e?.[n]??"":e?.id??"")},Uo=e=>String(e?.id??""),fl=(e,t)=>{if(!e||!t)return[];const n=e.columns.map(o=>{const a={name:o.label,reorder:!0,sortable:!0,sortField:o.name},i=e.singleJoins.find(l=>l.sourceColumnNames?.[0]===o.name);if(i){const l=i.destinationTable,c=t.findTable(i.destinationTable);return{cell:p=>!!p&&d.jsx(gt,{to:"/"+c?.name+"/"+Uo(p?.[l]),children:p?.[l]?.label}),...a}}return o?.joinTable?{cell:l=>!!l&&d.jsx(gt,{to:"/"+o.name+"/"+Uo(l?.[o.name]),children:o.name}),...a}:o?.paramType==="DateTime"?{selector:l=>!!o?.name&&pl(l?.[o?.name])||"",...a}:{selector:l=>o?.name?String(l?.[o?.name]??""):"",...a}}),r=e.multiJoins.map(o=>{const a=t.findTable(o.destinationTable);return{name:a?.name,cell:i=>!!i&&d.jsx(gt,{to:"/"+a?.name+"/from/"+e.name+"/"+Yo(i,e),children:a?.name}),reorder:!1,sortable:!1,sortField:o.sourceColumnNames?.[0]}});return e.isEditable===!1?[...n,...r]:[{name:"edit",cell:o=>d.jsx(gt,{to:`/${e.graphQlName}/edit/${Yo(o,e)}`,children:"edit"})},...n,...r]},Ko=e=>{const t=e.primaryKeys?.[0];return t?e.columns.find(r=>r.name===t)?.paramType?.replace("!","")??"Int":"Int"},gl=(e,t,n,r,o)=>{if(!e||!t?.data)return null;const a=t.findTable(e.graphQlName);if(!a)return null;const i=a?.primaryKeys?.[0]??"id",l=Ko(a);let{param:c,filterText:p}=Go(n);const g=e.columns.filter(f=>f?.joinTable===void 0).map(f=>{const y=a.singleJoins.find(S=>S.sourceColumnNames?.[0]===f.name);if(!y)return f;const C=t.findTable(y.destinationTable)?.labelColumn??"id";return{...f,joinTable:y,joinLabelColumn:C}}).map(f=>f?.joinTable?f.name+` ${f.joinTable.destinationTable} { id: ${f.joinTable.destinationColumnNames?.[0]} label: ${f.joinLabelColumn} }`:f.name).join(" ");return r&&!o&&(c=`, $id: ${l}`,p=`{ ${i}: { _eq: $id}}`),r&&o&&(c=`, $id: ${l}`+c,p?p=`{and: [${p}, { ${o}: { ${i}: { _eq: $id}}} ]}`:p=`{ ${o}: { ${i}: { _eq: $id}}}`),p&&(p=`filter: ${p}`),`query Get${e.name}($sort: [${e.graphQlName}SortEnum!], $limit: Int, $offset: Int ${c}) { ${e.name}(sort: $sort limit: $limit offset: $offset ${p}) { total offset limit data {${g}}}}`};function hl(e,t,n){const{search:r}=Js(),o=r.get("filter")??"",{variables:a}=Go(o),i=ht(),l=It(),[c,p]=h.useState(null),[g,f]=h.useState(0),[y,v]=h.useState(10),C=c?[`${c.columnName}_${c.order}`]:e?[`${e.columns.at(0)?.name??"id"}_asc`]:[],S=h.useMemo(()=>gl(e,i,o,t,n),[e,i,o,t,n]),R=e?Ko(e):"Int",j=h.useMemo(()=>({sort:C,limit:y,offset:g,...t?{id:dl.includes(R)?+t:t}:{},...a}),[C,y,g,t,R,a]),{isLoading:E,error:P,data:k}=De.useQuery({queryKey:["tableData",e?.name,j],queryFn:()=>l.query(S,j),enabled:!!S&&!!e&&C.length>0}),D=h.useMemo(()=>e?fl(e,i):[],[e,i]),$=h.useCallback((G,A)=>{p({columnName:G.sortField??"id",order:A})},[]),x=h.useCallback(G=>{f((G-1)*y)},[y]),L=h.useCallback(G=>{v(G)},[]);return{tableColumns:D,offset:g,limit:y,handleSort:$,handlePage:x,handlePageSize:L,loading:E,error:P,data:k}}function ml({table:e,id:t,tableFilter:n}){const{limit:r,tableColumns:o,handleSort:a,handlePage:i,handlePageSize:l,loading:c,error:p,data:g}=hl(e,t,n),f=h.useRef(e.name),y=h.useRef(0),v=h.useMemo(()=>(f.current!==e.name&&(f.current=e.name,y.current+=1),y.current%2===1),[e.name]);return p?d.jsxs("div",{children:["Error: ",p.message]}):d.jsx(Oo,{columns:o,data:g?.[e.name]?.data??[],progressPending:c,sortServer:!0,onSort:a,pagination:!0,paginationServer:!0,paginationTotalRows:g?.[e.name]?.total??0,paginationPerPage:r,paginationDefaultPage:1,paginationResetDefaultPage:v,onChangePage:i,onChangeRowsPerPage:l})}function bl(e,t){return e.find(r=>r.name==t)}function mt(){const e=lr(),{table:t,id:n,filterTable:r}=e,{loading:o,error:a,data:i}=ht();return t?o?d.jsx("div",{children:"Loading..."}):a?d.jsxs("div",{children:["Error: ",a.message]}):d.jsx(ml,{table:bl(i,t),id:n,tableFilter:r}):d.jsx("div",{children:"Table missing"})}function ur(){const e=lr(),{loading:t,error:n,data:r}=ht(),[o,a]=h.useState(""),i=sr(),{back:l,hasBack:c}=Ks(),p=e?.table,g=h.useMemo(()=>r?.find(S=>S.graphQlName===p),[r,p]),f=h.useMemo(()=>g?.columns?.map(S=>({key:S.name,value:`${S.name},${S.paramType}`,label:S.label})),[g]),[y,v]=h.useState(f?.at(0)?.value??"");h.useEffect(()=>{a(""),v(f?.at(0)?.value??"")},[f]);const C=()=>{if(!o)return;const[S,R]=y.split(",");(R==="Int"||R==="Int!"||R==="Float"||R==="Float!")&&i(`?filter=["${S}", "_eq", ${o}, "${R}"]`),(R==="String"||R==="String!")&&i(`?filter=["${S}", "_contains", "${o}", "${R}"]`)};return t?d.jsx("div",{children:"Loading..."}):n?d.jsxs("div",{children:["Error: ",n.message]}):d.jsxs("header",{className:"editdb-header",children:[d.jsxs("div",{children:[c&&d.jsx("button",{onClick:()=>l(),children:"‹"}),!c&&d.jsx("span",{children:"‹"})]}),d.jsxs("h3",{children:["Table: ",g?.dbName??e?.table??"(Select)"]}),f&&d.jsxs(d.Fragment,{children:[d.jsx("select",{onChange:S=>v(S.target.value),children:f.map(S=>d.jsx("option",{value:S.value,children:S.label},S.key))}),d.jsx("input",{type:"search",value:o,onChange:S=>a(S.target.value)}),d.jsx("button",{onClick:C,children:"filter"}),d.jsx("button",{onClick:()=>i("/"),children:"clear"}),g?.isEditable&&d.jsx("button",{onClick:()=>i("edit/"),children:"add"})]})]})}function yl(e,t,n){const r=It(),o=h.useMemo(()=>e?.data?.find(p=>p.graphQlName===t),[e,t]),a=h.useMemo(()=>e.loading||e.error||!o?null:`query Get_${t}_Ref {
|
|
491
|
+
}`;class Kl extends Error{constructor(t,n){super(t.map(r=>r.message).join("; ")),this.errors=t,this.data=n,this.name="GraphQLRequestError"}}class ia{constructor(t){this.uri=t}async query(t,n){const r=await fetch(this.uri,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:t,variables:n})});if(!r.ok)throw new Error(`GraphQL request failed: ${r.status} ${r.statusText}`);const o=await r.json();if(o.errors?.length)throw new Kl(o.errors,o.data);return o.data}}const la=g.createContext(null),Jl=la.Provider;function Gt(){const e=g.useContext(la);if(!e)throw new Error("useFetcher must be used within a FetcherProvider");return e}const ca=g.createContext({loading:!0,error:null,data:[],findTable:()=>{}}),Ql=({children:e})=>{const t=Xl();return m.jsx(ca.Provider,{value:t,children:e})};function $t(){return g.useContext(ca)}function Xl(){const e=Gt(),{isLoading:t,error:n,data:r}=ze.useQuery({queryKey:["dbSchema"],queryFn:()=>e.query(Ul),staleTime:1/0});return g.useMemo(()=>{if(t)return{loading:!0,error:null,data:[],findTable:()=>{}};if(n)return{loading:!1,error:{message:n.message},data:[],findTable:()=>{}};if(!r)return{loading:!1,error:null,data:[],findTable:()=>{}};const o=r._dbSchema.map(s=>({...s,name:s.graphQlName,label:s.dbName,metadata:da(s.metadata),columns:s.columns.map(i=>({...i,name:i.graphQlName,label:i.dbName,metadata:da(i.metadata)}))}));return{loading:!1,error:null,data:o,findTable:s=>o.find(i=>i.graphQlName===s)}},[t,n,r])}function da(e){return e.reduce((t,n)=>({...t,[n.key]:Zl(n)}),{})}function Zl({key:e,value:t}){return e==="type"?ec(t):t}function ec(e){const t=e.match(/lookup\s*\(\s*(?<id>\w+)\s*,\s*(?<label>\w+)\s*\)/m);if(t?.groups?.id&&t?.groups?.label)return{type:"lookup",id:t.groups.id,label:t.groups.label}}const tc=[{name:"Table",cell:e=>m.jsx(Et,{to:`/${e.name}`,className:"plain-link",children:e.label})}];function nc(){const{loading:e,error:t,data:n}=$t();return e?m.jsx("div",{children:"Loading..."}):t?m.jsxs("div",{children:["Error: ",t.message]}):m.jsx("div",{children:m.jsx(qo,{columns:tc,data:n})})}const rc=["Int","Int!","Float","Float!"],ua=e=>{try{if(!e)return{variables:{},param:"",filterText:""};const[t,n,r,o]=JSON.parse(e);return{variables:{filter:r},param:`, $filter: ${o}`,filterText:`{${t}: {${n}: $filter} }`}}catch{return{variables:{},param:"",filterText:""}}},oc=e=>{if(!e)return"";const t=new Date(e);return t.toString()==="Invalid Date"||t<new Date("1973-01-01")?"":t.toLocaleString()},pa=(e,t)=>{const n=t.primaryKeys?.[0];return String(n?e?.[n]??"":e?.id??"")},fa=e=>String(e?.id??""),ac=(e,t)=>{if(!e||!t)return[];const n=e.columns.map(o=>{const a={name:o.label,reorder:!0,sortable:!0,sortField:o.name},s=e.singleJoins.find(i=>i.sourceColumnNames?.[0]===o.name);if(s){const i=s.destinationTable,c=t.findTable(s.destinationTable);return{cell:d=>!!d&&m.jsx(Et,{to:"/"+c?.name+"/"+fa(d?.[i]),children:d?.[i]?.label}),...a}}return o?.joinTable?{cell:i=>!!i&&m.jsx(Et,{to:"/"+o.name+"/"+fa(i?.[o.name]),children:o.name}),...a}:o?.paramType==="DateTime"?{selector:i=>!!o?.name&&oc(i?.[o?.name])||"",...a}:{selector:i=>o?.name?String(i?.[o?.name]??""):"",...a}}),r=e.multiJoins.map(o=>{const a=t.findTable(o.destinationTable);return{name:a?.name,cell:s=>!!s&&m.jsx(Et,{to:"/"+a?.name+"/from/"+e.name+"/"+pa(s,e),children:a?.name}),reorder:!1,sortable:!1,sortField:o.sourceColumnNames?.[0]}});return e.isEditable===!1?[...n,...r]:[{name:"edit",cell:o=>m.jsx(Et,{to:`/${e.graphQlName}/edit/${pa(o,e)}`,children:"edit"})},...n,...r]},ma=e=>{const t=e.primaryKeys?.[0];return t?e.columns.find(r=>r.name===t)?.paramType?.replace("!","")??"Int":"Int"},sc=(e,t,n,r,o)=>{if(!e||!t?.data)return null;const a=t.findTable(e.graphQlName);if(!a)return null;const s=a?.primaryKeys?.[0]??"id",i=ma(a);let{param:c,filterText:d}=ua(n);const p=e.columns.filter(f=>f?.joinTable===void 0).map(f=>{const h=a.singleJoins.find(x=>x.sourceColumnNames?.[0]===f.name);if(!h)return f;const C=t.findTable(h.destinationTable)?.labelColumn??"id";return{...f,joinTable:h,joinLabelColumn:C}}).map(f=>f?.joinTable?f.name+` ${f.joinTable.destinationTable} { id: ${f.joinTable.destinationColumnNames?.[0]} label: ${f.joinLabelColumn} }`:f.name).join(" ");return r&&!o&&(c=`, $id: ${i}`,d=`{ ${s}: { _eq: $id}}`),r&&o&&(c=`, $id: ${i}`+c,d?d=`{and: [${d}, { ${o}: { ${s}: { _eq: $id}}} ]}`:d=`{ ${o}: { ${s}: { _eq: $id}}}`),d&&(d=`filter: ${d}`),`query Get${e.name}($sort: [${e.graphQlName}SortEnum!], $limit: Int, $offset: Int ${c}) { ${e.name}(sort: $sort limit: $limit offset: $offset ${d}) { total offset limit data {${p}}}}`};function ic(e,t,n){const{search:r}=Wl(),o=r.get("filter")??"",{variables:a}=ua(o),s=$t(),i=Gt(),[c,d]=g.useState(null),[p,f]=g.useState(0),[h,y]=g.useState(10),C=c?[`${c.columnName}_${c.order}`]:e?[`${e.columns.at(0)?.name??"id"}_asc`]:[],x=g.useMemo(()=>sc(e,s,o,t,n),[e,s,o,t,n]),k=e?ma(e):"Int",T=g.useMemo(()=>({sort:C,limit:h,offset:p,...t?{id:rc.includes(k)?+t:t}:{},...a}),[C,h,p,t,k,a]),{isLoading:E,error:_,data:A}=ze.useQuery({queryKey:["tableData",e?.name,T],queryFn:()=>i.query(x,T),enabled:!!x&&!!e&&C.length>0}),I=g.useMemo(()=>e?ac(e,s):[],[e,s]),$=g.useCallback((H,N)=>{d({columnName:H.sortField??"id",order:N})},[]),S=g.useCallback(H=>{f((H-1)*h)},[h]),w=g.useCallback(H=>{y(H)},[]);return{tableColumns:I,offset:p,limit:h,handleSort:$,handlePage:S,handlePageSize:w,loading:E,error:_,data:A}}function lc({table:e,id:t,tableFilter:n}){const{limit:r,tableColumns:o,handleSort:a,handlePage:s,handlePageSize:i,loading:c,error:d,data:p}=ic(e,t,n),f=g.useRef(e.name),h=g.useRef(0),y=g.useMemo(()=>(f.current!==e.name&&(f.current=e.name,h.current+=1),h.current%2===1),[e.name]);return d?m.jsxs("div",{children:["Error: ",d.message]}):m.jsx(qo,{columns:o,data:p?.[e.name]?.data??[],progressPending:c,sortServer:!0,onSort:a,pagination:!0,paginationServer:!0,paginationTotalRows:p?.[e.name]?.total??0,paginationPerPage:r,paginationDefaultPage:1,paginationResetDefaultPage:y,onChangePage:s,onChangeRowsPerPage:i})}function cc(e,t){return e.find(r=>r.name==t)}function Ot(){const e=Sr(),{table:t,id:n,filterTable:r}=e,{loading:o,error:a,data:s}=$t();return t?o?m.jsx("div",{children:"Loading..."}):a?m.jsxs("div",{children:["Error: ",a.message]}):m.jsx(lc,{table:cc(s,t),id:n,tableFilter:r}):m.jsx("div",{children:"Table missing"})}function ga(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dc(...e){return t=>{let n=!1;const r=e.map(o=>{const a=ga(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():ga(e[o],null)}}}}var uc=Symbol.for("react.lazy"),On=u[" use ".trim().toString()];function pc(e){return typeof e=="object"&&e!==null&&"then"in e}function ha(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===uc&&"_payload"in e&&pc(e._payload)}function fc(e){const t=gc(e),n=u.forwardRef((r,o)=>{let{children:a,...s}=r;ha(a)&&typeof On=="function"&&(a=On(a._payload));const i=u.Children.toArray(a),c=i.find(bc);if(c){const d=c.props.children,p=i.map(f=>f===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:f);return m.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var mc=fc("Slot");function gc(e){const t=u.forwardRef((n,r)=>{let{children:o,...a}=n;if(ha(o)&&typeof On=="function"&&(o=On(o._payload)),u.isValidElement(o)){const s=vc(o),i=yc(a,o.props);return o.type!==u.Fragment&&(i.ref=r?dc(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hc=Symbol("radix.slottable");function bc(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hc}function yc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function vc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ba(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ya(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}const va=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wa=ya,wc=(e,t)=>n=>{var r;if(t?.variants==null)return wa(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const p=n?.[d],f=a?.[d];if(p===null)return null;const h=va(p)||va(f);return o[d][h]}),i=n&&Object.entries(n).reduce((d,p)=>{let[f,h]=p;return h===void 0||(d[f]=h),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:f,className:h,...y}=p;return Object.entries(y).every(C=>{let[x,k]=C;return Array.isArray(k)?k.includes({...a,...i}[x]):{...a,...i}[x]===k})?[...d,f,h]:d},[]);return wa(e,s,c,n?.class,n?.className)},xc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Cc=(e,t)=>({classGroupId:e,validator:t}),xa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Pn="-",Ca=[],Sc="arbitrary..",kc=e=>{const t=Ec(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Rc(s);const i=s.split(Pn),c=i[0]===""&&i.length>1?1:0;return Sa(i,c,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const c=r[s],d=n[s];return c?d?xc(d,c):c:d||Ca}return n[s]||Ca}}},Sa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=Sa(e,t+1,a);if(d)return d}const s=n.validators;if(s===null)return;const i=t===0?e.join(Pn):e.slice(t).join(Pn),c=s.length;for(let d=0;d<c;d++){const p=s[d];if(p.validator(i))return p.classGroupId}},Rc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Sc+r:void 0})(),Ec=e=>{const{theme:t,classGroups:n}=e;return $c(n,t)},$c=(e,t)=>{const n=xa();for(const r in e){const o=e[r];Rr(o,n,r,t)}return n},Rr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];Oc(s,t,n,r)}},Oc=(e,t,n,r)=>{if(typeof e=="string"){Pc(e,t,n);return}if(typeof e=="function"){jc(e,t,n,r);return}Tc(e,t,n,r)},Pc=(e,t,n)=>{const r=e===""?t:ka(t,e);r.classGroupId=n},jc=(e,t,n,r)=>{if(_c(e)){Rr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Cc(n,e))},Tc=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[i,c]=o[s];Rr(c,ka(t,i),n,r)}},ka=(e,t)=>{let n=e;const r=t.split(Pn),o=r.length;for(let a=0;a<o;a++){const s=r[a];let i=n.nextPart.get(s);i||(i=xa(),n.nextPart.set(s,i)),n=i}return n},_c=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ac=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return o(a,s),s},set(a,s){a in n?n[a]=s:o(a,s)}}},Er="!",Ra=":",Dc=[],Ea=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Ic=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,c=0,d;const p=o.length;for(let x=0;x<p;x++){const k=o[x];if(s===0&&i===0){if(k===Ra){a.push(o.slice(c,x)),c=x+1;continue}if(k==="/"){d=x;continue}}k==="["?s++:k==="]"?s--:k==="("?i++:k===")"&&i--}const f=a.length===0?o:o.slice(c);let h=f,y=!1;f.endsWith(Er)?(h=f.slice(0,-1),y=!0):f.startsWith(Er)&&(h=f.slice(1),y=!0);const C=d&&d>c?d-c:void 0;return Ea(a,y,h,C)};if(t){const o=t+Ra,a=r;r=s=>s.startsWith(o)?a(s.slice(o.length)):Ea(Dc,!1,s,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Nc=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const s=n[a],i=s[0]==="[",c=t.has(s);i||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},Fc=e=>({cache:Ac(e.cacheSize),parseClassName:Ic(e),sortModifiers:Nc(e),...kc(e)}),Mc=/\s+/,Lc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Mc);let c="";for(let d=i.length-1;d>=0;d-=1){const p=i[d],{isExternal:f,modifiers:h,hasImportantModifier:y,baseClassName:C,maybePostfixModifierPosition:x}=n(p);if(f){c=p+(c.length>0?" "+c:c);continue}let k=!!x,T=r(k?C.substring(0,x):C);if(!T){if(!k){c=p+(c.length>0?" "+c:c);continue}if(T=r(C),!T){c=p+(c.length>0?" "+c:c);continue}k=!1}const E=h.length===0?"":h.length===1?h[0]:a(h).join(":"),_=y?E+Er:E,A=_+T;if(s.indexOf(A)>-1)continue;s.push(A);const I=o(T,k);for(let $=0;$<I.length;++$){const S=I[$];s.push(_+S)}c=p+(c.length>0?" "+c:c)}return c},zc=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=$a(n))&&(o&&(o+=" "),o+=r);return o},$a=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$a(e[r]))&&(n&&(n+=" "),n+=t);return n},Hc=(e,...t)=>{let n,r,o,a;const s=c=>{const d=t.reduce((p,f)=>f(p),e());return n=Fc(d),r=n.cache.get,o=n.cache.set,a=i,i(c)},i=c=>{const d=r(c);if(d)return d;const p=Lc(c,n);return o(c,p),p};return a=s,(...c)=>a(zc(...c))},Wc=[],be=e=>{const t=n=>n[e]||Wc;return t.isThemeGetter=!0,t},Oa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Vc.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),$r=e=>e.endsWith("%")&&W(e.slice(0,-1)),Ve=e=>Bc.test(e),ja=()=>!0,Kc=e=>Gc.test(e)&&!qc.test(e),Or=()=>!1,Jc=e=>Yc.test(e),Qc=e=>Uc.test(e),Xc=e=>!O(e)&&!P(e),Zc=e=>Qe(e,Na,Or),O=e=>Oa.test(e),pt=e=>Qe(e,Fa,Kc),Ta=e=>Qe(e,id,W),ed=e=>Qe(e,La,ja),td=e=>Qe(e,Ma,Or),_a=e=>Qe(e,Da,Or),nd=e=>Qe(e,Ia,Qc),jn=e=>Qe(e,za,Jc),P=e=>Pa.test(e),qt=e=>ft(e,Fa),rd=e=>ft(e,Ma),Aa=e=>ft(e,Da),od=e=>ft(e,Na),ad=e=>ft(e,Ia),Tn=e=>ft(e,za,!0),sd=e=>ft(e,La,!0),Qe=(e,t,n)=>{const r=Oa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ft=(e,t,n=!1)=>{const r=Pa.exec(e);return r?r[1]?t(r[1]):n:!1},Da=e=>e==="position"||e==="percentage",Ia=e=>e==="image"||e==="url",Na=e=>e==="length"||e==="size"||e==="bg-size",Fa=e=>e==="length",id=e=>e==="number",Ma=e=>e==="family-name",La=e=>e==="number"||e==="weight",za=e=>e==="shadow",ld=Hc(()=>{const e=be("color"),t=be("font"),n=be("text"),r=be("font-weight"),o=be("tracking"),a=be("leading"),s=be("breakpoint"),i=be("container"),c=be("spacing"),d=be("radius"),p=be("shadow"),f=be("inset-shadow"),h=be("text-shadow"),y=be("drop-shadow"),C=be("blur"),x=be("perspective"),k=be("aspect"),T=be("ease"),E=be("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...A(),P,O],$=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],w=()=>[P,O,c],H=()=>[Ke,"full","auto",...w()],N=()=>[Je,"none","subgrid",P,O],ne=()=>["auto",{span:["full",Je,P,O]},Je,P,O],we=()=>[Je,"auto",P,O],q=()=>["auto","min","max","fr",P,O],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],ae=()=>["auto",...w()],le=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],je=()=>[Ke,"screen","full","dvw","lvw","svw","min","max","fit",...w()],pe=()=>[Ke,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],j=()=>[e,P,O],ke=()=>[...A(),Aa,_a,{position:[P,O]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",od,Zc,{size:[P,O]}],ye=()=>[$r,qt,pt],ee=()=>["","none","full",d,P,O],U=()=>["",W,qt,pt],Ce=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[W,$r,Aa,_a],Re=()=>["","none",C,P,O],fe=()=>["none",W,P,O],re=()=>["none",W,P,O],Me=()=>[W,P,O],Ie=()=>[Ke,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ve],breakpoint:[Ve],color:[ja],container:[Ve],"drop-shadow":[Ve],ease:["in","out","in-out"],font:[Xc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ve],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ve],shadow:[Ve],spacing:["px",W],text:[Ve],"text-shadow":[Ve],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,O,P,k]}],container:["container"],columns:[{columns:[W,O,P,i]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{"inset-s":H(),start:H()}],end:[{"inset-e":H(),end:H()}],"inset-bs":[{"inset-bs":H()}],"inset-be":[{"inset-be":H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",P,O]}],basis:[{basis:[Ke,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Ke,"auto","initial","none",O]}],grow:[{grow:["",W,P,O]}],shrink:[{shrink:["",W,P,O]}],order:[{order:[Je,"first","last","none",P,O]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":we()}],"row-end":[{"row-end":we()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mbs:[{mbs:ae()}],mbe:[{mbe:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...je()]}],"min-inline-size":[{"min-inline":["auto",...je()]}],"max-inline-size":[{"max-inline":["none",...je()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[i,"screen",...le()]}],"min-w":[{"min-w":[i,"screen","none",...le()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",n,qt,pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,sd,ed]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$r,O]}],"font-family":[{font:[rd,td,t]}],"font-features":[{"font-features":[O]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,P,O]}],"line-clamp":[{"line-clamp":[W,"none",P,Ta]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",P,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",P,pt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[W,"auto",P,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,P,O],radial:["",P,O],conic:[Je,P,O]},ad,nd]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,P,O]}],"outline-w":[{outline:["",W,qt,pt]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",p,Tn,jn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",f,Tn,jn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[W,pt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",h,Tn,jn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[W,P,O]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[P,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,O]}],filter:[{filter:["","none",P,O]}],blur:[{blur:Re()}],brightness:[{brightness:[W,P,O]}],contrast:[{contrast:[W,P,O]}],"drop-shadow":[{"drop-shadow":["","none",y,Tn,jn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",W,P,O]}],"hue-rotate":[{"hue-rotate":[W,P,O]}],invert:[{invert:["",W,P,O]}],saturate:[{saturate:[W,P,O]}],sepia:[{sepia:["",W,P,O]}],"backdrop-filter":[{"backdrop-filter":["","none",P,O]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[W,P,O]}],"backdrop-contrast":[{"backdrop-contrast":[W,P,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,P,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,P,O]}],"backdrop-invert":[{"backdrop-invert":["",W,P,O]}],"backdrop-opacity":[{"backdrop-opacity":[W,P,O]}],"backdrop-saturate":[{"backdrop-saturate":[W,P,O]}],"backdrop-sepia":[{"backdrop-sepia":["",W,P,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",P,O]}],ease:[{ease:["linear","initial",T,P,O]}],delay:[{delay:[W,P,O]}],animate:[{animate:["none",E,P,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,P,O]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:Me()}],"skew-x":[{"skew-x":Me()}],"skew-y":[{"skew-y":Me()}],transform:[{transform:[P,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,O]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[W,qt,pt,Ta]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function cd(...e){return ld(ya(e))}const dd=wc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ha=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?mc:"button";return m.jsx(s,{className:cd(dd({variant:t,size:n,className:e})),ref:a,...o})});Ha.displayName="Button";function Pr(){const e=Sr(),{loading:t,error:n,data:r}=$t(),[o,a]=g.useState(""),s=Cr(),{back:i,hasBack:c}=Hl(),d=e?.table,p=g.useMemo(()=>r?.find(x=>x.graphQlName===d),[r,d]),f=g.useMemo(()=>p?.columns?.map(x=>({key:x.name,value:`${x.name},${x.paramType}`,label:x.label})),[p]),[h,y]=g.useState(f?.at(0)?.value??"");g.useEffect(()=>{a(""),y(f?.at(0)?.value??"")},[f]);const C=()=>{if(!o)return;const[x,k]=h.split(",");(k==="Int"||k==="Int!"||k==="Float"||k==="Float!")&&s(`?filter=["${x}", "_eq", ${o}, "${k}"]`),(k==="String"||k==="String!")&&s(`?filter=["${x}", "_contains", "${o}", "${k}"]`)};return t?m.jsx("div",{children:"Loading..."}):n?m.jsxs("div",{children:["Error: ",n.message]}):m.jsxs("header",{className:"editdb-header",children:[m.jsxs("div",{children:[c&&m.jsx("button",{onClick:()=>i(),children:"‹"}),!c&&m.jsx("span",{children:"‹"})]}),m.jsxs("h3",{children:["Table: ",p?.dbName??e?.table??"(Select)"]}),f&&m.jsxs(m.Fragment,{children:[m.jsx("select",{onChange:x=>y(x.target.value),children:f.map(x=>m.jsx("option",{value:x.value,children:x.label},x.key))}),m.jsx("input",{type:"search",value:o,onChange:x=>a(x.target.value)}),m.jsx("button",{onClick:C,children:"filter"}),m.jsx("button",{onClick:()=>s("/"),children:"clear"}),p?.isEditable&&m.jsx("button",{onClick:()=>s("edit/"),children:"add"}),m.jsx(Ha,{variant:"outline",size:"sm",children:"shadcn test"})]})]})}function ud(e,t,n){const r=Gt(),o=g.useMemo(()=>e?.data?.find(d=>d.graphQlName===t),[e,t]),a=g.useMemo(()=>e.loading||e.error||!o?null:`query Get_${t}_Ref {
|
|
492
492
|
values: ${t}(limit: -1) {
|
|
493
493
|
data {
|
|
494
494
|
key: ${n}
|
|
495
495
|
label: ${o.labelColumn??"id"}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
}`,[n,o,e.loading,e.error,t]),{isLoading:
|
|
498
|
+
}`,[n,o,e.loading,e.error,t]),{isLoading:s,error:i,data:c}=ze.useQuery({queryKey:["tableRef",t,n],queryFn:()=>r.query(a),enabled:!!a});return{loading:s||e.loading,error:i||e.error,data:c?.values?.data??[]}}const pd=["Int","Int!","Float","Float!"],fd=["Boolean","Boolean!"];function Wa(e,t,n,r,o){const a={...e};for(const{column:s}of t){if(pd.some(i=>i===s.paramType)){const i=a[s.name];a[s.name]=i!=null?+i:void 0}fd.some(i=>i===s.paramType)&&(a[s.name]=!!a[s.name])}if(!o)for(const s of n)a[s.name]=s.paramType.startsWith("Int")?+(r??0):r;return a}function Va(e,t,n,r){const o=Gt(),a=ze.useQueryClient(),s=g.useMemo(()=>`mutation updateSingle($detail: Update_${e.name}){
|
|
499
499
|
${e.name}(update: $detail)
|
|
500
|
-
}`,[e]),
|
|
500
|
+
}`,[e]),i=g.useMemo(()=>`mutation insertSingle($detail: Insert_${e.name}){
|
|
501
501
|
${e.name}(insert: $detail)
|
|
502
|
-
}`,[e]),c=
|
|
503
|
-
value: ${
|
|
504
|
-
data { ${
|
|
502
|
+
}`,[e]),c=ze.useMutation({mutationFn:y=>o.query(s,{detail:y}),onSuccess:()=>a.invalidateQueries({queryKey:["tableData",e.name]})}),d=ze.useMutation({mutationFn:y=>o.query(i,{detail:y}),onSuccess:()=>a.invalidateQueries({queryKey:["tableData",e.name]})}),p=y=>{const C=Wa(y,t,n,r,!1);return c.mutateAsync(C)},f=y=>{const C=Wa(y,t,n,r,!0);return d.mutateAsync(C)},h=c.error??d.error;return{update:p,insert:f,isPending:c.isPending||d.isPending,error:h}}const md=["Boolean","Boolean!"],Ba=["DateTime","DateTime!"],gd=["Int","Int!","Float","Float!"];function hd(e,t){return g.useMemo(()=>{const n=e?.data?.find(a=>a.graphQlName==t),o=n.columns.filter(a=>!a.isReadOnly&&!a.isIdentity).map(a=>({column:a,join:n.singleJoins.find(s=>s.sourceColumnNames[0]===a.graphQlName)}));return[n,o,n.columns.filter(a=>a.isIdentity)]},[e,t])}function bd({table:e,schema:t,editid:n}){const r=Cr(),o=Gt(),a=n===void 0||n==="",[s,i,c]=hd(t,e),d=s.labelColumn,p=s.label,f=g.useRef(null),h=g.useRef({}),y=Va(s,i,c,n),C=c[0]?.name??s.primaryKeys?.[0]??"id",k=(c[0]??s.columns.find(N=>N.name===C))?.paramType?.replace("!","")??"Int",T=gd.includes(k),E=g.useMemo(()=>`query GetSingleEdit_${s.name}($id: ${k}){
|
|
503
|
+
value: ${s.name}(filter: {${C}: { _eq: $id}}) {
|
|
504
|
+
data { ${i.map(({column:N})=>N.name).join(" ")} }
|
|
505
505
|
}
|
|
506
|
-
}`,[i,
|
|
506
|
+
}`,[s,i,k,C]),{isLoading:_,error:A,data:I}=ze.useQuery({queryKey:["editRecord",s.name,n],queryFn:()=>o.query(E,{id:T?+n:n}),enabled:!!s&&!a}),$=g.useMemo(()=>I?.value?.data?.at(0)??{},[I]);if(g.useEffect(()=>{h.current=Object.fromEntries(i.map(({column:N})=>{if(Ba.some(ne=>ne===N.paramType)){const ne=$[N.name]?.split("T")?.[0];return[N.name,ne==="0001-01-01"?"":ne]}return[N.name,$[N.name]]}))},[$,i]),g.useEffect(()=>{const N=f.current;return N?.showModal(),()=>N?.close()},[]),_&&!a)return m.jsx("div",{children:"Loading..."});if(A)return m.jsxs("div",{children:["Error: ",A.message]});if(y.error)return m.jsxs("div",{children:["Error: ",y.error.message]});const S=N=>{(a?y.insert:y.update)({...h.current}).then(()=>{r("../..")})},w=$?.[d]??n,H=i.map(({column:N,join:ne})=>({paramType:N.paramType,isReadOnly:N.isReadOnly,name:N.name,required:N.isNullable?{}:{required:!0},value:h.current[N.name]??(a?void 0:$[N.name]),join:ne}));return m.jsx("dialog",{className:"editdb-dialog-edit",ref:f,children:m.jsxs("form",{method:"dialog",onSubmit:S,children:[c.map(N=>m.jsx("input",{type:"hidden",name:N.name,defaultValue:n},N.name)),m.jsxs("h3",{className:"editdb-dialog-edit__heading",children:[p,":",w]}),m.jsx(yd,{fields:H,detailRef:h}),m.jsxs("div",{className:"button-row",children:[m.jsx(Et,{className:"editdb-dialog-edit__cancel",to:"../..",children:"Cancel"}),m.jsx("button",{type:"submit",className:`editdb-dialog-edit__submit ${y.isPending?"editdb-dialog-edit__submit--loading":""}`,disabled:y.isPending,children:"Save"})]})]})})}function _n(){const{table:e,editid:t}=Sr(),n=$t();return e?n.loading?m.jsx("div",{children:"Loading..."}):n.error?m.jsxs("div",{children:["Error: ",n.error.message]}):m.jsx(bd,{table:e,schema:n,editid:t??""}):m.jsx("div",{children:"Table missing"})}function yd({fields:e,detailRef:t}){return m.jsx("ul",{className:"editdb-dialog-edit__input-list",children:e.map(n=>m.jsx(vd,{field:n,detailRef:t},n.name))})}function vd({field:e,detailRef:t}){let n=xd;return e.join?n=Sd:md.some(r=>r===e.paramType)?n=wd:Ba.some(r=>r===e.paramType)&&(n=Cd),m.jsxs("li",{className:"editdb-dialog-edit__input-item",children:[m.jsx("label",{children:e.name}),m.jsx(n,{field:e,detailRef:t})]})}function wd({field:e,detailRef:t}){return m.jsx("input",{type:"checkbox",defaultChecked:e.value,onChange:n=>{t.current[e.name]=n.target.checked}})}function xd({field:e,detailRef:t}){return m.jsx("input",{type:"text",defaultValue:e.value,...e.required,onChange:n=>{t.current[e.name]=n.target.value}})}function Cd({field:e,detailRef:t}){return m.jsx("input",{type:"date",defaultValue:e.value,...e.required,onChange:n=>{t.current[e.name]=n.target.value}})}function Sd({field:e,detailRef:t}){const n=$t(),r=ud(n,e.join.destinationTable,e.join.destinationColumnNames[0]);return m.jsx("select",{defaultValue:e.value,onChange:o=>{t.current[e.name]=o.target.value},children:r.data.map(o=>m.jsx("option",{value:o.key,children:o.label},o.key))})}class An extends g.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){const{onError:r,section:o}=this.props;console.error(`Error in ${o??"component"}:`,t,n),r?.(t,n)}handleRetry=()=>{this.setState({hasError:!1,error:null})};render(){const{hasError:t,error:n}=this.state,{children:r,fallback:o,section:a}=this.props;return t?o||m.jsx("div",{className:"editdb-error-boundary",children:m.jsxs("div",{className:"editdb-error-boundary__content",children:[m.jsxs("h3",{className:"editdb-error-boundary__title",children:["Something went wrong",a?` in ${a}`:""]}),m.jsx("p",{className:"editdb-error-boundary__message",children:n?.message??"An unexpected error occurred"}),m.jsx("button",{className:"editdb-error-boundary__retry",onClick:this.handleRetry,children:"Try Again"})]})}):r}}const kd=()=>m.jsx("p",{className:"editdb-message",children:"Select a Table"}),Rd=()=>m.jsxs("div",{className:"editdb-frame-layout",children:[m.jsx("div",{className:"editdb-frame-layout-header",children:m.jsx(An,{section:"Header",children:m.jsxs(kr,{children:[m.jsx($e,{path:"/:table/*",element:m.jsx(Pr,{})}),m.jsx($e,{path:"/:table",element:m.jsx(Pr,{})}),m.jsx($e,{path:"/",element:m.jsx(Pr,{})})]})})}),m.jsx("div",{className:"editdb-frame-layout-nav",children:m.jsx(An,{section:"Table List",children:m.jsx(nc,{})})}),m.jsxs("div",{className:"editdb-frame-layout-body",children:[m.jsx(An,{section:"Data Panel",children:m.jsxs(kr,{children:[m.jsx($e,{path:"/:table/from/:filterTable/:id/edit/:editid",element:m.jsx(Ot,{})}),m.jsx($e,{path:"/:table/from/:filterTable/:id",element:m.jsx(Ot,{})}),m.jsx($e,{path:"/:table/:id/edit/:editid",element:m.jsx(Ot,{})}),m.jsx($e,{path:"/:table/:id",element:m.jsx(Ot,{})}),m.jsx($e,{path:"/:table/edit/:editid",element:m.jsx(Ot,{})}),m.jsx($e,{path:"/:table",element:m.jsx(Ot,{})}),m.jsx($e,{path:"/",element:m.jsx(kd,{})})]})}),m.jsx(An,{section:"Data Edit",children:m.jsxs(kr,{children:[m.jsx($e,{path:"/:table/from/:filterTable/:id/edit/:editid",element:m.jsx(_n,{})}),m.jsx($e,{path:"/:table/:id/edit/:editid",element:m.jsx(_n,{})}),m.jsx($e,{path:"/:table/edit/:editid",element:m.jsx(_n,{})}),m.jsx($e,{path:"/:table/edit",element:m.jsx(_n,{})})]})})]})]});function Ed({onLocate:e}){const t=zl();return g.useEffect(()=>{e?.(t)},[t,e]),m.jsx(Rd,{})}function Ga({uri:e,fetcher:t,uiPath:n,onLocate:r}){const o=g.useMemo(()=>t||(e?new ia(e):null),[e,t]),a=g.useMemo(()=>new ze.QueryClient({defaultOptions:{queries:{staleTime:300*1e3,retry:1}}}),[]);return o?m.jsx(ze.QueryClientProvider,{client:a,children:m.jsx(Jl,{value:o,children:m.jsx(Vl,{path:n||"/",children:m.jsx(Ql,{children:m.jsx("div",{children:m.jsx(Ed,{onLocate:r})})})})})}):m.jsx("section",{children:"CONFIG MISSING..."})}Ae.Editor=Ga,Ae.HttpGraphQLFetcher=ia,Ae.default=Ga,Ae.useTableMutation=Va,Object.defineProperties(Ae,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|