|
|
@@ -1,4 +1,4 @@
|
|
|
|
var m3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var C4e=m3((Ra,Ta)=>{function h3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var n_={exports:{}},Av={},r_={exports:{}},ht={};/**
|
|
|
|
var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa)=>{function PB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var l_={exports:{}},Dv={},s_={exports:{}},ht={};/**
|
|
|
|
* @license React
|
|
|
|
* @license React
|
|
|
|
* react.production.min.js
|
|
|
|
* react.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
@@ -6,7 +6,7 @@ var m3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var C4e=m3((Ra,Ta
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var Fp=Symbol.for("react.element"),g3=Symbol.for("react.portal"),v3=Symbol.for("react.fragment"),y3=Symbol.for("react.strict_mode"),b3=Symbol.for("react.profiler"),x3=Symbol.for("react.provider"),w3=Symbol.for("react.context"),C3=Symbol.for("react.forward_ref"),S3=Symbol.for("react.suspense"),E3=Symbol.for("react.memo"),P3=Symbol.for("react.lazy"),Jk=Symbol.iterator;function k3(e){return e===null||typeof e!="object"?null:(e=Jk&&e[Jk]||e["@@iterator"],typeof e=="function"?e:null)}var o_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i_=Object.assign,a_={};function od(e,t,n){this.props=e,this.context=t,this.refs=a_,this.updater=n||o_}od.prototype.isReactComponent={};od.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};od.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function l_(){}l_.prototype=od.prototype;function PC(e,t,n){this.props=e,this.context=t,this.refs=a_,this.updater=n||o_}var kC=PC.prototype=new l_;kC.constructor=PC;i_(kC,od.prototype);kC.isPureReactComponent=!0;var e$=Array.isArray,s_=Object.prototype.hasOwnProperty,$C={current:null},u_={key:!0,ref:!0,__self:!0,__source:!0};function c_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)s_.call(t,r)&&!u_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Fp,type:e,key:i,ref:a,props:o,_owner:$C.current}}function $3(e,t){return{$$typeof:Fp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function IC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fp}function I3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var t$=/\/+/g;function tb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?I3(""+e.key):t.toString(36)}function Lh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Fp:case g3:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+tb(a,0):r,e$(o)?(n="",e!=null&&(n=e.replace(t$,"$&/")+"/"),Lh(o,t,n,"",function(u){return u})):o!=null&&(IC(o)&&(o=$3(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(t$,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",e$(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+tb(i,l);a+=Lh(i,t,n,s,o)}else if(s=k3(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+tb(i,l++),a+=Lh(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Fm(e,t,n){if(e==null)return e;var r=[],o=0;return Lh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function O3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ir={current:null},Dh={transition:null},M3={ReactCurrentDispatcher:Ir,ReactCurrentBatchConfig:Dh,ReactCurrentOwner:$C};ht.Children={map:Fm,forEach:function(e,t,n){Fm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fm(e,function(){t++}),t},toArray:function(e){return Fm(e,function(t){return t})||[]},only:function(e){if(!IC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=od;ht.Fragment=v3;ht.Profiler=b3;ht.PureComponent=PC;ht.StrictMode=y3;ht.Suspense=S3;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M3;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=i_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=$C.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)s_.call(t,s)&&!u_.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Fp,type:e.type,key:o,ref:i,props:r,_owner:a}};ht.createContext=function(e){return e={$$typeof:w3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:x3,_conLine truncated
|
|
|
|
*/var Ap=Symbol.for("react.element"),kB=Symbol.for("react.portal"),$B=Symbol.for("react.fragment"),IB=Symbol.for("react.strict_mode"),OB=Symbol.for("react.profiler"),MB=Symbol.for("react.provider"),RB=Symbol.for("react.context"),TB=Symbol.for("react.forward_ref"),_B=Symbol.for("react.suspense"),FB=Symbol.for("react.memo"),AB=Symbol.for("react.lazy"),r$=Symbol.iterator;function LB(e){return e===null||typeof e!="object"?null:(e=r$&&e[r$]||e["@@iterator"],typeof e=="function"?e:null)}var u_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},c_=Object.assign,d_={};function ld(e,t,n){this.props=e,this.context=t,this.refs=d_,this.updater=n||u_}ld.prototype.isReactComponent={};ld.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f_(){}f_.prototype=ld.prototype;function $C(e,t,n){this.props=e,this.context=t,this.refs=d_,this.updater=n||u_}var IC=$C.prototype=new f_;IC.constructor=$C;c_(IC,ld.prototype);IC.isPureReactComponent=!0;var o$=Array.isArray,p_=Object.prototype.hasOwnProperty,OC={current:null},m_={key:!0,ref:!0,__self:!0,__source:!0};function h_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)p_.call(t,r)&&!m_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ap,type:e,key:i,ref:a,props:o,_owner:OC.current}}function DB(e,t){return{$$typeof:Ap,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function MC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ap}function NB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var i$=/\/+/g;function nb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?NB(""+e.key):t.toString(36)}function Nh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ap:case kB:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+nb(a,0):r,o$(o)?(n="",e!=null&&(n=e.replace(i$,"$&/")+"/"),Nh(o,t,n,"",function(u){return u})):o!=null&&(MC(o)&&(o=DB(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(i$,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",o$(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+nb(i,l);a+=Nh(i,t,n,s,o)}else if(s=LB(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+nb(i,l++),a+=Nh(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Lm(e,t,n){if(e==null)return e;var r=[],o=0;return Nh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function jB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Or={current:null},jh={transition:null},zB={ReactCurrentDispatcher:Or,ReactCurrentBatchConfig:jh,ReactCurrentOwner:OC};ht.Children={map:Lm,forEach:function(e,t,n){Lm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lm(e,function(){t++}),t},toArray:function(e){return Lm(e,function(t){return t})||[]},only:function(e){if(!MC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=ld;ht.Fragment=$B;ht.Profiler=OB;ht.PureComponent=$C;ht.StrictMode=IB;ht.Suspense=_B;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zB;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=c_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=OC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)p_.call(t,s)&&!m_.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ap,type:e.type,key:o,ref:i,props:r,_owner:a}};ht.createContext=function(e){return e={$$typeof:RB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:MB,_conLine truncated
|
|
|
|
* @license React
|
|
|
|
* @license React
|
|
|
|
* react-jsx-runtime.production.min.js
|
|
|
|
* react-jsx-runtime.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
@@ -14,7 +14,7 @@ var m3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var C4e=m3((Ra,Ta
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var R3=v,T3=Symbol.for("react.element"),_3=Symbol.for("react.fragment"),F3=Object.prototype.hasOwnProperty,A3=R3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L3={key:!0,ref:!0,__self:!0,__source:!0};function d_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)F3.call(t,r)&&!L3.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:T3,type:e,key:i,ref:a,props:o,_owner:A3.current}}Av.Fragment=_3;Av.jsx=d_;Av.jsxs=d_;n_.exports=Av;var j=n_.exports,f_={exports:{}},mo={},p_={exports:{}},m_={};/**
|
|
|
|
*/var BB=v,HB=Symbol.for("react.element"),VB=Symbol.for("react.fragment"),UB=Object.prototype.hasOwnProperty,WB=BB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GB={key:!0,ref:!0,__self:!0,__source:!0};function g_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)UB.call(t,r)&&!GB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:HB,type:e,key:i,ref:a,props:o,_owner:WB.current}}Dv.Fragment=VB;Dv.jsx=g_;Dv.jsxs=g_;l_.exports=Dv;var N=l_.exports,v_={exports:{}},mo={},y_={exports:{}},b_={};/**
|
|
|
|
* @license React
|
|
|
|
* @license React
|
|
|
|
* scheduler.production.min.js
|
|
|
|
* scheduler.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
@@ -22,7 +22,7 @@ var m3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var C4e=m3((Ra,Ta
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/(function(e){function t(L,z){var B=L.length;L.push(z);e:for(;0<B;){var A=B-1>>>1,H=L[A];if(0<o(H,z))L[A]=z,L[B]=H,B=A;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],B=L.pop();if(B!==z){L[0]=B;e:for(var A=0,H=L.length,q=H>>>1;A<q;){var U=2*(A+1)-1,G=L[U],Y=U+1,re=L[Y];if(0>o(G,B))Y<H&&0>o(re,G)?(L[A]=re,L[Y]=B,A=Y):(L[A]=G,L[U]=B,A=U);else if(Y<H&&0>o(re,B))L[A]=re,L[Y]=B,A=Y;else break e}}return z}function o(L,z){var B=L.sortIndex-z.sortIndex;return B!==0?B:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(L){if(h=!1,x(L),!p)if(n(s)!==null)p=!0,N(P);else{var z=n(u);z!==null&&$(w,z.startTime-L)}}function P(L,z){p=!1,h&&(h=!1,b(S),S=-1),m=!0;var B=f;try{for(x(z),d=n(s);d!==null&&(!(d.expirationTime>z)||L&&!R());){var A=d.callback;if(typeof A=="function"){d.callback=null,f=d.priorityLevel;var H=A(d.expirationTime<=z);z=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),x(z)}else r(s);d=n(s)}if(d!==null)var q=!0;else{var U=n(u);U!==null&&$(w,U.startTime-z),q=!1}return q}finally{d=null,f=B,m=!1}}var C=!1,E=null,S=-1,M=5,I=-1;function R(){return!(e.unstable_now()-I<M)}function _(){if(E!==null){var L=e.unstable_now();I=L;var z=!0;try{z=E(!0,L)}finally{z?D():(C=!1,E=null)}}else C=!1}var D;if(typeof g=="function")D=function(){g(_)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,F=T.port2;T.port1.onmessage=_,D=function(){F.postMessage(null)}}else D=function(){y(_,0)};function N(L){E=L,C||(C=!0,D())}function $(L,z){S=y(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,N(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var B=f;f=z;try{return L()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=f;f=L;try{return z()}finally{f=B}},e.unstable_scheduleCallback=function(L,z,B){var A=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,L={id:c++,callback:z,priorityLevel:L,startTime:B,expirationTime:H,sortIndex:-1},B>A?(L.sortIndex=B,t(u,L),n(s)===null&&L===n(u)&&(h?(b(S),S=-1):h=!0,$(w,B-A))):(L.sortIndex=H,t(s,L),p||m||(p=!0,N(P))),L},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(L){var z=f;return function(){var B=f;f=z;try{return L.apply(this,arguments)}finally{f=B}}}})(m_);p_.exports=m_;var D3=p_.exports;/**
|
|
|
|
*/(function(e){function t(L,z){var B=L.length;L.push(z);e:for(;0<B;){var A=B-1>>>1,H=L[A];if(0<o(H,z))L[A]=z,L[B]=H,B=A;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],B=L.pop();if(B!==z){L[0]=B;e:for(var A=0,H=L.length,q=H>>>1;A<q;){var U=2*(A+1)-1,G=L[U],Y=U+1,re=L[Y];if(0>o(G,B))Y<H&&0>o(re,G)?(L[A]=re,L[Y]=B,A=Y):(L[A]=G,L[U]=B,A=U);else if(Y<H&&0>o(re,B))L[A]=re,L[Y]=B,A=Y;else break e}}return z}function o(L,z){var B=L.sortIndex-z.sortIndex;return B!==0?B:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(L){if(h=!1,x(L),!p)if(n(s)!==null)p=!0,j(P);else{var z=n(u);z!==null&&$(w,z.startTime-L)}}function P(L,z){p=!1,h&&(h=!1,b(S),S=-1),m=!0;var B=f;try{for(x(z),d=n(s);d!==null&&(!(d.expirationTime>z)||L&&!R());){var A=d.callback;if(typeof A=="function"){d.callback=null,f=d.priorityLevel;var H=A(d.expirationTime<=z);z=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),x(z)}else r(s);d=n(s)}if(d!==null)var q=!0;else{var U=n(u);U!==null&&$(w,U.startTime-z),q=!1}return q}finally{d=null,f=B,m=!1}}var C=!1,E=null,S=-1,M=5,O=-1;function R(){return!(e.unstable_now()-O<M)}function _(){if(E!==null){var L=e.unstable_now();O=L;var z=!0;try{z=E(!0,L)}finally{z?D():(C=!1,E=null)}}else C=!1}var D;if(typeof g=="function")D=function(){g(_)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,F=T.port2;T.port1.onmessage=_,D=function(){F.postMessage(null)}}else D=function(){y(_,0)};function j(L){E=L,C||(C=!0,D())}function $(L,z){S=y(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,j(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var B=f;f=z;try{return L()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=f;f=L;try{return z()}finally{f=B}},e.unstable_scheduleCallback=function(L,z,B){var A=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,L={id:c++,callback:z,priorityLevel:L,startTime:B,expirationTime:H,sortIndex:-1},B>A?(L.sortIndex=B,t(u,L),n(s)===null&&L===n(u)&&(h?(b(S),S=-1):h=!0,$(w,B-A))):(L.sortIndex=H,t(s,L),p||m||(p=!0,j(P))),L},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(L){var z=f;return function(){var B=f;f=z;try{return L.apply(this,arguments)}finally{f=B}}}})(b_);y_.exports=b_;var qB=y_.exports;/**
|
|
|
|
* @license React
|
|
|
|
* @license React
|
|
|
|
* react-dom.production.min.js
|
|
|
|
* react-dom.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
@@ -30,14 +30,14 @@ var m3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var C4e=m3((Ra,Ta
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var h_=v,co=D3;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g_=new Set,Wf={};function mu(e,t){Tc(e,t),Tc(e+"Capture",t)}function Tc(e,t){for(Wf[e]=t,e=0;e<t.length;e++)g_.add(t[e])}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lx=Object.prototype.hasOwnProperty,N3=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,n$={},r$={};function j3(e){return lx.call(r$,e)?!0:lx.call(n$,e)?!1:N3.test(e)?r$[e]=!0:(n$[e]=!0,!1)}function z3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B3(e,t,n,r){if(t===null||typeof t>"u"||z3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Or(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new Or(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new Or(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Or(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new Or(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rr[e]=new Or(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Or(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Or(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Or(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Or(e,5,!1,e.toLowerCase(),null,!1,!1)});var OC=/[\-:]([a-z])/g;function MC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(OC,MC);rr[t]=new Or(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(OC,MC);rr[t]=new Or(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(OC,MC);rr[t]=new Or(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Or(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Or("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Or(e,1,!1,e.toLowerCase(),null,!0,!0)});function RC(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!==
Line truncated
|
|
|
|
*/var x_=v,co=qB;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var w_=new Set,Kf={};function gu(e,t){Ac(e,t),Ac(e+"Capture",t)}function Ac(e,t){for(Kf[e]=t,e=0;e<t.length;e++)w_.add(t[e])}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ux=Object.prototype.hasOwnProperty,KB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a$={},l$={};function QB(e){return ux.call(l$,e)?!0:ux.call(a$,e)?!1:KB.test(e)?l$[e]=!0:(a$[e]=!0,!1)}function YB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XB(e,t,n,r){if(t===null||typeof t>"u"||YB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new Mr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new Mr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Mr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new Mr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rr[e]=new Mr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Mr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Mr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Mr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Mr(e,5,!1,e.toLowerCase(),null,!1,!1)});var RC=/[\-:]([a-z])/g;function TC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Mr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Mr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Mr(e,1,!1,e.toLowerCase(),null,!0,!0)});function _C(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!==
Line truncated
|
|
|
|
`+nb+e}var rb=!1;function ob(e,t){if(!e||rb)return"";rb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
|
|
`+rb+e}var ob=!1;function ib(e,t){if(!e||ob)return"";ob=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
|
|
`),i=r.stack.split(`
|
|
|
|
`),i=r.stack.split(`
|
|
|
|
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
|
|
|
|
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
|
|
|
|
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{rb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?df(e):""}function H3(e){switch(e.tag){case 5:return df(e.type);case 16:return df("Lazy");case 13:return df("Suspense");case 19:return df("SuspenseList");case 0:case 2:case 15:return e=ob(e.type,!1),e;case 11:return e=ob(e.type.render,!1),e;case 1:return e=ob(e.type,!0),e;default:return""}}function dx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ec:return"Fragment";case Ju:return"Portal";case sx:return"Profiler";case TC:return"StrictMode";case ux:return"Suspense";case cx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y_:return(e.displayName||"Context")+".Consumer";case v_:return(e._context.displayName||"Context")+".Provider";case _C:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case FC:return t=e.displayName||null,t!==null?t:dx(e.type)||"Memo";case bl:t=e._payload,e=e._init;try{return dx(e(t))}catch{}}return null}function V3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dx(t);case 8:return t===TC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function x_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U3(e){var t=x_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lm(e){e._valueTracker||(e._valueTracker=U3(e))}function w_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=x_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fx(e,t){var n=t.checked;return un({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function i$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function C_(e,t){t=t.checked,t!=null&&RC(e,"checked",t,!1)}function px(e,t){C_(e,t);var n=Xl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mx(e,t.type,n):t.hasOwnProperty("defaultValue")&&mx(e,t.type,Xl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function a$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mx(e,t,n){(t!=="number"||yg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ff=Array.isArray;function gc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function hx(e,t){if(t.dan
Line truncated
|
|
|
|
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ob=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pf(e):""}function ZB(e){switch(e.tag){case 5:return pf(e.type);case 16:return pf("Lazy");case 13:return pf("Suspense");case 19:return pf("SuspenseList");case 0:case 2:case 15:return e=ib(e.type,!1),e;case 11:return e=ib(e.type.render,!1),e;case 1:return e=ib(e.type,!0),e;default:return""}}function px(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oc:return"Fragment";case rc:return"Portal";case cx:return"Profiler";case FC:return"StrictMode";case dx:return"Suspense";case fx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S_:return(e.displayName||"Context")+".Consumer";case C_:return(e._context.displayName||"Context")+".Provider";case AC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LC:return t=e.displayName||null,t!==null?t:px(e.type)||"Memo";case wl:t=e._payload,e=e._init;try{return px(e(t))}catch{}}return null}function JB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return px(t);case 8:return t===FC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e6(e){var t=P_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nm(e){e._valueTracker||(e._valueTracker=e6(e))}function k_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=P_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mx(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function u$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $_(e,t){t=t.checked,t!=null&&_C(e,"checked",t,!1)}function hx(e,t){$_(e,t);var n=Jl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gx(e,t.type,n):t.hasOwnProperty("defaultValue")&&gx(e,t.type,Jl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function c$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gx(e,t,n){(t!=="number"||bg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mf=Array.isArray;function xc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function vx(e,t){if(t.dan
Line truncated
|
|
|
|
`).replace(e6,"")}function Um(e,t,n){if(t=O$(t),O$(e)!==t&&n)throw Error(Me(425))}function kg(){}var Ix=null,Ox=null;function Mx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rx=typeof setTimeout=="function"?setTimeout:void 0,t6=typeof clearTimeout=="function"?clearTimeout:void 0,M$=typeof Promise=="function"?Promise:void 0,n6=typeof queueMicrotask=="function"?queueMicrotask:typeof M$<"u"?function(e){return M$.resolve(null).then(e).catch(r6)}:Rx;function r6(e){setTimeout(function(){throw e})}function vb(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Yf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Yf(t)}function Bl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function R$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ad=Math.random().toString(36).slice(2),Ni="__reactFiber$"+ad,tp="__reactProps$"+ad,ja="__reactContainer$"+ad,Tx="__reactEvents$"+ad,o6="__reactListeners$"+ad,i6="__reactHandles$"+ad;function Rs(e){var t=e[Ni];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ja]||n[Ni]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=R$(e);e!==null;){if(n=e[Ni])return n;e=R$(e)}return t}e=n,n=e.parentNode}return null}function Dp(e){return e=e[Ni]||e[ja],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function zv(e){return e[tp]||null}var _x=[],ic=-1;function rs(e){return{current:e}}function Xt(e){0>ic||(e.current=_x[ic],_x[ic]=null,ic--)}function Vt(e,t){ic++,_x[ic]=e.current,e.current=t}var Zl={},dr=rs(Zl),jr=rs(!1),Ys=Zl;function _c(e,t){var n=e.type.contextTypes;if(!n)return Zl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zr(e){return e=e.childContextTypes,e!=null}function $g(){Xt(jr),Xt(dr)}function T$(e,t,n){if(dr.current!==Zl)throw Error(Me(168));Vt(dr,t),Vt(jr,n)}function cF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,V3(e)||"Unknown",o));return un({},n,r)}function Ig(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zl,Ys=dr.current,Vt(dr,e),Vt(jr,jr.current),!0}function _$(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=cF(e,t,Ys),r.__reactInternalMemoizedMergedChildContext=e,Xt(jr),Xt(dr),Vt(dr,e)):Xt(jr),Vt(jr,n)}var Pa=null,Bv=!1,yb=!1;function dF(e){Pa===null?Pa=[e]:Pa.push(e)}function a6(e){Bv=!0,dF(e)}function os(){if(!yb&&Pa!==null){yb=!0;var e=0,t=_t;try{var n=Pa;for(_t=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pa=null,Bv=!1}catch(o){throw Pa!==null&&(Pa=Pa.slice(e+1)),L_(LC,os),o}finally{_t=t,yb=!1}}return null}var ac=[],lc=0,Og=null,Mg=0,Oo=[],Mo=0,Xs=null,$a=1,Ia="";function xs(e,t){ac[lc++]=Mg,ac[lc++]=Og,Og=e,Mg=t}function fF(e,t,n){Oo[Mo++]=$a,Oo[Mo++]=Ia,Oo[Mo++]=Xs,Xs=e;var r=$a;e=Ia;var o=32-hi(r)-1;r&=~(1<<o),n+=1;var i=32-hi(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,$a=1<<32-hi(t)+o|n<<o|r,Ia=i+e}else $a=1<<i|n<<o|r,Ia=e}function WC(e){e.return!==null&&(xs(e,1),fF(e,1,0))}function GC(e){for(;e===Og;)Og=ac[--lc],ac[lc]=null,Mg=ac[--lc],ac[lc]=null;for(;e===Xs;)Xs=Oo[--Mo],Oo[Mo]=null,Ia=Oo[--Mo],Oo[Mo]=null,$a=Oo[--Mo],Oo[Mo]=null}var lo=null,ao=null,rn=!1,ci=null;function pF(e,t){var n=Fo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function F$(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lo=e,ao=Bl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lo=e,ao=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Xs!==null?{id:$a,overflow:Ia}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lo=e,ao=null,!0):!1;default:return!1}}function Fx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ax(e){if(rn){var t=ao;if(t){var n=t;if(!F$(e,t)){if(Fx(e))throw Error(Me(418));t=Bl(n.nextSibling);var r=lo;t&&F$(e,t)?pF(r,n):(e.flags=e.flags&-4097|2,rn=!1,lo=e)}}else{if(Fx(e))throw Error(Me(418));e.flags=e.flags&-4097|2,rn=!1,lo=e}}}function A$(e){
Line truncated
|
|
|
|
`).replace(cH,"")}function Gm(e,t,n){if(t=_$(t),_$(e)!==t&&n)throw Error(Me(425))}function $g(){}var Mx=null,Rx=null;function Tx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _x=typeof setTimeout=="function"?setTimeout:void 0,dH=typeof clearTimeout=="function"?clearTimeout:void 0,F$=typeof Promise=="function"?Promise:void 0,fH=typeof queueMicrotask=="function"?queueMicrotask:typeof F$<"u"?function(e){return F$.resolve(null).then(e).catch(pH)}:_x;function pH(e){setTimeout(function(){throw e})}function yb(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Jf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Jf(t)}function Vl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function A$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ud=Math.random().toString(36).slice(2),ji="__reactFiber$"+ud,op="__reactProps$"+ud,Ha="__reactContainer$"+ud,Fx="__reactEvents$"+ud,mH="__reactListeners$"+ud,hH="__reactHandles$"+ud;function Fs(e){var t=e[ji];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ha]||n[ji]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=A$(e);e!==null;){if(n=e[ji])return n;e=A$(e)}return t}e=n,n=e.parentNode}return null}function Np(e){return e=e[ji]||e[Ha],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function Hv(e){return e[op]||null}var Ax=[],uc=-1;function as(e){return{current:e}}function Zt(e){0>uc||(e.current=Ax[uc],Ax[uc]=null,uc--)}function Ut(e,t){uc++,Ax[uc]=e.current,e.current=t}var es={},fr=as(es),jr=as(!1),Js=es;function Lc(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zr(e){return e=e.childContextTypes,e!=null}function Ig(){Zt(jr),Zt(fr)}function L$(e,t,n){if(fr.current!==es)throw Error(Me(168));Ut(fr,t),Ut(jr,n)}function hF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,JB(e)||"Unknown",o));return cn({},n,r)}function Og(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,Js=fr.current,Ut(fr,e),Ut(jr,jr.current),!0}function D$(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=hF(e,t,Js),r.__reactInternalMemoizedMergedChildContext=e,Zt(jr),Zt(fr),Ut(fr,e)):Zt(jr),Ut(jr,n)}var $a=null,Vv=!1,bb=!1;function gF(e){$a===null?$a=[e]:$a.push(e)}function gH(e){Vv=!0,gF(e)}function ls(){if(!bb&&$a!==null){bb=!0;var e=0,t=Ft;try{var n=$a;for(Ft=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$a=null,Vv=!1}catch(o){throw $a!==null&&($a=$a.slice(e+1)),B_(NC,ls),o}finally{Ft=t,bb=!1}}return null}var cc=[],dc=0,Mg=null,Rg=0,Oo=[],Mo=0,eu=null,Oa=1,Ma="";function Ss(e,t){cc[dc++]=Rg,cc[dc++]=Mg,Mg=e,Rg=t}function vF(e,t,n){Oo[Mo++]=Oa,Oo[Mo++]=Ma,Oo[Mo++]=eu,eu=e;var r=Oa;e=Ma;var o=32-hi(r)-1;r&=~(1<<o),n+=1;var i=32-hi(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Oa=1<<32-hi(t)+o|n<<o|r,Ma=i+e}else Oa=1<<i|n<<o|r,Ma=e}function qC(e){e.return!==null&&(Ss(e,1),vF(e,1,0))}function KC(e){for(;e===Mg;)Mg=cc[--dc],cc[dc]=null,Rg=cc[--dc],cc[dc]=null;for(;e===eu;)eu=Oo[--Mo],Oo[Mo]=null,Ma=Oo[--Mo],Oo[Mo]=null,Oa=Oo[--Mo],Oo[Mo]=null}var lo=null,ao=null,on=!1,ci=null;function yF(e,t){var n=Fo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function N$(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lo=e,ao=Vl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lo=e,ao=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=eu!==null?{id:Oa,overflow:Ma}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lo=e,ao=null,!0):!1;default:return!1}}function Lx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dx(e){if(on){var t=ao;if(t){var n=t;if(!N$(e,t)){if(Lx(e))throw Error(Me(418));t=Vl(n.nextSibling);var r=lo;t&&N$(e,t)?yF(r,n):(e.flags=e.flags&-4097|2,on=!1,lo=e)}}else{if(Lx(e))throw Error(Me(418));e.flags=e.flags&-4097|2,on=!1,lo=e}}}function j$(e){
Line truncated
|
|
|
|
Error generating stack: `+i.message+`
|
|
|
|
Error generating stack: `+i.message+`
|
|
|
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Sb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function jx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var h6=typeof WeakMap=="function"?WeakMap:Map;function BF(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ng||(Ng=!0,Qx=r),jx(e,t)},n}function HF(e,t,n){n=_a(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){jx(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){jx(e,t),typeof r!="function"&&(Vl===null?Vl=new Set([this]):Vl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function V$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new h6;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=O6.bind(null,e,t,n),t.then(e,e))}function U$(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function W$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,Hl(n,t,1))),n.lanes|=1),e)}var g6=Qa.ReactCurrentOwner,Nr=!1;function yr(e,t,n,r){t.child=e===null?xF(t,null,n,r):Ac(t,e.child,n,r)}function G$(e,t,n,r,o){n=n.render;var i=t.ref;return xc(t,o),r=rS(e,t,n,r,i,o),n=oS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ba(e,t,o)):(rn&&n&&WC(t),t.flags|=1,yr(e,t,r,o),t.child)}function q$(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!mS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,VF(e,t,i,r,o)):(e=qh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Zf,n(a,r)&&e.ref===t.ref)return Ba(e,t,o)}return t.flags|=1,e=Wl(i,r),e.ref=t.ref,e.return=t,t.child=e}function VF(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Zf(i,r)&&e.ref===t.ref)if(Nr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Nr=!0);else return t.lanes=e.lanes,Ba(e,t,o)}return zx(e,t,n,r,o)}function UF(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Vt(cc,eo),eo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Vt(cc,eo),eo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Vt(cc,eo),eo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Vt(cc,eo),eo|=r;return yr(e,t,o,n),t.child}function WF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zx(e,t,n,r,o){var i=zr(n)?Ys:dr.current;return i=_c(t,i),xc(t,o),n=rS(e,t,n,r,i,o),r=oS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ba(e,t,o)):(rn&&r&&WC(t),t.flags|=1,yr(e,t,n,o),t.child)}function K$(e,t,n,r,o){if(zr(n)){var i=!0;Ig(t)}else i=!1;if(xc(t,o),t.stateNode===null)Uh(e,t),yF(t,n,r),Nx(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zo(u):(u=zr(n)?Ys:dr.current,u=_c(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&j$(t,a,r,u),xl=!1;var f=t.memoizedState;a.state=f,_g(t,r,a,o),s=t.memoizedState,l!==r||f!==s||jr.current||xl?(typeof c=="function"&&(Dx(t,n,c,r),s=t.memoizedState),(l=xl||N$(t,n,l,r,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,gF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ai(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=zo(s):(s=zr(n)?Ys:dr.current,s=_c(t,s));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&j$(t,a,r,s),xl=!1,f=t.memoizedState,a.state=f,_g(t,r,a,o);var p=t.memoizedS
Line truncated
|
|
|
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Eb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PH=typeof WeakMap=="function"?WeakMap:Map;function GF(e,t,n){n=Aa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jg||(jg=!0,Xx=r),Bx(e,t)},n}function qF(e,t,n){n=Aa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bx(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Bx(e,t),typeof r!="function"&&(Wl===null?Wl=new Set([this]):Wl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function q$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PH;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=jH.bind(null,e,t,n),t.then(e,e))}function K$(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Q$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Aa(-1,1),t.tag=2,Ul(n,t,1))),n.lanes|=1),e)}var kH=Xa.ReactCurrentOwner,Nr=!1;function xr(e,t,n,r){t.child=e===null?PF(t,null,n,r):Nc(t,e.child,n,r)}function Y$(e,t,n,r,o){n=n.render;var i=t.ref;return Ec(t,o),r=iS(e,t,n,r,i,o),n=aS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(on&&n&&qC(t),t.flags|=1,xr(e,t,r,o),t.child)}function X$(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,KF(e,t,i,r,o)):(e=Qh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:tp,n(a,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,e=ql(i,r),e.ref=t.ref,e.return=t,t.child=e}function KF(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(tp(i,r)&&e.ref===t.ref)if(Nr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Nr=!0);else return t.lanes=e.lanes,Ua(e,t,o)}return Hx(e,t,n,r,o)}function QF(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(mc,eo),eo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ut(mc,eo),eo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ut(mc,eo),eo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ut(mc,eo),eo|=r;return xr(e,t,o,n),t.child}function YF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hx(e,t,n,r,o){var i=zr(n)?Js:fr.current;return i=Lc(t,i),Ec(t,o),n=iS(e,t,n,r,i,o),r=aS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(on&&r&&qC(t),t.flags|=1,xr(e,t,n,o),t.child)}function Z$(e,t,n,r,o){if(zr(n)){var i=!0;Og(t)}else i=!1;if(Ec(t,o),t.stateNode===null)Gh(e,t),SF(t,n,r),zx(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zo(u):(u=zr(n)?Js:fr.current,u=Lc(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&V$(t,a,r,u),Cl=!1;var f=t.memoizedState;a.state=f,Fg(t,r,a,o),s=t.memoizedState,l!==r||f!==s||jr.current||Cl?(typeof c=="function"&&(jx(t,n,c,r),s=t.memoizedState),(l=Cl||H$(t,n,l,r,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ai(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=zo(s):(s=zr(n)?Js:fr.current,s=Lc(t,s));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&V$(t,a,r,s),Cl=!1,f=t.memoizedState,a.state=f,Fg(t,r,a,o);var p=t.memoizedS
Line truncated
|
|
|
|
* @license React
|
|
|
|
* @license React
|
|
|
|
* use-sync-external-store-shim.production.min.js
|
|
|
|
* use-sync-external-store-shim.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
@@ -45,7 +45,7 @@ Error generating stack: `+i.message+`
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var jc=v;function oV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iV=typeof Object.is=="function"?Object.is:oV,aV=jc.useState,lV=jc.useEffect,sV=jc.useLayoutEffect,uV=jc.useDebugValue;function cV(e,t){var n=t(),r=aV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return sV(function(){o.value=n,o.getSnapshot=t,$b(o)&&i({inst:o})},[e,n,t]),lV(function(){return $b(o)&&i({inst:o}),e(function(){$b(o)&&i({inst:o})})},[e]),uV(n),n}function $b(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!iV(e,n)}catch{return!0}}function dV(e,t){return t()}var fV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dV:cV;$A.useSyncExternalStore=jc.useSyncExternalStore!==void 0?jc.useSyncExternalStore:fV;kA.exports=$A;var pV=kA.exports;const IA=pV.useSyncExternalStore,vI=v.createContext(void 0),OA=v.createContext(!1);function MA(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=vI),window.ReactQueryClientContext):vI)}const na=({context:e}={})=>{const t=v.useContext(MA(e,v.useContext(OA)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},mV=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=MA(n,r);return v.createElement(OA.Provider,{value:!n&&r},v.createElement(o.Provider,{value:e},t))},RA=v.createContext(!1),hV=()=>v.useContext(RA);RA.Provider;function gV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const vV=v.createContext(gV()),yV=()=>v.useContext(vV);function TA(e,t){return typeof e=="function"?e(...t):!!e}const bV=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},xV=e=>{v.useEffect(()=>{e.clearReset()},[e])},wV=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&TA(n,[e.error,r]),CV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},SV=(e,t)=>e.isLoading&&e.isFetching&&!t,EV=(e,t,n)=>(e==null?void 0:e.suspense)&&SV(t,n),PV=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function _A(e,t){const n=na({context:e.context}),r=hV(),o=yV(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=hn.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=hn.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=hn.batchCalls(i.onSettled)),CV(i),bV(i,o),xV(o);const[a]=v.useState(()=>new t(n,i)),l=a.getOptimisticResult(i);if(IA(v.useCallback(s=>{const u=r?()=>{}:a.subscribe(hn.batchCalls(s));return a.updateResult(),u},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),EV(i,l,r))throw PV(i,a,o);if(wV({result:l,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:a.trackResult(l)}function Ho(e,t,n){const r=dc(e,t,n);return _A(r,PA)}function wn(e,t,n){const r=B6(e,t,n),o=na({context:r.context}),[i]=v.useState(()=>new rV(o,r));v.useEffect(()=>{i.setOptions(r)},[i,r]);const a=IA(v.useCallback(s=>i.subscribe(hn.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=v.useCallback((s,u)=>{i.mutate(s,u).catch(kV)},[i]);if(a.error&&TA(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function kV(){}function $V(e,t,n){const r=dc(e,t,n);return _A(r,nV)}var IV={exports:{}},Ib={exports:{}},yI;function OV(){return yI||(yI=1,function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(h){return!isNaN(parseFloat(h))&&isFinite(h)}function r(h){return h.charAt(0).toUpperCase()+h.substring(1)}function o(h){return function(){return this[h]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(a,l,s,u);function d(h){if(h)for(var y=0;y<c.length;y++)h[c[y]]!==void 0&&this["set"+r(c[y])](h[c[y]])}d.prototype={getArgs:function(){return this.args},setArgs:function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=h},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(h){if(h instanceof d)this.evalOrigin=h;else if(h instanceof Object)this.evalOrigin=new d(h);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var h=this.getFileName()||"",y=this.getLineNumber()||"",b=this.getColumnNumber()||"",g=this.getFunctionName()||"";return this.getIsEval()?h?"[eval] ("+h+":"+y+":"+b+")":"[eval]:"+y+":"+b:g?g+" ("+h+":"+y+":"+b+")":h+":"+y+":"+b}},d.fromString=function(y){var b=y.indexOf("("),g=y.lastIndexOf(")"),x=y.substring(0,b),w=y.substring(b+1,g).split(","),P=y.substring(g+1);if(P.indexOf("@")===0)vaLine truncated
|
|
|
|
*/var Hc=v;function mV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hV=typeof Object.is=="function"?Object.is:mV,gV=Hc.useState,vV=Hc.useEffect,yV=Hc.useLayoutEffect,bV=Hc.useDebugValue;function xV(e,t){var n=t(),r=gV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return yV(function(){o.value=n,o.getSnapshot=t,Ib(o)&&i({inst:o})},[e,n,t]),vV(function(){return Ib(o)&&i({inst:o}),e(function(){Ib(o)&&i({inst:o})})},[e]),bV(n),n}function Ib(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hV(e,n)}catch{return!0}}function wV(e,t){return t()}var CV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wV:xV;TA.useSyncExternalStore=Hc.useSyncExternalStore!==void 0?Hc.useSyncExternalStore:CV;RA.exports=TA;var SV=RA.exports;const _A=SV.useSyncExternalStore,wI=v.createContext(void 0),FA=v.createContext(!1);function AA(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=wI),window.ReactQueryClientContext):wI)}const oa=({context:e}={})=>{const t=v.useContext(AA(e,v.useContext(FA)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},EV=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=AA(n,r);return v.createElement(FA.Provider,{value:!n&&r},v.createElement(o.Provider,{value:e},t))},LA=v.createContext(!1),PV=()=>v.useContext(LA);LA.Provider;function kV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $V=v.createContext(kV()),IV=()=>v.useContext($V);function DA(e,t){return typeof e=="function"?e(...t):!!e}const OV=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},MV=e=>{v.useEffect(()=>{e.clearReset()},[e])},RV=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&DA(n,[e.error,r]),TV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},_V=(e,t)=>e.isLoading&&e.isFetching&&!t,FV=(e,t,n)=>(e==null?void 0:e.suspense)&&_V(t,n),AV=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function NA(e,t){const n=oa({context:e.context}),r=PV(),o=IV(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=gn.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=gn.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=gn.batchCalls(i.onSettled)),TV(i),OV(i,o),MV(o);const[a]=v.useState(()=>new t(n,i)),l=a.getOptimisticResult(i);if(_A(v.useCallback(s=>{const u=r?()=>{}:a.subscribe(gn.batchCalls(s));return a.updateResult(),u},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),FV(i,l,r))throw AV(i,a,o);if(RV({result:l,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:a.trackResult(l)}function Ho(e,t,n){const r=hc(e,t,n);return NA(r,MA)}function wn(e,t,n){const r=XH(e,t,n),o=oa({context:r.context}),[i]=v.useState(()=>new pV(o,r));v.useEffect(()=>{i.setOptions(r)},[i,r]);const a=_A(v.useCallback(s=>i.subscribe(gn.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=v.useCallback((s,u)=>{i.mutate(s,u).catch(LV)},[i]);if(a.error&&DA(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function LV(){}function DV(e,t,n){const r=hc(e,t,n);return NA(r,fV)}var NV={exports:{}},Ob={exports:{}},CI;function jV(){return CI||(CI=1,function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(h){return!isNaN(parseFloat(h))&&isFinite(h)}function r(h){return h.charAt(0).toUpperCase()+h.substring(1)}function o(h){return function(){return this[h]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(a,l,s,u);function d(h){if(h)for(var y=0;y<c.length;y++)h[c[y]]!==void 0&&this["set"+r(c[y])](h[c[y]])}d.prototype={getArgs:function(){return this.args},setArgs:function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=h},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(h){if(h instanceof d)this.evalOrigin=h;else if(h instanceof Object)this.evalOrigin=new d(h);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var h=this.getFileName()||"",y=this.getLineNumber()||"",b=this.getColumnNumber()||"",g=this.getFunctionName()||"";return this.getIsEval()?h?"[eval] ("+h+":"+y+":"+b+")":"[eval]:"+y+":"+b:g?g+" ("+h+":"+y+":"+b+")":h+":"+y+":"+b}},d.fromString=function(y){var b=y.indexOf("("),g=y.lastIndexOf(")"),x=y.substring(0,b),w=y.substring(b+1,g).split(","),P=y.substring(g+1);if(P.indexOf("@")===0)vaLine truncated
|
|
|
|
`).filter(function(c){return!!c.match(i)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var m=this.extractLocation(f?f[1]:d),p=f&&d||void 0,h=["eval","<anonymous>"].indexOf(m[0])>-1?void 0:m[0];return new r({functionName:p,fileName:h,lineNumber:m[1],columnNumber:m[2],source:c})},this)},parseFFOrSafari:function(s){var u=s.stack.split(`
|
|
|
|
`).filter(function(c){return!!c.match(i)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var m=this.extractLocation(f?f[1]:d),p=f&&d||void 0,h=["eval","<anonymous>"].indexOf(m[0])>-1?void 0:m[0];return new r({functionName:p,fileName:h,lineNumber:m[1],columnNumber:m[2],source:c})},this)},parseFFOrSafari:function(s){var u=s.stack.split(`
|
|
|
|
`).filter(function(c){return!c.match(a)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),m=f&&f[1]?f[1]:void 0,p=this.extractLocation(c.replace(d,""));return new r({functionName:m,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(s){return!s.stacktrace||s.message.indexOf(`
|
|
|
|
`).filter(function(c){return!c.match(a)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),m=f&&f[1]?f[1]:void 0,p=this.extractLocation(c.replace(d,""));return new r({functionName:m,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(s){return!s.stacktrace||s.message.indexOf(`
|
|
|
|
`)>-1&&s.message.split(`
|
|
|
|
`)>-1&&s.message.split(`
|
|
|
@@ -53,42 +53,42 @@ Error generating stack: `+i.message+`
|
|
|
|
`).length?this.parseOpera9(s):s.stack?this.parseOpera11(s):this.parseOpera10(s)},parseOpera9:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=s.message.split(`
|
|
|
|
`).length?this.parseOpera9(s):s.stack?this.parseOpera11(s):this.parseOpera10(s)},parseOpera9:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=s.message.split(`
|
|
|
|
`),d=[],f=2,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera10:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=s.stacktrace.split(`
|
|
|
|
`),d=[],f=2,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera10:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=s.stacktrace.split(`
|
|
|
|
`),d=[],f=0,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera11:function(s){var u=s.stack.split(`
|
|
|
|
`),d=[],f=0,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera11:function(s){var u=s.stack.split(`
|
|
|
|
`).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),m=d.shift()||"",p=m.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,h;m.match(/\(([^)]*)\)/)&&(h=m.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var y=h===void 0||h==="[arguments not available]"?void 0:h.split(",");return new r({functionName:p,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(IV);function bt(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var MV=Error,RV=EvalError,TV=RangeError,_V=ReferenceError,FA=SyntaxError,zp=TypeError,FV=URIError,AV=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},bI=typeof Symbol<"u"&&Symbol,LV=AV,DV=function(){return typeof bI!="function"||typeof Symbol!="function"||typeof bI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:LV()},Ob={__proto__:null,foo:{}},NV=Object,jV=function(){return{__proto__:Ob}.foo===Ob.foo&&!(Ob instanceof NV)},zV="Function.prototype.bind called on incompatible ",BV=Object.prototype.toString,HV=Math.max,VV="[object Function]",xI=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},UV=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},WV=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},GV=function(t){var n=this;if(typeof n!="function"||BV.apply(n)!==VV)throw new TypeError(zV+n);for(var r=UV(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,xI(r,arguments));return Object(c)===c?c:this}return n.apply(t,xI(r,arguments))},a=HV(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+WV(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},qV=GV,CS=Function.prototype.bind||qV,KV=Function.prototype.call,QV=Object.prototype.hasOwnProperty,YV=CS,XV=YV.call(KV,QV),mt,ZV=MV,JV=RV,eU=TV,tU=_V,zc=FA,Cc=zp,nU=FV,AA=Function,Mb=function(e){try{return AA('"use strict"; return ('+e+").constructor;")()}catch{}},Bs=Object.getOwnPropertyDescriptor;if(Bs)try{Bs({},"")}catch{Bs=null}var Rb=function(){throw new Cc},rU=Bs?function(){try{return arguments.callee,Rb}catch{try{return Bs(arguments,"callee").get}catch{return Rb}}}():Rb,Iu=DV(),oU=jV(),Hn=Object.getPrototypeOf||(oU?function(e){return e.__proto__}:null),qu={},iU=typeof Uint8Array>"u"||!Hn?mt:Hn(Uint8Array),Hs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Iu&&Hn?Hn([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":qu,"%AsyncGenerator%":qu,"%AsyncGeneratorFunction%":qu,"%AsyncIteratorPrototype%":qu,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ZV,"%eval%":eval,"%EvalError%":JV,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":AA,"%GeneratorFunction%":qu,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Iu&&Hn?Hn(Hn([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Iu||!Hn?mt:Hn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":eU,"%ReferenceError%":tU,"%Reflect%":typeof Reflect>"u"?mt:Re
Line truncated
|
|
|
|
`).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),m=d.shift()||"",p=m.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,h;m.match(/\(([^)]*)\)/)&&(h=m.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var y=h===void 0||h==="[arguments not available]"?void 0:h.split(",");return new r({functionName:p,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(NV);function xt(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var zV=Error,BV=EvalError,HV=RangeError,VV=ReferenceError,jA=SyntaxError,Bp=TypeError,UV=URIError,WV=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},SI=typeof Symbol<"u"&&Symbol,GV=WV,qV=function(){return typeof SI!="function"||typeof Symbol!="function"||typeof SI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:GV()},Mb={__proto__:null,foo:{}},KV=Object,QV=function(){return{__proto__:Mb}.foo===Mb.foo&&!(Mb instanceof KV)},YV="Function.prototype.bind called on incompatible ",XV=Object.prototype.toString,ZV=Math.max,JV="[object Function]",EI=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},eU=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},tU=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},nU=function(t){var n=this;if(typeof n!="function"||XV.apply(n)!==JV)throw new TypeError(YV+n);for(var r=eU(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,EI(r,arguments));return Object(c)===c?c:this}return n.apply(t,EI(r,arguments))},a=ZV(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+tU(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},rU=nU,ES=Function.prototype.bind||rU,oU=Function.prototype.call,iU=Object.prototype.hasOwnProperty,aU=ES,lU=aU.call(oU,iU),mt,sU=zV,uU=BV,cU=HV,dU=VV,Vc=jA,kc=Bp,fU=UV,zA=Function,Rb=function(e){try{return zA('"use strict"; return ('+e+").constructor;")()}catch{}},Us=Object.getOwnPropertyDescriptor;if(Us)try{Us({},"")}catch{Us=null}var Tb=function(){throw new kc},pU=Us?function(){try{return arguments.callee,Tb}catch{try{return Us(arguments,"callee").get}catch{return Tb}}}():Tb,Mu=qV(),mU=QV(),Vn=Object.getPrototypeOf||(mU?function(e){return e.__proto__}:null),Qu={},hU=typeof Uint8Array>"u"||!Vn?mt:Vn(Uint8Array),Ws={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Mu&&Vn?Vn([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":Qu,"%AsyncGenerator%":Qu,"%AsyncGeneratorFunction%":Qu,"%AsyncIteratorPrototype%":Qu,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":sU,"%eval%":eval,"%EvalError%":uU,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":zA,"%GeneratorFunction%":Qu,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mu&&Vn?Vn(Vn([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mu||!Vn?mt:Vn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":cU,"%ReferenceError%":dU,"%Reflect%":typeof Reflect>"u"?mt:Re
Line truncated
|
|
|
|
`)>=0)return!1;return!0}function n8(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Fi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Fi.call(Array(t+1),n)}}function cw(e,t){if(e.length===0)return"";var n=`
|
|
|
|
`)>=0)return!1;return!0}function f8(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ai.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ai.call(Array(t+1),n)}}function fw(e,t){if(e.length===0)return"";var n=`
|
|
|
|
`+t.prev+t.base;return n+Fi.call(e,","+n)+`
|
|
|
|
`+t.prev+t.base;return n+Ai.call(e,","+n)+`
|
|
|
|
`+t.prev}function Zm(e,t){var n=uw(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Cl(e,o)?t(e[o],e):""}var i=typeof Ab=="function"?Ab(e):[],a;if(Bc){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Cl(e,s)&&(n&&String(Number(s))===s&&s<e.length||Bc&&a["$"+s]instanceof Symbol||(BA.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Ab=="function")for(var u=0;u<i.length;u++)HA.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var qA=sd,ud=PU,r8=NU,o8=zp,Jm=qA("%WeakMap%",!0),eh=qA("%Map%",!0),i8=ud("WeakMap.prototype.get",!0),a8=ud("WeakMap.prototype.set",!0),l8=ud("WeakMap.prototype.has",!0),s8=ud("Map.prototype.get",!0),u8=ud("Map.prototype.set",!0),c8=ud("Map.prototype.has",!0),$S=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},d8=function(e,t){var n=$S(e,t);return n&&n.value},f8=function(e,t,n){var r=$S(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},p8=function(e,t){return!!$S(e,t)},m8=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new o8("Side channel does not contain "+r8(i))},get:function(i){if(Jm&&i&&(typeof i=="object"||typeof i=="function")){if(t)return i8(t,i)}else if(eh){if(n)return s8(n,i)}else if(r)return d8(r,i)},has:function(i){if(Jm&&i&&(typeof i=="object"||typeof i=="function")){if(t)return l8(t,i)}else if(eh){if(n)return c8(n,i)}else if(r)return p8(r,i);return!1},set:function(i,a){Jm&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Jm),a8(t,i,a)):eh?(n||(n=new eh),u8(n,i,a)):(r||(r={key:{},next:null}),f8(r,i,a))}};return o},h8=String.prototype.replace,g8=/%20/g,Db={RFC1738:"RFC1738",RFC3986:"RFC3986"},IS={default:Db.RFC3986,formatters:{RFC1738:function(e){return h8.call(e,g8,"+")},RFC3986:function(e){return String(e)}},RFC1738:Db.RFC1738,RFC3986:Db.RFC3986},v8=IS,Nb=Object.prototype.hasOwnProperty,$s=Array.isArray,$i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),y8=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if($s(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},KA=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},b8=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if($s(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Nb.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return $s(t)&&!$s(n)&&(o=KA(t,r)),$s(t)&&$s(n)?(n.forEach(function(i,a){if(Nb.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Nb.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},x8=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},w8=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},C8=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;++s){var u=a.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===v8.RFC1738&&(u===40||u===41)){l+=a.charAt(s);continue}if(u<128){l=l+$i[u];continue}if(u<2048){l=l+($i[192|u>>6]+$i[128|u&63]);continue}if(u<55296||u>=57344){l=l+($i[224|u>>12]+$i[128|u>>6&63]+$i[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|a.charCodeAt(s)&1023),l+=$i[240|u>>18]+$i[128|u>>12&63]+$i[128|u>>6&63]+$i[128|u&63]}return l},S8=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:a,prop:u}),r.push(c))}return y8(n),t},E8=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},P8=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},k8=function(t,n){return[].concat(t,n)},$8=function(t,n){if($s(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},QA={arrayToObject:KA,assign:x8,combine:k8,compact:S8,decode:w8,encode:C8,isBuffer:P8,isRegExp:E8,maybeMap:$8,merge:b8},YA=m8,Yh=QA,Rf=IS,I8=Object.prototype.hasOwnProperty,XA={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},_i=Array.isArray,O8=Array.prototype.push,ZA=function(e,t){O8.apply(e,_i(t)?t:[t])},M8=Date.prototype.toISOString,BI=Rf.default,Fn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",
Line truncated
|
|
|
|
`+t.prev}function eh(e,t){var n=dw(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=El(e,o)?t(e[o],e):""}var i=typeof Lb=="function"?Lb(e):[],a;if(Uc){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)El(e,s)&&(n&&String(Number(s))===s&&s<e.length||Uc&&a["$"+s]instanceof Symbol||(GA.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Lb=="function")for(var u=0;u<i.length;u++)qA.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var ZA=dd,fd=AU,p8=KU,m8=Bp,th=ZA("%WeakMap%",!0),nh=ZA("%Map%",!0),h8=fd("WeakMap.prototype.get",!0),g8=fd("WeakMap.prototype.set",!0),v8=fd("WeakMap.prototype.has",!0),y8=fd("Map.prototype.get",!0),b8=fd("Map.prototype.set",!0),x8=fd("Map.prototype.has",!0),OS=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},w8=function(e,t){var n=OS(e,t);return n&&n.value},C8=function(e,t,n){var r=OS(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},S8=function(e,t){return!!OS(e,t)},E8=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new m8("Side channel does not contain "+p8(i))},get:function(i){if(th&&i&&(typeof i=="object"||typeof i=="function")){if(t)return h8(t,i)}else if(nh){if(n)return y8(n,i)}else if(r)return w8(r,i)},has:function(i){if(th&&i&&(typeof i=="object"||typeof i=="function")){if(t)return v8(t,i)}else if(nh){if(n)return x8(n,i)}else if(r)return S8(r,i);return!1},set:function(i,a){th&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new th),g8(t,i,a)):nh?(n||(n=new nh),b8(n,i,a)):(r||(r={key:{},next:null}),C8(r,i,a))}};return o},P8=String.prototype.replace,k8=/%20/g,Nb={RFC1738:"RFC1738",RFC3986:"RFC3986"},MS={default:Nb.RFC3986,formatters:{RFC1738:function(e){return P8.call(e,k8,"+")},RFC3986:function(e){return String(e)}},RFC1738:Nb.RFC1738,RFC3986:Nb.RFC3986},$8=MS,jb=Object.prototype.hasOwnProperty,Ms=Array.isArray,Ii=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),I8=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ms(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},JA=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},O8=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ms(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!jb.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Ms(t)&&!Ms(n)&&(o=JA(t,r)),Ms(t)&&Ms(n)?(n.forEach(function(i,a){if(jb.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return jb.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},M8=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},R8=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},T8=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;++s){var u=a.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===$8.RFC1738&&(u===40||u===41)){l+=a.charAt(s);continue}if(u<128){l=l+Ii[u];continue}if(u<2048){l=l+(Ii[192|u>>6]+Ii[128|u&63]);continue}if(u<55296||u>=57344){l=l+(Ii[224|u>>12]+Ii[128|u>>6&63]+Ii[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|a.charCodeAt(s)&1023),l+=Ii[240|u>>18]+Ii[128|u>>12&63]+Ii[128|u>>6&63]+Ii[128|u&63]}return l},_8=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:a,prop:u}),r.push(c))}return I8(n),t},F8=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},A8=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},L8=function(t,n){return[].concat(t,n)},D8=function(t,n){if(Ms(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},eL={arrayToObject:JA,assign:M8,combine:L8,compact:_8,decode:R8,encode:T8,isBuffer:A8,isRegExp:F8,maybeMap:D8,merge:O8},tL=E8,Zh=eL,_f=MS,N8=Object.prototype.hasOwnProperty,nL={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Fi=Array.isArray,j8=Array.prototype.push,rL=function(e,t){j8.apply(e,Fi(t)?t:[t])},z8=Date.prototype.toISOString,WI=_f.default,An={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",
Line truncated
|
|
|
|
Papa Parse
|
|
|
|
Papa Parse
|
|
|
|
v5.4.1
|
|
|
|
v5.4.1
|
|
|
|
https://github.com/mholt/PapaParse
|
|
|
|
https://github.com/mholt/PapaParse
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
*/(function(e,t){(function(n,r){e.exports=r()})(we,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},l=0,s={parse:function(S,M){var I=(M=M||{}).dynamicTyping||!1;if(E(I)&&(M.dynamicTypingFunction=I,I={}),M.dynamicTyping=I,M.transform=!!E(M.transform)&&M.transform,M.worker&&s.WORKERS_SUPPORTED){var R=function(){if(!s.WORKERS_SUPPORTED)return!1;var D=(F=r.URL||r.webkitURL||null,N=n.toString(),s.BLOB_URL||(s.BLOB_URL=F.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",N,")();"],{type:"text/javascript"})))),T=new r.Worker(D),F,N;return T.onmessage=g,T.id=l++,a[T.id]=T}();return R.userStep=M.step,R.userChunk=M.chunk,R.userComplete=M.complete,R.userError=M.error,M.step=E(M.step),M.chunk=E(M.chunk),M.complete=E(M.complete),M.error=E(M.error),delete M.worker,void R.postMessage({input:S,config:M,workerId:R.id})}var _=null;return s.NODE_STREAM_INPUT,typeof S=="string"?(S=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(S),_=M.download?new d(M):new m(M)):S.readable===!0&&E(S.read)&&E(S.on)?_=new p(M):(r.File&&S instanceof File||S instanceof Object)&&(_=new f(M)),_.stream(S)},unparse:function(S,M){var I=!1,R=!0,_=",",D=`\r
|
|
|
|
*/(function(e,t){(function(n,r){e.exports=r()})(we,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},l=0,s={parse:function(S,M){var O=(M=M||{}).dynamicTyping||!1;if(E(O)&&(M.dynamicTypingFunction=O,O={}),M.dynamicTyping=O,M.transform=!!E(M.transform)&&M.transform,M.worker&&s.WORKERS_SUPPORTED){var R=function(){if(!s.WORKERS_SUPPORTED)return!1;var D=(F=r.URL||r.webkitURL||null,j=n.toString(),s.BLOB_URL||(s.BLOB_URL=F.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",j,")();"],{type:"text/javascript"})))),T=new r.Worker(D),F,j;return T.onmessage=g,T.id=l++,a[T.id]=T}();return R.userStep=M.step,R.userChunk=M.chunk,R.userComplete=M.complete,R.userError=M.error,M.step=E(M.step),M.chunk=E(M.chunk),M.complete=E(M.complete),M.error=E(M.error),delete M.worker,void R.postMessage({input:S,config:M,workerId:R.id})}var _=null;return s.NODE_STREAM_INPUT,typeof S=="string"?(S=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(S),_=M.download?new d(M):new m(M)):S.readable===!0&&E(S.read)&&E(S.on)?_=new p(M):(r.File&&S instanceof File||S instanceof Object)&&(_=new f(M)),_.stream(S)},unparse:function(S,M){var O=!1,R=!0,_=",",D=`\r
|
|
|
|
`,T='"',F=T+T,N=!1,$=null,L=!1;(function(){if(typeof M=="object"){if(typeof M.delimiter!="string"||s.BAD_DELIMITERS.filter(function(H){return M.delimiter.indexOf(H)!==-1}).length||(_=M.delimiter),(typeof M.quotes=="boolean"||typeof M.quotes=="function"||Array.isArray(M.quotes))&&(I=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(N=M.skipEmptyLines),typeof M.newline=="string"&&(D=M.newline),typeof M.quoteChar=="string"&&(T=M.quoteChar),typeof M.header=="boolean"&&(R=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");$=M.columns}M.escapeChar!==void 0&&(F=M.escapeChar+T),(typeof M.escapeFormulae=="boolean"||M.escapeFormulae instanceof RegExp)&&(L=M.escapeFormulae instanceof RegExp?M.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var z=new RegExp(y(T),"g");if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return B(null,S,N);if(typeof S[0]=="object")return B($||Object.keys(S[0]),S,N)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||$),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),B(S.fields||[],S.data||[],N);throw new Error("Unable to serialize unrecognized input");function B(H,q,U){var G="";typeof H=="string"&&(H=JSON.parse(H)),typeof q=="string"&&(q=JSON.parse(q));var Y=Array.isArray(H)&&0<H.length,re=!Array.isArray(q[0]);if(Y&&R){for(var le=0;le<H.length;le++)0<le&&(G+=_),G+=A(H[le],le);0<q.length&&(G+=D)}for(var J=0;J<q.length;J++){var oe=Y?H.length:q[J].length,ce=!1,ge=Y?Object.keys(q[J]).length===0:q[J].length===0;if(U&&!Y&&(ce=U==="greedy"?q[J].join("").trim()==="":q[J].length===1&&q[J][0].length===0),U==="greedy"&&Y){for(var me=[],ke=0;ke<oe;ke++){var be=re?H[ke]:ke;me.push(q[J][be])}ce=me.join("").trim()===""}if(!ce){for(var ie=0;ie<oe;ie++){0<ie&&!ge&&(G+=_);var ye=Y&&re?H[ie]:ie;G+=A(q[J][ye],ie)}J<q.length-1&&(!U||0<oe&&!ge)&&(G+=D)}}return G}function A(H,q){if(H==null)return"";if(H.constructor===Date)return JSON.stringify(H).slice(1,25);var U=!1;L&&typeof H=="string"&&L.test(H)&&(H="'"+H,U=!0);var G=H.toString().replace(z,F);return(U=U||I===!0||typeof I=="function"&&I(H,q)||Array.isArray(I)&&I[q]||function(Y,re){for(var le=0;le<re.length;le++)if(-1<Y.indexOf(re[le]))return!0;return!1}(G,s.BAD_DELIMITERS)||-1<G.indexOf(_)||G.charAt(0)===" "||G.charAt(G.length-1)===" ")?T+G+T:G}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
|
|
|
|
`,T='"',F=T+T,j=!1,$=null,L=!1;(function(){if(typeof M=="object"){if(typeof M.delimiter!="string"||s.BAD_DELIMITERS.filter(function(H){return M.delimiter.indexOf(H)!==-1}).length||(_=M.delimiter),(typeof M.quotes=="boolean"||typeof M.quotes=="function"||Array.isArray(M.quotes))&&(O=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(j=M.skipEmptyLines),typeof M.newline=="string"&&(D=M.newline),typeof M.quoteChar=="string"&&(T=M.quoteChar),typeof M.header=="boolean"&&(R=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");$=M.columns}M.escapeChar!==void 0&&(F=M.escapeChar+T),(typeof M.escapeFormulae=="boolean"||M.escapeFormulae instanceof RegExp)&&(L=M.escapeFormulae instanceof RegExp?M.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var z=new RegExp(y(T),"g");if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return B(null,S,j);if(typeof S[0]=="object")return B($||Object.keys(S[0]),S,j)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||$),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),B(S.fields||[],S.data||[],j);throw new Error("Unable to serialize unrecognized input");function B(H,q,U){var G="";typeof H=="string"&&(H=JSON.parse(H)),typeof q=="string"&&(q=JSON.parse(q));var Y=Array.isArray(H)&&0<H.length,re=!Array.isArray(q[0]);if(Y&&R){for(var le=0;le<H.length;le++)0<le&&(G+=_),G+=A(H[le],le);0<q.length&&(G+=D)}for(var J=0;J<q.length;J++){var oe=Y?H.length:q[J].length,ce=!1,ve=Y?Object.keys(q[J]).length===0:q[J].length===0;if(U&&!Y&&(ce=U==="greedy"?q[J].join("").trim()==="":q[J].length===1&&q[J][0].length===0),U==="greedy"&&Y){for(var me=[],ke=0;ke<oe;ke++){var be=re?H[ke]:ke;me.push(q[J][be])}ce=me.join("").trim()===""}if(!ce){for(var ie=0;ie<oe;ie++){0<ie&&!ve&&(G+=_);var ye=Y&&re?H[ie]:ie;G+=A(q[J][ye],ie)}J<q.length-1&&(!U||0<oe&&!ve)&&(G+=D)}}return G}function A(H,q){if(H==null)return"";if(H.constructor===Date)return JSON.stringify(H).slice(1,25);var U=!1;L&&typeof H=="string"&&L.test(H)&&(H="'"+H,U=!0);var G=H.toString().replace(z,F);return(U=U||O===!0||typeof O=="function"&&O(H,q)||Array.isArray(O)&&O[q]||function(Y,re){for(var le=0;le<re.length;le++)if(-1<Y.indexOf(re[le]))return!0;return!1}(G,s.BAD_DELIMITERS)||-1<G.indexOf(_)||G.charAt(0)===" "||G.charAt(G.length-1)===" ")?T+G+T:G}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
|
|
|
|
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!o&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=b,s.ParserHandle=h,s.NetworkStreamer=d,s.FileStreamer=f,s.StringStreamer=m,s.ReadableStreamStreamer=p,r.jQuery){var u=r.jQuery;u.fn.parse=function(S){var M=S.config||{},I=[];return this.each(function(D){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var T=0;T<this.files.length;T++)I.push({file:this.files[T],inputElem:this,instanceConfig:u.extend({},M)})}),R(),this;function R(){if(I.length!==0){var D,T,F,N,$=I[0];if(E(S.before)){var L=S.before($.file,$.inputElem);if(typeof L=="object"){if(L.action==="abort")return D="AbortError",T=$.file,F=$.inputElem,N=L.reason,void(E(S.error)&&S.error({name:D},T,F,N));if(L.action==="skip")return void _();typeof L.config=="object"&&($.instanceConfig=u.extend($.instanceConfig,L.config))}else if(L==="skip")return void _()}var z=$.instanceConfig.complete;$.instanceConfig.complete=function(B){E(z)&&z(B,$.file,$.inputElem),_()},s.parse($.file,$.instanceConfig)}else E(S.complete)&&S.complete()}function _(){I.splice(0,1),R()}}}function c(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(M){var I=P(M);I.chunkSize=parseInt(I.chunkSize),M.step||M.chunk||(I.chunkSize=null),this._handle=new h(I),(this._handle.streamer=this)._config=I}).call(this,S),this.parseChunk=function(M,I){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var R=this._config.beforeFirstChunk(M);R!==void 0&&(M=R)}this.isFirstChunk=!1,this._halted=!1;var _=this._partialLine+M;this._partialLine="";var D=this._handle.parse(_,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var T=D.meta.cursor;this._finished||(this._partialLine=_.substring(T-this._baseIndex),this._baseIndex=T),D&&D.data&&(this._rowCount+=D.data.length);var F=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:D,workerId:s.WORKER_ID,finished:F});else if(E(this._config.chunk)&&!I){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!F||!E(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),F||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(M){E(this._config.error)?this._config.error(M):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:M,finished:!1})}}function d(S){var M;(S=S||{}).chunkSize||(S.chunkSize=s.RemoteChunkSize),c.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),o||(M.onload=C(this._chunkLoaded,this),M.onerror=C(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var R in I)M.setRequestHeader(R,I[R])}if(this._config.chunkSize){var _=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+_)}try{M.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(I){var R=I.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function(I){var R=M.statusText||I;this._sendError(new Error(R))}}function f(S){var M,I;(S=S||{}).chunkSize||(S.chunkSize=s.LocalChunkSize),c.call(this,S);var R=typeof FileReader<"u";this.stream=function(_){this._input=_,I=_.slice||_.webkitSlice||_.mozSlice,R?((M=new FileReader).onload=C(this._chunkLoaded,this),M.onerror=C(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var _=this._input;if(this._config.chunkSize){v
Line truncated
|
|
|
|
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!o&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=b,s.ParserHandle=h,s.NetworkStreamer=d,s.FileStreamer=f,s.StringStreamer=m,s.ReadableStreamStreamer=p,r.jQuery){var u=r.jQuery;u.fn.parse=function(S){var M=S.config||{},O=[];return this.each(function(D){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var T=0;T<this.files.length;T++)O.push({file:this.files[T],inputElem:this,instanceConfig:u.extend({},M)})}),R(),this;function R(){if(O.length!==0){var D,T,F,j,$=O[0];if(E(S.before)){var L=S.before($.file,$.inputElem);if(typeof L=="object"){if(L.action==="abort")return D="AbortError",T=$.file,F=$.inputElem,j=L.reason,void(E(S.error)&&S.error({name:D},T,F,j));if(L.action==="skip")return void _();typeof L.config=="object"&&($.instanceConfig=u.extend($.instanceConfig,L.config))}else if(L==="skip")return void _()}var z=$.instanceConfig.complete;$.instanceConfig.complete=function(B){E(z)&&z(B,$.file,$.inputElem),_()},s.parse($.file,$.instanceConfig)}else E(S.complete)&&S.complete()}function _(){O.splice(0,1),R()}}}function c(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(M){var O=P(M);O.chunkSize=parseInt(O.chunkSize),M.step||M.chunk||(O.chunkSize=null),this._handle=new h(O),(this._handle.streamer=this)._config=O}).call(this,S),this.parseChunk=function(M,O){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var R=this._config.beforeFirstChunk(M);R!==void 0&&(M=R)}this.isFirstChunk=!1,this._halted=!1;var _=this._partialLine+M;this._partialLine="";var D=this._handle.parse(_,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var T=D.meta.cursor;this._finished||(this._partialLine=_.substring(T-this._baseIndex),this._baseIndex=T),D&&D.data&&(this._rowCount+=D.data.length);var F=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:D,workerId:s.WORKER_ID,finished:F});else if(E(this._config.chunk)&&!O){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!F||!E(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),F||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(M){E(this._config.error)?this._config.error(M):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:M,finished:!1})}}function d(S){var M;(S=S||{}).chunkSize||(S.chunkSize=s.RemoteChunkSize),c.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(O){this._input=O,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),o||(M.onload=C(this._chunkLoaded,this),M.onerror=C(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var O=this._config.downloadRequestHeaders;for(var R in O)M.setRequestHeader(R,O[R])}if(this._config.chunkSize){var _=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+_)}try{M.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(O){var R=O.getResponseHeader("Content-Range");return R===null?-1:parseInt(R.substring(R.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function(O){var R=M.statusText||O;this._sendError(new Error(R))}}function f(S){var M,O;(S=S||{}).chunkSize||(S.chunkSize=s.LocalChunkSize),c.call(this,S);var R=typeof FileReader<"u";this.stream=function(_){this._input=_,O=_.slice||_.webkitSlice||_.mozSlice,R?((M=new FileReader).onload=C(this._chunkLoaded,this),M.onerror=C(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var _=this._input;if(this._config.chunkSize){v
Line truncated
|
|
|
|
`),Z=1<Q.length&&Q[0].length<V[0].length;if(V.length===1||Z)return`
|
|
|
|
`),Z=1<Q.length&&Q[0].length<V[0].length;if(V.length===1||Z)return`
|
|
|
|
`;for(var ae=0,te=0;te<V.length;te++)V[te][0]===`
|
|
|
|
`;for(var ae=0,te=0;te<V.length;te++)V[te][0]===`
|
|
|
|
`&&ae++;return ae>=V.length/2?`\r
|
|
|
|
`&&ae++;return ae>=V.length/2?`\r
|
|
|
|
`:"\r"}(J,ge)),R=!1,S.delimiter)E(S.delimiter)&&(S.delimiter=S.delimiter(J),H.meta.delimiter=S.delimiter);else{var me=function(be,ie,ye,V,Q){var Z,ae,te,K;Q=Q||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var ee=0;ee<Q.length;ee++){var se=Q[ee],Ce=0,_e=0,$e=0;te=void 0;for(var X=new b({comments:V,delimiter:se,newline:ie,preview:10}).parse(be),Ee=0;Ee<X.data.length;Ee++)if(ye&&U(X.data[Ee]))$e++;else{var De=X.data[Ee].length;_e+=De,te!==void 0?0<De&&(Ce+=Math.abs(De-te),te=De):te=De}0<X.data.length&&(_e/=X.data.length-$e),(ae===void 0||Ce<=ae)&&(K===void 0||K<_e)&&1.99<_e&&(ae=Ce,Z=se,K=_e)}return{successful:!!(S.delimiter=Z),bestDelimiter:Z}}(J,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess);me.successful?S.delimiter=me.bestDelimiter:(R=!0,S.delimiter=s.DefaultDelimiter),H.meta.delimiter=S.delimiter}var ke=P(S);return S.preview&&S.header&&ke.preview++,M=J,I=new b(ke),H=I.parse(M,oe,ce),G(),z?{meta:{paused:!0}}:H||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,I.abort(),M=E(S.chunk)?"":M.substring(I.getCharIndex())},this.resume=function(){N.streamer._halted?(z=!1,N.streamer.parseChunk(M,!0)):setTimeout(N.resume,3)},this.aborted=function(){return B},this.abort=function(){B=!0,I.abort(),H.meta.aborted=!0,E(S.complete)&&S.complete(H),M=""}}function y(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(S){var M,I=(S=S||{}).delimiter,R=S.newline,_=S.comments,D=S.step,T=S.preview,F=S.fastMode,N=M=S.quoteChar===void 0||S.quoteChar===null?'"':S.quoteChar;if(S.escapeChar!==void 0&&(N=S.escapeChar),(typeof I!="string"||-1<s.BAD_DELIMITERS.indexOf(I))&&(I=","),_===I)throw new Error("Comment character same as delimiter");_===!0?_="#":(typeof _!="string"||-1<s.BAD_DELIMITERS.indexOf(_))&&(_=!1),R!==`
|
|
|
|
`:"\r"}(J,ve)),R=!1,S.delimiter)E(S.delimiter)&&(S.delimiter=S.delimiter(J),H.meta.delimiter=S.delimiter);else{var me=function(be,ie,ye,V,Q){var Z,ae,te,K;Q=Q||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var ee=0;ee<Q.length;ee++){var se=Q[ee],Ce=0,_e=0,$e=0;te=void 0;for(var X=new b({comments:V,delimiter:se,newline:ie,preview:10}).parse(be),Ee=0;Ee<X.data.length;Ee++)if(ye&&U(X.data[Ee]))$e++;else{var De=X.data[Ee].length;_e+=De,te!==void 0?0<De&&(Ce+=Math.abs(De-te),te=De):te=De}0<X.data.length&&(_e/=X.data.length-$e),(ae===void 0||Ce<=ae)&&(K===void 0||K<_e)&&1.99<_e&&(ae=Ce,Z=se,K=_e)}return{successful:!!(S.delimiter=Z),bestDelimiter:Z}}(J,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess);me.successful?S.delimiter=me.bestDelimiter:(R=!0,S.delimiter=s.DefaultDelimiter),H.meta.delimiter=S.delimiter}var ke=P(S);return S.preview&&S.header&&ke.preview++,M=J,O=new b(ke),H=O.parse(M,oe,ce),G(),z?{meta:{paused:!0}}:H||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,O.abort(),M=E(S.chunk)?"":M.substring(O.getCharIndex())},this.resume=function(){j.streamer._halted?(z=!1,j.streamer.parseChunk(M,!0)):setTimeout(j.resume,3)},this.aborted=function(){return B},this.abort=function(){B=!0,O.abort(),H.meta.aborted=!0,E(S.complete)&&S.complete(H),M=""}}function y(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(S){var M,O=(S=S||{}).delimiter,R=S.newline,_=S.comments,D=S.step,T=S.preview,F=S.fastMode,j=M=S.quoteChar===void 0||S.quoteChar===null?'"':S.quoteChar;if(S.escapeChar!==void 0&&(j=S.escapeChar),(typeof O!="string"||-1<s.BAD_DELIMITERS.indexOf(O))&&(O=","),_===O)throw new Error("Comment character same as delimiter");_===!0?_="#":(typeof _!="string"||-1<s.BAD_DELIMITERS.indexOf(_))&&(_=!1),R!==`
|
|
|
|
`&&R!=="\r"&&R!==`\r
|
|
|
|
`&&R!=="\r"&&R!==`\r
|
|
|
|
`&&(R=`
|
|
|
|
`&&(R=`
|
|
|
|
`);var $=0,L=!1;this.parse=function(z,B,A){if(typeof z!="string")throw new Error("Input must be a string");var H=z.length,q=I.length,U=R.length,G=_.length,Y=E(D),re=[],le=[],J=[],oe=$=0;if(!z)return Te();if(S.header&&!B){var ce=z.split(R)[0].split(I),ge=[],me={},ke=!1;for(var be in ce){var ie=ce[be];E(S.transformHeader)&&(ie=S.transformHeader(ie,be));var ye=ie,V=me[ie]||0;for(0<V&&(ke=!0,ye=ie+"_"+V),me[ie]=V+1;ge.includes(ye);)ye=ye+"_"+V;ge.push(ye)}if(ke){var Q=z.split(R);Q[0]=ge.join(I),z=Q.join(R)}}if(F||F!==!1&&z.indexOf(M)===-1){for(var Z=z.split(R),ae=0;ae<Z.length;ae++){if(J=Z[ae],$+=J.length,ae!==Z.length-1)$+=R.length;else if(A)return Te();if(!_||J.substring(0,G)!==_){if(Y){if(re=[],$e(J.split(I)),Pe(),L)return Te()}else $e(J.split(I));if(T&&T<=ae)return re=re.slice(0,T),Te(!0)}}return Te()}for(var te=z.indexOf(I,$),K=z.indexOf(R,$),ee=new RegExp(y(N)+y(M),"g"),se=z.indexOf(M,$);;)if(z[$]!==M)if(_&&J.length===0&&z.substring($,$+G)===_){if(K===-1)return Te();$=K+U,K=z.indexOf(R,$),te=z.indexOf(I,$)}else if(te!==-1&&(te<K||K===-1))J.push(z.substring($,te)),$=te+q,te=z.indexOf(I,$);else{if(K===-1)break;if(J.push(z.substring($,K)),De(K+U),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0)}else for(se=$,$++;;){if((se=z.indexOf(M,se+1))===-1)return A||le.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:$}),Ee();if(se===H-1)return Ee(z.substring($,se).replace(ee,M));if(M!==N||z[se+1]!==N){if(M===N||se===0||z[se-1]!==N){te!==-1&&te<se+1&&(te=z.indexOf(I,se+1)),K!==-1&&K<se+1&&(K=z.indexOf(R,se+1));var Ce=X(K===-1?te:Math.min(te,K));if(z.substr(se+1+Ce,q)===I){J.push(z.substring($,se).replace(ee,M)),z[$=se+1+Ce+q]!==M&&(se=z.indexOf(M,$)),te=z.indexOf(I,$),K=z.indexOf(R,$);break}var _e=X(K);if(z.substring(se+1+_e,se+1+_e+U)===R){if(J.push(z.substring($,se).replace(ee,M)),De(se+1+_e+U),te=z.indexOf(I,$),se=z.indexOf(M,$),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0);break}le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:$}),se++}}else se++}return Ee();function $e(Re){re.push(Re),oe=$}function X(Re){var We=0;if(Re!==-1){var it=z.substring(se+1,Re);it&&it.trim()===""&&(We=it.length)}return We}function Ee(Re){return A||(Re===void 0&&(Re=z.substring($)),J.push(Re),$=H,$e(J),Y&&Pe()),Te()}function De(Re){$=Re,$e(J),J=[],K=z.indexOf(R,$)}function Te(Re){return{data:re,errors:le,meta:{delimiter:I,linebreak:R,aborted:L,truncated:!!Re,cursor:oe+(B||0)}}}function Pe(){D(Te()),re=[],le=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return $}}function g(S){var M=S.data,I=a[M.workerId],R=!1;if(M.error)I.userError(M.error,M.file);else if(M.results&&M.results.data){var _={abort:function(){R=!0,x(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:w,resume:w};if(E(I.userStep)){for(var D=0;D<M.results.data.length&&(I.userStep({data:M.results.data[D],errors:M.results.errors,meta:M.results.meta},_),!R);D++);delete M.results}else E(I.userChunk)&&(I.userChunk(M.results,_,M.file),delete M.results)}M.finished&&!R&&x(M.workerId,M.results)}function x(S,M){var I=a[S];E(I.userComplete)&&I.userComplete(M),I.terminate(),delete a[S]}function w(){throw new Error("Not implemented.")}function P(S){if(typeof S!="object"||S===null)return S;var M=Array.isArray(S)?[]:{};for(var I in S)M[I]=P(S[I]);return M}function C(S,M){return function(){S.apply(M,arguments)}}function E(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var M=S.data;if(s.WORKER_ID===void 0&&M&&(s.WORKER_ID=M.workerId),typeof M.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(M.input,M.config),finished:!0});else if(r.File&&M.input instanceof File||M.input instanceof Object){var I=s.parse(M.input,M.config);I&&r.postMessage({workerId:s.WORKER_ID,results:I,finished:!0})}}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(m.prototype=Object.create(m.prototype)).constructor=m,(p.prototype=Object.create(c.prototype)).constructor=p,s})})(bL);var xL=bL.exports,SG=function(){return ra.Date.now()};const Vb=SG;var EG=/\s/;function PG(e){for(var t=e.length;t--&&EG.test(e.charAt(t)););return t}var kG=/^\s+/;function $G(e){return e&&e.slice(0,PG(e)+1).replace(kG,"")}var IG="[object Symbol]";function ty(e){return typeof e=="symbol"||nu(e)&&cd(e)==IG}var dO=0/0,OG=/^[-+]0x[0-9a-f]+$/i,MG=/^0b[01]+$/i,RG=/^0o[0-7]+$/i,TG=parseInt;function gw(e){if(typeof e=="number")return e;if(ty(e))return dO;if(ru(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ru(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$G(e);var n=MG.test(e);return n||RG.test(e)?TG(e.slice(2),n?2:8):OG.test(e)?dO:+e}var _G="Expected a function",FG=Math.max,AG=Math.min;function wL(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(_G);t=gw(t)||0,ru(n)&&(c=!!n.leading,d="maxWait"in n,i=d?FG(gw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing
Line truncated
|
|
|
|
`);var $=0,L=!1;this.parse=function(z,B,A){if(typeof z!="string")throw new Error("Input must be a string");var H=z.length,q=O.length,U=R.length,G=_.length,Y=E(D),re=[],le=[],J=[],oe=$=0;if(!z)return Te();if(S.header&&!B){var ce=z.split(R)[0].split(O),ve=[],me={},ke=!1;for(var be in ce){var ie=ce[be];E(S.transformHeader)&&(ie=S.transformHeader(ie,be));var ye=ie,V=me[ie]||0;for(0<V&&(ke=!0,ye=ie+"_"+V),me[ie]=V+1;ve.includes(ye);)ye=ye+"_"+V;ve.push(ye)}if(ke){var Q=z.split(R);Q[0]=ve.join(O),z=Q.join(R)}}if(F||F!==!1&&z.indexOf(M)===-1){for(var Z=z.split(R),ae=0;ae<Z.length;ae++){if(J=Z[ae],$+=J.length,ae!==Z.length-1)$+=R.length;else if(A)return Te();if(!_||J.substring(0,G)!==_){if(Y){if(re=[],$e(J.split(O)),Pe(),L)return Te()}else $e(J.split(O));if(T&&T<=ae)return re=re.slice(0,T),Te(!0)}}return Te()}for(var te=z.indexOf(O,$),K=z.indexOf(R,$),ee=new RegExp(y(j)+y(M),"g"),se=z.indexOf(M,$);;)if(z[$]!==M)if(_&&J.length===0&&z.substring($,$+G)===_){if(K===-1)return Te();$=K+U,K=z.indexOf(R,$),te=z.indexOf(O,$)}else if(te!==-1&&(te<K||K===-1))J.push(z.substring($,te)),$=te+q,te=z.indexOf(O,$);else{if(K===-1)break;if(J.push(z.substring($,K)),De(K+U),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0)}else for(se=$,$++;;){if((se=z.indexOf(M,se+1))===-1)return A||le.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:$}),Ee();if(se===H-1)return Ee(z.substring($,se).replace(ee,M));if(M!==j||z[se+1]!==j){if(M===j||se===0||z[se-1]!==j){te!==-1&&te<se+1&&(te=z.indexOf(O,se+1)),K!==-1&&K<se+1&&(K=z.indexOf(R,se+1));var Ce=X(K===-1?te:Math.min(te,K));if(z.substr(se+1+Ce,q)===O){J.push(z.substring($,se).replace(ee,M)),z[$=se+1+Ce+q]!==M&&(se=z.indexOf(M,$)),te=z.indexOf(O,$),K=z.indexOf(R,$);break}var _e=X(K);if(z.substring(se+1+_e,se+1+_e+U)===R){if(J.push(z.substring($,se).replace(ee,M)),De(se+1+_e+U),te=z.indexOf(O,$),se=z.indexOf(M,$),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0);break}le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:$}),se++}}else se++}return Ee();function $e(Re){re.push(Re),oe=$}function X(Re){var Ge=0;if(Re!==-1){var at=z.substring(se+1,Re);at&&at.trim()===""&&(Ge=at.length)}return Ge}function Ee(Re){return A||(Re===void 0&&(Re=z.substring($)),J.push(Re),$=H,$e(J),Y&&Pe()),Te()}function De(Re){$=Re,$e(J),J=[],K=z.indexOf(R,$)}function Te(Re){return{data:re,errors:le,meta:{delimiter:O,linebreak:R,aborted:L,truncated:!!Re,cursor:oe+(B||0)}}}function Pe(){D(Te()),re=[],le=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return $}}function g(S){var M=S.data,O=a[M.workerId],R=!1;if(M.error)O.userError(M.error,M.file);else if(M.results&&M.results.data){var _={abort:function(){R=!0,x(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:w,resume:w};if(E(O.userStep)){for(var D=0;D<M.results.data.length&&(O.userStep({data:M.results.data[D],errors:M.results.errors,meta:M.results.meta},_),!R);D++);delete M.results}else E(O.userChunk)&&(O.userChunk(M.results,_,M.file),delete M.results)}M.finished&&!R&&x(M.workerId,M.results)}function x(S,M){var O=a[S];E(O.userComplete)&&O.userComplete(M),O.terminate(),delete a[S]}function w(){throw new Error("Not implemented.")}function P(S){if(typeof S!="object"||S===null)return S;var M=Array.isArray(S)?[]:{};for(var O in S)M[O]=P(S[O]);return M}function C(S,M){return function(){S.apply(M,arguments)}}function E(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var M=S.data;if(s.WORKER_ID===void 0&&M&&(s.WORKER_ID=M.workerId),typeof M.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(M.input,M.config),finished:!0});else if(r.File&&M.input instanceof File||M.input instanceof Object){var O=s.parse(M.input,M.config);O&&r.postMessage({workerId:s.WORKER_ID,results:O,finished:!0})}}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(m.prototype=Object.create(m.prototype)).constructor=m,(p.prototype=Object.create(c.prototype)).constructor=p,s})})(EL);var PL=EL.exports,_G=function(){return ia.Date.now()};const Ub=_G;var FG=/\s/;function AG(e){for(var t=e.length;t--&&FG.test(e.charAt(t)););return t}var LG=/^\s+/;function DG(e){return e&&e.slice(0,AG(e)+1).replace(LG,"")}var NG="[object Symbol]";function ry(e){return typeof e=="symbol"||iu(e)&&pd(e)==NG}var hO=0/0,jG=/^[-+]0x[0-9a-f]+$/i,zG=/^0b[01]+$/i,BG=/^0o[0-7]+$/i,HG=parseInt;function yw(e){if(typeof e=="number")return e;if(ry(e))return hO;if(au(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=au(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DG(e);var n=zG.test(e);return n||BG.test(e)?HG(e.slice(2),n?2:8):jG.test(e)?hO:+e}var VG="Expected a function",UG=Math.max,WG=Math.min;function kL(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(VG);t=yw(t)||0,au(n)&&(c=!!n.leading,d="maxWait"in n,i=d?UG(yw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing
Line truncated
|
|
|
|
For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),NS(e,t,n,QL).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),bO=W((e,t)=>NS(e,t,YL).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),xO=W((e,t)=>[..._l(t,e,QL),...e],"setInitialFilters"),wO=W((e,t)=>[..._l(t,e,YL),...e],"setInitialSorters");W((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder");W((e,t,n="eq")=>{let r=t==null?void 0:t.find(o=>{if(o.operator!=="or"&&o.operator!=="and"&&"field"in o){let{operator:i,field:a}=o;return a===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");W(e=>new Promise((t,n)=>{let r=new FileReader,o=W(()=>{r.result&&(r.removeEventListener("load",o,!1),t(r.result))},"resultHandler");r.addEventListener("load",o,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",o,!1),n(i))}),"file2Base64");var Ut=W(()=>{let{options:{useNewQueryKeys:e}}=cn();return{keys:Ss,preferLegacyKeys:!e}},"useKeys");function zq({v3LegacyAuthProviderCompatible:e=!1,options:t,params:n}={}){let{getPermissions:r}=qo(),{getPermissions:o}=xi(),{keys:i,preferLegacyKeys:a}=Ut(),l=Ho({queryKey:i().auth().action("permissions").get(a),queryFn:o?()=>o(n):()=>Promise.resolve(void 0),enabled:!e&&!!o,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...bt()}}),s=Ho({queryKey:[...i().auth().action("permissions").get(a),"v3LegacyAuthProviderCompatible"],queryFn:r?()=>r(n):()=>Promise.resolve(void 0),enabled:e&&!!r,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?s:l}W(zq,"usePermissions");function dd({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=qo(),{getIdentity:r}=xi(),{keys:o,preferLegacyKeys:i}=Ut(),a=Ho({queryKey:o().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),l=Ho({queryKey:[...o().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?l:a}W(dd,"useGetIdentity");var WS=W(()=>{let e=na(),{keys:t,preferLegacyKeys:n}=Ut();return W(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function Wc({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=WS(),r=st(),o=mr(),{push:i}=Cn(),{open:a,close:l}=bu(),{logout:s}=qo(),{logout:u}=xi(),{keys:c,preferLegacyKeys:d}=Ut(),f=wn({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(p,h)=>{let{success:y,error:b,redirectTo:g,successNotification:x}=p,{redirectPath:w}=h??{},P=w??g;y&&(l==null||l("useLogout-error"),x&&(a==null||a(Bq(x)))),(b||!y)&&(a==null||a(Gb(b))),P!==!1&&(r==="legacy"?i(P??"/login"):P&&o({to:P})),await n()},onError:p=>{a==null||a(Gb(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),m=wn({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(p,h)=>{let y=(h==null?void 0:h.redirectPath)??p;if(y!==!1){if(y){r==="legacy"?i(y):o({to:y});return}r==="legacy"?i("/login"):o({to:"/login"}),await n()}},onError:p=>{a==null||a(Gb(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?m:f}W(Wc,"useLogout");var Gb=W(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),Bq=W(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function Hp({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=WS(),r=st(),o=mr(),{replace:i}=Cn(),a=Qo(),{useLocation:l}=zt(),{search:s}=l(),{close:u,open:c}=bu(),{login:d}=qo(),{login:f}=xi(),{keys:m,preferLegacyKeys:p}=Ut(),h=k.useMemo(()=>{var g;return r==="legacy"?tu.parse(s,{ignoreQueryPrefix:!0}).to:(g=a.params)==null?void 0:g.to},[r,a.params,s]),y=wn({mutationKey:m().auth().action("login").get(p),mutationFn:f,onSuccess:async({success:g,redirectTo:x,error:w,successNotification:P})=>{g&&(u==null||u("login-error"),P&&(c==null||c(Hq(P)))),(w||!g)&&(c==null||c(qb(w))),h&&g?r==="legacy"?i(h):o({to:h,type:"replace"}):x?r==="legacy"?i(x):o({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:g=>{c==null||c(qb(g))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),b=wn({mutationKey:[...m().auth().action("login").get(p),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async g=>{h&&i(h),g!==!1&&!h&&(typeof g=="string"?r==="legacy"?i(g):o({to:g,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"})),await n(),u==null
Line truncated
|
|
|
|
For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),zS(e,t,n,eD).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),SO=W((e,t)=>zS(e,t,tD).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),EO=W((e,t)=>[...Al(t,e,eD),...e],"setInitialFilters"),PO=W((e,t)=>[...Al(t,e,tD),...e],"setInitialSorters");W((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder");W((e,t,n="eq")=>{let r=t==null?void 0:t.find(o=>{if(o.operator!=="or"&&o.operator!=="and"&&"field"in o){let{operator:i,field:a}=o;return a===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");W(e=>new Promise((t,n)=>{let r=new FileReader,o=W(()=>{r.result&&(r.removeEventListener("load",o,!1),t(r.result))},"resultHandler");r.addEventListener("load",o,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",o,!1),n(i))}),"file2Base64");var Wt=W(()=>{let{options:{useNewQueryKeys:e}}=dn();return{keys:ks,preferLegacyKeys:!e}},"useKeys");function Yq({v3LegacyAuthProviderCompatible:e=!1,options:t,params:n}={}){let{getPermissions:r}=qo(),{getPermissions:o}=wi(),{keys:i,preferLegacyKeys:a}=Wt(),l=Ho({queryKey:i().auth().action("permissions").get(a),queryFn:o?()=>o(n):()=>Promise.resolve(void 0),enabled:!e&&!!o,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...xt()}}),s=Ho({queryKey:[...i().auth().action("permissions").get(a),"v3LegacyAuthProviderCompatible"],queryFn:r?()=>r(n):()=>Promise.resolve(void 0),enabled:e&&!!r,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?s:l}W(Yq,"usePermissions");function md({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=qo(),{getIdentity:r}=wi(),{keys:o,preferLegacyKeys:i}=Wt(),a=Ho({queryKey:o().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),l=Ho({queryKey:[...o().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?l:a}W(md,"useGetIdentity");var qS=W(()=>{let e=oa(),{keys:t,preferLegacyKeys:n}=Wt();return W(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function Kc({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=qS(),r=st(),o=hr(),{push:i}=Cn(),{open:a,close:l}=wu(),{logout:s}=qo(),{logout:u}=wi(),{keys:c,preferLegacyKeys:d}=Wt(),f=wn({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(p,h)=>{let{success:y,error:b,redirectTo:g,successNotification:x}=p,{redirectPath:w}=h??{},P=w??g;y&&(l==null||l("useLogout-error"),x&&(a==null||a(Xq(x)))),(b||!y)&&(a==null||a(qb(b))),P!==!1&&(r==="legacy"?i(P??"/login"):P&&o({to:P})),await n()},onError:p=>{a==null||a(qb(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),m=wn({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(p,h)=>{let y=(h==null?void 0:h.redirectPath)??p;if(y!==!1){if(y){r==="legacy"?i(y):o({to:y});return}r==="legacy"?i("/login"):o({to:"/login"}),await n()}},onError:p=>{a==null||a(qb(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?m:f}W(Kc,"useLogout");var qb=W(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),Xq=W(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function Vp({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=qS(),r=st(),o=hr(),{replace:i}=Cn(),a=Qo(),{useLocation:l}=Bt(),{search:s}=l(),{close:u,open:c}=wu(),{login:d}=qo(),{login:f}=wi(),{keys:m,preferLegacyKeys:p}=Wt(),h=k.useMemo(()=>{var g;return r==="legacy"?ou.parse(s,{ignoreQueryPrefix:!0}).to:(g=a.params)==null?void 0:g.to},[r,a.params,s]),y=wn({mutationKey:m().auth().action("login").get(p),mutationFn:f,onSuccess:async({success:g,redirectTo:x,error:w,successNotification:P})=>{g&&(u==null||u("login-error"),P&&(c==null||c(Zq(P)))),(w||!g)&&(c==null||c(Kb(w))),h&&g?r==="legacy"?i(h):o({to:h,type:"replace"}):x?r==="legacy"?i(x):o({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:g=>{c==null||c(Kb(g))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),b=wn({mutationKey:[...m().auth().action("login").get(p),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async g=>{h&&i(h),g!==!1&&!h&&(typeof g=="string"?r==="legacy"?i(g):o({to:g,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"})),await n(),u==null
Line truncated
|
|
|
|
|
|
|
|
|
|
|
|
Both \`unparseConfig\` and \`exportOptions\` are set, \`unparseConfig\` will take precedence`);let D={filename:C,useKeysAsHeaders:!0,useBom:!0,title:"My Generated Report",quoteStrings:'"',...s};iu((s==null?void 0:s.decimalSeparator)!==void 0,`[useExport]: resource: "${P}"
|
|
|
|
Both \`unparseConfig\` and \`exportOptions\` are set, \`unparseConfig\` will take precedence`);let D={filename:C,useKeysAsHeaders:!0,useBom:!0,title:"My Generated Report",quoteStrings:'"',...s};su((s==null?void 0:s.decimalSeparator)!==void 0,`[useExport]: resource: "${P}"
|
|
|
|
|
|
|
|
|
|
|
|
Use of \`decimalSeparator\` no longer supported, please use \`mapData\` instead.
|
|
|
|
Use of \`decimalSeparator\` no longer supported, please use \`mapData\` instead.
|
|
|
|
|
|
|
|
|
|
|
|
See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),_?u={quotes:!0,...u}:u={columns:D.useKeysAsHeaders?void 0:D.headers,delimiter:D.fieldSeparator,header:D.showLabels||D.useKeysAsHeaders,quoteChar:D.quoteStrings,quotes:!0};let T=xL.unparse(M.map(l),u);if(D.showTitle&&(T=`${D.title}\r
|
|
|
|
See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),_?u={quotes:!0,...u}:u={columns:D.useKeysAsHeaders?void 0:D.headers,delimiter:D.fieldSeparator,header:D.showLabels||D.useKeysAsHeaders,quoteChar:D.quoteStrings,quotes:!0};let T=PL.unparse(M.map(l),u);if(D.showTitle&&(T=`${D.title}\r
|
|
|
|
|
|
|
|
|
|
|
|
${T}`),typeof window<"u"&&T.length>0&&(p??!0)){let F=D.useTextFile?".txt":".csv",N=`text/${D.useTextFile?"plain":"csv"};charset=utf8;`,$=`${(D.filename??"download").replace(/ /g,"_")}${F}`;jq($,`${D!=null&&D.useBom?"\uFEFF":""}${T}`,N)}return y(!1),T},"triggerExport")}},"useExport");var sK=W(({resource:e,action:t,id:n,onMutationSuccess:r,onMutationError:o,redirect:i,successNotification:a,errorNotification:l,meta:s,metaData:u,queryMeta:c,mutationMeta:d,mutationMode:f,liveMode:m,onLiveEvent:p,liveParams:h,undoableTimeout:y,dataProviderName:b,invalidates:g,queryOptions:x,createMutationOptions:w,updateMutationOptions:P,overtimeOptions:C,autoSave:E,optimisticUpdateMap:S}={})=>{let M=ia(),{options:I}=cn(),R=qn(),{resource:_,id:D,action:T,identifier:F}=Je(e),{identifier:N}=Je(),$=W(()=>e&&e!==N?n:n??D,"getDefaultId")(),[L,z]=k.useState($);k.useEffect(()=>{z($)},[$]);let B=W(()=>t||(T==="edit"||T==="clone"?T:"create"),"getAction")(),A=R({resource:_,meta:Ae(s,u)}),{mutationMode:H}=yu(),q=f??H,U=B==="create",G=B==="edit",Y=B==="clone";iu((Y||G)&&!!e&&!n&&(x==null?void 0:x.enabled)!==!1,`[useForm]: action: "${B}", resource: "${F}", id: ${L}
|
|
|
|
${T}`),typeof window<"u"&&T.length>0&&(p??!0)){let F=D.useTextFile?".txt":".csv",j=`text/${D.useTextFile?"plain":"csv"};charset=utf8;`,$=`${(D.filename??"download").replace(/ /g,"_")}${F}`;Qq($,`${D!=null&&D.useBom?"\uFEFF":""}${T}`,j)}return y(!1),T},"triggerExport")}},"useExport");var yK=W(({resource:e,action:t,id:n,onMutationSuccess:r,onMutationError:o,redirect:i,successNotification:a,errorNotification:l,meta:s,metaData:u,queryMeta:c,mutationMeta:d,mutationMode:f,liveMode:m,onLiveEvent:p,liveParams:h,undoableTimeout:y,dataProviderName:b,invalidates:g,queryOptions:x,createMutationOptions:w,updateMutationOptions:P,overtimeOptions:C,autoSave:E,optimisticUpdateMap:S}={})=>{let M=la(),{options:O}=dn(),R=qn(),{resource:_,id:D,action:T,identifier:F}=Je(e),{identifier:j}=Je(),$=W(()=>e&&e!==j?n:n??D,"getDefaultId")(),[L,z]=k.useState($);k.useEffect(()=>{z($)},[$]);let B=W(()=>t||(T==="edit"||T==="clone"?T:"create"),"getAction")(),A=R({resource:_,meta:Ae(s,u)}),{mutationMode:H}=xu(),q=f??H,U=B==="create",G=B==="edit",Y=B==="clone";su((Y||G)&&!!e&&!n&&(x==null?void 0:x.enabled)!==!1,`[useForm]: action: "${B}", resource: "${F}", id: ${L}
|
|
|
|
|
|
|
|
|
|
|
|
If you don't use the \`setId\` method to set the \`id\`, you should pass the \`id\` prop to \`useForm\`. Otherwise, \`useForm\` will not be able to infer the \`id\` from the current URL.
|
|
|
|
If you don't use the \`setId\` method to set the \`id\`, you should pass the \`id\` prop to \`useForm\`. Otherwise, \`useForm\` will not be able to infer the \`id\` from the current URL.
|
|
|
|
|
|
|
|
|
|
|
|
See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let re=Iq({redirectFromProps:i,action:B,redirectOptions:I.redirect}),le=JL({resource:F,id:L??"",queryOptions:{enabled:L!==void 0&&(G||Y),...x},liveMode:m,onLiveEvent:p,liveParams:h,meta:{...A,...c},metaData:{...A,...c},dataProviderName:b}),{isFetching:J}=le,oe=tD({mutationOptions:w}),{mutate:ce,isLoading:ge}=oe,me=dp({mutationOptions:P}),{mutate:ke,isLoading:be}=me,ie=dp({}),{setWarnWhen:ye}=Ja(),V=uK(),Q=W(async ee=>{ye(!1);let se=W(Ce=>{V({redirect:re,resource:_,id:Ce,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{se()}),new Promise((Ce,_e)=>{if(q!=="pessimistic"&&Ce(),!!_)return ce({values:ee,resource:F??_.name,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g},{onSuccess:($e,X,Ee)=>{var De;r&&r($e,ee,Ee);let Te=(De=$e==null?void 0:$e.data)==null?void 0:De.id;se(Te),Ce($e)},onError:($e,X,Ee)=>{if(o)return o($e,ee,Ee);_e()}})})},"onFinishCreate");k.useEffect(()=>()=>{E!=null&&E.invalidateOnUnmount&&ie.status==="success"&&M({id:L,invalidates:g||["list","many","detail"],dataProviderName:b,resource:F})},[E==null?void 0:E.invalidateOnUnmount,ie.status]);let Z=W(ee=>{if(!_||!G)return;let se={id:L??"",values:ee,resource:F??_.name,successNotification:!1,errorNotification:!1,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:[],mutationMode:"pessimistic"};return ie.mutate(se,{onSuccess:(Ce,_e,$e)=>{r&&r(Ce,ee,$e,!0)},onError:(Ce,_e,$e)=>{if(o)return o(Ce,ee,$e,!0)}})},"onFinishAutoSaveMutation"),ae=wL(ee=>Z(ee),(E==null?void 0:E.debounce)||1e3),te=U||Y?{formLoading:J||ge,mutationResult:oe,onFinish:Q}:{formLoading:J||be,mutationResult:me,onFinish:W(async ee=>{if(ye(!1),!_)return;let se={id:L??"",values:ee,resource:F??_.name,mutationMode:q,undoableTimeout:y,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g,optimisticUpdateMap:S},Ce=W(()=>{V({redirect:re,resource:_,id:L,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{Ce()}),new Promise((_e,$e)=>(q!=="pessimistic"&&_e(),setTimeout(()=>{ke(se,{onSuccess:(X,Ee,De)=>{r&&r(X,ee,De),q==="pessimistic"&&Ce(),_e(X)},onError:(X,Ee,De)=>{if(o)return o(X,ee,De);$e()}})})))},"onFinishUpdate")},{elapsedTime:K}=pr({isLoading:te.mutationResult.isLoading||le.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...te,queryResult:le,onFinishAutoSave:ae,autoSaveProps:{status:ie.status,data:ie.data,error:ie.error},id:L,setId:z,redirect:(ee,se)=>{V({redirect:ee!==void 0?ee:G?"list":"edit",resource:_,id:se??L,meta:Ae(s,u)})},overtime:{elapsedTime:K}}},"useForm"),uK=W(()=>{let{show:e,edit:t,list:n,create:r}=Cn();return v.useCallback(({redirect:o,resource:i,id:a,meta:l={}})=>{if(o&&i)return i.show&&o==="show"&&a?e(i,a,void 0,l):i.edit&&o==="edit"&&a?t(i,a,void 0,l):i.create&&o==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),qp=W(()=>{let e=st(),{resource:t,resources:n}=Je(),r=Qo();return k.useCallback(({resource:o,action:i,meta:a})=>{var l;let s=o||t;if(!s)return;let u=(l=Jr(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?wo(u,s==null?void 0:s.meta,r,a):void 0},[n,t,r])},"useGetToPath"),mr=W(()=>{let e=v.useContext(Wp),{select:t}=Je(),n=qp(),r=k.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return v.useCallback(o=>{if(typeof o.to!="object")return r({...o,to:o.to});let{resource:i}=t(o.to.resource);cK(o.to,i);let a=n({resource:i,action:o.to.action,meta:{id:o.to.id,...o.to.meta}});return r({...o,to:a})},[t,r])},"useGo"),cK=W((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),ly=W(()=>{let e=v.useContext(Wp);return k.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),Cn=W(()=>{let{resources:e}=Je(),t=st(),{useHistory:n}=zt(),r=n(),o=Qo(),i=mr(),a=ly(),l=W((m,p="push")=>{t==="legacy"?r[p](m):i({to:m,type:p})},"handleUrl"),s=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,x=Jr(g,e,!0).find(w=>w.action==="create");return x?wo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?ur(m,e)??{name:m}:m,b=(h=Jr(y,e).find(g=>g.action==="create"))==null?void 0:h.route;return b?i({to:wo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"createUrl"),u=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,P=Jr(w,e,!0).find(C=>C.action==="edit");return P?wo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}
Line truncated
|
|
|
|
See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let re=Nq({redirectFromProps:i,action:B,redirectOptions:O.redirect}),le=oD({resource:F,id:L??"",queryOptions:{enabled:L!==void 0&&(G||Y),...x},liveMode:m,onLiveEvent:p,liveParams:h,meta:{...A,...c},metaData:{...A,...c},dataProviderName:b}),{isFetching:J}=le,oe=aD({mutationOptions:w}),{mutate:ce,isLoading:ve}=oe,me=ev({mutationOptions:P}),{mutate:ke,isLoading:be}=me,ie=ev({}),{setWarnWhen:ye}=tl(),V=bK(),Q=W(async ee=>{ye(!1);let se=W(Ce=>{V({redirect:re,resource:_,id:Ce,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{se()}),new Promise((Ce,_e)=>{if(q!=="pessimistic"&&Ce(),!!_)return ce({values:ee,resource:F??_.name,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g},{onSuccess:($e,X,Ee)=>{var De;r&&r($e,ee,Ee);let Te=(De=$e==null?void 0:$e.data)==null?void 0:De.id;se(Te),Ce($e)},onError:($e,X,Ee)=>{if(o)return o($e,ee,Ee);_e()}})})},"onFinishCreate");k.useEffect(()=>()=>{E!=null&&E.invalidateOnUnmount&&ie.status==="success"&&M({id:L,invalidates:g||["list","many","detail"],dataProviderName:b,resource:F})},[E==null?void 0:E.invalidateOnUnmount,ie.status]);let Z=W(ee=>{if(!_||!G)return;let se={id:L??"",values:ee,resource:F??_.name,successNotification:!1,errorNotification:!1,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:[],mutationMode:"pessimistic"};return ie.mutate(se,{onSuccess:(Ce,_e,$e)=>{r&&r(Ce,ee,$e,!0)},onError:(Ce,_e,$e)=>{if(o)return o(Ce,ee,$e,!0)}})},"onFinishAutoSaveMutation"),ae=kL(ee=>Z(ee),(E==null?void 0:E.debounce)||1e3),te=U||Y?{formLoading:J||ve,mutationResult:oe,onFinish:Q}:{formLoading:J||be,mutationResult:me,onFinish:W(async ee=>{if(ye(!1),!_)return;let se={id:L??"",values:ee,resource:F??_.name,mutationMode:q,undoableTimeout:y,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g,optimisticUpdateMap:S},Ce=W(()=>{V({redirect:re,resource:_,id:L,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{Ce()}),new Promise((_e,$e)=>(q!=="pessimistic"&&_e(),setTimeout(()=>{ke(se,{onSuccess:(X,Ee,De)=>{r&&r(X,ee,De),q==="pessimistic"&&Ce(),_e(X)},onError:(X,Ee,De)=>{if(o)return o(X,ee,De);$e()}})})))},"onFinishUpdate")},{elapsedTime:K}=mr({isLoading:te.mutationResult.isLoading||le.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...te,queryResult:le,onFinishAutoSave:ae,autoSaveProps:{status:ie.status,data:ie.data,error:ie.error},id:L,setId:z,redirect:(ee,se)=>{V({redirect:ee!==void 0?ee:G?"list":"edit",resource:_,id:se??L,meta:Ae(s,u)})},overtime:{elapsedTime:K}}},"useForm"),bK=W(()=>{let{show:e,edit:t,list:n,create:r}=Cn();return v.useCallback(({redirect:o,resource:i,id:a,meta:l={}})=>{if(o&&i)return i.show&&o==="show"&&a?e(i,a,void 0,l):i.edit&&o==="edit"&&a?t(i,a,void 0,l):i.create&&o==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),Kp=W(()=>{let e=st(),{resource:t,resources:n}=Je(),r=Qo();return k.useCallback(({resource:o,action:i,meta:a})=>{var l;let s=o||t;if(!s)return;let u=(l=Jr(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?wo(u,s==null?void 0:s.meta,r,a):void 0},[n,t,r])},"useGetToPath"),hr=W(()=>{let e=v.useContext(Gp),{select:t}=Je(),n=Kp(),r=k.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return v.useCallback(o=>{if(typeof o.to!="object")return r({...o,to:o.to});let{resource:i}=t(o.to.resource);xK(o.to,i);let a=n({resource:i,action:o.to.action,meta:{id:o.to.id,...o.to.meta}});return r({...o,to:a})},[t,r])},"useGo"),xK=W((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),uy=W(()=>{let e=v.useContext(Gp);return k.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),Cn=W(()=>{let{resources:e}=Je(),t=st(),{useHistory:n}=Bt(),r=n(),o=Qo(),i=hr(),a=uy(),l=W((m,p="push")=>{t==="legacy"?r[p](m):i({to:m,type:p})},"handleUrl"),s=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,x=Jr(g,e,!0).find(w=>w.action==="create");return x?wo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?ur(m,e)??{name:m}:m,b=(h=Jr(y,e).find(g=>g.action==="create"))==null?void 0:h.route;return b?i({to:wo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"createUrl"),u=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,P=Jr(w,e,!0).find(C=>C.action==="edit");return P?wo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}
Line truncated
|
|
|
|
|
|
|
|
|
|
|
|
If you don't use the \`setShowId\` method to set the \`showId\`, you should pass the \`id\` prop to \`useShow\`. Otherwise, \`useShow\` will not be able to infer the \`id\` from the current URL.
|
|
|
|
If you don't use the \`setShowId\` method to set the \`showId\`, you should pass the \`id\` prop to \`useShow\`. Otherwise, \`useShow\` will not be able to infer the \`id\` from the current URL.
|
|
|
|
|
|
|
|
|
|
|
|
See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let w=JL({resource:m,id:b??"",queryOptions:{enabled:b!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:a,onLiveEvent:l,dataProviderName:s}),{elapsedTime:P}=pr({isLoading:w.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:w,showId:b,setShowId:g,overtime:{elapsedTime:P}}},"useShow");W(({resourceName:e,resource:t,mapData:n=W(c=>c,"mapData"),paparseOptions:r,batchSize:o=Number.MAX_SAFE_INTEGER,onFinish:i,meta:a,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=v.useState(0),[f,m]=v.useState(0),[p,h]=v.useState(!1),{resource:y,identifier:b}=Je(t??e),g=qn(),x=Yq(),w=tD(),P=g({resource:y,meta:Ae(a,l)}),C;o===1?C=w:C=x;let E=W(()=>{m(0),d(0),h(!1)},"handleCleanup"),S=W(I=>{let R={succeeded:I.filter(_=>_.type==="success"),errored:I.filter(_=>_.type==="error")};i==null||i(R),h(!1)},"handleFinish");v.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let M=W(({file:I})=>(E(),new Promise(R=>{h(!0),xL.parse(I,{complete:async({data:_})=>{let D=vq(_,n);if(m(D.length),o===1){let T=D.map(N=>W(async()=>({response:await w.mutateAsync({resource:b??"",values:N,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:N}),"fn")),F=await hO(T,({response:N,value:$})=>(d(L=>L+1),{response:[N.data],type:"success",request:[$]}),(N,$)=>({response:[N],type:"error",request:[D[$]]}));R(F)}else{let T=VG(D,o),F=T.map($=>W(async()=>({response:await x.mutateAsync({resource:b??"",values:$,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:$,currentBatchLength:$.length}),"fn")),N=await hO(F,({response:$,currentBatchLength:L,value:z})=>(d(B=>B+L),{response:$.data,type:"success",request:z}),($,L)=>({response:[$],type:"error",request:T[L]}));R(N)}},...r})}).then(R=>(S(R),R))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:I=>{I.target.files&&I.target.files.length>0&&M({file:I.target.files[0]})}},mutationResult:C,isLoading:p,handleChange:M}},"useImport");var dK=W(({defaultVisible:e=!1}={})=>{let[t,n]=v.useState(e),r=v.useCallback(()=>n(!0),[t]),o=v.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:o}},"useModal"),lD=W(({resource:e,action:t,meta:n,legacy:r})=>qp()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Gn=W(()=>{let e=v.useContext(Wp);return e!=null&&e.Link?e.Link:W(({to:t,...n})=>k.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),Sl={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},fK=k.createContext(Sl),XS=fK,pK=W(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a})=>k.createElement(XS.Provider,{value:{useHistory:t??Sl.useHistory,useLocation:n??Sl.useLocation,useParams:r??Sl.useParams,Prompt:o??Sl.Prompt,Link:i??Sl.Link,routes:a??Sl.routes}},e),"LegacyRouterContextProvider"),zt=W(()=>{let e=v.useContext(XS),{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}=e??Sl;return{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}},"useRouterContext"),aa=k.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),mK=W(({can:e,children:t,options:n})=>k.createElement(aa.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),ZS=W(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:o,show:i,clone:a,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:m,...p}=u??{};return{...c,...s?{meta:f}:{},...u?{options:p}:{}}},"sanitizeResource"),xu=W(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:o,options:i}=v.useContext(aa),{keys:a,preferLegacyKeys:l}=Ut(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=ZS(c),m=Ho({queryKey:a().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(o==null?void 0:o({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof o<"u",...u,meta:{...u==null?void 0:u.meta,...bt()},retry:!1});return typeof o>"u"?{data:{can:!0}}:m},"useCan"),hK=W(()=>{let{can:e}=k.useContext(aa);return{can:k.useMemo(()=>e?W(async({params:t,...n})=>{let r=t!=null&&t.resource?ZS(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),gK=W(e=>{let[t,n]=v.useState([]),[r,o]=v.useState([]),[i,a]=v.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",searchField:m=typeof d=="string"?d:"title",debounce:p=300,successNotification:h,errorNotification:y,defaultValueQueryOptions:b,queryOptions:g,fetchSize:x,pagination:w,hasPagination:P=!1,liveMode:C,defaultValue:E=[],onLiveEvent:S,onSearch:M,liveParams:I,meta:R,metaData:_,dataProviderN
Line truncated
|
|
|
|
See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let w=oD({resource:m,id:b??"",queryOptions:{enabled:b!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:a,onLiveEvent:l,dataProviderName:s}),{elapsedTime:P}=mr({isLoading:w.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:w,showId:b,setShowId:g,overtime:{elapsedTime:P}}},"useShow");W(({resourceName:e,resource:t,mapData:n=W(c=>c,"mapData"),paparseOptions:r,batchSize:o=Number.MAX_SAFE_INTEGER,onFinish:i,meta:a,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=v.useState(0),[f,m]=v.useState(0),[p,h]=v.useState(!1),{resource:y,identifier:b}=Je(t??e),g=qn(),x=aK(),w=aD(),P=g({resource:y,meta:Ae(a,l)}),C;o===1?C=w:C=x;let E=W(()=>{m(0),d(0),h(!1)},"handleCleanup"),S=W(O=>{let R={succeeded:O.filter(_=>_.type==="success"),errored:O.filter(_=>_.type==="error")};i==null||i(R),h(!1)},"handleFinish");v.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let M=W(({file:O})=>(E(),new Promise(R=>{h(!0),PL.parse(O,{complete:async({data:_})=>{let D=$q(_,n);if(m(D.length),o===1){let T=D.map(j=>W(async()=>({response:await w.mutateAsync({resource:b??"",values:j,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:j}),"fn")),F=await bO(T,({response:j,value:$})=>(d(L=>L+1),{response:[j.data],type:"success",request:[$]}),(j,$)=>({response:[j],type:"error",request:[D[$]]}));R(F)}else{let T=JG(D,o),F=T.map($=>W(async()=>({response:await x.mutateAsync({resource:b??"",values:$,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:$,currentBatchLength:$.length}),"fn")),j=await bO(F,({response:$,currentBatchLength:L,value:z})=>(d(B=>B+L),{response:$.data,type:"success",request:z}),($,L)=>({response:[$],type:"error",request:T[L]}));R(j)}},...r})}).then(R=>(S(R),R))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:O=>{O.target.files&&O.target.files.length>0&&M({file:O.target.files[0]})}},mutationResult:C,isLoading:p,handleChange:M}},"useImport");var wK=W(({defaultVisible:e=!1}={})=>{let[t,n]=v.useState(e),r=v.useCallback(()=>n(!0),[t]),o=v.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:o}},"useModal"),mD=W(({resource:e,action:t,meta:n,legacy:r})=>Kp()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Gn=W(()=>{let e=v.useContext(Gp);return e!=null&&e.Link?e.Link:W(({to:t,...n})=>k.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),Pl={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},CK=k.createContext(Pl),JS=CK,SK=W(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a})=>k.createElement(JS.Provider,{value:{useHistory:t??Pl.useHistory,useLocation:n??Pl.useLocation,useParams:r??Pl.useParams,Prompt:o??Pl.Prompt,Link:i??Pl.Link,routes:a??Pl.routes}},e),"LegacyRouterContextProvider"),Bt=W(()=>{let e=v.useContext(JS),{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}=e??Pl;return{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}},"useRouterContext"),sa=k.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),EK=W(({can:e,children:t,options:n})=>k.createElement(sa.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),eE=W(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:o,show:i,clone:a,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:m,...p}=u??{};return{...c,...s?{meta:f}:{},...u?{options:p}:{}}},"sanitizeResource"),Cu=W(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:o,options:i}=v.useContext(sa),{keys:a,preferLegacyKeys:l}=Wt(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=eE(c),m=Ho({queryKey:a().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(o==null?void 0:o({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof o<"u",...u,meta:{...u==null?void 0:u.meta,...xt()},retry:!1});return typeof o>"u"?{data:{can:!0}}:m},"useCan"),PK=W(()=>{let{can:e}=k.useContext(sa);return{can:k.useMemo(()=>e?W(async({params:t,...n})=>{let r=t!=null&&t.resource?eE(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),kK=W(e=>{let[t,n]=v.useState([]),[r,o]=v.useState([]),[i,a]=v.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",searchField:m=typeof d=="string"?d:"title",debounce:p=300,successNotification:h,errorNotification:y,defaultValueQueryOptions:b,queryOptions:g,fetchSize:x,pagination:w,hasPagination:P=!1,liveMode:C,defaultValue:E=[],onLiveEvent:S,onSearch:M,liveParams:O,meta:R,metaData:_,dataProviderN
Line truncated
|
|
|
|
For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:o(`buttons.${l}`,s.humanize(l))})):u.push({label:o(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),Zh=W((e,t,n=!1)=>{let r=[],o=Jl(e,t);for(;o;)r.push(o),o=Jl(o,t);return r.reverse(),`/${[...r,e].map(i=>Ha((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),bK=W((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(o=>{let i=[],a=Jl(o,e);for(;a;)i.push(a),a=Jl(a,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?o.route:void 0)??o.identifier??o.name;l.children[s]||(l.children[s]={item:o,children:{}})});let r=W(o=>{let i=[];return Object.keys(o.children).forEach(a=>{let l=Zh(o.children[a].item,e,t),s={...o.children[a].item,key:l,children:r(o.children[a])};i.push(s)}),i},"flatten");return r(n)},"createTree"),EO=W(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),JS=W(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=Qe(),r=qp(),o=st(),{resource:i,resources:a}=Je(),{pathname:l}=Qo(),{useLocation:s}=zt(),{pathname:u}=s(),c=oa(),d=`/${((o==="legacy"?EO(u):l?EO(l):void 0)??"").replace(/^\//,"")}`,f=i?Zh(i,a,o==="legacy"):d??"",m=k.useMemo(()=>{if(!i)return[];let y=Jl(i,a),b=[Zh(i,a)];for(;y;)b.push(Zh(y,a)),y=Jl(y,a);return b},[]),p=k.useCallback(y=>{var b,g,x,w,P,C;if((((b=y==null?void 0:y.meta)==null?void 0:b.hide)??((g=y==null?void 0:y.options)==null?void 0:g.hide))||!(y!=null&&y.list)&&y.children.length===0)return;let E=y.list?r({resource:y,action:"list",legacy:o==="legacy",meta:e}):void 0;if(!(t&&E&&E.match(/(\/|^):(.+?)(\/|$){1}/)))return{...y,route:E,icon:Ae((x=y.meta)==null?void 0:x.icon,(w=y.options)==null?void 0:w.icon,y.icon),label:Ae((P=y==null?void 0:y.meta)==null?void 0:P.label,(C=y==null?void 0:y.options)==null?void 0:C.label)??n(`${y.name}.${y.name}`,c(y.name,"plural"))}},[o,e,r,n,t]),h=k.useMemo(()=>{let y=bK(a,o==="legacy"),b=W(g=>g.flatMap(x=>{let w=b(x.children),P=p({...x,children:w});return P?[P]:[]}),"prepare");return b(y)},[a,o,p]);return{defaultOpenKeys:m,selectedKey:f,menuItems:h}},"useMenu"),qn=W(()=>{let{params:e}=Qo();return W(({resource:t,meta:n}={})=>{let{meta:r}=ZS(t)??{meta:{}},{filters:o,sorters:i,current:a,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");W(()=>{let[e,t]=v.useState(),n=Qe(),{push:r}=Cn(),o=mr(),i=st(),{resource:a,action:l}=Je();return v.useEffect(()=>{a&&l&&t(n("pages.error.info",{action:l,resource:a.name},`You may have forgotten to add the "${l}" component to "${a.name}" resource.`))},[a,l]),k.createElement(k.Fragment,null,k.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&k.createElement("p",null,e),k.createElement("button",{onClick:()=>{i==="legacy"?r("/"):o({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var xK=W(()=>{let[e,t]=v.useState(""),[n,r]=v.useState(""),o=Qe(),i=jt(),{mutate:a}=Hp({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return k.createElement(k.Fragment,null,k.createElement("h1",null,o("pages.login.title","Sign in your account")),k.createElement("form",{onSubmit:l=>{l.preventDefault(),a({username:e,password:n})}},k.createElement("table",null,k.createElement("tbody",null,k.createElement("tr",null,k.createElement("td",null,o("pages.login.username",void 0,"username"),":"),k.createElement("td",null,k.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),k.createElement("tr",null,k.createElement("td",null,o("pages.login.password",void 0,"password"),":"),k.createElement("td",null,k.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),k.createElement("br",null),k.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),wK=W(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s=void 0,hideForm:u})=>{let c=st(),d=Gn(),{Link:f}=zt(),m=c==="legacy"?f:d,[p,h]=v.useState(""),[y,b]=v.useState(""),[g,x]=v.useState(!1),w=Qe(),P=jt(),{mutate:C}=Hp({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=W((I,R)=>k.createElement(m,{to:I},R),"renderLink"),S=W(()=>e?e.map(I=>k.createElement("div",{key:I.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},k.createElement("button",{onClick:()=>C({providerName:I.name}),style:{display:"flex",alignItems:"center"}},I==null?void 0:I.icon,I.label??k.createElement("label",null,I.label)))):null,"renderProviders"),M=k.createElement("div",{...o},k.createElement("h1",{style:{textAlign:"center"}},w("pages.login.title","Sign in to your account")),S(),!u&&k.createElement(k.Fragment,null,k.creat
Line truncated
|
|
|
|
For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:o(`buttons.${l}`,s.humanize(l))})):u.push({label:o(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),eg=W((e,t,n=!1)=>{let r=[],o=ts(e,t);for(;o;)r.push(o),o=ts(o,t);return r.reverse(),`/${[...r,e].map(i=>Wa((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),OK=W((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(o=>{let i=[],a=ts(o,e);for(;a;)i.push(a),a=ts(a,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?o.route:void 0)??o.identifier??o.name;l.children[s]||(l.children[s]={item:o,children:{}})});let r=W(o=>{let i=[];return Object.keys(o.children).forEach(a=>{let l=eg(o.children[a].item,e,t),s={...o.children[a].item,key:l,children:r(o.children[a])};i.push(s)}),i},"flatten");return r(n)},"createTree"),IO=W(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),tE=W(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=Qe(),r=Kp(),o=st(),{resource:i,resources:a}=Je(),{pathname:l}=Qo(),{useLocation:s}=Bt(),{pathname:u}=s(),c=aa(),d=`/${((o==="legacy"?IO(u):l?IO(l):void 0)??"").replace(/^\//,"")}`,f=i?eg(i,a,o==="legacy"):d??"",m=k.useMemo(()=>{if(!i)return[];let y=ts(i,a),b=[eg(i,a)];for(;y;)b.push(eg(y,a)),y=ts(y,a);return b},[]),p=k.useCallback(y=>{var b,g,x,w,P,C;if((((b=y==null?void 0:y.meta)==null?void 0:b.hide)??((g=y==null?void 0:y.options)==null?void 0:g.hide))||!(y!=null&&y.list)&&y.children.length===0)return;let E=y.list?r({resource:y,action:"list",legacy:o==="legacy",meta:e}):void 0;if(!(t&&E&&E.match(/(\/|^):(.+?)(\/|$){1}/)))return{...y,route:E,icon:Ae((x=y.meta)==null?void 0:x.icon,(w=y.options)==null?void 0:w.icon,y.icon),label:Ae((P=y==null?void 0:y.meta)==null?void 0:P.label,(C=y==null?void 0:y.options)==null?void 0:C.label)??n(`${y.name}.${y.name}`,c(y.name,"plural"))}},[o,e,r,n,t]),h=k.useMemo(()=>{let y=OK(a,o==="legacy"),b=W(g=>g.flatMap(x=>{let w=b(x.children),P=p({...x,children:w});return P?[P]:[]}),"prepare");return b(y)},[a,o,p]);return{defaultOpenKeys:m,selectedKey:f,menuItems:h}},"useMenu"),qn=W(()=>{let{params:e}=Qo();return W(({resource:t,meta:n}={})=>{let{meta:r}=eE(t)??{meta:{}},{filters:o,sorters:i,current:a,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");W(()=>{let[e,t]=v.useState(),n=Qe(),{push:r}=Cn(),o=hr(),i=st(),{resource:a,action:l}=Je();return v.useEffect(()=>{a&&l&&t(n("pages.error.info",{action:l,resource:a.name},`You may have forgotten to add the "${l}" component to "${a.name}" resource.`))},[a,l]),k.createElement(k.Fragment,null,k.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&k.createElement("p",null,e),k.createElement("button",{onClick:()=>{i==="legacy"?r("/"):o({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var MK=W(()=>{let[e,t]=v.useState(""),[n,r]=v.useState(""),o=Qe(),i=zt(),{mutate:a}=Vp({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return k.createElement(k.Fragment,null,k.createElement("h1",null,o("pages.login.title","Sign in your account")),k.createElement("form",{onSubmit:l=>{l.preventDefault(),a({username:e,password:n})}},k.createElement("table",null,k.createElement("tbody",null,k.createElement("tr",null,k.createElement("td",null,o("pages.login.username",void 0,"username"),":"),k.createElement("td",null,k.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),k.createElement("tr",null,k.createElement("td",null,o("pages.login.password",void 0,"password"),":"),k.createElement("td",null,k.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),k.createElement("br",null),k.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),RK=W(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s=void 0,hideForm:u})=>{let c=st(),d=Gn(),{Link:f}=Bt(),m=c==="legacy"?f:d,[p,h]=v.useState(""),[y,b]=v.useState(""),[g,x]=v.useState(!1),w=Qe(),P=zt(),{mutate:C}=Vp({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=W((O,R)=>k.createElement(m,{to:O},R),"renderLink"),S=W(()=>e?e.map(O=>k.createElement("div",{key:O.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},k.createElement("button",{onClick:()=>C({providerName:O.name}),style:{display:"flex",alignItems:"center"}},O==null?void 0:O.icon,O.label??k.createElement("label",null,O.label)))):null,"renderProviders"),M=k.createElement("div",{...o},k.createElement("h1",{style:{textAlign:"center"}},w("pages.login.title","Sign in to your account")),S(),!u&&k.createElement(k.Fragment,null,k.creat
Line truncated
|
|
|
|
`,`
|
|
|
|
`,`
|
|
|
|
`,k.createElement("span",{style:{color:"#FF7B72"}},"export")," ",k.createElement("span",{style:{color:"#FF7B72"}},"default")," ",k.createElement("span",null,k.createElement("span",{style:{color:"#FF7B72"}},"function")," ",k.createElement("span",{style:{color:"#FFA657"}},"App"),"(",k.createElement("span",{style:{color:"rgb(222, 147, 95)"}}),")"," "),"{",`
|
|
|
|
`,k.createElement("span",{style:{color:"#FF7B72"}},"export")," ",k.createElement("span",{style:{color:"#FF7B72"}},"default")," ",k.createElement("span",null,k.createElement("span",{style:{color:"#FF7B72"}},"function")," ",k.createElement("span",{style:{color:"#FFA657"}},"App"),"(",k.createElement("span",{style:{color:"rgb(222, 147, 95)"}}),")"," "),"{",`
|
|
|
|
`," ",k.createElement("span",{style:{color:"#FF7B72"}},"return")," (",`
|
|
|
|
`," ",k.createElement("span",{style:{color:"#FF7B72"}},"return")," (",`
|
|
|
@@ -100,7 +100,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
`," ",k.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
|
|
|
|
`," ",k.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
|
|
|
|
`," ",k.createElement("span",{style:{color:"#79C0FF"}},"</",k.createElement("span",{style:{color:"#79C0FF"}},"Refine"),">")),`
|
|
|
|
`," ",k.createElement("span",{style:{color:"#79C0FF"}},"</",k.createElement("span",{style:{color:"#79C0FF"}},"Refine"),">")),`
|
|
|
|
`," ",");",`
|
|
|
|
`," ",");",`
|
|
|
|
`,"}"),"ExampleImplementation"),RK=W(e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},k.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),k.createElement("defs",null,k.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userS
Line truncated
|
|
|
|
`,"}"),"ExampleImplementation"),BK=W(e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},k.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),k.createElement("defs",null,k.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userS
Line truncated
|
|
|
|
.bg-top-announcement {
|
|
|
|
.bg-top-announcement {
|
|
|
|
border-bottom: 1px solid rgba(71, 235, 235, 0.15);
|
|
|
|
border-bottom: 1px solid rgba(71, 235, 235, 0.15);
|
|
|
|
background: radial-gradient(
|
|
|
|
background: radial-gradient(
|
|
|
@@ -139,20 +139,20 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
opacity: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`],YK="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";W(()=>(v.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),QK.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),k.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},k.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(rh,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),k.createElement(rh,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),k.createElement(PO,{style:{position:"absolute",right:"10px"},id:"3"})),k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(rh,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),k.createElement(rh,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),k.createElement(PO,{style:{position:"absolute",right:"-70px"},id:"6"})))),k.createElement(XK,{text:YK})))),"GitHubBanner");var XK=W(({text:e})=>k.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},k.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),k.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),rh=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),PO=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),ZK=W(({status:e,elements:{success:t=k.createElement(oh,{key:"autoSave.success",defaultMessage:"saved"}),error:n=k.createElement(oh,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=k.createElement(oh,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:o=k.createElement(oh,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return k.createElement(k.Fragment,null,t);case"error":return k.createElement(k.Fragment,null,n);case"loading":return k.createElement(k.Fragment,null,r);default:return k.createElement(k.Fragment,null,o)}},"AutoSaveIndicator"),oh=W(({key:e,defaultMessage:t})=>{let n=Qe();return k.createElement("span",null,n(e,t))},"Message"),Zn={},kt={},yw=we&&we.__assign||function(){return yw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yw.apply(this,arguments)},JK=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),eQ=we&&we.__setModuleDefault||(Object.create?function(e,t){O
Line truncated
|
|
|
|
`],aQ="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";W(()=>(v.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),iQ.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),k.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},k.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(ih,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),k.createElement(ih,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),k.createElement(OO,{style:{position:"absolute",right:"10px"},id:"3"})),k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(ih,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),k.createElement(ih,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),k.createElement(OO,{style:{position:"absolute",right:"-70px"},id:"6"})))),k.createElement(lQ,{text:aQ})))),"GitHubBanner");var lQ=W(({text:e})=>k.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},k.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),k.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),ih=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),OO=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),sQ=W(({status:e,elements:{success:t=k.createElement(ah,{key:"autoSave.success",defaultMessage:"saved"}),error:n=k.createElement(ah,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=k.createElement(ah,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:o=k.createElement(ah,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return k.createElement(k.Fragment,null,t);case"error":return k.createElement(k.Fragment,null,n);case"loading":return k.createElement(k.Fragment,null,r);default:return k.createElement(k.Fragment,null,o)}},"AutoSaveIndicator"),ah=W(({key:e,defaultMessage:t})=>{let n=Qe();return k.createElement("span",null,n(e,t))},"Message"),Zn={},kt={},xw=we&&we.__assign||function(){return xw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},xw.apply(this,arguments)},uQ=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cQ=we&&we.__setModuleDefault||(Object.create?function(e,t){O
Line truncated
|
|
|
|
* react-is.production.min.js
|
|
|
|
* react-is.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var Kn=typeof Symbol=="function"&&Symbol.for,uE=Kn?Symbol.for("react.element"):60103,cE=Kn?Symbol.for("react.portal"):60106,wy=Kn?Symbol.for("react.fragment"):60107,Cy=Kn?Symbol.for("react.strict_mode"):60108,Sy=Kn?Symbol.for("react.profiler"):60114,Ey=Kn?Symbol.for("react.provider"):60109,Py=Kn?Symbol.for("react.context"):60110,dE=Kn?Symbol.for("react.async_mode"):60111,ky=Kn?Symbol.for("react.concurrent_mode"):60111,$y=Kn?Symbol.for("react.forward_ref"):60112,Iy=Kn?Symbol.for("react.suspense"):60113,MZ=Kn?Symbol.for("react.suspense_list"):60120,Oy=Kn?Symbol.for("react.memo"):60115,My=Kn?Symbol.for("react.lazy"):60116,RZ=Kn?Symbol.for("react.block"):60121,TZ=Kn?Symbol.for("react.fundamental"):60117,_Z=Kn?Symbol.for("react.responder"):60118,FZ=Kn?Symbol.for("react.scope"):60119;function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uE:switch(e=e.type,e){case dE:case ky:case wy:case Sy:case Cy:case Iy:return e;default:switch(e=e&&e.$$typeof,e){case Py:case $y:case My:case Oy:case Ey:return e;default:return t}}case cE:return t}}}function YD(e){return go(e)===ky}At.AsyncMode=dE;At.ConcurrentMode=ky;At.ContextConsumer=Py;At.ContextProvider=Ey;At.Element=uE;At.ForwardRef=$y;At.Fragment=wy;At.Lazy=My;At.Memo=Oy;At.Portal=cE;At.Profiler=Sy;At.StrictMode=Cy;At.Suspense=Iy;At.isAsyncMode=function(e){return YD(e)||go(e)===dE};At.isConcurrentMode=YD;At.isContextConsumer=function(e){return go(e)===Py};At.isContextProvider=function(e){return go(e)===Ey};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uE};At.isForwardRef=function(e){return go(e)===$y};At.isFragment=function(e){return go(e)===wy};At.isLazy=function(e){return go(e)===My};At.isMemo=function(e){return go(e)===Oy};At.isPortal=function(e){return go(e)===cE};At.isProfiler=function(e){return go(e)===Sy};At.isStrictMode=function(e){return go(e)===Cy};At.isSuspense=function(e){return go(e)===Iy};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wy||e===ky||e===Sy||e===Cy||e===Iy||e===MZ||typeof e=="object"&&e!==null&&(e.$$typeof===My||e.$$typeof===Oy||e.$$typeof===Ey||e.$$typeof===Py||e.$$typeof===$y||e.$$typeof===TZ||e.$$typeof===_Z||e.$$typeof===FZ||e.$$typeof===RZ)};At.typeOf=go;QD.exports=At;var AZ=QD.exports,XD=AZ,LZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},DZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ZD={};ZD[XD.ForwardRef]=LZ;ZD[XD.Memo]=DZ;var NZ=!0;function jZ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var JD=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||NZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},eN=function(t,n,r){JD(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function zZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BZ={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},HZ=/[A-Z]|^ms/g,VZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tN=function(t){return t.charCodeAt(1)===45},VO=function(t){return t!=null&&typeof t!="boolean"},Jb=zD(function(e){return tN(e)?e:e.replace(HZ,"-$&").toLowerCase()}),UO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(VZ,function(r,o,i){return Li={name:o,styles:i,next:Li},o})}return BZ[t]!==1&&!tN(t)&&typeof n=="number"&&n!==0?n+"px":n};function vp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Li={name:n.name,styles:n.styles,next:Li},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Li={name:r.name,styles:r.styles,next:Li},r=r.next;var o=n.styles+";";return o}return UZ(e,t,n)}case"function":{if(e!==void 0){var i=Li,a=n(e);return Li=i,vp(e,t,a)}break}}if(t==null)return n;Line truncated
|
|
|
|
*/var Kn=typeof Symbol=="function"&&Symbol.for,dE=Kn?Symbol.for("react.element"):60103,fE=Kn?Symbol.for("react.portal"):60106,Sy=Kn?Symbol.for("react.fragment"):60107,Ey=Kn?Symbol.for("react.strict_mode"):60108,Py=Kn?Symbol.for("react.profiler"):60114,ky=Kn?Symbol.for("react.provider"):60109,$y=Kn?Symbol.for("react.context"):60110,pE=Kn?Symbol.for("react.async_mode"):60111,Iy=Kn?Symbol.for("react.concurrent_mode"):60111,Oy=Kn?Symbol.for("react.forward_ref"):60112,My=Kn?Symbol.for("react.suspense"):60113,zZ=Kn?Symbol.for("react.suspense_list"):60120,Ry=Kn?Symbol.for("react.memo"):60115,Ty=Kn?Symbol.for("react.lazy"):60116,BZ=Kn?Symbol.for("react.block"):60121,HZ=Kn?Symbol.for("react.fundamental"):60117,VZ=Kn?Symbol.for("react.responder"):60118,UZ=Kn?Symbol.for("react.scope"):60119;function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dE:switch(e=e.type,e){case pE:case Iy:case Sy:case Py:case Ey:case My:return e;default:switch(e=e&&e.$$typeof,e){case $y:case Oy:case Ty:case Ry:case ky:return e;default:return t}}case fE:return t}}}function rN(e){return go(e)===Iy}At.AsyncMode=pE;At.ConcurrentMode=Iy;At.ContextConsumer=$y;At.ContextProvider=ky;At.Element=dE;At.ForwardRef=Oy;At.Fragment=Sy;At.Lazy=Ty;At.Memo=Ry;At.Portal=fE;At.Profiler=Py;At.StrictMode=Ey;At.Suspense=My;At.isAsyncMode=function(e){return rN(e)||go(e)===pE};At.isConcurrentMode=rN;At.isContextConsumer=function(e){return go(e)===$y};At.isContextProvider=function(e){return go(e)===ky};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dE};At.isForwardRef=function(e){return go(e)===Oy};At.isFragment=function(e){return go(e)===Sy};At.isLazy=function(e){return go(e)===Ty};At.isMemo=function(e){return go(e)===Ry};At.isPortal=function(e){return go(e)===fE};At.isProfiler=function(e){return go(e)===Py};At.isStrictMode=function(e){return go(e)===Ey};At.isSuspense=function(e){return go(e)===My};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sy||e===Iy||e===Py||e===Ey||e===My||e===zZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ty||e.$$typeof===Ry||e.$$typeof===ky||e.$$typeof===$y||e.$$typeof===Oy||e.$$typeof===HZ||e.$$typeof===VZ||e.$$typeof===UZ||e.$$typeof===BZ)};At.typeOf=go;nN.exports=At;var WZ=nN.exports,oN=WZ,GZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iN={};iN[oN.ForwardRef]=GZ;iN[oN.Memo]=qZ;var KZ=!0;function QZ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var aN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||KZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},lN=function(t,n,r){aN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function YZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XZ={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},ZZ=/[A-Z]|^ms/g,JZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sN=function(t){return t.charCodeAt(1)===45},qO=function(t){return t!=null&&typeof t!="boolean"},e1=qD(function(e){return sN(e)?e:e.replace(ZZ,"-$&").toLowerCase()}),KO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JZ,function(r,o,i){return Di={name:o,styles:i,next:Di},o})}return XZ[t]!==1&&!sN(t)&&typeof n=="number"&&n!==0?n+"px":n};function bp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Di={name:n.name,styles:n.styles,next:Di},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Di={name:r.name,styles:r.styles,next:Di},r=r.next;var o=n.styles+";";return o}return eJ(e,t,n)}case"function":{if(e!==void 0){var i=Di,a=n(e);return Di=i,bp(e,t,a)}break}}if(t==null)return n;Line truncated
|
|
|
|
* @mui/styled-engine v5.15.11
|
|
|
|
* @mui/styled-engine v5.15.11
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @license MIT
|
|
|
|
* @license MIT
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/function pE(e,t){return Tw(e,t)}const aN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nJ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:iN,StyledEngineProvider:eJ,ThemeContext:Xp,css:Kc,default:pE,internal_processStyles:aN,keyframes:cs},Symbol.toStringTag,{value:"Module"}));function ka(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lN(e){if(!ka(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=lN(e[n])}),t}function kr(e,t,n={clone:!0}){const r=n.clone?O({},e):e;return ka(e)&&ka(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ka(t[o])&&o in e&&ka(e[o])?r[o]=kr(e[o],t[o],n):n.clone?r[o]=ka(t[o])?lN(t[o]):t[o]:r[o]=t[o])}),r}const rJ=Object.freeze(Object.defineProperty({__proto__:null,default:kr,isPlainObject:ka},Symbol.toStringTag,{value:"Module"})),oJ=["values","unit","step"],iJ=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function sN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,oJ),i=iJ(t),a=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const p=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function d(f){const m=a.indexOf(f);return m===0?l(a[1]):m===a.length-1?s(a[m]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return O({keys:a,values:i,up:l,down:s,between:u,only:c,not:d,unit:n},o)}const aJ={borderRadius:4},lJ=aJ;function Af(e,t){return t?kr(e,t,{clone:!1}):e}const mE={xs:0,sm:600,md:900,lg:1200,xl:1536},QO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mE[e]}px)`};function Gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||QO;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||QO;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||mE).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function uN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function cN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function sJ(e,...t){const n=uN(e),r=[n,...t].reduce((o,i)=>kr(o,i),{});return cN(Object.keys(n),r)}function uJ(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Vs({values:e,breakpoints:t,base:n}){const r=n||uJ(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function pe(e){if(typeof e!="string")throw new Error(Ua(7));return e.charAt(0).toUpperCase()+e.slice(1)}const cJ=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ov(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Qc(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=Qc(s,r)||{};return Gr(a,l,d=>{let f=ov(u,o,d);return d===f&&typeof d=="string"&&(f=ov(u,o,`${t}${d==="default"?"":pe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function dJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fJ={m:"margin",p:"padding"},pJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},YO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mJ=dJ(e=>{if(e.length>2)if(YO[e])e=YO[e];else return[e];const[t,n]=e.split(""),r=fJ[t],o=pJ[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),hE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hE,...gE];function Zp(e,t,n,Line truncated
|
|
|
|
*/function hE(e,t){return Fw(e,t)}const pN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fJ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:fN,StyledEngineProvider:cJ,ThemeContext:Zp,css:Xc,default:hE,internal_processStyles:pN,keyframes:ps},Symbol.toStringTag,{value:"Module"}));function Ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mN(e){if(!Ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mN(e[n])}),t}function Ir(e,t,n={clone:!0}){const r=n.clone?I({},e):e;return Ia(e)&&Ia(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ia(t[o])&&o in e&&Ia(e[o])?r[o]=Ir(e[o],t[o],n):n.clone?r[o]=Ia(t[o])?mN(t[o]):t[o]:r[o]=t[o])}),r}const pJ=Object.freeze(Object.defineProperty({__proto__:null,default:Ir,isPlainObject:Ia},Symbol.toStringTag,{value:"Module"})),mJ=["values","unit","step"],hJ=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>I({},n,{[r.key]:r.val}),{})};function hN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,mJ),i=hJ(t),a=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const p=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function d(f){const m=a.indexOf(f);return m===0?l(a[1]):m===a.length-1?s(a[m]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return I({keys:a,values:i,up:l,down:s,between:u,only:c,not:d,unit:n},o)}const gJ={borderRadius:4},vJ=gJ;function Df(e,t){return t?Ir(e,t,{clone:!1}):e}const gE={xs:0,sm:600,md:900,lg:1200,xl:1536},JO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gE[e]}px)`};function Gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||JO;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||JO;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||gE).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function gN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function yJ(e,...t){const n=gN(e),r=[n,...t].reduce((o,i)=>Ir(o,i),{});return vN(Object.keys(n),r)}function bJ(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Gs({values:e,breakpoints:t,base:n}){const r=n||bJ(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function pe(e){if(typeof e!="string")throw new Error(qa(7));return e.charAt(0).toUpperCase()+e.slice(1)}const xJ=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));function Zc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function av(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Zc(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=Zc(s,r)||{};return Gr(a,l,d=>{let f=av(u,o,d);return d===f&&typeof d=="string"&&(f=av(u,o,`${t}${d==="default"?"":pe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function wJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const CJ={m:"margin",p:"padding"},SJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},EJ=wJ(e=>{if(e.length>2)if(eM[e])e=eM[e];else return[e];const[t,n]=e.split(""),r=CJ[t],o=SJ[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...yE];function Jp(e,t,n,Line truncated
|
|
|
|
* @license React
|
|
|
|
* @license React
|
|
|
|
* react-is.production.min.js
|
|
|
|
* react-is.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
@@ -160,11 +160,11 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var xE=Symbol.for("react.element"),wE=Symbol.for("react.portal"),Dy=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),jy=Symbol.for("react.profiler"),zy=Symbol.for("react.provider"),By=Symbol.for("react.context"),uee=Symbol.for("react.server_context"),Hy=Symbol.for("react.forward_ref"),Vy=Symbol.for("react.suspense"),Uy=Symbol.for("react.suspense_list"),Wy=Symbol.for("react.memo"),Gy=Symbol.for("react.lazy"),cee=Symbol.for("react.offscreen"),bN;bN=Symbol.for("react.module.reference");function Zo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case xE:switch(e=e.type,e){case Dy:case jy:case Ny:case Vy:case Uy:return e;default:switch(e=e&&e.$$typeof,e){case uee:case By:case Hy:case Gy:case Wy:case zy:return e;default:return t}}case wE:return t}}}Lt.ContextConsumer=By;Lt.ContextProvider=zy;Lt.Element=xE;Lt.ForwardRef=Hy;Lt.Fragment=Dy;Lt.Lazy=Gy;Lt.Memo=Wy;Lt.Portal=wE;Lt.Profiler=jy;Lt.StrictMode=Ny;Lt.Suspense=Vy;Lt.SuspenseList=Uy;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Zo(e)===By};Lt.isContextProvider=function(e){return Zo(e)===zy};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===xE};Lt.isForwardRef=function(e){return Zo(e)===Hy};Lt.isFragment=function(e){return Zo(e)===Dy};Lt.isLazy=function(e){return Zo(e)===Gy};Lt.isMemo=function(e){return Zo(e)===Wy};Lt.isPortal=function(e){return Zo(e)===wE};Lt.isProfiler=function(e){return Zo(e)===jy};Lt.isStrictMode=function(e){return Zo(e)===Ny};Lt.isSuspense=function(e){return Zo(e)===Vy};Lt.isSuspenseList=function(e){return Zo(e)===Uy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dy||e===jy||e===Ny||e===Vy||e===Uy||e===cee||typeof e=="object"&&e!==null&&(e.$$typeof===Gy||e.$$typeof===Wy||e.$$typeof===zy||e.$$typeof===By||e.$$typeof===Hy||e.$$typeof===bN||e.getModuleId!==void 0)};Lt.typeOf=Zo;yN.exports=Lt;var ZO=yN.exports;const dee=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function xN(e){const t=`${e}`.match(dee);return t&&t[1]||""}function wN(e,t=""){return e.displayName||e.name||xN(e)||t}function JO(e,t,n){const r=wN(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function fee(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return wN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ZO.ForwardRef:return JO(e,e.render,"ForwardRef");case ZO.Memo:return JO(e,e.type,"memo");default:return}}}const pee=Object.freeze(Object.defineProperty({__proto__:null,default:fee,getFunctionName:xN},Symbol.toStringTag,{value:"Module"})),mee=["ownerState"],hee=["variants"],gee=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vee(e){return Object.keys(e).length===0}function yee(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bee=yd(),xee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function sh({defaultTheme:e,theme:t,themeId:n}){return vee(t)?e:t[n]||t}function wee(e){return e?(t,n)=>n[e]:null}function ng(e,t){let{ownerState:n}=t,r=ue(t,mee);const o=typeof e=="function"?e(O({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>ng(i,O({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,hee);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props(O({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(O({ownerState:n},r,n)):s.style))}),l}return o}function Cee(e={}){const{themeId:t,defaultTheme:n=bee,rootShouldForwardProp:r=e1,slotShouldForwardProp:o=e1}=e,i=a=>em(O({},a,{theme:sh(O({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{aN(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=wee(xee(u))}=l,m=ue(l,gee),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=e1;u==="Root"||u==="root"?b=r:u?b=o:yee(a)&&(b=void 0);const g=pE(a,O({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||ka(P)?C=>ng(P,O({},C,{theme:sh({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(R=>{const _=sh(O({},R,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,N])=>{T[F]=ng(N,O({},R,{theme:_}))}),f(R,T)}),s&&!p&&S.push(R=>{var _;const D=sh(O({},R,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return ng({variants:T},O({},R,{theme:D}))}),h||S.push(i);const M=S.length-C.length;if(Array.isArray(P)&&M>0){const R=new Array(M).fill("");E=[...P,...R],E.raw=[...P.raw,...R]}const I=g(E,...S);return a.muiName&&(I.muiName=a.muiLine truncated
|
|
|
|
*/var CE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),zy=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),Vy=Symbol.for("react.context"),bee=Symbol.for("react.server_context"),Uy=Symbol.for("react.forward_ref"),Wy=Symbol.for("react.suspense"),Gy=Symbol.for("react.suspense_list"),qy=Symbol.for("react.memo"),Ky=Symbol.for("react.lazy"),xee=Symbol.for("react.offscreen"),kN;kN=Symbol.for("react.module.reference");function Zo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CE:switch(e=e.type,e){case jy:case By:case zy:case Wy:case Gy:return e;default:switch(e=e&&e.$$typeof,e){case bee:case Vy:case Uy:case Ky:case qy:case Hy:return e;default:return t}}case SE:return t}}}Lt.ContextConsumer=Vy;Lt.ContextProvider=Hy;Lt.Element=CE;Lt.ForwardRef=Uy;Lt.Fragment=jy;Lt.Lazy=Ky;Lt.Memo=qy;Lt.Portal=SE;Lt.Profiler=By;Lt.StrictMode=zy;Lt.Suspense=Wy;Lt.SuspenseList=Gy;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Zo(e)===Vy};Lt.isContextProvider=function(e){return Zo(e)===Hy};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CE};Lt.isForwardRef=function(e){return Zo(e)===Uy};Lt.isFragment=function(e){return Zo(e)===jy};Lt.isLazy=function(e){return Zo(e)===Ky};Lt.isMemo=function(e){return Zo(e)===qy};Lt.isPortal=function(e){return Zo(e)===SE};Lt.isProfiler=function(e){return Zo(e)===By};Lt.isStrictMode=function(e){return Zo(e)===zy};Lt.isSuspense=function(e){return Zo(e)===Wy};Lt.isSuspenseList=function(e){return Zo(e)===Gy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jy||e===By||e===zy||e===Wy||e===Gy||e===xee||typeof e=="object"&&e!==null&&(e.$$typeof===Ky||e.$$typeof===qy||e.$$typeof===Hy||e.$$typeof===Vy||e.$$typeof===Uy||e.$$typeof===kN||e.getModuleId!==void 0)};Lt.typeOf=Zo;PN.exports=Lt;var nM=PN.exports;const wee=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $N(e){const t=`${e}`.match(wee);return t&&t[1]||""}function IN(e,t=""){return e.displayName||e.name||$N(e)||t}function rM(e,t,n){const r=IN(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Cee(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nM.ForwardRef:return rM(e,e.render,"ForwardRef");case nM.Memo:return rM(e,e.type,"memo");default:return}}}const See=Object.freeze(Object.defineProperty({__proto__:null,default:Cee,getFunctionName:$N},Symbol.toStringTag,{value:"Module"})),Eee=["ownerState"],Pee=["variants"],kee=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $ee(e){return Object.keys(e).length===0}function Iee(e){return typeof e=="string"&&e.charCodeAt(0)>96}function t1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oee=wd(),Mee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ch({defaultTheme:e,theme:t,themeId:n}){return $ee(t)?e:t[n]||t}function Ree(e){return e?(t,n)=>n[e]:null}function og(e,t){let{ownerState:n}=t,r=ue(t,Eee);const o=typeof e=="function"?e(I({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>og(i,I({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,Pee);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props(I({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(I({ownerState:n},r,n)):s.style))}),l}return o}function Tee(e={}){const{themeId:t,defaultTheme:n=Oee,rootShouldForwardProp:r=t1,slotShouldForwardProp:o=t1}=e,i=a=>tm(I({},a,{theme:ch(I({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{pN(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Ree(Mee(u))}=l,m=ue(l,kee),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=t1;u==="Root"||u==="root"?b=r:u?b=o:Iee(a)&&(b=void 0);const g=hE(a,I({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||Ia(P)?C=>og(P,I({},C,{theme:ch({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(R=>{const _=ch(I({},R,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,j])=>{T[F]=og(j,I({},R,{theme:_}))}),f(R,T)}),s&&!p&&S.push(R=>{var _;const D=ch(I({},R,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return og({variants:T},I({},R,{theme:D}))}),h||S.push(i);const M=S.length-C.length;if(Array.isArray(P)&&M>0){const R=new Array(M).fill("");E=[...P,...R],E.raw=[...P.raw,...R]}const O=g(E,...S);return a.muiName&&(O.muiName=a.muiLine truncated
|
|
|
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},ure=function(t){return k.createElement(ts,Object.assign({},t),k.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},cre=function(t){return k.createElement(ts,Object.assign({},t),k.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
|
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},bre=function(t){return k.createElement(rs,Object.assign({},t),k.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},xre=function(t){return k.createElement(rs,Object.assign({},t),k.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
|
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
|
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
|
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},dre=function(t){return k.createElement(ts,Object.assign({},t),k.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
|
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},wre=function(t){return k.createElement(rs,Object.assign({},t),k.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
|
|
0 22,12A10,10 0 0,0 12,2Z`}))},fh={fontSize:20,marginInlineEnd:8},fre={default:void 0,success:k.createElement(sre,{style:fh}),warning:k.createElement(ure,{style:fh}),error:k.createElement(cre,{style:fh}),info:k.createElement(dre,{style:fh})};function Nf(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var s=[].concat(a);t&&s.indexOf(t)===-1&&s.push(t),n.apply(this,s),r.apply(this,s)}},function(){})}var pre=typeof window<"u"?v.useLayoutEffect:v.useEffect;function xM(e){var t=v.useRef(e);return pre(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var mre=v.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,o=e.ClickAwayListenerProps,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,s=e.onMouseEnter,u=e.onMouseLeave,c=e.open,d=e.resumeHideDuration,f=Kl(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=v.useRef(),p=xM(function(){l&&l.apply(void 0,arguments)}),h=xM(function(P){!l||P==null||(clearTimeout(m.current),m.current=setTimeout(function(){p(null,Il.TIMEOUT)},P))});v.useEffect(function(){return c&&h(r),function(){clearTimeout(m.current)}},[c,r,h]);var y=function(){clearTimeout(m.current)},b=v.useCallback(function(){r!=null&&h(d??r*.5)},[r,d,h]),g=function(C){s&&s(C),y()},x=function(C){u&&u(C),b()},w=function(C){l&&l(C,Il.CLICKAWAY)};return v.useEffect(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),v.createElement(TE,Yt({onClickAway:w},o),v.createElement("div",Yt({onMouseEnter:g,onMouseLeave:x,ref:t},f),n))}),va="SnackbarItem",br={contentRoot:va+"-contentRoot",lessPadding:va+"-lessPadding",variantSuccess:va+"-variantSuccess",variantError:va+"-variantError",variantInfo:va+"-variantInfo",variantWarning:va+"-variantWarning",message:va+"-message",action:va+"-action",wrappedRoot:va+"-wrappedRoot"},hre=fe(mre)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=Mee(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+br.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+br.contentRoot]=Yt({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+br.lessPadding]={paddingLeft:8*2.5},t["."+br.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+br.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+br.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+br.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+br.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+br.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),gre=function(t){var n=t.classes,r=Kl(t,["classes"]),o=v.useRef(),i=v.useState(!0),a=i[0],l=i[1];v.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var s=Nf([r.snack.onClose,r.onClose],r.snack.key),u=function(){r.snack.requestClose&&s(null,Il.INSTRCUTED)},c=function(){o.current=setTimeout(function(){l(!a)},125)},d=r.style,f=r.ariaAttributes,m=r.className,p=r.hideIconVariant,h=r.iconVariant,y=r.snack,b=r.action,g=r.content,x=r.TransitionComponent,w=r.TransitionProps,P=r.transitionDuration,C=Kl(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),E=y.key,S=y.open,M=y.className,I=y.variant,R=y.content,_=y.action,D=y.ariaAttributes,T=y.anchorOrigin,F=y.message,N=y.TransitionComponent,$=y.TransitionProps,L=y.transitionDuration,z=Kl(y,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=Yt({},fre,{},h)[I],A=Yt({"aria-describedby":"notistack-snackbar"},o1(D,f)),H=N||x||Ds.TransitionComponent,q=o1(L,P,Ds.transitionDuration),U=Yt({direction:lre(T)},o1($,w)),G=_||b;typeof G=="function"&&(G=G(E));var Y=R||g;typeof Y=="function"&&(Y=Y(E,y.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,J){var oe;return Yt({},le,(oe={},oe[J]=Nf([r.snack[J],r[J]],r.snack.key),oe))},{});return k.createElement(Zy,{unmountOnExit:!0,timeout:175,in:a,onExited:re.onExited},k.createElement(hre,Object.assign({},C,z,{open:S,className:pp(n.root,br.wrappedRoot,n[ag.toAnchorOrigin(T)]),onClose:s}),k.creat
Line truncated
|
|
|
|
0 22,12A10,10 0 0,0 12,2Z`}))},mh={fontSize:20,marginInlineEnd:8},Cre={default:void 0,success:k.createElement(yre,{style:mh}),warning:k.createElement(bre,{style:mh}),error:k.createElement(xre,{style:mh}),info:k.createElement(wre,{style:mh})};function Bf(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var s=[].concat(a);t&&s.indexOf(t)===-1&&s.push(t),n.apply(this,s),r.apply(this,s)}},function(){})}var Sre=typeof window<"u"?v.useLayoutEffect:v.useEffect;function EM(e){var t=v.useRef(e);return Sre(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var Ere=v.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,o=e.ClickAwayListenerProps,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,s=e.onMouseEnter,u=e.onMouseLeave,c=e.open,d=e.resumeHideDuration,f=Yl(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=v.useRef(),p=EM(function(){l&&l.apply(void 0,arguments)}),h=EM(function(P){!l||P==null||(clearTimeout(m.current),m.current=setTimeout(function(){p(null,Ml.TIMEOUT)},P))});v.useEffect(function(){return c&&h(r),function(){clearTimeout(m.current)}},[c,r,h]);var y=function(){clearTimeout(m.current)},b=v.useCallback(function(){r!=null&&h(d??r*.5)},[r,d,h]),g=function(C){s&&s(C),y()},x=function(C){u&&u(C),b()},w=function(C){l&&l(C,Ml.CLICKAWAY)};return v.useEffect(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),v.createElement(FE,Xt({onClickAway:w},o),v.createElement("div",Xt({onMouseEnter:g,onMouseLeave:x,ref:t},f),n))}),ba="SnackbarItem",wr={contentRoot:ba+"-contentRoot",lessPadding:ba+"-lessPadding",variantSuccess:ba+"-variantSuccess",variantError:ba+"-variantError",variantInfo:ba+"-variantInfo",variantWarning:ba+"-variantWarning",message:ba+"-message",action:ba+"-action",wrappedRoot:ba+"-wrappedRoot"},Pre=de(Ere)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=zee(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+wr.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+wr.contentRoot]=Xt({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+wr.lessPadding]={paddingLeft:8*2.5},t["."+wr.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+wr.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+wr.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+wr.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+wr.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+wr.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),kre=function(t){var n=t.classes,r=Yl(t,["classes"]),o=v.useRef(),i=v.useState(!0),a=i[0],l=i[1];v.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var s=Bf([r.snack.onClose,r.onClose],r.snack.key),u=function(){r.snack.requestClose&&s(null,Ml.INSTRCUTED)},c=function(){o.current=setTimeout(function(){l(!a)},125)},d=r.style,f=r.ariaAttributes,m=r.className,p=r.hideIconVariant,h=r.iconVariant,y=r.snack,b=r.action,g=r.content,x=r.TransitionComponent,w=r.TransitionProps,P=r.transitionDuration,C=Yl(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),E=y.key,S=y.open,M=y.className,O=y.variant,R=y.content,_=y.action,D=y.ariaAttributes,T=y.anchorOrigin,F=y.message,j=y.TransitionComponent,$=y.TransitionProps,L=y.transitionDuration,z=Yl(y,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=Xt({},Cre,{},h)[O],A=Xt({"aria-describedby":"notistack-snackbar"},i1(D,f)),H=j||x||zs.TransitionComponent,q=i1(L,P,zs.transitionDuration),U=Xt({direction:vre(T)},i1($,w)),G=_||b;typeof G=="function"&&(G=G(E));var Y=R||g;typeof Y=="function"&&(Y=Y(E,y.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,J){var oe;return Xt({},le,(oe={},oe[J]=Bf([r.snack[J],r[J]],r.snack.key),oe))},{});return k.createElement(e0,{unmountOnExit:!0,timeout:175,in:a,onExited:re.onExited},k.createElement(Pre,Object.assign({},C,z,{open:S,className:hp(n.root,wr.wrappedRoot,n[lg.toAnchorOrigin(T)]),onClose:s}),k.creat
Line truncated
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
transform: scale(0);
|
|
|
|
transform: scale(0);
|
|
|
|
opacity: 0.1;
|
|
|
|
opacity: 0.1;
|
|
|
@@ -174,7 +174,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
transform: scale(1);
|
|
|
|
transform: scale(1);
|
|
|
|
opacity: 0.3;
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),Roe=cs(kM||(kM=Jy`
|
|
|
|
`)),Boe=ps(MM||(MM=t0`
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -182,7 +182,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
100% {
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),Toe=cs($M||($M=Jy`
|
|
|
|
`)),Hoe=ps(RM||(RM=t0`
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
transform: scale(1);
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -194,7 +194,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
100% {
|
|
|
|
100% {
|
|
|
|
transform: scale(1);
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),_oe=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Foe=fe(koe,{name:"MuiTouchRipple",slot:"Ripple"})(IM||(IM=Jy`
|
|
|
|
`)),Voe=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Uoe=de(Loe,{name:"MuiTouchRipple",slot:"Ripple"})(TM||(TM=t0`
|
|
|
|
opacity: 0;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
|
|
|
@@ -237,12 +237,12 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-delay: 200ms;
|
|
|
|
animation-delay: 200ms;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`),$o.rippleVisible,Moe,Dw,({theme:e})=>e.transitions.easing.easeInOut,$o.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$o.child,$o.childLeaving,Roe,Dw,({theme:e})=>e.transitions.easing.easeInOut,$o.childPulsate,Toe,({theme:e})=>e.transitions.easing.easeInOut),Aoe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ue(r,Ioe),[s,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=v.useRef(!1),m=Ls(),p=v.useRef(null),h=v.useRef(null),y=v.useCallback(w=>{const{pulsate:P,rippleX:C,rippleY:E,rippleSize:S,cb:M}=w;u(I=>[...I,j.jsx(Foe,{classes:{ripple:ve(i.ripple,$o.ripple),rippleVisible:ve(i.rippleVisible,$o.rippleVisible),ripplePulsate:ve(i.ripplePulsate,$o.ripplePulsate),child:ve(i.child,$o.child),childLeaving:ve(i.childLeaving,$o.childLeaving),childPulsate:ve(i.childPulsate,$o.childPulsate)},timeout:Dw,pulsate:P,rippleX:C,rippleY:E,rippleSize:S},c.current)]),c.current+=1,d.current=M},[i]),b=v.useCallback((w={},P={},C=()=>{})=>{const{pulsate:E=!1,center:S=o||P.pulsate,fakeElement:M=!1}=P;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const I=M?null:h.current,R=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,D,T;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:F,clientY:N}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(F-R.left),D=Math.round(N-R.top)}if(S)T=Math.sqrt((2*R.width**2+R.height**2)/3),T%2===0&&(T+=1);else{const F=Math.max(Math.abs((I?I.clientWidth:0)-_),_)*2+2,N=Math.max(Math.abs((I?I.clientHeight:0)-D),D)*2+2;T=Math.sqrt(F**2+N**2)}w!=null&&w.touches?p.current===null&&(p.current=()=>{y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},m.start(Ooe,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},[o,y,m]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),x=v.useCallback((w,P)=>{if(m.clear(),(w==null?void 0:w.type)==="touchend"&&p.current){p.current(),p.current=null,m.start(0,()=>{x(w,P)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=P},[m]);return v.useImperativeHandle(n,()=>({pulsate:g,start:b,stop:x}),[g,b,x]),j.jsx(_oe,O({className:ve($o.root,i.root,a),ref:h},l,{children:j.jsx(XX,{component:null,exit:!0,children:s})}))}),Loe=Aoe;function Doe(e){return Ve("MuiButtonBase",e)}const Noe=Ue("MuiButtonBase",["root","disabled","focusVisible"]),joe=Noe,zoe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Boe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Oe({root:["root",t&&"disabled",n&&"focusVisible"]},Doe,o);return n&&r&&(a.root+=` ${r}`),a},Hoe=fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${joe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Voe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:w,onKeyUp:P,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:M,onTouchMove:I,onTouchStart:R,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:T,type:F}=r,N=ue(r,zoe),$=v.useRef(null),L=v.useRef(null),z=xt(L,T),{isFocusVisibleRef:B,onFocus:A,onBlur:H,ref:q}=Qy(),[U,G]=v.useState(!1);u&&U&&G(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),$.current.focus()}}),[]);const[Y,re]=v.useState(!1);v.useEffect(()=>{re(!0)},[]);const le=Y&&!c&&!u;v.useEffect(()=>{U&&f&&!c&&Y&&L.current.pulsate()},[c,f,U,Y]);function J(X,Ee,De=d){return Zt(Te=>(Ee&&Ee(Te),!De&&L.current&&L.current[X](Te),!0))}const oe=J("start",C),ce=J("stop",y),ge=J("stop",b),me=J("stop",S),ke=J("stop",X=>{U&&X.preventDefault(),E&&E(X)}),be=J("start",R),ie=J("stop",M),ye=J("stop",I),V=J("stop",X=>{H(X),B.current===!1&&G(!1),p&&p(X)},!1),Q=Zt(X=>{$.current||($.current=X.currentTarget),A(X),B.current===!0&&(G(!0),x&&x(X)),
Line truncated
|
|
|
|
`),$o.rippleVisible,zoe,jw,({theme:e})=>e.transitions.easing.easeInOut,$o.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$o.child,$o.childLeaving,Boe,jw,({theme:e})=>e.transitions.easing.easeInOut,$o.childPulsate,Hoe,({theme:e})=>e.transitions.easing.easeInOut),Woe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ue(r,Noe),[s,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=v.useRef(!1),m=js(),p=v.useRef(null),h=v.useRef(null),y=v.useCallback(w=>{const{pulsate:P,rippleX:C,rippleY:E,rippleSize:S,cb:M}=w;u(O=>[...O,N.jsx(Uoe,{classes:{ripple:he(i.ripple,$o.ripple),rippleVisible:he(i.rippleVisible,$o.rippleVisible),ripplePulsate:he(i.ripplePulsate,$o.ripplePulsate),child:he(i.child,$o.child),childLeaving:he(i.childLeaving,$o.childLeaving),childPulsate:he(i.childPulsate,$o.childPulsate)},timeout:jw,pulsate:P,rippleX:C,rippleY:E,rippleSize:S},c.current)]),c.current+=1,d.current=M},[i]),b=v.useCallback((w={},P={},C=()=>{})=>{const{pulsate:E=!1,center:S=o||P.pulsate,fakeElement:M=!1}=P;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const O=M?null:h.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,D,T;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:F,clientY:j}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(F-R.left),D=Math.round(j-R.top)}if(S)T=Math.sqrt((2*R.width**2+R.height**2)/3),T%2===0&&(T+=1);else{const F=Math.max(Math.abs((O?O.clientWidth:0)-_),_)*2+2,j=Math.max(Math.abs((O?O.clientHeight:0)-D),D)*2+2;T=Math.sqrt(F**2+j**2)}w!=null&&w.touches?p.current===null&&(p.current=()=>{y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},m.start(joe,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},[o,y,m]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),x=v.useCallback((w,P)=>{if(m.clear(),(w==null?void 0:w.type)==="touchend"&&p.current){p.current(),p.current=null,m.start(0,()=>{x(w,P)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=P},[m]);return v.useImperativeHandle(n,()=>({pulsate:g,start:b,stop:x}),[g,b,x]),N.jsx(Voe,I({className:he($o.root,i.root,a),ref:h},l,{children:N.jsx(lZ,{component:null,exit:!0,children:s})}))}),Goe=Woe;function qoe(e){return Be("MuiButtonBase",e)}const Koe=He("MuiButtonBase",["root","disabled","focusVisible"]),Qoe=Koe,Yoe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Xoe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},qoe,o);return n&&r&&(a.root+=` ${r}`),a},Zoe=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qoe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Joe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:w,onKeyUp:P,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:M,onTouchMove:O,onTouchStart:R,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:T,type:F}=r,j=ue(r,Yoe),$=v.useRef(null),L=v.useRef(null),z=vt(L,T),{isFocusVisibleRef:B,onFocus:A,onBlur:H,ref:q}=Xy(),[U,G]=v.useState(!1);u&&U&&G(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),$.current.focus()}}),[]);const[Y,re]=v.useState(!1);v.useEffect(()=>{re(!0)},[]);const le=Y&&!c&&!u;v.useEffect(()=>{U&&f&&!c&&Y&&L.current.pulsate()},[c,f,U,Y]);function J(X,Ee,De=d){return Jt(Te=>(Ee&&Ee(Te),!De&&L.current&&L.current[X](Te),!0))}const oe=J("start",C),ce=J("stop",y),ve=J("stop",b),me=J("stop",S),ke=J("stop",X=>{U&&X.preventDefault(),E&&E(X)}),be=J("start",R),ie=J("stop",M),ye=J("stop",O),V=J("stop",X=>{H(X),B.current===!1&&G(!1),p&&p(X)},!1),Q=Jt(X=>{$.current||($.current=X.currentTarget),A(X),B.current===!0&&(G(!0),x&&x(X)),
Line truncated
|
|
|
|
`));return e}const x4=v.createContext(void 0),He=()=>{const e=v.useContext(x4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},w4=v.createContext(void 0);function fs(){const e=v.useContext(w4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
|
|
`));return e}const $4=v.createContext(void 0),We=()=>{const e=v.useContext($4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},I4=v.createContext(void 0);function hs(){const e=v.useContext(I4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
|
|
`));return e}const HM={};function eP(e,t){const n=v.useRef(HM);return n.current===HM&&(n.current=e(t)),n}const kse=[];function C4(e){v.useEffect(e,kse)}const la=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
|
|
`));return e}const GM={};function nP(e,t){const n=v.useRef(GM);return n.current===GM&&(n.current=e(t)),n}const Ase=[];function O4(e){v.useEffect(e,Ase)}const ua=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
|
|
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},$se=Object.is;function S4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!$se(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}la(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Ise(e){return e.acceptsApiRef}function VM(e,t){return Ise(t)?t(e):t(e.current.state)}const Ose=Object.is,tP=S4,Mse=()=>({state:null,equals:null,selector:null}),Ne=(e,t,n=Ose)=>{const r=eP(Mse),o=r.current.selector!==null,[i,a]=v.useState(o?null:VM(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,C4(()=>e.current.store.subscribe(()=>{const l=VM(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,a(l))})),i};function ft(e){return Ve("MuiDataGrid",e)}const ne=Ue("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var uv="NOT_FOUND";function Rse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:uv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Tse(e,t){var n=[];function r(l){var s=n.findIndex(function(c){return t(l,c.key)});if(s>-1){var u=n[s];return s>0&&(n.splice(s,1),n.unshift(u)),u.value}return uv}function o(l,s){r(l)===uv&&(n.unshift({key:l,value:s}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var _se=function(t,n){return t===n};function Fse(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function s0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?_se:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,s=Fse(o),u=a===1?Rse(s):Tse(a,s);function c(){var d=u.get(arguments);if(d===uv){if(d=e.apply(null,arguments),l){var f=u.getEntries(),m=f.find(function(p){return l(p.value,d)});m&&(d=m.value)}u.put(arguments,d)}return d}return c.clearCache=function(){return u.clear()},c}function Ase(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){
Line truncated
|
|
|
|
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Lse=Object.is;function M4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Lse(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ua(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Dse(e){return e.acceptsApiRef}function qM(e,t){return Dse(t)?t(e):t(e.current.state)}const Nse=Object.is,rP=M4,jse=()=>({state:null,equals:null,selector:null}),Ne=(e,t,n=Nse)=>{const r=nP(jse),o=r.current.selector!==null,[i,a]=v.useState(o?null:qM(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,O4(()=>e.current.store.subscribe(()=>{const l=qM(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,a(l))})),i};function ft(e){return Be("MuiDataGrid",e)}const ne=He("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var dv="NOT_FOUND";function zse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:dv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Bse(e,t){var n=[];function r(l){var s=n.findIndex(function(c){return t(l,c.key)});if(s>-1){var u=n[s];return s>0&&(n.splice(s,1),n.unshift(u)),u.value}return dv}function o(l,s){r(l)===dv&&(n.unshift({key:l,value:s}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var Hse=function(t,n){return t===n};function Vse(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function c0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Hse:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,s=Vse(o),u=a===1?zse(s):Bse(a,s);function c(){var d=u.get(arguments);if(d===dv){if(d=e.apply(null,arguments),l){var f=u.getEntries(),m=f.find(function(p){return l(p.value,d)});m&&(d=m.value)}u.put(arguments,d)}return d}return c.clearCache=function(){return u.clear()},c}function Use(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){
Line truncated
|
|
|
|
`))}const pv=(e,t,n)=>{const r=t?t(e):e.id;return sue(r,e,n),r},sg=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let l=0;l<e.length;l+=1){const s=e[l],u=pv(s,t);i[u]=s,a[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},T4=({tree:e,rowCountProp:t=0})=>{const n=e[Sr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},_4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},O({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:T4({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Ep=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,lP=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Ep(e[a]))&&o.push(a);const l=lP(e,a,n);for(let s=0;s<l.length;s+=1)o.push(l[s])}return!n&&r.footerId!=null&&o.push(r.footerId),o},uue=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(f=>{const m=pv(f,t,"A row was provided without id when calling updateRows():");a.has(m)?a.set(m,O({},a.get(m),f)):a.set(m,f)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:O({},e.updates.idToActionLookup)},s=O({},e.dataRowIdToModelLookup),u=O({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((f,m)=>{const p=l.idToActionLookup[m];if(f._action==="delete"){if(p==="remove"||!s[m])return;p!=null&&(c[p][m]=!0),l.actions.remove.push(m),delete s[m],delete u[m];return}const h=s[m];if(h){p==="remove"?(c.remove[m]=!0,l.actions.modify.push(m)):p==null&&l.actions.modify.push(m),s[m]=O({},h,f);return}p==="remove"?(c.remove[m]=!0,l.actions.insert.push(m)):p==null&&l.actions.insert.push(m),s[m]=f,u[m]=m});const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],p=c[m];Object.keys(p).length>0&&(l.actions[m]=l.actions[m].filter(h=>!p[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function F4(e){var t,n;const r=Cd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0;return{top:o,bottom:i}}function A4(e,t){const n=Sd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const cue=jn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),due=jn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),fue=e=>{const{classes:t}=e;return Oe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function pue(e){var t,n;const r=dt(),o=He(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),l=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);Ft(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let s=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&s===0&&(s=A4(r,o.rowHeight));const u=fue(O({},e,{classes:o.classes}));return i?j.jsx(cue,{className:ve(u.root),overlayType:e.overlayType,children:j.jsx(due,O({className:ve(u.inner),style:{height:s,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function mue(){const e=dt(),t=He(),n=Ne(e,d0),r=Ne(e,M4),o=Ne(e,Hse),i=!o&&n===0,a=!o&&n>0&&r===0;let l=null,s="";if(i){var u;l=j.jsx(t.slots.noRowsOverlay,O({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),s="noRowsOverlay"}if(a){var c;l=j.jsx(t.slots.noResultsOverlay,O({},(c=t.slotProps)==null?void 0
Line truncated
|
|
|
|
`))}const hv=(e,t,n)=>{const r=t?t(e):e.id;return vue(r,e,n),r},ug=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let l=0;l<e.length;l+=1){const s=e[l],u=hv(s,t);i[u]=s,a[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},j4=({tree:e,rowCountProp:t=0})=>{const n=e[Pr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},z4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},I({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:j4({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Pp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,uP=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Pp(e[a]))&&o.push(a);const l=uP(e,a,n);for(let s=0;s<l.length;s+=1)o.push(l[s])}return!n&&r.footerId!=null&&o.push(r.footerId),o},yue=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(f=>{const m=hv(f,t,"A row was provided without id when calling updateRows():");a.has(m)?a.set(m,I({},a.get(m),f)):a.set(m,f)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:I({},e.updates.idToActionLookup)},s=I({},e.dataRowIdToModelLookup),u=I({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((f,m)=>{const p=l.idToActionLookup[m];if(f._action==="delete"){if(p==="remove"||!s[m])return;p!=null&&(c[p][m]=!0),l.actions.remove.push(m),delete s[m],delete u[m];return}const h=s[m];if(h){p==="remove"?(c.remove[m]=!0,l.actions.modify.push(m)):p==null&&l.actions.modify.push(m),s[m]=I({},h,f);return}p==="remove"?(c.remove[m]=!0,l.actions.insert.push(m)):p==null&&l.actions.insert.push(m),s[m]=f,u[m]=m});const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],p=c[m];Object.keys(p).length>0&&(l.actions[m]=l.actions[m].filter(h=>!p[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function B4(e){var t,n;const r=Pd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0;return{top:o,bottom:i}}function H4(e,t){const n=kd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const bue=zn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),xue=zn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),wue=e=>{const{classes:t}=e;return Ie({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function Cue(e){var t,n;const r=dt(),o=We(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),l=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);Rt(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let s=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&s===0&&(s=H4(r,o.rowHeight));const u=wue(I({},e,{classes:o.classes}));return i?N.jsx(bue,{className:he(u.root),overlayType:e.overlayType,children:N.jsx(xue,I({className:he(u.inner),style:{height:s,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function Sue(){const e=dt(),t=We(),n=Ne(e,p0),r=Ne(e,D4),o=Ne(e,Xse),i=!o&&n===0,a=!o&&n>0&&r===0;let l=null,s="";if(i){var u;l=N.jsx(t.slots.noRowsOverlay,I({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),s="noRowsOverlay"}if(a){var c;l=N.jsx(t.slots.noResultsOverlay,I({},(c=t.slotProps)==null?void 0
Line truncated
|
|
|
|
`&&(x.value+=" ");const w=g.boxSizing,P=yh(g.paddingBottom)+yh(g.paddingTop),C=yh(g.borderBottomWidth)+yh(g.borderTopWidth),E=x.scrollHeight;x.value="x";const S=x.scrollHeight;let M=E;i&&(M=Math.max(Number(i)*S,M)),o&&(M=Math.min(Number(o)*S,M)),M=Math.max(M,S);const I=M+(w==="border-box"?P+C:0),R=Math.abs(M-E)<=1;return{outerHeightStyle:I,overflowing:R}},[o,i,t.placeholder]),p=v.useCallback(()=>{const y=m();if(Bue(y))return;const b=c.current;b.style.height=`${y.outerHeightStyle}px`,b.style.overflow=y.overflowing?"hidden":""},[m]);Ft(()=>{const y=()=>{p()};let b;const g=gd(y),x=c.current,w=bi(x);w.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(y),P.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),w.removeEventListener("resize",g),P&&P.disconnect()}},[m,p]),Ft(()=>{p()});const h=y=>{u||p(),r&&r(y)};return j.jsxs(v.Fragment,{children:[j.jsx("textarea",O({value:l,onChange:h,ref:d,rows:i,style:a},s)),j.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:O({},zue.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function WM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function N4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=WM(c));const d=c?l.filter(f=>{let m=(i||u)(f);return n&&(m=m.toLowerCase()),t&&(m=WM(m)),o==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):l;return typeof r=="number"?d.slice(0,r):d}}function bh(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Vue=N4(),GM=5,Uue=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Wue(e){const{unstable_isActiveElementInListbox:t=Uue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:p=!1,disableListWrap:h=!1,filterOptions:y=Vue,filterSelectedOptions:b=!1,freeSolo:g=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:P=xe=>{var he;return(he=xe.label)!=null?he:xe},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:S,includeInputInList:M=!1,inputValue:I,isOptionEqualToValue:R=(xe,he)=>xe===he,multiple:_=!1,onChange:D,onClose:T,onHighlightChange:F,onInputChange:N,onOpen:$,open:L,openOnFocus:z=!1,options:B,readOnly:A=!1,selectOnFocus:H=!e.freeSolo,value:q}=e,U=Tt(S);let G=P;G=xe=>{const he=P(xe);return typeof he!="string"?String(he):he};const Y=v.useRef(!1),re=v.useRef(!0),le=v.useRef(null),J=v.useRef(null),[oe,ce]=v.useState(null),[ge,me]=v.useState(-1),ke=o?0:-1,be=v.useRef(ke),[ie,ye]=ql({controlled:q,default:c,name:u}),[V,Q]=ql({controlled:I,default:"",name:u,state:"inputValue"}),[Z,ae]=v.useState(!1),te=v.useCallback((xe,he)=>{if(!(_?ie.length<he.length:he!==null)&&!l)return;let Fe;if(_)Fe="";else if(he==null)Fe="";else{const Ze=G(he);Fe=typeof Ze=="string"?Ze:""}V!==Fe&&(Q(Fe),N&&N(xe,Fe,"reset"))},[G,V,_,N,Q,l,ie]),[K,ee]=ql({controlled:L,default:!1,name:u,state:"open"}),[se,Ce]=v.useState(!0),_e=!_&&ie!=null&&V===G(ie),$e=K&&!A,X=$e?y(B.filter(xe=>!(b&&(_?ie:[ie]).some(he=>he!==null&&R(xe,he)))),{inputValue:_e&&se?"":V,getOptionLabel:G}):[],Ee=PE({filteredOptions:X,value:ie,inputValue:V});v.useEffect(()=>{const xe=ie!==Ee.value;Z&&!xe||g&&!xe||te(null,ie)},[ie,te,Z,Ee.value,g]);const De=K&&X.length>0&&!A,Te=Zt(xe=>{xe===-1?le.current.focus():oe.querySelector(`[data-tag-index="${xe}"]`).focus()});v.useEffect(()=>{_&&ge>ie.length-1&&(me(-1),Te(-1))},[ie,_,ge,Te]);function Pe(xe,he){if(!J.current||xe<0||xe>=X.length)return-1;let je=xe;for(;;){const Fe=J.current.querySelector(`[data-option-index="${je}"]`),Ze=p?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!Ze)return je;if(he==="next"?je=(je+1)%X.length:je=(je-1+X.length)%X.length,je===xe)return-1}}const Re=Zt(({event:xe,index:he,reason:je="auto"})=>{if(be.current=he,he===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${U}-option-${he}`),F&&F(xe,he===-1?null:X[he],je),!J.current)return;const Fe=J.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(he===-1){Ze.scrollTop=0;return}const Be=J.current.querySelector(`[data-option-index="${he}"]`);if(Be&&(Be.classList.add(`${n}-focused`),je==="keyboard"&&Be.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&je!=="mouse"&&je!=="touch")){const gt=Be,Pi=Ze.clientHeight+Ze.scrollTop,Zk=gt.offsetTop+gt.offsetHeight;Zk>Pi?Ze.scrollTop=Zk-Ze.
Line truncated
|
|
|
|
`&&(x.value+=" ");const w=g.boxSizing,P=xh(g.paddingBottom)+xh(g.paddingTop),C=xh(g.borderBottomWidth)+xh(g.borderTopWidth),E=x.scrollHeight;x.value="x";const S=x.scrollHeight;let M=E;i&&(M=Math.max(Number(i)*S,M)),o&&(M=Math.min(Number(o)*S,M)),M=Math.max(M,S);const O=M+(w==="border-box"?P+C:0),R=Math.abs(M-E)<=1;return{outerHeightStyle:O,overflowing:R}},[o,i,t.placeholder]),p=v.useCallback(()=>{const y=m();if(Yue(y))return;const b=c.current;b.style.height=`${y.outerHeightStyle}px`,b.style.overflow=y.overflowing?"hidden":""},[m]);Rt(()=>{const y=()=>{p()};let b;const g=bd(y),x=c.current,w=xi(x);w.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(y),P.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),w.removeEventListener("resize",g),P&&P.disconnect()}},[m,p]),Rt(()=>{p()});const h=y=>{u||p(),r&&r(y)};return N.jsxs(v.Fragment,{children:[N.jsx("textarea",I({value:l,onChange:h,ref:d,rows:i,style:a},s)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},Que.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function QM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function W4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=QM(c));const d=c?l.filter(f=>{let m=(i||u)(f);return n&&(m=m.toLowerCase()),t&&(m=QM(m)),o==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):l;return typeof r=="number"?d.slice(0,r):d}}function wh(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Zue=W4(),YM=5,Jue=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function ece(e){const{unstable_isActiveElementInListbox:t=Jue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:p=!1,disableListWrap:h=!1,filterOptions:y=Zue,filterSelectedOptions:b=!1,freeSolo:g=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:P=xe=>{var ge;return(ge=xe.label)!=null?ge:xe},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:S,includeInputInList:M=!1,inputValue:O,isOptionEqualToValue:R=(xe,ge)=>xe===ge,multiple:_=!1,onChange:D,onClose:T,onHighlightChange:F,onInputChange:j,onOpen:$,open:L,openOnFocus:z=!1,options:B,readOnly:A=!1,selectOnFocus:H=!e.freeSolo,value:q}=e,U=_t(S);let G=P;G=xe=>{const ge=P(xe);return typeof ge!="string"?String(ge):ge};const Y=v.useRef(!1),re=v.useRef(!0),le=v.useRef(null),J=v.useRef(null),[oe,ce]=v.useState(null),[ve,me]=v.useState(-1),ke=o?0:-1,be=v.useRef(ke),[ie,ye]=Ql({controlled:q,default:c,name:u}),[V,Q]=Ql({controlled:O,default:"",name:u,state:"inputValue"}),[Z,ae]=v.useState(!1),te=v.useCallback((xe,ge)=>{if(!(_?ie.length<ge.length:ge!==null)&&!l)return;let Fe;if(_)Fe="";else if(ge==null)Fe="";else{const Ze=G(ge);Fe=typeof Ze=="string"?Ze:""}V!==Fe&&(Q(Fe),j&&j(xe,Fe,"reset"))},[G,V,_,j,Q,l,ie]),[K,ee]=Ql({controlled:L,default:!1,name:u,state:"open"}),[se,Ce]=v.useState(!0),_e=!_&&ie!=null&&V===G(ie),$e=K&&!A,X=$e?y(B.filter(xe=>!(b&&(_?ie:[ie]).some(ge=>ge!==null&&R(xe,ge)))),{inputValue:_e&&se?"":V,getOptionLabel:G}):[],Ee=$E({filteredOptions:X,value:ie,inputValue:V});v.useEffect(()=>{const xe=ie!==Ee.value;Z&&!xe||g&&!xe||te(null,ie)},[ie,te,Z,Ee.value,g]);const De=K&&X.length>0&&!A,Te=Jt(xe=>{xe===-1?le.current.focus():oe.querySelector(`[data-tag-index="${xe}"]`).focus()});v.useEffect(()=>{_&&ve>ie.length-1&&(me(-1),Te(-1))},[ie,_,ve,Te]);function Pe(xe,ge){if(!J.current||xe<0||xe>=X.length)return-1;let je=xe;for(;;){const Fe=J.current.querySelector(`[data-option-index="${je}"]`),Ze=p?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!Ze)return je;if(ge==="next"?je=(je+1)%X.length:je=(je-1+X.length)%X.length,je===xe)return-1}}const Re=Jt(({event:xe,index:ge,reason:je="auto"})=>{if(be.current=ge,ge===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${U}-option-${ge}`),F&&F(xe,ge===-1?null:X[ge],je),!J.current)return;const Fe=J.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(ge===-1){Ze.scrollTop=0;return}const Ve=J.current.querySelector(`[data-option-index="${ge}"]`);if(Ve&&(Ve.classList.add(`${n}-focused`),je==="keyboard"&&Ve.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&je!=="mouse"&&je!=="touch")){const gt=Ve,ki=Ze.clientHeight+Ze.scrollTop,n$=gt.offsetTop+gt.offsetHeight;n$>ki?Ze.scrollTop=n$-Ze.
Line truncated
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -254,7 +254,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
100% {
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),qce=cs(XM||(XM=yv`
|
|
|
|
`)),nde=ps(t2||(t2=xv`
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -267,9 +267,9 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
100% {
|
|
|
|
100% {
|
|
|
|
transform: translateX(100%);
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),Kce=fe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=zne(e.shape.borderRadius)||"px",r=Bne(e.shape.borderRadius);return O({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:xr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Kc(ZM||(ZM=yv`
|
|
|
|
`)),rde=de("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=Yne(e.shape.borderRadius)||"px",r=Xne(e.shape.borderRadius);return I({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Cr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Xc(n2||(n2=xv`
|
|
|
|
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
|
|
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
|
|
`),Gce),({ownerState:e,theme:t})=>e.animation==="wave"&&Kc(JM||(JM=yv`
|
|
|
|
`),tde),({ownerState:e,theme:t})=>e.animation==="wave"&&Xc(r2||(r2=xv`
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
@@ -292,11 +292,11 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
right: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`),qce,(t.vars||t).palette.action.hover)),Qce=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:u="text",width:c}=r,d=ue(r,Uce),f=O({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),m=Wce(f);return j.jsx(Kce,O({as:a,ref:n,className:ve(m.root,i),ownerState:f},d,{style:O({width:c,height:l},s)}))}),Yce=Qce,Xce=["field","align","width","contentWidth"],Zce=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${pe(t)}`,"withBorderColor"]};return Oe(r,ft,n)};function Jce(e){const{align:t,width:n,contentWidth:r}=e,o=ue(e,Xce),a={classes:He().classes,align:t},l=Zce(a);return j.jsx("div",O({className:l.root,style:{width:n}},o,{children:j.jsx(Yce,{width:`${r}%`})}))}function ede(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?SN(xr(e.palette.divider,1),.88):Lf(xr(e.palette.divider,1),.68)}const eR={[`.${ne.columnSeparator}, .${ne["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},tR={[`& .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.menuIcon}`]:{width:"auto",visibility:"visible"}},tde=fe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ne.autoHeight}`]:t.autoHeight},{[`&.${ne.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ne["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ne["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ne["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ne.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:t["root--disableUserSelection"]},{[`&.${ne.autosizing}`]:t.autosizing},{[`& .${ne.editBooleanCell}`]:t.editBooleanCell},{[`& .${ne["cell--editing"]}`]:t["cell--editing"]},{[`& .${ne["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ne["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ne["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ne["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ne.cell}`]:t.cell},{[`& .${ne["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ne["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ne["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ne["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ne["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ne.cellContent}`]:t.cellContent},{[`& .${ne.cellCheckbox}`]:t.cellCheckbox},{[`& .${ne.cellSkeleton}`]:t.cellSkeleton},{[`& .${ne.checkboxInput}`]:t.checkboxInput},{[`& .${ne["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ne["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ne["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ne["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ne["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ne["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ne["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ne["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ne["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ne.columnHeader}`]:t.columnHeader},{[`& .${ne.headerFilterRow}`]:t.headerFilterRow},{[`& .${ne.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ne.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ne.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ne["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ne["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ne.columnSeparator}`]:t.columnSeparator},{[`& .${ne.filterIcon}`]:t.filterIcon},{[`& .${ne.iconSeparator}`]:t.iconSeparator},{[`& .${ne.menuIcon}`]:t.menuIcon},{[`& .${ne.menuIconButton}`]:t.menuIconButton},{[`& .${ne.menuOpen}`]:t.menuOpen},{[`& .${ne.menuList}`]:t.menuList},{[`& .${ne["row--editable"]}`]:t["row--editable"]},{[`& .${ne["row--editing"]}`]:t["row--editing"]},{[`& .${ne["row--dragging"]}`]:t["row--dragging"]},{[`& .${ne.row}`]:t.row},{[`& .${ne.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ne.rowReorderCell}`]:t.rowReorderCell},{[`& .${ne["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ne.sortIcon}`]:t.sortIcon},{[`& .${ne.withBorderColor}`]:t.withBorderColor},{[`& .${ne.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ne.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ne.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ne["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=ede(e),n=e.shape.borderRadius;return O({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackgrou
Line truncated
|
|
|
|
`),nde,(t.vars||t).palette.action.hover)),ode=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:u="text",width:c}=r,d=ue(r,Jce),f=I({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),m=ede(f);return N.jsx(rde,I({as:a,ref:n,className:he(m.root,i),ownerState:f},d,{style:I({width:c,height:l},s)}))}),ide=ode,ade=["field","align","width","contentWidth"],lde=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${pe(t)}`,"withBorderColor"]};return Ie(r,ft,n)};function sde(e){const{align:t,width:n,contentWidth:r}=e,o=ue(e,ade),a={classes:We().classes,align:t},l=lde(a);return N.jsx("div",I({className:l.root,style:{width:n}},o,{children:N.jsx(ide,{width:`${r}%`})}))}function ude(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?MN(Cr(e.palette.divider,1),.88):Nf(Cr(e.palette.divider,1),.68)}const o2={[`.${ne.columnSeparator}, .${ne["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},i2={[`& .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.menuIcon}`]:{width:"auto",visibility:"visible"}},cde=de("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ne.autoHeight}`]:t.autoHeight},{[`&.${ne.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ne["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ne["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ne["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ne.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:t["root--disableUserSelection"]},{[`&.${ne.autosizing}`]:t.autosizing},{[`& .${ne.editBooleanCell}`]:t.editBooleanCell},{[`& .${ne["cell--editing"]}`]:t["cell--editing"]},{[`& .${ne["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ne["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ne["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ne["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ne.cell}`]:t.cell},{[`& .${ne["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ne["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ne["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ne["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ne["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ne.cellContent}`]:t.cellContent},{[`& .${ne.cellCheckbox}`]:t.cellCheckbox},{[`& .${ne.cellSkeleton}`]:t.cellSkeleton},{[`& .${ne.checkboxInput}`]:t.checkboxInput},{[`& .${ne["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ne["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ne["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ne["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ne["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ne["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ne["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ne["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ne["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ne.columnHeader}`]:t.columnHeader},{[`& .${ne.headerFilterRow}`]:t.headerFilterRow},{[`& .${ne.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ne.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ne.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ne["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ne["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ne.columnSeparator}`]:t.columnSeparator},{[`& .${ne.filterIcon}`]:t.filterIcon},{[`& .${ne.iconSeparator}`]:t.iconSeparator},{[`& .${ne.menuIcon}`]:t.menuIcon},{[`& .${ne.menuIconButton}`]:t.menuIconButton},{[`& .${ne.menuOpen}`]:t.menuOpen},{[`& .${ne.menuList}`]:t.menuList},{[`& .${ne["row--editable"]}`]:t["row--editable"]},{[`& .${ne["row--editing"]}`]:t["row--editing"]},{[`& .${ne["row--dragging"]}`]:t["row--dragging"]},{[`& .${ne.row}`]:t.row},{[`& .${ne.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ne.rowReorderCell}`]:t.rowReorderCell},{[`& .${ne["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ne.sortIcon}`]:t.sortIcon},{[`& .${ne.withBorderColor}`]:t.withBorderColor},{[`& .${ne.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ne.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ne.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ne["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=ude(e),n=e.shape.borderRadius;return I({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackgrou
Line truncated
|
|
|
|
${e.vars.palette.action.selectedOpacity} +
|
|
|
|
${e.vars.palette.action.selectedOpacity} +
|
|
|
|
${e.vars.palette.action.hoverOpacity}
|
|
|
|
${e.vars.palette.action.hoverOpacity}
|
|
|
|
))`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ne.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:{userSelect:"none"},[`& .${ne.row}:not(.${ne["row--dynamicHeight"]}) > .${ne.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ne.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ne.cell}.${ne["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ne.cell}.${ne["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ne["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ne["row--editing"]} .${ne.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ne.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ne.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ne.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ne.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ne.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ne.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ne.withBorderColor}`]:{borderColor:t},[`& .${ne["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ne["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ne["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ne.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ne.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ne["columnHeader--dragging"]}, & .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ne.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ne.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ne.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),nde=["children","className"],rde=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${pe(n)}`,"withBorderColor"]};return Oe(o,ft,r)},ode=v.forwardRef(function(t,n){var r;const o=He(),{children:i,className:a}=t,l=ue(t,nde),s=fs(),u=Ne(s,oue),c=v.useRef(null),d=xt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:k4,m=typeof f=="function"?f():null,p=O({},o,{density:u}),h=rde(p);s.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return Ft(()=>{b(!0)},[]),y?j.jsx(tde,O({ref:d,className:ve(a,h.root),ownerState:p},m,l,{children:i})):null}),ide=["className"],ade=e=>{const{classes:t}=e;return Oe({root:["footerContainer","withBorderColor"]},ft,t)},lde=jn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),sde=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,ide),i=He(),a=ade(i);return j.jsx(lde,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),ude=["className"],cde=e=>{const{classes:t}=e;return Oe({root:["overlay"]},ft,t)},dd
Line truncated
|
|
|
|
))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ne.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:{userSelect:"none"},[`& .${ne.row}:not(.${ne["row--dynamicHeight"]}) > .${ne.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ne.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ne.cell}.${ne["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ne.cell}.${ne["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ne["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ne["row--editing"]} .${ne.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ne.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ne.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ne.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ne.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ne.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ne.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ne.withBorderColor}`]:{borderColor:t},[`& .${ne["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ne["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ne["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ne.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ne.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ne["columnHeader--dragging"]}, & .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ne.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ne.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ne.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),dde=["children","className"],fde=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${pe(n)}`,"withBorderColor"]};return Ie(o,ft,r)},pde=v.forwardRef(function(t,n){var r;const o=We(),{children:i,className:a}=t,l=ue(t,dde),s=hs(),u=Ne(s,pue),c=v.useRef(null),d=vt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:_4,m=typeof f=="function"?f():null,p=I({},o,{density:u}),h=fde(p);s.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return Rt(()=>{b(!0)},[]),y?N.jsx(cde,I({ref:d,className:he(a,h.root),ownerState:p},m,l,{children:i})):null}),mde=["className"],hde=e=>{const{classes:t}=e;return Ie({root:["footerContainer","withBorderColor"]},ft,t)},gde=zn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),vde=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,mde),i=We(),a=hde(i);return N.jsx(gde,I({ref:n,className:he(a.root,r),ownerState:i},o))}),yde=["className"],bde=e=>{const{classes:t}=e;return Ie({root:["overlay"]},ft,t)},xd
Line truncated
|
|
|
|
`))},tj=e=>e.pagination,Io=tt(tj,e=>e.paginationModel),nfe=tt(Io,e=>e.page),rfe=tt(Io,e=>e.pageSize);tt(Io,p0,(e,t)=>Z4(t,e.pageSize));const mP=Jt(Io,di,f0,ps,O4,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(a===-1||l===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex(p=>p.id===s.id);let d=c,f=0;for(;d<r.length&&f<=u;){var m;const p=r[d],h=(m=t[p.id])==null?void 0:m.depth;h===void 0?d+=1:((f<u||h>0)&&(d+=1),h===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),ofe=Jt(ps,mP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),nj=Jt(Hf,mP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),kp=e=>e.preferencePanel;var fu=function(e){return e.filters="filters",e.columns="columns",e}(fu||{});const $p=e=>e.rowsMeta,Po=e=>e.rowSelection,ife=tt(Po,e=>e.length),afe=Jt(Po,Ma,(e,t)=>new Map(e.map(n=>[n,t[n]]))),bv=Jt(Po,e=>e.reduce((t,n)=>(t[n]=n,t),{})),lfe=la(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),rj=(e,t)=>t&&e.length>1?(lfe(),[e[0]]):e,rR=(e,t)=>n=>O({},n,{sorting:O({},n.sorting,{sortModel:rj(e,t)})}),sfe=e=>e==="desc",ufe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=sfe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},cfe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),dfe=(e,t)=>{const n=e.map(r=>ufe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>cfe(n,o,i)).map(o=>o.node.id)},oR=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},hP=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,ffe=new Intl.Collator,pfe=(e,t)=>{const n=hP(e,t);return n!==null?n:typeof e=="string"?ffe.compare(e.toString(),t.toString()):e-t},oj=(e,t)=>{const n=hP(e,t);return n!==null?n:Number(e)-Number(t)},ij=(e,t)=>{const n=hP(e,t);return n!==null?n:e>t?1:e<t?-1:0},aj=e=>e.headerFiltering,mfe=tt(aj,e=>e.editing),hfe=tt(aj,e=>e.menuOpen),gfe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return O({},e,{virtualization:n})};function vfe(e,t){const n=i=>{e.current.setState(a=>O({},a,{virtualization:O({},a.virtualization,{enabled:i})}))};ot(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>O({},a,{virtualization:O({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const lj=e=>e.virtualization,yfe=tt(lj,e=>e.enabled),sj=tt(lj,e=>e.enabledForColumns),bfe=e=>{const{classes:t}=e;return Oe({icon:["filterIcon"]},ft,t)};function xfe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=dt(),l=He(),s=O({},e,{classes:l.classes}),u=bfe(s),c=Ne(a,kp),d=Tt(),f=Tt(),m=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:g}=kp(a.current.state);b&&g===fu.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,h=j.jsx(l.slots.baseIconButton,O({id:d,onClick:m,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:j.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return j.jsx(l.slots.baseTooltip,O({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:j.jsxs(q4,{children:[r>1&&j.jsx(G4,{badgeContent:r,color:"default",children:h}),r===1&&h]})}))}const wfe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Cfe=e=>{const{classes:t}=e;return Oe({root:["checkboxInput"]},ft,t)},Sfe=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=t,c=ue(t,wfe),d=dt(),f=He(),m={classes:f.classes},p=Cfe(m),h=v.useRef(null),y=v.useRef(null),b=xt(h,n),g=d.current.getCellElement(i,o),x=E=>{const S={value:E.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",S,E)};v.useLayoutEffect(()=>{u===0&&g&&(g.tabIndex=-1)},[g,u]),v.useEffect(()=>{if(s){var E;const S=(E=h.current)==null?void 0:E.querySelector("input");S==null||S.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[s]);const w=v.useCallback(E=>{B4(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=d.current.isRowSelecta
Line truncated
|
|
|
|
`))},sj=e=>e.pagination,Io=nt(sj,e=>e.paginationModel),dfe=nt(Io,e=>e.page),ffe=nt(Io,e=>e.pageSize);nt(Io,h0,(e,t)=>ij(t,e.pageSize));const gP=en(Io,di,m0,gs,L4,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(a===-1||l===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex(p=>p.id===s.id);let d=c,f=0;for(;d<r.length&&f<=u;){var m;const p=r[d],h=(m=t[p.id])==null?void 0:m.depth;h===void 0?d+=1:((f<u||h>0)&&(d+=1),h===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),pfe=en(gs,gP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),uj=en(Wf,gP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),$p=e=>e.preferencePanel;var mu=function(e){return e.filters="filters",e.columns="columns",e}(mu||{});const Ip=e=>e.rowsMeta,Po=e=>e.rowSelection,mfe=nt(Po,e=>e.length),hfe=en(Po,Ta,(e,t)=>new Map(e.map(n=>[n,t[n]]))),wv=en(Po,e=>e.reduce((t,n)=>(t[n]=n,t),{})),gfe=ua(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),cj=(e,t)=>t&&e.length>1?(gfe(),[e[0]]):e,l2=(e,t)=>n=>I({},n,{sorting:I({},n.sorting,{sortModel:cj(e,t)})}),vfe=e=>e==="desc",yfe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=vfe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},bfe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),xfe=(e,t)=>{const n=e.map(r=>yfe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>bfe(n,o,i)).map(o=>o.node.id)},s2=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},vP=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,wfe=new Intl.Collator,Cfe=(e,t)=>{const n=vP(e,t);return n!==null?n:typeof e=="string"?wfe.compare(e.toString(),t.toString()):e-t},dj=(e,t)=>{const n=vP(e,t);return n!==null?n:Number(e)-Number(t)},fj=(e,t)=>{const n=vP(e,t);return n!==null?n:e>t?1:e<t?-1:0},pj=e=>e.headerFiltering,Sfe=nt(pj,e=>e.editing),Efe=nt(pj,e=>e.menuOpen),Pfe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return I({},e,{virtualization:n})};function kfe(e,t){const n=i=>{e.current.setState(a=>I({},a,{virtualization:I({},a.virtualization,{enabled:i})}))};it(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>I({},a,{virtualization:I({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const mj=e=>e.virtualization,$fe=nt(mj,e=>e.enabled),hj=nt(mj,e=>e.enabledForColumns),Ife=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},ft,t)};function Ofe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=dt(),l=We(),s=I({},e,{classes:l.classes}),u=Ife(s),c=Ne(a,$p),d=_t(),f=_t(),m=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:g}=$p(a.current.state);b&&g===mu.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,h=N.jsx(l.slots.baseIconButton,I({id:d,onClick:m,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:N.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return N.jsx(l.slots.baseTooltip,I({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:N.jsxs(ej,{children:[r>1&&N.jsx(J4,{badgeContent:r,color:"default",children:h}),r===1&&h]})}))}const Mfe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Rfe=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},ft,t)},Tfe=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=t,c=ue(t,Mfe),d=dt(),f=We(),m={classes:f.classes},p=Rfe(m),h=v.useRef(null),y=v.useRef(null),b=vt(h,n),g=d.current.getCellElement(i,o),x=E=>{const S={value:E.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",S,E)};v.useLayoutEffect(()=>{u===0&&g&&(g.tabIndex=-1)},[g,u]),v.useEffect(()=>{if(s){var E;const S=(E=h.current)==null?void 0:E.querySelector("input");S==null||S.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[s]);const w=v.useCallback(E=>{K4(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=d.current.isRowSelecta
Line truncated
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -304,7 +304,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
100% {
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),lve=cs(IR||(IR=S0`
|
|
|
|
`)),gve=ps(T2||(T2=P0`
|
|
|
|
0% {
|
|
|
|
0% {
|
|
|
|
stroke-dasharray: 1px, 200px;
|
|
|
|
stroke-dasharray: 1px, 200px;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
@@ -319,12 +319,12 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
|
|
|
stroke-dasharray: 100px, 200px;
|
|
|
|
stroke-dasharray: 100px, 200px;
|
|
|
|
stroke-dashoffset: -125px;
|
|
|
|
stroke-dashoffset: -125px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`)),sve=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],circle:["circle",`circle${pe(n)}`,o&&"circleDisableShrink"]};return Oe(i,ove,t)},uve=fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(({ownerState:e,theme:t})=>O({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Kc(OR||(OR=S0`
|
|
|
|
`)),vve=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],circle:["circle",`circle${pe(n)}`,o&&"circleDisableShrink"]};return Ie(i,pve,t)},yve=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Xc(_2||(_2=P0`
|
|
|
|
animation: ${0} 1.4s linear infinite;
|
|
|
|
animation: ${0} 1.4s linear infinite;
|
|
|
|
`),ave)),cve=fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),dve=fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>O({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Kc(MR||(MR=S0`
|
|
|
|
`),hve)),bve=de("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),xve=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Xc(F2||(F2=P0`
|
|
|
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
|
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
|
|
`),lve)),fve=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=ue(r,ive),m=O({},r,{color:i,disableShrink:a,size:l,thickness:u,value:c,variant:d}),p=sve(m),h={},y={},b={};if(d==="determinate"){const g=2*Math.PI*((ml-u)/2);h.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return j.jsx(uve,O({className:ve(p.root,o),style:O({width:l,height:l},y,s),ownerState:m,ref:n,role:"progressbar"},b,f,{children:j.jsx(cve,{className:p.svg,ownerState:m,viewBox:`${ml/2} ${ml/2} ${ml} ${ml}`,children:j.jsx(dve,{className:p.circle,style:h,ownerState:m,cx:ml,cy:ml,r:(ml-u)/2,fill:"none",strokeWidth:u})})}))}),SP=fve,pve=v.forwardRef(function(t,n){return j.jsx(fP,O({ref:n},t,{children:j.jsx(SP,{})}))}),mve=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noRowsLabel");return j.jsx(fP,O({ref:n},t,{children:o}))}),hve=v.createContext(),gve=hve,vve=v.createContext(),yve=vve;function bve(e){return Ve("MuiTableCell",e)}const xve=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wve=xve,Cve=["align","className","component","padding","scope","size","sortDirection","variant"],Sve=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,o!=="normal"&&`padding${pe(o)}`,`size${pe(i)}`]};return Oe(l,bve,t)},Eve=fe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
|
|
`),gve)),wve=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=ue(r,mve),m=I({},r,{color:i,disableShrink:a,size:l,thickness:u,value:c,variant:d}),p=vve(m),h={},y={},b={};if(d==="determinate"){const g=2*Math.PI*((gl-u)/2);h.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return N.jsx(yve,I({className:he(p.root,o),style:I({width:l,height:l},y,s),ownerState:m,ref:n,role:"progressbar"},b,f,{children:N.jsx(bve,{className:p.svg,ownerState:m,viewBox:`${gl/2} ${gl/2} ${gl} ${gl}`,children:N.jsx(xve,{className:p.circle,style:h,ownerState:m,cx:gl,cy:gl,r:(gl-u)/2,fill:"none",strokeWidth:u})})}))}),PP=wve,Cve=v.forwardRef(function(t,n){return N.jsx(mP,I({ref:n},t,{children:N.jsx(PP,{})}))}),Sve=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noRowsLabel");return N.jsx(mP,I({ref:n},t,{children:o}))}),Eve=v.createContext(),Pve=Eve,kve=v.createContext(),$ve=kve;function Ive(e){return Be("MuiTableCell",e)}const Ove=He("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Mve=Ove,Rve=["align","className","component","padding","scope","size","sortDirection","variant"],Tve=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,o!=="normal"&&`padding${pe(o)}`,`size${pe(i)}`]};return Ie(l,Ive,t)},_ve=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
|
|
${e.palette.mode==="light"?$E(lt(e.palette.divider,1),.88):kE(lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${wve.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Pve=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,f=ue(r,Cve),m=v.useContext(gve),p=v.useContext(yve),h=p&&p.variant==="head";let y;a?y=a:y=h?"th":"td";let b=s;y==="td"?b=void 0:!b&&h&&(b="col");const g=d||p&&p.variant,x=O({},r,{align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:g==="head"&&m&&m.stickyHeader,variant:g}),w=Sve(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),j.jsx(Eve,O({as:y,ref:n,className:ve(w.root,i),"aria-sort":P,scope:b,ownerState:x},f))}),Ww=Pve,kve=rt(j.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),$ve=rt(j.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Ive=rt(j.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Ove=rt(j.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Mve=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Rve=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c;const{backIconButtonProps:d,count:f,disabled:m=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:g,showFirstButton:x,showLastButton:w,slots:P={},slotProps:C={}}=t,E=ue(t,Mve),S=Yy(),M=J=>{y(J,0)},I=J=>{y(J,b-1)},R=J=>{y(J,b+1)},_=J=>{y(J,Math.max(0,Math.ceil(f/g)-1))},D=(r=P.firstButton)!=null?r:Dn,T=(o=P.lastButton)!=null?o:Dn,F=(i=P.nextButton)!=null?i:Dn,N=(a=P.previousButton)!=null?a:Dn,$=(l=P.firstButtonIcon)!=null?l:Ove,L=(s=P.lastButtonIcon)!=null?s:Ive,z=(u=P.nextButtonIcon)!=null?u:$ve,B=(c=P.previousButtonIcon)!=null?c:kve,A=S?T:D,H=S?F:N,q=S?N:F,U=S?D:T,G=S?C.lastButton:C.firstButton,Y=S?C.nextButton:C.previousButton,re=S?C.previousButton:C.nextButton,le=S?C.firstButton:C.lastButton;return j.jsxs("div",O({ref:n},E,{children:[x&&j.jsx(A,O({onClick:M,disabled:m||b===0,"aria-label":p("first",b),title:p("first",b)},G,{children:S?j.jsx(L,O({},C.lastButtonIcon)):j.jsx($,O({},C.firstButtonIcon))})),j.jsx(H,O({onClick:I,disabled:m||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},Y??d,{children:S?j.jsx(z,O({},C.nextButtonIcon)):j.jsx(B,O({},C.previousButtonIcon))})),j.jsx(q,O({onClick:R,disabled:m||(f!==-1?b>=Math.ceil(f/g)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},re??h,{children:S?j.jsx(B,O({},C.previousButtonIcon)):j.jsx(z,O({},C.nextButtonIcon))})),w&&j.jsx(U,O({onClick:_,disabled:m||b>=Math.ceil(f/g)-1,"aria-label":p("last",b),title:p("last",b)},le,{children:S?j.jsx($,O({},C.firstButtonIcon)):j.jsx(L,O({},C.lastButtonIcon))}))]}))}),Tve=Rve;function _ve(e){return Ve("MuiTablePagination",e)}const Fve=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ks=Fve;var RR;const Ave=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Lve=fe(Ww,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Dve=fe(lm,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>O({[`& .${Ks.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ks.actions}`]:{flexShrink:0,marginLeft:20}})),Nve=fe("div",{name:"MuiTablePagination",slot:"Spac
Line truncated
|
|
|
|
${e.palette.mode==="light"?OE(rt(e.palette.divider,1),.88):IE(rt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Mve.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Fve=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,f=ue(r,Rve),m=v.useContext(Pve),p=v.useContext($ve),h=p&&p.variant==="head";let y;a?y=a:y=h?"th":"td";let b=s;y==="td"?b=void 0:!b&&h&&(b="col");const g=d||p&&p.variant,x=I({},r,{align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:g==="head"&&m&&m.stickyHeader,variant:g}),w=Tve(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),N.jsx(_ve,I({as:y,ref:n,className:he(w.root,i),"aria-sort":P,scope:b,ownerState:x},f))}),qw=Fve,Ave=tt(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Lve=tt(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Dve=tt(N.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Nve=tt(N.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),jve=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],zve=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c;const{backIconButtonProps:d,count:f,disabled:m=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:g,showFirstButton:x,showLastButton:w,slots:P={},slotProps:C={}}=t,E=ue(t,jve),S=Zy(),M=J=>{y(J,0)},O=J=>{y(J,b-1)},R=J=>{y(J,b+1)},_=J=>{y(J,Math.max(0,Math.ceil(f/g)-1))},D=(r=P.firstButton)!=null?r:Nn,T=(o=P.lastButton)!=null?o:Nn,F=(i=P.nextButton)!=null?i:Nn,j=(a=P.previousButton)!=null?a:Nn,$=(l=P.firstButtonIcon)!=null?l:Nve,L=(s=P.lastButtonIcon)!=null?s:Dve,z=(u=P.nextButtonIcon)!=null?u:Lve,B=(c=P.previousButtonIcon)!=null?c:Ave,A=S?T:D,H=S?F:j,q=S?j:F,U=S?D:T,G=S?C.lastButton:C.firstButton,Y=S?C.nextButton:C.previousButton,re=S?C.previousButton:C.nextButton,le=S?C.firstButton:C.lastButton;return N.jsxs("div",I({ref:n},E,{children:[x&&N.jsx(A,I({onClick:M,disabled:m||b===0,"aria-label":p("first",b),title:p("first",b)},G,{children:S?N.jsx(L,I({},C.lastButtonIcon)):N.jsx($,I({},C.firstButtonIcon))})),N.jsx(H,I({onClick:O,disabled:m||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},Y??d,{children:S?N.jsx(z,I({},C.nextButtonIcon)):N.jsx(B,I({},C.previousButtonIcon))})),N.jsx(q,I({onClick:R,disabled:m||(f!==-1?b>=Math.ceil(f/g)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},re??h,{children:S?N.jsx(B,I({},C.previousButtonIcon)):N.jsx(z,I({},C.nextButtonIcon))})),w&&N.jsx(U,I({onClick:_,disabled:m||b>=Math.ceil(f/g)-1,"aria-label":p("last",b),title:p("last",b)},le,{children:S?N.jsx($,I({},C.firstButtonIcon)):N.jsx(L,I({},C.lastButtonIcon))}))]}))}),Bve=zve;function Hve(e){return Be("MuiTablePagination",e)}const Vve=He("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Xs=Vve;var A2;const Uve=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Wve=de(qw,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Gve=de(sm,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>I({[`& .${Xs.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Xs.actions}`]:{flexShrink:0,marginLeft:20}})),qve=de("div",{name:"MuiTablePagination",slot:"Spac
Line truncated
|
|
|
|
${o.map((l,s)=>`const shouldApply${s} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
|
|
|
|
${o.map((l,s)=>`const shouldApply${s} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
|
|
|
|
`)}
|
|
|
|
`)}
|
|
|
|
|
|
|
|
|
|
|
@@ -335,67 +335,67 @@ ${o.map((l,s)=>` ${JSON.stringify(String(l.item.id))}: !shouldApply${s}
|
|
|
|
`)}
|
|
|
|
`)}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return result$$;`.replaceAll("$$",String(_R)));return _R+=1,(l,s)=>i(t.current.getRowId,o,l,s)},aye=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?u0(t):La(t),s=[],{ignoreDiacritics:u}=t.current.rootProps,c=Mj(t);return l.forEach(d=>{const f=t.current.getColumn(d),m=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,h=!wv(m),y=!wv(p);p&&!(h&&!y)?s.push({column:f,appliers:i.map(b=>{const g=u?Al(b):b;return{v7:!0,fn:p(g,f,c)}})}):m&&s.push({column:f,appliers:i.map(b=>{const g=u?Al(b):b;return{v7:!1,fn:m(g,f,c)}})})}),function(f,m){const p={},h={};e:for(let b=0;b<i.length;b+=1){const g=i[b];for(let x=0;x<s.length;x+=1){const{column:w,appliers:P}=s[x],{field:C}=w;if(m&&!m(C))continue;const E=P[b];let S=t.current.getRowValue(f,w);if(E.fn!==null)if(E.v7){if(u&&(S=Al(S)),E.fn(S,f,w,c)){p[g]=!0;continue e}}else{var y;const M=(y=h[C])!=null?y:t.current.getCellParams(t.current.getRowId(f),C);if(u&&(M.value=Al(M.value)),h[C]=M,E.fn(M)){p[g]=!0;continue e}}}p[g]=!1}return p}},lye=(e,t,n)=>{const r=iye(e,t,n),o=aye(e,t);return function(a,l,s){var u,c;s.passingFilterItems=(u=r==null?void 0:r(a,l))!=null?u:null,s.passingQuickFilterValues=(c=o==null?void 0:o(a,l))!=null?c:null}},FR=e=>e!=null,sye=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Tj(r,t)!==null)),e.cleanedFilterItems),uye=(e,t,n,r,o)=>{const i=sye(o,r,n.items),a=e.filter(FR),l=t.filter(FR);if(a.length>0){var s;const c=f=>a.some(m=>m[f.id]);if(((s=n.logicOperator)!=null?s:Pp().logicOperator)===er.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const c=f=>l.some(m=>m[f]);if(((u=n.quickFilterLogicOperator)!=null?u:Pp().quickFilterLogicOperator)===er.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},AR=dm(e=>{if(!e)return null;const t=new RegExp(ug(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Al(a)),a!=null?t.test(a.toString()):!1}}),cye=(e=!1)=>fm([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(ug(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Di},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Di},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${ug(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${ug(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Di},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:gj}]),vi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:pfe,type:"string",align:"left",filterOperators:cye(),renderEditCell:sce,getApplyQuickFilterFn:Oj(AR),getApplyQuickFilterFnV7:AR},dye=()=>fm([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:$me}]);function fye({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const pye=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},_j=O({},vi,{type:"boolean",align:"center",headerAlign:"center",renderCell:_ue,renderEditCell:Due,sortComparator:oj,valueFormatter:fye,filterOperators:dye(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>pye(e)}),yl="__check__",Pd=O({},_j,{field:yl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>bv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>j.jsx($fe,O({},e)),renderCell:e=>j.jsx(Efe,O({},e))}),E0="actions",mye=O({},vi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Oce,getApplyQuickFilterFn:void 0,getApplyQ
Line truncated
|
|
|
|
return result$$;`.replaceAll("$$",String(D2)));return D2+=1,(l,s)=>i(t.current.getRowId,o,l,s)},hye=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?d0(t):Na(t),s=[],{ignoreDiacritics:u}=t.current.rootProps,c=Dj(t);return l.forEach(d=>{const f=t.current.getColumn(d),m=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,h=!Sv(m),y=!Sv(p);p&&!(h&&!y)?s.push({column:f,appliers:i.map(b=>{const g=u?Dl(b):b;return{v7:!0,fn:p(g,f,c)}})}):m&&s.push({column:f,appliers:i.map(b=>{const g=u?Dl(b):b;return{v7:!1,fn:m(g,f,c)}})})}),function(f,m){const p={},h={};e:for(let b=0;b<i.length;b+=1){const g=i[b];for(let x=0;x<s.length;x+=1){const{column:w,appliers:P}=s[x],{field:C}=w;if(m&&!m(C))continue;const E=P[b];let S=t.current.getRowValue(f,w);if(E.fn!==null)if(E.v7){if(u&&(S=Dl(S)),E.fn(S,f,w,c)){p[g]=!0;continue e}}else{var y;const M=(y=h[C])!=null?y:t.current.getCellParams(t.current.getRowId(f),C);if(u&&(M.value=Dl(M.value)),h[C]=M,E.fn(M)){p[g]=!0;continue e}}}p[g]=!1}return p}},gye=(e,t,n)=>{const r=mye(e,t,n),o=hye(e,t);return function(a,l,s){var u,c;s.passingFilterItems=(u=r==null?void 0:r(a,l))!=null?u:null,s.passingQuickFilterValues=(c=o==null?void 0:o(a,l))!=null?c:null}},N2=e=>e!=null,vye=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>jj(r,t)!==null)),e.cleanedFilterItems),yye=(e,t,n,r,o)=>{const i=vye(o,r,n.items),a=e.filter(N2),l=t.filter(N2);if(a.length>0){var s;const c=f=>a.some(m=>m[f.id]);if(((s=n.logicOperator)!=null?s:kp().logicOperator)===er.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const c=f=>l.some(m=>m[f]);if(((u=n.quickFilterLogicOperator)!=null?u:kp().quickFilterLogicOperator)===er.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},j2=fm(e=>{if(!e)return null;const t=new RegExp(cg(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Dl(a)),a!=null?t.test(a.toString()):!1}}),bye=(e=!1)=>pm([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(cg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ni},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ni},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${cg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ni},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${cg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ni},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Sj}]),yi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Cfe,type:"string",align:"left",filterOperators:bye(),renderEditCell:vce,getApplyQuickFilterFn:Lj(j2),getApplyQuickFilterFnV7:j2},xye=()=>pm([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Lme}]);function wye({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Cye=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},zj=I({},yi,{type:"boolean",align:"center",headerAlign:"center",renderCell:Hue,renderEditCell:Gue,sortComparator:dj,valueFormatter:wye,filterOperators:xye(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Cye(e)}),xl="__check__",Id=I({},zj,{field:xl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>wv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>N.jsx(Lfe,I({},e)),renderCell:e=>N.jsx(_fe,I({},e))}),k0="actions",Sye=I({},yi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Nce,getApplyQuickFilterFn:void 0,getApplyQ
Line truncated
|
|
|
|
`))}function Lye({value:e,field:t,id:n}){return e?(Lj({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Dye({value:e,field:t,id:n}){return e?(Lj({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const Nye=O({},vi,{type:"date",sortComparator:ij,valueFormatter:Lye,filterOperators:Aj(),renderEditCell:j4,pastedValueParser:e=>new Date(e)}),jye=O({},vi,{type:"dateTime",sortComparator:ij,valueFormatter:Dye,filterOperators:Aj(!0),renderEditCell:j4,pastedValueParser:e=>new Date(e)}),El=e=>e==null?null:Number(e),zR=dm(e=>e==null||Number.isNaN(e)||e===""?null:t=>El(t)===El(e)),zye=()=>fm([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>El(t)===e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>El(t)!==e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)>e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)>=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)<e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:El(t)<=e.value,InputComponent:Di,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:gj,InputComponentProps:{type:"number"}}]),Bye=O({},vi,{type:"number",align:"right",headerAlign:"right",sortComparator:oj,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Kde(e)?e.toLocaleString():e||"",filterOperators:zye(),getApplyQuickFilterFn:Oj(zR),getApplyQuickFilterFnV7:zR}),Nu=e=>e==null||!pP(e)?e:e.value,Hye=()=>fm([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Nu(t)===Nu(e.value),InputComponent:mR},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Nu(t)!==Nu(e.value),InputComponent:mR},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Nu);return n=>t.includes(Nu(n))},InputComponent:ghe}]),Vye=e=>typeof e[0]=="object",Uye=e=>pP(e)?e.value:e,Wye=e=>pP(e)?e.label:String(e),Gye=O({},vi,{type:"singleSelect",getOptionLabel:Wye,getOptionValue:Uye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Gs(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!Vye(a))return i.getOptionLabel(r);const l=a.find(s=>i.getOptionValue(s)===r);return l?i.getOptionLabel(l):""},renderEditCell:bce,filterOperators:Hye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Dj="__default__",qye=()=>({string:vi,number:Bye,date:Nye,dateTime:jye,boolean:_j,singleSelect:Gye,[E0]:mye,[Dj]:vi});function Kw(e,t){return typeof e=="string"&&[t,`
|
|
|
|
`))}function Wye({value:e,field:t,id:n}){return e?(Vj({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Gye({value:e,field:t,id:n}){return e?(Vj({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const qye=I({},yi,{type:"date",sortComparator:fj,valueFormatter:Wye,filterOperators:Hj(),renderEditCell:G4,pastedValueParser:e=>new Date(e)}),Kye=I({},yi,{type:"dateTime",sortComparator:fj,valueFormatter:Gye,filterOperators:Hj(!0),renderEditCell:G4,pastedValueParser:e=>new Date(e)}),kl=e=>e==null?null:Number(e),U2=fm(e=>e==null||Number.isNaN(e)||e===""?null:t=>kl(t)===kl(e)),Qye=()=>pm([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>kl(t)===e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>kl(t)!==e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)>e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)>=e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)<e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)<=e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Sj,InputComponentProps:{type:"number"}}]),Yye=I({},yi,{type:"number",align:"right",headerAlign:"right",sortComparator:dj,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>rfe(e)?e.toLocaleString():e||"",filterOperators:Qye(),getApplyQuickFilterFn:Lj(U2),getApplyQuickFilterFnV7:U2}),zu=e=>e==null||!hP(e)?e:e.value,Xye=()=>pm([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>zu(t)===zu(e.value),InputComponent:y2},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>zu(t)!==zu(e.value),InputComponent:y2},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(zu);return n=>t.includes(zu(n))},InputComponent:Phe}]),Zye=e=>typeof e[0]=="object",Jye=e=>hP(e)?e.value:e,e0e=e=>hP(e)?e.label:String(e),t0e=I({},yi,{type:"singleSelect",getOptionLabel:e0e,getOptionValue:Jye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Qs(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!Zye(a))return i.getOptionLabel(r);const l=a.find(s=>i.getOptionValue(s)===r);return l?i.getOptionLabel(l):""},renderEditCell:Ice,filterOperators:Xye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Uj="__default__",n0e=()=>({string:yi,number:Yye,date:qye,dateTime:Kye,boolean:zj,singleSelect:t0e,[k0]:Sye,[Uj]:yi});function Yw(e,t){return typeof e=="string"&&[t,`
|
|
|
|
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const Nj=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Kw(o,n)};la(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Qw{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const Kye=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Qw({delimiterCharacter:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(Nj(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function Qye(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:l}=e,s=n.reduce((m,p)=>`${m}${Kye({id:p,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r
|
|
|
|
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const Wj=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Yw(o,n)};ua(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Xw{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const r0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Xw({delimiterCharacter:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(Wj(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function o0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:l}=e,s=n.reduce((m,p)=>`${m}${r0e({id:p,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r
|
|
|
|
`,"").trim();if(!o)return s;const u=t.filter(m=>m.field!==Pd.field),c=[];if(i){const m=l.current.unstable_getAllGroupDetails();let p=0;const h=u.reduce((y,b)=>{const g=l.current.unstable_getColumnGroupPath(b.field);return y[b.field]=g,p=Math.max(p,g.length),y},{});for(let y=0;y<p;y+=1){const b=new Qw({delimiterCharacter:r,sanitizeCellValue:Kw});c.push(b),u.forEach(g=>{const x=(h[g.field]||[])[y],w=m[x];b.addValue(w?w.headerName||w.groupId:"")})}}const d=new Qw({delimiterCharacter:r,sanitizeCellValue:Kw});return u.forEach(m=>{d.addValue(m.headerName||m.field)}),c.push(d),`${`${c.map(m=>m.getRowString()).join(`\r
|
|
|
|
`,"").trim();if(!o)return s;const u=t.filter(m=>m.field!==Id.field),c=[];if(i){const m=l.current.unstable_getAllGroupDetails();let p=0;const h=u.reduce((y,b)=>{const g=l.current.unstable_getColumnGroupPath(b.field);return y[b.field]=g,p=Math.max(p,g.length),y},{});for(let y=0;y<p;y+=1){const b=new Xw({delimiterCharacter:r,sanitizeCellValue:Yw});c.push(b),u.forEach(g=>{const x=(h[g.field]||[])[y],w=m[x];b.addValue(w?w.headerName||w.groupId:"")})}}const d=new Xw({delimiterCharacter:r,sanitizeCellValue:Yw});return u.forEach(m=>{d.addValue(m.headerName||m.field)}),c.push(d),`${`${c.map(m=>m.getRowString()).join(`\r
|
|
|
|
`)}\r
|
|
|
|
`)}\r
|
|
|
|
`}${s}`.trim()}function BR(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Yye(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{BR(e)}):BR(e)}function Xye(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Zye=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||Xye(a.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=to(e);if(u){const c=e.current.getCellParams(u.id,u.field);l=Nj(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(Yye(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Zde(e,e.current.rootElementRef,"keydown",i),Kt(e,"clipboardCopy",t.onClipboardCopy)},Jye=e=>O({},e,{columnMenu:{open:!1}}),e0e=e=>{const t=gr(e,"useGridColumnMenu"),n=v.useCallback(a=>{e.current.setState(s=>s.columnMenu.open&&s.columnMenu.field===a?s:(t.debug("Opening Column Menu"),O({},s,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=Hw(e.current.state);if(a.field){const s=wd(e),u=mi(e),c=La(e);let d=a.field;if(s[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),m=f.indexOf(d);d=f[m+1]||f[m-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(s=>!s.columnMenu.open&&s.columnMenu.field===void 0?s:(t.debug("Hiding Column Menu"),O({},s,{columnMenu:O({},s.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const l=Hw(e.current.state);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);ot(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Ge(e,"columnResizeStart",r),Ge(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ge(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},jj=["maxWidth","minWidth","width","flex"];function t0e({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,u=0;o.frozenFields.forEach(c=>{l-=o.all[c].computedWidth,s-=o.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let m=l/s*d.flex;m<d.minWidth?(u+=d.minWidth-m,m=d.minWidth,a.min[d.field]=!0):m>d.maxWidth&&(u+=d.maxWidth-m,m=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Yw=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{const s=O({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)s.computedWidth=0;else{let u;s.flex&&s.flex>0?(r+=s.flex,u=0,i.push(s)):u=nd(s.width||vi.width,s.minWidth||vi.minWidth,s.maxWidth||vi.maxWidth),o+=u,s.computedWidth=u}n[l]=s});const a=Math.max(t-o,0);if(r>0&&t>0){const l=t0e({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(s=>{n[s].computedWidth=l[s].computedWidth})}return O({},e,{lookup:n})},n0e=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(i[d]=!0,a.push(d))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(c=>!i[c])],s=O({},e.lookup);for(let c=0;c<o.length;c+=1){const d=o[c],f=O({},s[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([m,p])=>{f[m]=p===-1?1/0:p}),s[d]=f}return O({},e,{orderedFields:l,lookup:s})};function HR(e,t){let n=e[Dj];return t&&e[t]&&(n=e[t]),n}const Xu=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=mi(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,l,s;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const p=Ws(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:O({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,h)=>O({},p,{[h]:!1}),{})),t.forEach(p=>{const{field:h}=p;d[h]=!0;let y=c.lookup[h];y==null?(y=O({},HR(r,p.type),{field:h,hasBeenResized:!1}),c.orderedFields.push(h)):i&&c.orderedFields.push(h),y&&y.type!==p.type&&(y=O({},HR(r,p.type),{field:h}));let b=y.hasBeenResized;jj.forEach(g=>{p[g]!==vLine truncated
|
|
|
|
`}${s}`.trim()}function W2(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function i0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{W2(e)}):W2(e)}function a0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const l0e=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||a0e(a.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=to(e);if(u){const c=e.current.getCellParams(u.id,u.field);l=Wj(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(i0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);lfe(e,e.current.rootElementRef,"keydown",i),Qt(e,"clipboardCopy",t.onClipboardCopy)},s0e=e=>I({},e,{columnMenu:{open:!1}}),u0e=e=>{const t=vr(e,"useGridColumnMenu"),n=v.useCallback(a=>{e.current.setState(s=>s.columnMenu.open&&s.columnMenu.field===a?s:(t.debug("Opening Column Menu"),I({},s,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=Uw(e.current.state);if(a.field){const s=Ed(e),u=mi(e),c=Na(e);let d=a.field;if(s[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),m=f.indexOf(d);d=f[m+1]||f[m-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(s=>!s.columnMenu.open&&s.columnMenu.field===void 0?s:(t.debug("Hiding Column Menu"),I({},s,{columnMenu:I({},s.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const l=Uw(e.current.state);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);it(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),qe(e,"columnResizeStart",r),qe(e,"virtualScrollerWheel",e.current.hideColumnMenu),qe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Gj=["maxWidth","minWidth","width","flex"];function c0e({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,u=0;o.frozenFields.forEach(c=>{l-=o.all[c].computedWidth,s-=o.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let m=l/s*d.flex;m<d.minWidth?(u+=d.minWidth-m,m=d.minWidth,a.min[d.field]=!0):m>d.maxWidth&&(u+=d.maxWidth-m,m=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Zw=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{const s=I({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)s.computedWidth=0;else{let u;s.flex&&s.flex>0?(r+=s.flex,u=0,i.push(s)):u=id(s.width||yi.width,s.minWidth||yi.minWidth,s.maxWidth||yi.maxWidth),o+=u,s.computedWidth=u}n[l]=s});const a=Math.max(t-o,0);if(r>0&&t>0){const l=c0e({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(s=>{n[s].computedWidth=l[s].computedWidth})}return I({},e,{lookup:n})},d0e=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(i[d]=!0,a.push(d))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(c=>!i[c])],s=I({},e.lookup);for(let c=0;c<o.length;c+=1){const d=o[c],f=I({},s[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([m,p])=>{f[m]=p===-1?1/0:p}),s[d]=f}return I({},e,{orderedFields:l,lookup:s})};function G2(e,t){let n=e[Uj];return t&&e[t]&&(n=e[t]),n}const ec=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=mi(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,l,s;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const p=Ks(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:I({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,h)=>I({},p,{[h]:!1}),{})),t.forEach(p=>{const{field:h}=p;d[h]=!0;let y=c.lookup[h];y==null?(y=I({},G2(r,p.type),{field:h,hasBeenResized:!1}),c.orderedFields.push(h)):i&&c.orderedFields.push(h),y&&y.type!==p.type&&(y=I({},G2(r,p.type),{field:h}));let b=y.hasBeenResized;Gj.forEach(g=>{p[g]!==vLine truncated
|
|
|
|
`);q.appendChild(x.createTextNode(G)),x.head.appendChild(q)}}else if(H.getAttribute("href")){const q=x.createElement(H.tagName);for(let U=0;U<H.attributes.length;U+=1){const G=H.attributes[U];G&&q.setAttribute(G.nodeName,G.nodeValue||"")}$.push(new Promise(U=>{q.addEventListener("load",()=>U())})),x.head.appendChild(q)}}}Promise.all($).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var h;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(h=o.current)!=null&&(h=h.columns)!=null&&h.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=mi(e);const h=Ma(e);if(a.current=gf(e).map(b=>h[b]),t.pagination){const b=M4(e),g={page:0,pageSize:b};e.current.updateControlState("pagination",cg(b,"DataGridPro",g)),e.current.forceUpdate()}await l(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&s(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await h0e();const y=g0e(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,l,s])};ot(e,f,"public");const m=v.useCallback((p,h)=>{var y;return(y=h.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:j.jsx(xhe,{options:h.printOptions}),componentName:"printExport"}]},[]);Nn(e,"exportMenu",m)},y0e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:Pp();return O({},e,{filter:{filterModel:Rj(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},b0e=e=>e.filteredRowsLookup;function UR(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function x0e(){return s0(Object.values)}const w0e=(e,t)=>{var n,r;const o=gr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Xn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(I=>{const R=Xn(I,e.current.instanceId),_=t.filterMode==="client"?lye(R,e,t.disableEval):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:_,filterModel:R??Pp()}),T=O({},I,{filter:O({},I.filter,D)}),F=UR(e,T);return O({},T,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((I,R)=>R==null||R.filterable===!1||t.disableColumnFilter?I:[...I,"columnMenuFilterItem"],[t.disableColumnFilter]),l=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),s=v.useCallback(I=>{const R=Xn(e),_=[...R.items],D=_.findIndex(T=>T.id===I.id);D===-1?_.push(I):_[D]=I,e.current.setFilterModel(O({},R,{items:_}),"upsertFilterItem")},[e]),u=v.useCallback(I=>{const R=Xn(e),_=[...R.items];I.forEach(D=>{const T=I.findIndex(F=>F.id===D.id);T===-1?_.push(D):_[T]=D}),e.current.setFilterModel(O({},R,{items:I}),"upsertFilterItems")},[e]),c=v.useCallback(I=>{const R=Xn(e),_=R.items.filter(D=>D.id!==I.id);_.length!==R.items.length&&e.current.setFilterModel(O({},R,{items:_}),"deleteFilterItem")},[e]),d=v.useCallback((I,R,_)=>{if(o.debug("Displaying filter panel"),I){const D=Xn(e),T=D.items.filter(L=>{var z;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const A=(z=e.current.getColumn(L.field).filterOperators)==null?void 0:z.find(q=>q.value===L.operator);return!(typeof(A==null?void 0:A.requiresFilterValue)>"u"?!0:A==null?void 0:A.requiresFilterValue)});let F;const N=T.find(L=>L.field===I),$=e.current.getColumn(I);N?F=T:t.disableMultipleColumnsFiltering?F=[qw({field:I,operator:$.filterOperators[0].value},e)]:F=[...T,qw({field:I,operator:$.filterOperators[0].value},e)],e.current.setFilterModel(O({},D,{items:F}))}e.current.showPreferences(fu.filters,R,_)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),m=v.useCallback(I=>{const R=Xn(e);R.logicOperator!==I&&e.current.setFilterModel(O({},R,{logicOperator:I}),"changeLogicOperator")},[e]),p=v.useCallback(I=>{const R=Xn(e);qs(R.quickFilterValues,I)||e.current.setFilterModel(O({},R,{quickFilterValues:[...I]}))},[e]),h=v.useCallback((I,R)=>{Xn(e)!==I&&(o.debug("Setting filter model"),e.current.updateControlState("filter",TR(I,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:m,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:s,upsertFilt
Line truncated
|
|
|
|
`);q.appendChild(x.createTextNode(G)),x.head.appendChild(q)}}else if(H.getAttribute("href")){const q=x.createElement(H.tagName);for(let U=0;U<H.attributes.length;U+=1){const G=H.attributes[U];G&&q.setAttribute(G.nodeName,G.nodeValue||"")}$.push(new Promise(U=>{q.addEventListener("load",()=>U())})),x.head.appendChild(q)}}}Promise.all($).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var h;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(h=o.current)!=null&&(h=h.columns)!=null&&h.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=mi(e);const h=Ta(e);if(a.current=yf(e).map(b=>h[b]),t.pagination){const b=D4(e),g={page:0,pageSize:b};e.current.updateControlState("pagination",dg(b,"DataGridPro",g)),e.current.forceUpdate()}await l(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&s(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await E0e();const y=P0e(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,l,s])};it(e,f,"public");const m=v.useCallback((p,h)=>{var y;return(y=h.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:N.jsx(Ohe,{options:h.printOptions}),componentName:"printExport"}]},[]);jn(e,"exportMenu",m)},$0e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:kp();return I({},e,{filter:{filterModel:Nj(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},I0e=e=>e.filteredRowsLookup;function K2(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function O0e(){return c0(Object.values)}const M0e=(e,t)=>{var n,r;const o=vr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Xn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(O=>{const R=Xn(O,e.current.instanceId),_=t.filterMode==="client"?gye(R,e,t.disableEval):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:_,filterModel:R??kp()}),T=I({},O,{filter:I({},O.filter,D)}),F=K2(e,T);return I({},T,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((O,R)=>R==null||R.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),l=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),s=v.useCallback(O=>{const R=Xn(e),_=[...R.items],D=_.findIndex(T=>T.id===O.id);D===-1?_.push(O):_[D]=O,e.current.setFilterModel(I({},R,{items:_}),"upsertFilterItem")},[e]),u=v.useCallback(O=>{const R=Xn(e),_=[...R.items];O.forEach(D=>{const T=O.findIndex(F=>F.id===D.id);T===-1?_.push(D):_[T]=D}),e.current.setFilterModel(I({},R,{items:O}),"upsertFilterItems")},[e]),c=v.useCallback(O=>{const R=Xn(e),_=R.items.filter(D=>D.id!==O.id);_.length!==R.items.length&&e.current.setFilterModel(I({},R,{items:_}),"deleteFilterItem")},[e]),d=v.useCallback((O,R,_)=>{if(o.debug("Displaying filter panel"),O){const D=Xn(e),T=D.items.filter(L=>{var z;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const A=(z=e.current.getColumn(L.field).filterOperators)==null?void 0:z.find(q=>q.value===L.operator);return!(typeof(A==null?void 0:A.requiresFilterValue)>"u"?!0:A==null?void 0:A.requiresFilterValue)});let F;const j=T.find(L=>L.field===O),$=e.current.getColumn(O);j?F=T:t.disableMultipleColumnsFiltering?F=[Qw({field:O,operator:$.filterOperators[0].value},e)]:F=[...T,Qw({field:O,operator:$.filterOperators[0].value},e)],e.current.setFilterModel(I({},D,{items:F}))}e.current.showPreferences(mu.filters,R,_)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),m=v.useCallback(O=>{const R=Xn(e);R.logicOperator!==O&&e.current.setFilterModel(I({},R,{logicOperator:O}),"changeLogicOperator")},[e]),p=v.useCallback(O=>{const R=Xn(e);Ys(R.quickFilterValues,O)||e.current.setFilterModel(I({},R,{quickFilterValues:[...O]}))},[e]),h=v.useCallback((O,R)=>{Xn(e)!==O&&(o.debug("Setting filter model"),e.current.updateControlState("filter",L2(O,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:m,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:s,upsertFilt
Line truncated
|
|
|
|
`));const T=[];D.forEach(N=>{const $=pv(N,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode($);if((L==null?void 0:L.type)==="pinnedRow"){const z=e.current.caches.pinnedRows,B=z.idLookup[$];B&&(z.idLookup[$]=O({},B,N))}else T.push(N)});const F=uue({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:F,throttle:!0})},[t.signature,t.getRowId,c,e]),m=v.useCallback(()=>{const D=gf(e),T=Ma(e);return new Map(D.map(F=>{var N;return[F,(N=T[F])!=null?N:{}]}))},[e]),p=v.useCallback(()=>d0(e),[e]),h=v.useCallback(()=>gf(e),[e]),y=v.useCallback(D=>u[D],[u]),b=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const N=O({},F,{childrenExpanded:T});e.current.setState($=>O({},$,{rows:O({},$.rows,{tree:O({},$.rows.tree,{[D]:N})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",N)},[e]),g=v.useCallback(D=>{var T;return(T=di(e)[D])!=null?T:null},[e]),x=v.useCallback(({skipAutoGeneratedRows:D=!0,groupId:T,applySorting:F,applyFiltering:N})=>{const $=di(e);let L;if(F){const z=$[T];if(!z)return[];const B=rP(e);L=[];const A=B.findIndex(H=>H===T)+1;for(let H=A;H<B.length&&$[B[H]].depth>z.depth;H+=1){const q=B[H];(!D||!Ep($[q]))&&L.push(q)}}else L=lP($,T,D);if(N){const z=I4(e);L=L.filter(B=>z[B]!==!1)}return L},[e]),w=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.parent!==Sr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(F.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(N=>{const $=di(N,e.current.instanceId)[Sr],L=$.children,z=L.findIndex(A=>A===D);if(z===-1||z===T)return N;n.debug(`Moving row ${D} to index ${T}`);const B=[...L];return B.splice(T,0,B.splice(z,1)[0]),O({},N,{rows:O({},N.rows,{tree:O({},N.rows.tree,{[Sr]:O({},$,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=v.useCallback((D,T)=>{if(t.signature===qi.DataGrid&&T.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
|
|
`));const T=[];D.forEach(j=>{const $=hv(j,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode($);if((L==null?void 0:L.type)==="pinnedRow"){const z=e.current.caches.pinnedRows,B=z.idLookup[$];B&&(z.idLookup[$]=I({},B,j))}else T.push(j)});const F=yue({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:F,throttle:!0})},[t.signature,t.getRowId,c,e]),m=v.useCallback(()=>{const D=yf(e),T=Ta(e);return new Map(D.map(F=>{var j;return[F,(j=T[F])!=null?j:{}]}))},[e]),p=v.useCallback(()=>p0(e),[e]),h=v.useCallback(()=>yf(e),[e]),y=v.useCallback(D=>u[D],[u]),b=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const j=I({},F,{childrenExpanded:T});e.current.setState($=>I({},$,{rows:I({},$.rows,{tree:I({},$.rows.tree,{[D]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),g=v.useCallback(D=>{var T;return(T=di(e)[D])!=null?T:null},[e]),x=v.useCallback(({skipAutoGeneratedRows:D=!0,groupId:T,applySorting:F,applyFiltering:j})=>{const $=di(e);let L;if(F){const z=$[T];if(!z)return[];const B=iP(e);L=[];const A=B.findIndex(H=>H===T)+1;for(let H=A;H<B.length&&$[B[H]].depth>z.depth;H+=1){const q=B[H];(!D||!Pp($[q]))&&L.push(q)}}else L=uP($,T,D);if(j){const z=A4(e);L=L.filter(B=>z[B]!==!1)}return L},[e]),w=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.parent!==Pr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(F.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(j=>{const $=di(j,e.current.instanceId)[Pr],L=$.children,z=L.findIndex(A=>A===D);if(z===-1||z===T)return j;n.debug(`Moving row ${D} to index ${T}`);const B=[...L];return B.splice(T,0,B.splice(z,1)[0]),I({},j,{rows:I({},j.rows,{tree:I({},j.rows.tree,{[Pr]:I({},$,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=v.useCallback((D,T)=>{if(t.signature===Ki.DataGrid&&T.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
|
|
`));if(T.length===0)return;if(f0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const N=O({},di(e)),$=O({},Ma(e)),L=O({},cv(e)),z=N[Sr],B=[...z.children],A=new Set;for(let q=0;q<T.length;q+=1){const U=T[q],G=pv(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Y]=B.splice(D+q,1,G);A.has(Y)||(delete $[Y],delete L[Y],delete N[Y]);const re={id:G,depth:0,parent:Sr,type:"leaf",groupingKey:null};$[G]=U,L[G]=G,N[G]=re,A.add(G)}N[Sr]=O({},z,{children:B});const H=B.filter(q=>N[q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=$,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(q=>O({},q,{rows:O({},q.rows,{dataRowIdToModelLookup:$,dataRowIdToIdLookup:L,dataRowIds:H,tree:N})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:s,getRowModels:m,getRowsCount:p,getAllRowIds:h,setRows:d,updateRows:f,getRowNode:g,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:P},E={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},S=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=O({},e.current.caches.rows,{updates:{type:"full",rows:gf(e)}}):D=sg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),M=v.useCallback(D=>{D==="rowTreeCreation"&&S()},[S]),I=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Use(e)&&S()},[e,S]);Ge(e,"activeStrategyProcessorChange",M),Ge(e,"strategyAvailabilityChange",I);const R=v.useCallback(()=>{e.current.setState(D=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:di(D,e.current.instanceId),treeDepths:UM(D,e.current.instanceId),dataRowIds:gf(D,e.current.instanceId),dataRowIdToModelLookup:Ma(D,e.current.instanceId),dataRowIdToIdLookup:cv(D,e.current.instanceId)});return O({},D,{rows:O({},D.rows,T,{totalTopLevelRowCount:T4({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);kP(e,"hydrateRows",R),ot(e,C,"public"),ot(e,E,t.signature===qi.DataGrid?"private":"public");const _=v.useRef(!0);v.useEffect(()=>{if(_.current){_.current=!1;return}const D=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,F=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(D){T||(e.current.setState(N=>O({},N,{rows:O({},N.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),F||(e.current.setState(N=>O({},N,{rows:O({},N.rows,{totalRowCount:Math.max(t.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:sg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},z0e=e=>{const t={[Sr]:O({},lue(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Sr,type:"leaf",groupingKey:null}}return{groupingName:pu,tree:t,treeDepths:{0:e.length},dataRowIds:e}},B0e=({previousTree:e,actions:t})=>{const n=O({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Sr,type:"leaf",groupingKey:null}}const o=n[Sr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Sr]=O({},o,{children:i}),{groupingName:pu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},H0e=e=>e.updates.type==="full"?z0e(e.updates.rows):B0e({previousTree:e.previousTree,actions:e.updates.actions}),V0e=e=>{Cv(e,pu,"rowTreeCreation",H0e)},Vj=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],U0e=(e,t)=>{var n;return O({},e,{rowSelection:t.rowSelection?(n=Vj(t.rowSelectionModel))!=null?n:[]:[]})},W0e=(e,t)=>{const n=gr(e,"useGridSelection"),r=T=>(...F)=>{t.rowSelection&&T(...F)},o=v.useMemo(()=>Vj(t.rowSelectionModel,Po(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Po,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:s,isRowSelectable:u}=t,c=!l||a,d=Eu(e,t),f=v.useCallback(T=>{var F;let N=T;const $=(F=i.current)!=null?F:T,L=e.current.isRowSelected(T);if(L){const z=Hf(e),B=z.findIndex(H=>H===$),A=z.findIndex(H=>H===N);if(B===A)return;B>A?N=z[A+1]:N=z[A-1]}i.current=T,e.current.selectRowRange({startId:$,endId:N},!L)},[e]),m=v.useCallback(T=>{if(t.signature===qi.DataGrid&&!t.checkboxSelection&&Array.isArra
Line truncated
|
|
|
|
`));if(T.length===0)return;if(m0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const j=I({},di(e)),$=I({},Ta(e)),L=I({},fv(e)),z=j[Pr],B=[...z.children],A=new Set;for(let q=0;q<T.length;q+=1){const U=T[q],G=hv(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Y]=B.splice(D+q,1,G);A.has(Y)||(delete $[Y],delete L[Y],delete j[Y]);const re={id:G,depth:0,parent:Pr,type:"leaf",groupingKey:null};$[G]=U,L[G]=G,j[G]=re,A.add(G)}j[Pr]=I({},z,{children:B});const H=B.filter(q=>j[q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=$,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(q=>I({},q,{rows:I({},q.rows,{dataRowIdToModelLookup:$,dataRowIdToIdLookup:L,dataRowIds:H,tree:j})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:s,getRowModels:m,getRowsCount:p,getAllRowIds:h,setRows:d,updateRows:f,getRowNode:g,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:P},E={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},S=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=I({},e.current.caches.rows,{updates:{type:"full",rows:yf(e)}}):D=ug({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),M=v.useCallback(D=>{D==="rowTreeCreation"&&S()},[S]),O=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Jse(e)&&S()},[e,S]);qe(e,"activeStrategyProcessorChange",M),qe(e,"strategyAvailabilityChange",O);const R=v.useCallback(()=>{e.current.setState(D=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:di(D,e.current.instanceId),treeDepths:KM(D,e.current.instanceId),dataRowIds:yf(D,e.current.instanceId),dataRowIdToModelLookup:Ta(D,e.current.instanceId),dataRowIdToIdLookup:fv(D,e.current.instanceId)});return I({},D,{rows:I({},D.rows,T,{totalTopLevelRowCount:j4({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);IP(e,"hydrateRows",R),it(e,C,"public"),it(e,E,t.signature===Ki.DataGrid?"private":"public");const _=v.useRef(!0);v.useEffect(()=>{if(_.current){_.current=!1;return}const D=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,F=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(D){T||(e.current.setState(j=>I({},j,{rows:I({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),F||(e.current.setState(j=>I({},j,{rows:I({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:ug({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Q0e=e=>{const t={[Pr]:I({},gue(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Pr,type:"leaf",groupingKey:null}}return{groupingName:hu,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Y0e=({previousTree:e,actions:t})=>{const n=I({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Pr,type:"leaf",groupingKey:null}}const o=n[Pr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Pr]=I({},o,{children:i}),{groupingName:hu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},X0e=e=>e.updates.type==="full"?Q0e(e.updates.rows):Y0e({previousTree:e.previousTree,actions:e.updates.actions}),Z0e=e=>{Ev(e,hu,"rowTreeCreation",X0e)},Yj=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],J0e=(e,t)=>{var n;return I({},e,{rowSelection:t.rowSelection?(n=Yj(t.rowSelectionModel))!=null?n:[]:[]})},ebe=(e,t)=>{const n=vr(e,"useGridSelection"),r=T=>(...F)=>{t.rowSelection&&T(...F)},o=v.useMemo(()=>Yj(t.rowSelectionModel,Po(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Po,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:s,isRowSelectable:u}=t,c=!l||a,d=ku(e,t),f=v.useCallback(T=>{var F;let j=T;const $=(F=i.current)!=null?F:T,L=e.current.isRowSelected(T);if(L){const z=Wf(e),B=z.findIndex(H=>H===$),A=z.findIndex(H=>H===j);if(B===A)return;B>A?j=z[A+1]:j=z[A-1]}i.current=T,e.current.selectRowRange({startId:$,endId:j},!L)},[e]),m=v.useCallback(T=>{if(t.signature===Ki.DataGrid&&!t.checkboxSelection&&Array.isArra
Line truncated
|
|
|
|
`));Po(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(N=>O({},N,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(T=>Po(e.current.state).includes(T),[e]),h=v.useCallback(T=>{if(u&&!u(e.current.getRowParams(T)))return!1;const F=e.current.getRowNode(T);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>afe(e),[e]),b=v.useCallback((T,F=!0,N=!1)=>{if(e.current.isRowSelectable(T))if(i.current=T,N)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel(F?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const L=Po(e.current.state).filter(B=>B!==T);F&&L.push(T),(L.length<2||c)&&e.current.setRowSelectionModel(L)}},[e,n,c]),g=v.useCallback((T,F=!0,N=!1)=>{n.debug("Setting selection for several rows");const $=T.filter(B=>e.current.isRowSelectable(B));let L;if(N)L=F?$:[];else{const B=O({},bv(e));$.forEach(A=>{F?B[A]=A:delete B[A]}),L=Object.values(B)}(L.length<2||c)&&e.current.setRowSelectionModel(L)},[e,n,c]),x=v.useCallback(({startId:T,endId:F},N=!0,$=!1)=>{if(!e.current.getRow(T)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${T} to row ${F}`);const L=Hf(e),z=L.indexOf(T),B=L.indexOf(F),[A,H]=z>B?[B,z]:[z,B],q=L.slice(A,H+1);e.current.selectRows(q,N,$)},[e,n]),w={selectRow:b,setRowSelectionModel:m,getSelectedRows:y,isRowSelected:p,isRowSelectable:h},P={selectRows:g,selectRowRange:x};ot(e,w,"public"),ot(e,P,t.signature===qi.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Po(e.current.state),F=Ma(e),N=O({},bv(e));let $=!1;T.forEach(L=>{F[L]||(delete N[L],$=!0)}),$&&e.current.setRowSelectionModel(Object.values(N))},[e,t.keepNonExistentRowsSelected]),E=v.useCallback((T,F)=>{const N=F.metaKey||F.ctrlKey,$=!a&&!N&&!pce(F),L=!c||$,z=e.current.isRowSelected(T);L?e.current.selectRow(T,$?!0:!z,!0):e.current.selectRow(T,!z,!1)},[e,c,a]),S=v.useCallback((T,F)=>{var N;if(s)return;const $=(N=F.target.closest(`.${ne.cell}`))==null?void 0:N.getAttribute("data-field");if($===Pd.field||$===EP)return;if($){const z=e.current.getColumn($);if((z==null?void 0:z.type)===E0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&(F.shiftKey&&(c||a)?f(T.id):E(T.id,F))},[s,c,a,e,f,E]),M=v.useCallback((T,F)=>{if(c&&F.shiftKey){var N;(N=window.getSelection())==null||N.removeAllRanges()}},[c]),I=v.useCallback((T,F)=>{F.nativeEvent.shiftKey?f(T.id):e.current.selectRow(T.id,T.value)},[e,f]),R=v.useCallback(T=>{const N=t.checkboxSelectionVisibleOnly&&t.pagination?nj(e):Hf(e);e.current.selectRows(N,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),_=v.useCallback((T,F)=>{if(e.current.getCellMode(T.id,T.field)!==Rt.Edit&&!um(F)){if(vv(F.key)&&F.shiftKey){const N=to(e);if(N&&N.id!==T.id){F.preventDefault();const $=e.current.isRowSelected(N.id);if(!c){e.current.selectRow(N.id,!$,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(N.id),z=e.current.getRowIndexRelativeToVisibleRows(T.id);let B,A;L>z?$?(B=z,A=L-1):(B=z,A=L):$?(B=L+1,A=z):(B=L,A=z);const H=d.rows.slice(B,A+1).map(q=>q.id);e.current.selectRows(H,!$);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),E(T.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),g(e.current.getAllRowIds(),!0))}},[e,E,g,d.rows,c]);Ge(e,"sortedRowsSet",r(C)),Ge(e,"rowClick",r(S)),Ge(e,"rowSelectionCheckboxChange",r(I)),Ge(e,"headerSelectionCheckboxChange",R),Ge(e,"cellMouseDown",r(M)),Ge(e,"cellKeyDown",r(_)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const D=o!=null;v.useEffect(()=>{if(D||!t.rowSelection)return;const T=Po(e.current.state);if(h){const F=T.filter(N=>h(N));F.length<T.length&&e.current.setRowSelectionModel(F)}},[e,h,D,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||D)return;const T=Po(e.current.state);!c&&T.length>1&&e.current.setRowSelectionModel([])},[e,c,a,D,t.rowSelection])},G0e={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:
Line truncated
|
|
|
|
`));Po(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(j=>I({},j,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(T=>Po(e.current.state).includes(T),[e]),h=v.useCallback(T=>{if(u&&!u(e.current.getRowParams(T)))return!1;const F=e.current.getRowNode(T);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>hfe(e),[e]),b=v.useCallback((T,F=!0,j=!1)=>{if(e.current.isRowSelectable(T))if(i.current=T,j)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel(F?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const L=Po(e.current.state).filter(B=>B!==T);F&&L.push(T),(L.length<2||c)&&e.current.setRowSelectionModel(L)}},[e,n,c]),g=v.useCallback((T,F=!0,j=!1)=>{n.debug("Setting selection for several rows");const $=T.filter(B=>e.current.isRowSelectable(B));let L;if(j)L=F?$:[];else{const B=I({},wv(e));$.forEach(A=>{F?B[A]=A:delete B[A]}),L=Object.values(B)}(L.length<2||c)&&e.current.setRowSelectionModel(L)},[e,n,c]),x=v.useCallback(({startId:T,endId:F},j=!0,$=!1)=>{if(!e.current.getRow(T)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${T} to row ${F}`);const L=Wf(e),z=L.indexOf(T),B=L.indexOf(F),[A,H]=z>B?[B,z]:[z,B],q=L.slice(A,H+1);e.current.selectRows(q,j,$)},[e,n]),w={selectRow:b,setRowSelectionModel:m,getSelectedRows:y,isRowSelected:p,isRowSelectable:h},P={selectRows:g,selectRowRange:x};it(e,w,"public"),it(e,P,t.signature===Ki.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Po(e.current.state),F=Ta(e),j=I({},wv(e));let $=!1;T.forEach(L=>{F[L]||(delete j[L],$=!0)}),$&&e.current.setRowSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),E=v.useCallback((T,F)=>{const j=F.metaKey||F.ctrlKey,$=!a&&!j&&!Cce(F),L=!c||$,z=e.current.isRowSelected(T);L?e.current.selectRow(T,$?!0:!z,!0):e.current.selectRow(T,!z,!1)},[e,c,a]),S=v.useCallback((T,F)=>{var j;if(s)return;const $=(j=F.target.closest(`.${ne.cell}`))==null?void 0:j.getAttribute("data-field");if($===Id.field||$===kP)return;if($){const z=e.current.getColumn($);if((z==null?void 0:z.type)===k0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&(F.shiftKey&&(c||a)?f(T.id):E(T.id,F))},[s,c,a,e,f,E]),M=v.useCallback((T,F)=>{if(c&&F.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[c]),O=v.useCallback((T,F)=>{F.nativeEvent.shiftKey?f(T.id):e.current.selectRow(T.id,T.value)},[e,f]),R=v.useCallback(T=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?uj(e):Wf(e);e.current.selectRows(j,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),_=v.useCallback((T,F)=>{if(e.current.getCellMode(T.id,T.field)!==Tt.Edit&&!cm(F)){if(bv(F.key)&&F.shiftKey){const j=to(e);if(j&&j.id!==T.id){F.preventDefault();const $=e.current.isRowSelected(j.id);if(!c){e.current.selectRow(j.id,!$,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(j.id),z=e.current.getRowIndexRelativeToVisibleRows(T.id);let B,A;L>z?$?(B=z,A=L-1):(B=z,A=L):$?(B=L+1,A=z):(B=L,A=z);const H=d.rows.slice(B,A+1).map(q=>q.id);e.current.selectRows(H,!$);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),E(T.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),g(e.current.getAllRowIds(),!0))}},[e,E,g,d.rows,c]);qe(e,"sortedRowsSet",r(C)),qe(e,"rowClick",r(S)),qe(e,"rowSelectionCheckboxChange",r(O)),qe(e,"headerSelectionCheckboxChange",R),qe(e,"cellMouseDown",r(M)),qe(e,"cellKeyDown",r(_)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const D=o!=null;v.useEffect(()=>{if(D||!t.rowSelection)return;const T=Po(e.current.state);if(h){const F=T.filter(j=>h(j));F.length<T.length&&e.current.setRowSelectionModel(F)}},[e,h,D,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||D)return;const T=Po(e.current.state);!c&&T.length>1&&e.current.setRowSelectionModel([])},[e,c,a,D,t.rowSelection])},tbe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:
Line truncated
|
|
|
|
`)),r.current=!0),E.width===0&&!r.current&&!S&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
|
|
`)),r.current=!0),E.width===0&&!r.current&&!S&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
|
|
`)),r.current=!0),P.current){f(E),P.current=!1;return}m(E)},[t.autoHeight,m,n]);Ft(()=>c(),[c]),Kt(e,"sortedRowsSet",c),Kt(e,"paginationModelChange",c),Kt(e,"columnsChange",c),Ge(e,"resize",C),Kt(e,"debouncedResize",t.onResize)}const tbe=["style"],nbe=["style"];function $c(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?$c(e,t,n,o):$c(e,t,o+1,r)}function rbe(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return $c(e,t,Math.floor(n/2),Math.min(n,t.length))}const Pl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[nd(e-n,r,o),nd(t+n,r,o)],Uj=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,obe={maxSize:3},ibe=e=>{var t,n;const r=fs(),o=He(),i=Ne(r,tr),a=Ne(r,yfe),l=Ne(r,sj),{ref:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=i.length,getRowProps:f}=e,m=Mr(),p=Ne(r,td),h=Ne(r,nP),y=Ne(r,to),b=Ne(r,fv),g=Ne(r,$p),x=Ne(r,bv),w=Eu(r,o),P=v.useRef(null),C=v.useRef(null),E=xt(s,C),[S,M]=v.useState(null),I=v.useRef(S),R=v.useRef({top:0,left:0}),[_,D]=v.useState({width:null,height:null}),T=v.useRef(h),[F,N]=v.useState(null),$=v.useRef(Object.create(null)),L=v.useRef(),z=v.useRef(),B=v.useRef(s0((ie,ye,V,Q,Z,ae)=>{let te;const K=ie.slice(ye,V);return ae>-1&&(ye>ae&&ae>=Q||V<ae&&ae<Z)&&(te=ae),{focusedCellColumnIndexNotInRange:te,renderedColumns:K}},obe)),A=v.useMemo(()=>y!==null?i.findIndex(ie=>ie.field===y.field):-1,[y,i]),H=v.useCallback(ie=>{var ye,V;const Q=r.current.getLastMeasuredRowIndex();let Z=Q===1/0;(ye=w.range)!=null&&ye.lastRowIndex&&!Z&&(Z=Q>=w.range.lastRowIndex);const ae=nd(Q-(((V=w.range)==null?void 0:V.firstRowIndex)||0),0,g.positions.length);return Z||g.positions[ae]>=ie?$c(ie,g.positions):rbe(ie,g.positions,ae)},[r,(t=w.range)==null?void 0:t.firstRowIndex,(n=w.range)==null?void 0:n.lastRowIndex,g.positions]),q=v.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ie,left:ye}=R.current,V=Math.min(H(ie),g.positions.length-1),Q=o.autoHeight?V+w.rows.length:H(ie+_.height);let Z=0,ae=p.length;if(l){let te=!1;const[K,ee]=Pl({firstIndex:V,lastIndex:Q,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});for(let se=K;se<ee&&!te;se+=1){const Ce=w.rows[se];te=r.current.rowHasAutoHeight(Ce.id)}te||(Z=$c(Math.abs(ye),p),ae=$c(Math.abs(ye)+_.width,p))}return{firstRowIndex:V,lastRowIndex:Q,firstColumnIndex:Z,lastColumnIndex:ae}},[a,l,H,g.positions.length,o.autoHeight,o.rowBuffer,w.rows,p,i.length,r,_]);Ft(()=>{a?(C.current.scrollLeft=0,C.current.scrollTop=0):P.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),Ft(()=>{D({width:C.current.clientWidth,height:C.current.clientHeight})},[g.currentPageTotalHeight]);const U=v.useCallback(()=>{C.current&&D({width:C.current.clientWidth,height:C.current.clientHeight})},[]);Ge(r,"debouncedResize",U);const G=v.useCallback(ie=>{const[ye,V]=Pl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer}),[Q]=Pl({firstIndex:ie.firstColumnIndex,lastIndex:ie.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:o.columnBuffer}),Z=Xw({firstColumnToRender:Q,apiRef:r,firstRowToRender:ye,lastRowToRender:V,visibleRows:w.rows}),ae=m.direction==="ltr"?1:-1,te=$p(r.current.state).positions[ye],K=ae*td(r)[Z];P.current.style.transform=`translate3d(${K}px, ${te}px, 0px)`,typeof u=="function"&&u({top:te,left:K})},[r,w.rows,u,c,d,o.columnBuffer,o.rowBuffer,m.direction]),Y=v.useCallback(()=>I.current,[]),re=v.useCallback(ie=>{if(I.current&&Uj(ie,I.current)){G(ie);return}M(ie),G(ie);const[ye,V]=Pl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ye,lastRowToRender:V}),I.current=ie},[r,M,I,w.rows.length,o.rowBuffer,G]);Ft(()=>{if(_.width==null)return;const ie=q();re(ie);const{top:ye,left:V}=R.current,Q={top:ye,left:V,renderContext:ie};r.current.publishEvent("scrollPositionChange",Q)},[r,q,_.width,re]);const le=Zt(ie=>{const{scrollTop:ye,scrollLeft:V}=ie.currentTarget;if(R.current.top=ye,R.current.left=V,!I.current||ye<0||m.direction==="ltr"&&V<0||m.direction==="rtl"&&V>0)return;const Q=a?q():I.current,Z=Math.abs(Q.firstRowIndex-I.current.firstRowIndex),ae=Math.abs(Q.lastRowIndex-I.current.lastRowIndex),te=Math.abs(Q.firstColumnIndex-I.current.firstColumnIndex),K=Math.abs(Q.lastColumnIndex-I.current.lastColumnIndex),ee=Z>=o.rowThreshold||ae>=o.rowThreshold||te>=o.columnThreshold||K>=o.columnThreshold||T.current!==h;r.current.publishEvent("scrollPositionChange",{top:ye,left:V,renderContext:ee?Q:I.current},ie),ee&&(is.flushSync(()=>{re(Q)}),T.current=h)}),J=Zt(ie=>{r.current.publishEvent("virtualScrollerWheel",{},ie)}),oe=Zt(ie=>{r.current.publishEvent("virtualScroller
Line truncated
|
|
|
|
`)),r.current=!0),P.current){f(E),P.current=!1;return}m(E)},[t.autoHeight,m,n]);Rt(()=>c(),[c]),Qt(e,"sortedRowsSet",c),Qt(e,"paginationModelChange",c),Qt(e,"columnsChange",c),qe(e,"resize",C),Qt(e,"debouncedResize",t.onResize)}const cbe=["style"],dbe=["style"];function Rc(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Rc(e,t,n,o):Rc(e,t,o+1,r)}function fbe(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Rc(e,t,Math.floor(n/2),Math.min(n,t.length))}const $l=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[id(e-n,r,o),id(t+n,r,o)],Xj=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,pbe={maxSize:3},mbe=e=>{var t,n;const r=hs(),o=We(),i=Ne(r,tr),a=Ne(r,$fe),l=Ne(r,hj),{ref:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=i.length,getRowProps:f}=e,m=Rr(),p=Ne(r,od),h=Ne(r,oP),y=Ne(r,to),b=Ne(r,mv),g=Ne(r,Ip),x=Ne(r,wv),w=ku(r,o),P=v.useRef(null),C=v.useRef(null),E=vt(s,C),[S,M]=v.useState(null),O=v.useRef(S),R=v.useRef({top:0,left:0}),[_,D]=v.useState({width:null,height:null}),T=v.useRef(h),[F,j]=v.useState(null),$=v.useRef(Object.create(null)),L=v.useRef(),z=v.useRef(),B=v.useRef(c0((ie,ye,V,Q,Z,ae)=>{let te;const K=ie.slice(ye,V);return ae>-1&&(ye>ae&&ae>=Q||V<ae&&ae<Z)&&(te=ae),{focusedCellColumnIndexNotInRange:te,renderedColumns:K}},pbe)),A=v.useMemo(()=>y!==null?i.findIndex(ie=>ie.field===y.field):-1,[y,i]),H=v.useCallback(ie=>{var ye,V;const Q=r.current.getLastMeasuredRowIndex();let Z=Q===1/0;(ye=w.range)!=null&&ye.lastRowIndex&&!Z&&(Z=Q>=w.range.lastRowIndex);const ae=id(Q-(((V=w.range)==null?void 0:V.firstRowIndex)||0),0,g.positions.length);return Z||g.positions[ae]>=ie?Rc(ie,g.positions):fbe(ie,g.positions,ae)},[r,(t=w.range)==null?void 0:t.firstRowIndex,(n=w.range)==null?void 0:n.lastRowIndex,g.positions]),q=v.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ie,left:ye}=R.current,V=Math.min(H(ie),g.positions.length-1),Q=o.autoHeight?V+w.rows.length:H(ie+_.height);let Z=0,ae=p.length;if(l){let te=!1;const[K,ee]=$l({firstIndex:V,lastIndex:Q,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});for(let se=K;se<ee&&!te;se+=1){const Ce=w.rows[se];te=r.current.rowHasAutoHeight(Ce.id)}te||(Z=Rc(Math.abs(ye),p),ae=Rc(Math.abs(ye)+_.width,p))}return{firstRowIndex:V,lastRowIndex:Q,firstColumnIndex:Z,lastColumnIndex:ae}},[a,l,H,g.positions.length,o.autoHeight,o.rowBuffer,w.rows,p,i.length,r,_]);Rt(()=>{a?(C.current.scrollLeft=0,C.current.scrollTop=0):P.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),Rt(()=>{D({width:C.current.clientWidth,height:C.current.clientHeight})},[g.currentPageTotalHeight]);const U=v.useCallback(()=>{C.current&&D({width:C.current.clientWidth,height:C.current.clientHeight})},[]);qe(r,"debouncedResize",U);const G=v.useCallback(ie=>{const[ye,V]=$l({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer}),[Q]=$l({firstIndex:ie.firstColumnIndex,lastIndex:ie.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:o.columnBuffer}),Z=Jw({firstColumnToRender:Q,apiRef:r,firstRowToRender:ye,lastRowToRender:V,visibleRows:w.rows}),ae=m.direction==="ltr"?1:-1,te=Ip(r.current.state).positions[ye],K=ae*od(r)[Z];P.current.style.transform=`translate3d(${K}px, ${te}px, 0px)`,typeof u=="function"&&u({top:te,left:K})},[r,w.rows,u,c,d,o.columnBuffer,o.rowBuffer,m.direction]),Y=v.useCallback(()=>O.current,[]),re=v.useCallback(ie=>{if(O.current&&Xj(ie,O.current)){G(ie);return}M(ie),G(ie);const[ye,V]=$l({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ye,lastRowToRender:V}),O.current=ie},[r,M,O,w.rows.length,o.rowBuffer,G]);Rt(()=>{if(_.width==null)return;const ie=q();re(ie);const{top:ye,left:V}=R.current,Q={top:ye,left:V,renderContext:ie};r.current.publishEvent("scrollPositionChange",Q)},[r,q,_.width,re]);const le=Jt(ie=>{const{scrollTop:ye,scrollLeft:V}=ie.currentTarget;if(R.current.top=ye,R.current.left=V,!O.current||ye<0||m.direction==="ltr"&&V<0||m.direction==="rtl"&&V>0)return;const Q=a?q():O.current,Z=Math.abs(Q.firstRowIndex-O.current.firstRowIndex),ae=Math.abs(Q.lastRowIndex-O.current.lastRowIndex),te=Math.abs(Q.firstColumnIndex-O.current.firstColumnIndex),K=Math.abs(Q.lastColumnIndex-O.current.lastColumnIndex),ee=Z>=o.rowThreshold||ae>=o.rowThreshold||te>=o.columnThreshold||K>=o.columnThreshold||T.current!==h;r.current.publishEvent("scrollPositionChange",{top:ye,left:V,renderContext:ee?Q:O.current},ie),ee&&(ss.flushSync(()=>{re(Q)}),T.current=h)}),J=Jt(ie=>{r.current.publishEvent("virtualScrollerWheel",{},ie)}),oe=Jt(ie=>{r.current.publishEvent("virtualScroller
Line truncated
|
|
|
|
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Gj(i,[...t,r],n)})},Zw=e=>{if(!e)return{};const t={};return e.forEach(n=>{Gj(n,[],t)}),t},Jw=(e,t,n)=>{const r=s=>{var u;return(u=t[s])!=null?u:[]},o=[],i=Math.max(...e.map(s=>r(s).length)),a=(s,u,c)=>qs(r(s).slice(0,c+1),r(u).slice(0,c+1)),l=(s,u)=>!!(n!=null&&n.left&&n.left.includes(s)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(s)&&n.right.includes(u));for(let s=0;s<i;s+=1){const u=e.reduce((c,d)=>{var f;const m=(f=r(d)[s])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:m}];const p=c[c.length-1],h=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!a(h,d,s)||l(h,d)?[...c,{columnFields:[d],groupId:m}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:m}]},[]);o.push(u)}return o},a1e=["groupId","children"],OP=e=>{let t={};return e.forEach(n=>{if(L4(n))return;const{groupId:r,children:o}=n,i=ue(n,a1e);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=O({},i,{groupId:r}),l=OP(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=O({},t,l,{[r]:a})}),O({},t)},l1e=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=La(n),s=u0(n),u=OP((o=t.columnGroupingModel)!=null?o:[]),c=Zw((i=t.columnGroupingModel)!=null?i:[]),d=Jw(l,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=s.length===0?0:Math.max(...s.map(m=>{var p,h;return(p=(h=c[m])==null?void 0:h.length)!=null?p:0}));return O({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},s1e=(e,t)=>{var n;const r=v.useCallback(s=>{var u;return(u=zse(e)[s])!=null?u:[]},[e]),o=v.useCallback(()=>P4(e),[e]);ot(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var s;const u=Zw((s=t.columnGroupingModel)!=null?s:[]);e.current.setState(c=>{var d,f,m;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],h=(m=c.pinnedColumns)!=null?m:{},y=Jw(p,u,h);return O({},c,{columnGrouping:O({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),l=v.useCallback(s=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const m=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=La(e),h=u0(e),y=OP(s??[]),b=Zw(s??[]),g=Jw(p,b,m),x=h.length===0?0:Math.max(...h.map(w=>{var P,C;return(P=(C=b[w])==null?void 0:C.length)!=null?P:0}));e.current.setState(w=>O({},w,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:g,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Ge(e,"columnIndexChange",a),Ge(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Ge(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),v.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},u1e=(e,t)=>{const n=_ye(e,t);return K0e(n,t),V0e(n),Tr(U0e,n,t),Tr(o0e,n,t),Tr(N0e,n,t),Tr(L0e,n,t),Tr(C0e,n,t),Tr(Q0e,n,t),Tr(k0e,n,t),Tr(y0e,n,t),Tr(s0e,n,t),Tr(p0e,n,t),Tr(n1e,n,t),Tr(Jye,n,t),Tr(l1e,n,t),Tr(gfe,n,t),P0e(n,t),W0e(n,t),i0e(n,t),j0e(n,t),wue(n,t),i1e(n),s1e(n,t),D0e(n,t),S0e(n,t),$0e(n,t),w0e(n,t),Y0e(n,t),u0e(n,t),m0e(n,t),r1e(n,t),X0e(n,t),e0e(n),f0e(n,t),v0e(n,t),Zye(n,t),ebe(n,t),Z0e(n,t),o1e(n),vfe(n,t),n},c1e=e=>{const{classes:t}=e;return Oe({root:["virtualScroller"]},ft,t)},d1e=jn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),f1e=v.forwardRef(function(t,n){const r=He(),o=c1e(r);return j.jsx(d1e,O({ref:n},t,{className:ve(o.root,t.className),ownerState:r}))}),p1e=(e,t)=>{const{classes:n}=e;return Oe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},m1e=jn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),h1e=v.forwardRef(function(t,n){var r;const o=He(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=p1e(o,i);return j.jsx(m1e,O({ref:n},t,{ownerState:o,className:ve(a.root,t.className)}))}),g1e=["className"],v1e=e=>{const{classes:t}=e;return Oe({root:["virtualScrollerRenderZone"]},ft,t)},y1e=jn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),b1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,g1e),i=He(),a=v1e(i);return j.jsx(y1e,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),x1e=["className"],w1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,x1e),{getRootProps:i,getContentProps:a,getRenderZoneProps:l,getRows:s}=ibe({ref:n});return j.jsxs(f1e,O({className:r},i(o),{children:[j.jsx(mue,{}),j.jsx(h1e,O({},a(),{children:j.jsx(b1e,O({},l(),{chil
Line truncated
|
|
|
|
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Jj(i,[...t,r],n)})},eC=e=>{if(!e)return{};const t={};return e.forEach(n=>{Jj(n,[],t)}),t},tC=(e,t,n)=>{const r=s=>{var u;return(u=t[s])!=null?u:[]},o=[],i=Math.max(...e.map(s=>r(s).length)),a=(s,u,c)=>Ys(r(s).slice(0,c+1),r(u).slice(0,c+1)),l=(s,u)=>!!(n!=null&&n.left&&n.left.includes(s)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(s)&&n.right.includes(u));for(let s=0;s<i;s+=1){const u=e.reduce((c,d)=>{var f;const m=(f=r(d)[s])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:m}];const p=c[c.length-1],h=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!a(h,d,s)||l(h,d)?[...c,{columnFields:[d],groupId:m}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:m}]},[]);o.push(u)}return o},h1e=["groupId","children"],RP=e=>{let t={};return e.forEach(n=>{if(V4(n))return;const{groupId:r,children:o}=n,i=ue(n,h1e);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=I({},i,{groupId:r}),l=RP(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=I({},t,l,{[r]:a})}),I({},t)},g1e=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=Na(n),s=d0(n),u=RP((o=t.columnGroupingModel)!=null?o:[]),c=eC((i=t.columnGroupingModel)!=null?i:[]),d=tC(l,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=s.length===0?0:Math.max(...s.map(m=>{var p,h;return(p=(h=c[m])==null?void 0:h.length)!=null?p:0}));return I({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},v1e=(e,t)=>{var n;const r=v.useCallback(s=>{var u;return(u=Qse(e)[s])!=null?u:[]},[e]),o=v.useCallback(()=>T4(e),[e]);it(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var s;const u=eC((s=t.columnGroupingModel)!=null?s:[]);e.current.setState(c=>{var d,f,m;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],h=(m=c.pinnedColumns)!=null?m:{},y=tC(p,u,h);return I({},c,{columnGrouping:I({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),l=v.useCallback(s=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const m=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=Na(e),h=d0(e),y=RP(s??[]),b=eC(s??[]),g=tC(p,b,m),x=h.length===0?0:Math.max(...h.map(w=>{var P,C;return(P=(C=b[w])==null?void 0:C.length)!=null?P:0}));e.current.setState(w=>I({},w,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:g,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);qe(e,"columnIndexChange",a),qe(e,"columnsChange",()=>{l(t.columnGroupingModel)}),qe(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),v.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},y1e=(e,t)=>{const n=Hye(e,t);return rbe(n,t),Z0e(n),_r(J0e,n,t),_r(p0e,n,t),_r(q0e,n,t),_r(W0e,n,t),_r(R0e,n,t),_r(obe,n,t),_r(A0e,n,t),_r($0e,n,t),_r(v0e,n,t),_r(C0e,n,t),_r(d1e,n,t),_r(s0e,n,t),_r(g1e,n,t),_r(Pfe,n,t),F0e(n,t),ebe(n,t),m0e(n,t),K0e(n,t),Mue(n,t),m1e(n),v1e(n,t),G0e(n,t),T0e(n,t),L0e(n,t),M0e(n,t),ibe(n,t),y0e(n,t),S0e(n,t),f1e(n,t),abe(n,t),u0e(n),w0e(n,t),k0e(n,t),l0e(n,t),ube(n,t),lbe(n,t),p1e(n),kfe(n,t),n},b1e=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},ft,t)},x1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),w1e=v.forwardRef(function(t,n){const r=We(),o=b1e(r);return N.jsx(x1e,I({ref:n},t,{className:he(o.root,t.className),ownerState:r}))}),C1e=(e,t)=>{const{classes:n}=e;return Ie({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},S1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),E1e=v.forwardRef(function(t,n){var r;const o=We(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=C1e(o,i);return N.jsx(S1e,I({ref:n},t,{ownerState:o,className:he(a.root,t.className)}))}),P1e=["className"],k1e=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},ft,t)},$1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),I1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,P1e),i=We(),a=k1e(i);return N.jsx($1e,I({ref:n,className:he(a.root,r),ownerState:i},o))}),O1e=["className"],M1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,O1e),{getRootProps:i,getContentProps:a,getRenderZoneProps:l,getRows:s}=mbe({ref:n});return N.jsxs(w1e,I({className:r},i(o),{children:[N.jsx(Sue,{}),N.jsx(E1e,I({},a(),{children:N.jsx(I1e,I({},l(),{chil
Line truncated
|
|
|
|
`)):null,paginationMode:de.oneOf(["client","server"]),paginationModel:de.shape({page:de.number.isRequired,pageSize:de.number.isRequired}),processRowUpdate:de.func,rowBuffer:de.number,rowCount:de.number,rowHeight:de.number,rowModesModel:de.object,rowPositionsDebounceMs:de.number,rows:de.arrayOf(de.object).isRequired,rowSelection:de.bool,rowSelectionModel:de.oneOfType([de.arrayOf(de.oneOfType([de.number,de.string]).isRequired),de.number,de.string]),rowSpacingType:de.oneOf(["border","margin"]),rowThreshold:de.number,scrollbarSize:de.number,showCellVerticalBorder:de.bool,showColumnVerticalBorder:de.bool,slotProps:de.object,slots:de.object,sortingMode:de.oneOf(["client","server"]),sortingOrder:de.arrayOf(de.oneOf(["asc","desc"])),sortModel:de.arrayOf(de.shape({field:de.string.isRequired,sort:de.oneOf(["asc","desc"])})),sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),unstable_ignoreValueFormatterDuringExport:de.oneOfType([de.shape({clipboardExport:de.bool,csvExport:de.bool}),de.bool])};var C1e=Object.prototype,S1e=C1e.hasOwnProperty;function E1e(e,t){return e!=null&&S1e.call(e,t)}function P1e(e,t){return e!=null&&$L(e,t,E1e)}var pm=e=>e.type==="checkbox",mc=e=>e instanceof Date,wr=e=>e==null;const Qj=e=>typeof e=="object";var Rn=e=>!wr(e)&&!Array.isArray(e)&&Qj(e)&&!mc(e),Yj=e=>Rn(e)&&e.target?pm(e.target)?e.target.checked:e.target.value:e,k1e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xj=(e,t)=>e.has(k1e(t)),$1e=e=>{const t=e.constructor&&e.constructor.prototype;return Rn(t)&&t.hasOwnProperty("isPrototypeOf")},MP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Lr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(MP&&(e instanceof Blob||e instanceof FileList))&&(n||Rn(e)))if(t=n?[]:{},!n&&!$1e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Lr(e[r]));else return e;return t}var mm=e=>Array.isArray(e)?e.filter(Boolean):[],mn=e=>e===void 0,Le=(e,t,n)=>{if(!t||!Rn(e))return n;const r=mm(t.split(/[,[\].]+?/)).reduce((o,i)=>wr(o)?o:o[i],e);return mn(r)||r===e?mn(e[t])?n:e[t]:r},fi=e=>typeof e=="boolean";const Sv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ya={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Zj=k.createContext(null),RP=()=>k.useContext(Zj),I1e=e=>{const{children:t,...n}=e;return k.createElement(Zj.Provider,{value:n},t)};var Jj=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==pi.all&&(t._proxyFormState[a]=!r||pi.all),n&&(n[a]=!0),e[a]}});return o},ko=e=>Rn(e)&&!Object.keys(e).length,ez=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return ko(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||pi.all))},dg=e=>Array.isArray(e)?e:[e],tz=(e,t,n)=>!e||!t||e===t||dg(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function TP(e){const t=k.useRef(e);t.current=e,k.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function O1e(e){const t=RP(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,l]=k.useState(n._formState),s=k.useRef(!0),u=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=k.useRef(o);return c.current=o,TP({disabled:r,next:d=>s.current&&tz(c.current,d.name,i)&&ez(d,u.current,n._updateFormState)&&l({...n._formState,...d}),subject:n._subjects.state}),k.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Jj(a,n,u.current,!1)}var zi=e=>typeof e=="string",nz=(e,t,n,r,o)=>zi(e)?(r&&t.watch.add(e),Le(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Le(n,i))):(r&&(t.watchAll=!0),n);function M1e(e){const t=RP(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},l=k.useRef(r);l.current=r,TP({disabled:i,subject:n._subjects.values,next:c=>{tz(l.current,c.name,a)&&u(Lr(nz(l.current,n._names,c.values||n._formValues,!1,o)))}});const[s,u]=k.useState(n._getWatch(r,o));return k.useEffect(()=>n._removeUnmounted()),s}var _P=e=>/^\w*$/.test(e),rz=e=>mm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Nt=(e,t,n)=>{let r=-1;const o=_P(t)?[t]:rz(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let s=n;if(r!==a){const u=e[l];s=Rn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}e[l]=s,e=e[l]}return e};function R1e(e){const t=RP(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=Xj(o._names.array,n),l=M1e({control:o,name:n,defaultValue:Le(o._formValues,n,Le(o._defaultValues,n,e.defaultValue)),exact:!0}),s=O1e({control:o,name:n}),u=k.useRef(o.register(n,{...e.rules,value:l,...fi(e.disabled)?{disabled:e.disabled}:{}}));return k.useEffect
Line truncated
|
|
|
|
`)):null,paginationMode:fe.oneOf(["client","server"]),paginationModel:fe.shape({page:fe.number.isRequired,pageSize:fe.number.isRequired}),processRowUpdate:fe.func,rowBuffer:fe.number,rowCount:fe.number,rowHeight:fe.number,rowModesModel:fe.object,rowPositionsDebounceMs:fe.number,rows:fe.arrayOf(fe.object).isRequired,rowSelection:fe.bool,rowSelectionModel:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.number,fe.string]).isRequired),fe.number,fe.string]),rowSpacingType:fe.oneOf(["border","margin"]),rowThreshold:fe.number,scrollbarSize:fe.number,showCellVerticalBorder:fe.bool,showColumnVerticalBorder:fe.bool,slotProps:fe.object,slots:fe.object,sortingMode:fe.oneOf(["client","server"]),sortingOrder:fe.arrayOf(fe.oneOf(["asc","desc"])),sortModel:fe.arrayOf(fe.shape({field:fe.string.isRequired,sort:fe.oneOf(["asc","desc"])})),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),unstable_ignoreValueFormatterDuringExport:fe.oneOfType([fe.shape({clipboardExport:fe.bool,csvExport:fe.bool}),fe.bool])};var R1e=Object.prototype,T1e=R1e.hasOwnProperty;function _1e(e,t){return e!=null&&T1e.call(e,t)}function F1e(e,t){return e!=null&&TL(e,t,_1e)}var mm=e=>e.type==="checkbox",yc=e=>e instanceof Date,Sr=e=>e==null;const t5=e=>typeof e=="object";var Tn=e=>!Sr(e)&&!Array.isArray(e)&&t5(e)&&!yc(e),n5=e=>Tn(e)&&e.target?mm(e.target)?e.target.checked:e.target.value:e,A1e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,r5=(e,t)=>e.has(A1e(t)),L1e=e=>{const t=e.constructor&&e.constructor.prototype;return Tn(t)&&t.hasOwnProperty("isPrototypeOf")},_P=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Lr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(_P&&(e instanceof Blob||e instanceof FileList))&&(n||Tn(e)))if(t=n?[]:{},!n&&!L1e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Lr(e[r]));else return e;return t}var hm=e=>Array.isArray(e)?e.filter(Boolean):[],hn=e=>e===void 0,Le=(e,t,n)=>{if(!t||!Tn(e))return n;const r=hm(t.split(/[,[\].]+?/)).reduce((o,i)=>Sr(o)?o:o[i],e);return hn(r)||r===e?hn(e[t])?n:e[t]:r},fi=e=>typeof e=="boolean";const Pv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},o5=k.createContext(null),FP=()=>k.useContext(o5),D1e=e=>{const{children:t,...n}=e;return k.createElement(o5.Provider,{value:n},t)};var i5=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==pi.all&&(t._proxyFormState[a]=!r||pi.all),n&&(n[a]=!0),e[a]}});return o},ko=e=>Tn(e)&&!Object.keys(e).length,a5=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return ko(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||pi.all))},fg=e=>Array.isArray(e)?e:[e],l5=(e,t,n)=>!e||!t||e===t||fg(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function AP(e){const t=k.useRef(e);t.current=e,k.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function N1e(e){const t=FP(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,l]=k.useState(n._formState),s=k.useRef(!0),u=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=k.useRef(o);return c.current=o,AP({disabled:r,next:d=>s.current&&l5(c.current,d.name,i)&&a5(d,u.current,n._updateFormState)&&l({...n._formState,...d}),subject:n._subjects.state}),k.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),i5(a,n,u.current,!1)}var Bi=e=>typeof e=="string",s5=(e,t,n,r,o)=>Bi(e)?(r&&t.watch.add(e),Le(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Le(n,i))):(r&&(t.watchAll=!0),n);function j1e(e){const t=FP(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},l=k.useRef(r);l.current=r,AP({disabled:i,subject:n._subjects.values,next:c=>{l5(l.current,c.name,a)&&u(Lr(s5(l.current,n._names,c.values||n._formValues,!1,o)))}});const[s,u]=k.useState(n._getWatch(r,o));return k.useEffect(()=>n._removeUnmounted()),s}var LP=e=>/^\w*$/.test(e),u5=e=>hm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Nt=(e,t,n)=>{let r=-1;const o=LP(t)?[t]:u5(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let s=n;if(r!==a){const u=e[l];s=Tn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}e[l]=s,e=e[l]}return e};function z1e(e){const t=FP(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=r5(o._names.array,n),l=j1e({control:o,name:n,defaultValue:Le(o._formValues,n,Le(o._defaultValues,n,e.defaultValue)),exact:!0}),s=N1e({control:o,name:n}),u=k.useRef(o.register(n,{...e.rules,value:l,...fi(e.disabled)?{disabled:e.disabled}:{}}));return k.useEffect
Line truncated
|
|
|
|
* Determine if an object is a Buffer
|
|
|
|
* Determine if an object is a Buffer
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
|
* @license MIT
|
|
|
|
* @license MIT
|
|
|
|
*/var oCe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},Ji=kd,iCe=bz,aCe=oCe,lCe=Ka,sCe={}.hasOwnProperty,S1=["history","path","basename","stem","extname","dirname"];Ka.prototype.toString=bCe;Object.defineProperty(Ka.prototype,"path",{get:uCe,set:cCe});Object.defineProperty(Ka.prototype,"dirname",{get:dCe,set:fCe});Object.defineProperty(Ka.prototype,"basename",{get:pCe,set:mCe});Object.defineProperty(Ka.prototype,"extname",{get:hCe,set:gCe});Object.defineProperty(Ka.prototype,"stem",{get:vCe,set:yCe});function Ka(e){var t,n;if(!e)e={};else if(typeof e=="string"||aCe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ka))return new Ka(e);for(this.data={},this.messages=[],this.history=[],this.cwd=iCe.cwd(),n=-1;++n<S1.length;)t=S1[n],sCe.call(e,t)&&(this[t]=e[t]);for(t in e)S1.indexOf(t)<0&&(this[t]=e[t])}function uCe(){return this.history[this.history.length-1]}function cCe(e){XP(e,"path"),this.path!==e&&this.history.push(e)}function dCe(){return typeof this.path=="string"?Ji.dirname(this.path):void 0}function fCe(e){xz(this.path,"dirname"),this.path=Ji.join(e||"",this.basename)}function pCe(){return typeof this.path=="string"?Ji.basename(this.path):void 0}function mCe(e){XP(e,"basename"),YP(e,"basename"),this.path=Ji.join(this.dirname||"",e)}function hCe(){return typeof this.path=="string"?Ji.extname(this.path):void 0}function gCe(e){if(YP(e,"extname"),xz(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=Ji.join(this.dirname,this.stem+(e||""))}function vCe(){return typeof this.path=="string"?Ji.basename(this.path,this.extname):void 0}function yCe(e){XP(e,"stem"),YP(e,"stem"),this.path=Ji.join(this.dirname||"",e+(this.extname||""))}function bCe(e){return(this.contents||"").toString(e)}function YP(e,t){if(e&&e.indexOf(Ji.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+Ji.sep+"`")}function XP(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var xCe=Qwe,O0=lCe,wCe=O0;O0.prototype.message=CCe;O0.prototype.info=ECe;O0.prototype.fail=SCe;function CCe(e,t,n){var r=new xCe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function SCe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function ECe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var wz=wCe,PCe=kCe;function kCe(e){if(e)throw e}/*!
|
|
|
|
*/var fCe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},ta=Od,pCe=I5,mCe=fCe,hCe=Ya,gCe={}.hasOwnProperty,E1=["history","path","basename","stem","extname","dirname"];Ya.prototype.toString=$Ce;Object.defineProperty(Ya.prototype,"path",{get:vCe,set:yCe});Object.defineProperty(Ya.prototype,"dirname",{get:bCe,set:xCe});Object.defineProperty(Ya.prototype,"basename",{get:wCe,set:CCe});Object.defineProperty(Ya.prototype,"extname",{get:SCe,set:ECe});Object.defineProperty(Ya.prototype,"stem",{get:PCe,set:kCe});function Ya(e){var t,n;if(!e)e={};else if(typeof e=="string"||mCe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ya))return new Ya(e);for(this.data={},this.messages=[],this.history=[],this.cwd=pCe.cwd(),n=-1;++n<E1.length;)t=E1[n],gCe.call(e,t)&&(this[t]=e[t]);for(t in e)E1.indexOf(t)<0&&(this[t]=e[t])}function vCe(){return this.history[this.history.length-1]}function yCe(e){ek(e,"path"),this.path!==e&&this.history.push(e)}function bCe(){return typeof this.path=="string"?ta.dirname(this.path):void 0}function xCe(e){O5(this.path,"dirname"),this.path=ta.join(e||"",this.basename)}function wCe(){return typeof this.path=="string"?ta.basename(this.path):void 0}function CCe(e){ek(e,"basename"),JP(e,"basename"),this.path=ta.join(this.dirname||"",e)}function SCe(){return typeof this.path=="string"?ta.extname(this.path):void 0}function ECe(e){if(JP(e,"extname"),O5(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ta.join(this.dirname,this.stem+(e||""))}function PCe(){return typeof this.path=="string"?ta.basename(this.path,this.extname):void 0}function kCe(e){ek(e,"stem"),JP(e,"stem"),this.path=ta.join(this.dirname||"",e+(this.extname||""))}function $Ce(e){return(this.contents||"").toString(e)}function JP(e,t){if(e&&e.indexOf(ta.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+ta.sep+"`")}function ek(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function O5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var ICe=rCe,R0=hCe,OCe=R0;R0.prototype.message=MCe;R0.prototype.info=TCe;R0.prototype.fail=RCe;function MCe(e,t,n){var r=new ICe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function RCe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function TCe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var M5=OCe,_Ce=FCe;function FCe(e){if(e)throw e}/*!
|
|
|
|
* Determine if an object is a Buffer
|
|
|
|
* Determine if an object is a Buffer
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
|
* @license MIT
|
|
|
|
* @license MIT
|
|
|
|
*/var $Ce=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},pg=Object.prototype.hasOwnProperty,Cz=Object.prototype.toString,s2=Object.defineProperty,u2=Object.getOwnPropertyDescriptor,c2=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Cz.call(t)==="[object Array]"},d2=function(t){if(!t||Cz.call(t)!=="[object Object]")return!1;var n=pg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&pg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||pg.call(t,o)},f2=function(t,n){s2&&n.name==="__proto__"?s2(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},p2=function(t,n){if(n==="__proto__")if(pg.call(t,n)){if(u2)return u2(t,n).value}else return;return t[n]},ICe=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=p2(l,n),o=p2(t,n),l!==o&&(c&&o&&(d2(o)||(i=c2(o)))?(i?(i=!1,a=r&&c2(r)?r:[]):a=r&&d2(r)?r:{},f2(l,{name:n,newValue:e(c,a,o)})):typeof o<"u"&&f2(l,{name:n,newValue:o}));return l},OCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},MCe=[].slice,RCe=TCe;function TCe(e,t){var n;return r;function r(){var a=MCe.call(arguments,0),l=e.length>a.length,s;l&&a.push(o);try{s=e.apply(null,a)}catch(u){if(l&&n)throw u;return o(u)}l||(s&&typeof s.then=="function"?s.then(i,o):s instanceof Error?o(s):i(s))}function o(){n||(n=!0,t.apply(null,arguments))}function i(a){o(null,a)}}var Sz=RCe,_Ce=Ez;Ez.wrap=Sz;var m2=[].slice;function Ez(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,i=m2.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);l.apply(null,[null].concat(i));function l(s){var u=e[++o],c=m2.call(arguments,0),d=c.slice(1),f=i.length,m=-1;if(s){a(s);return}for(;++m<f;)(d[m]===null||d[m]===void 0)&&(d[m]=i[m]);i=d,u?Sz(u,l).apply(null,i):a.apply(null,[null].concat(i))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var h2=PCe,FCe=$Ce,wh=ICe,g2=OCe,Pz=_Ce,of=wz,ACe=kz().freeze(),LCe=[].slice,DCe={}.hasOwnProperty,NCe=Pz().use(jCe).use(zCe).use(BCe);function jCe(e,t){t.tree=e.parse(t.file)}function zCe(e,t,n){e.run(t.tree,t.file,r);function r(o,i,a){o?n(o):(t.tree=i,t.file=a,n())}}function BCe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||FCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function kz(){var e=[],t=Pz(),n={},r=-1,o;return i.data=l,i.freeze=a,i.attachers=e,i.use=s,i.parse=c,i.stringify=m,i.run=d,i.runSync=f,i.process=p,i.processSync=h,i;function i(){for(var y=kz(),b=-1;++b<e.length;)y.use.apply(null,e[b]);return y.data(wh(!0,{},n)),y}function a(){var y,b;if(o)return i;for(;++r<e.length;)y=e[r],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),b=y[0].apply(i,y.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,i}function l(y,b){return typeof y=="string"?arguments.length===2?(k1("data",o),n[y]=b,i):DCe.call(n,y)&&n[y]||null:y?(k1("data",o),n=y,i):n}function s(y){var b;if(k1("use",o),y!=null)if(typeof y=="function")P.apply(null,arguments);else if(typeof y=="object")"length"in y?w(y):g(y);else throw new Error("Expected usable value, not `"+y+"`");return b&&(n.settings=wh(n.settings||{},b)),i;function g(C){w(C.plugins),C.settings&&(b=wh(b||{},C.settings))}function x(C){if(typeof C=="function")P(C);else if(typeof C=="object")"length"in C?P.apply(null,C):g(C);else throw new Error("Expected usable value, not `"+C+"`")}function w(C){var E=-1;if(C!=null)if(typeof C=="object"&&"length"in C)for(;++E<C.length;)x(C[E]);else throw new Error("Expected a list of plugins, not `"+C+"`")}function P(C,E){var S=u(C);S?(g2(S[1])&&g2(E)&&(E=wh(!0,S[1],E)),S[1]=E):e.push(LCe.call(arguments))}}function u(y){for(var b=-1;++b<e.length;)if(e[b][0]===y)return e[b]}function c(y){var b=of(y),g;return a(),g=i.Parser,E1("parse",g),v2(g,"parse")?new g(String(b),b).parse():g(String(b),b)}function d(y,b,g){if(y2(y),a(),!g&&typeof b=="function"&&(g=b,b=null),!g)return new Promise(x);x(null,g);function x(w,P){t.run(y,of(b),C);function C(E,S,M){S=S||y,E?P(E):w?w(S):g(null,S,M)}}}function f(y,b){var g,x;return d(y,b,w),b2("runSync","run",x),g;function w(P,C){x=!0,g=C,h2(P)}}function m(y,b){var g=of(b),x;return a(),x=i.Compiler,P1("stringify",x),y2(y),v2(x,"compile")?new x(y,g).compile():x(y,g)}function p(y,b){if(a(),E1("process",i.Parser),P1("process",i.Compiler),!b)return new Promise(g);g(null,b);function g(x,w){var P=of(y);NCe.run(i,{file:P},C);function C(E){E?w(E):x?x(P):b(null,P)}}}function h(y){var b,g;return a(),E1("processSync",i.Parser),P1("processSLine truncated
|
|
|
|
*/var ACe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},mg=Object.prototype.hasOwnProperty,R5=Object.prototype.toString,fR=Object.defineProperty,pR=Object.getOwnPropertyDescriptor,mR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):R5.call(t)==="[object Array]"},hR=function(t){if(!t||R5.call(t)!=="[object Object]")return!1;var n=mg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&mg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||mg.call(t,o)},gR=function(t,n){fR&&n.name==="__proto__"?fR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},vR=function(t,n){if(n==="__proto__")if(mg.call(t,n)){if(pR)return pR(t,n).value}else return;return t[n]},LCe=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=vR(l,n),o=vR(t,n),l!==o&&(c&&o&&(hR(o)||(i=mR(o)))?(i?(i=!1,a=r&&mR(r)?r:[]):a=r&&hR(r)?r:{},gR(l,{name:n,newValue:e(c,a,o)})):typeof o<"u"&&gR(l,{name:n,newValue:o}));return l},DCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},NCe=[].slice,jCe=zCe;function zCe(e,t){var n;return r;function r(){var a=NCe.call(arguments,0),l=e.length>a.length,s;l&&a.push(o);try{s=e.apply(null,a)}catch(u){if(l&&n)throw u;return o(u)}l||(s&&typeof s.then=="function"?s.then(i,o):s instanceof Error?o(s):i(s))}function o(){n||(n=!0,t.apply(null,arguments))}function i(a){o(null,a)}}var T5=jCe,BCe=_5;_5.wrap=T5;var yR=[].slice;function _5(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,i=yR.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);l.apply(null,[null].concat(i));function l(s){var u=e[++o],c=yR.call(arguments,0),d=c.slice(1),f=i.length,m=-1;if(s){a(s);return}for(;++m<f;)(d[m]===null||d[m]===void 0)&&(d[m]=i[m]);i=d,u?T5(u,l).apply(null,i):a.apply(null,[null].concat(i))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var bR=_Ce,HCe=ACe,Sh=LCe,xR=DCe,F5=BCe,lf=M5,VCe=A5().freeze(),UCe=[].slice,WCe={}.hasOwnProperty,GCe=F5().use(qCe).use(KCe).use(QCe);function qCe(e,t){t.tree=e.parse(t.file)}function KCe(e,t,n){e.run(t.tree,t.file,r);function r(o,i,a){o?n(o):(t.tree=i,t.file=a,n())}}function QCe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||HCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function A5(){var e=[],t=F5(),n={},r=-1,o;return i.data=l,i.freeze=a,i.attachers=e,i.use=s,i.parse=c,i.stringify=m,i.run=d,i.runSync=f,i.process=p,i.processSync=h,i;function i(){for(var y=A5(),b=-1;++b<e.length;)y.use.apply(null,e[b]);return y.data(Sh(!0,{},n)),y}function a(){var y,b;if(o)return i;for(;++r<e.length;)y=e[r],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),b=y[0].apply(i,y.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,i}function l(y,b){return typeof y=="string"?arguments.length===2?($1("data",o),n[y]=b,i):WCe.call(n,y)&&n[y]||null:y?($1("data",o),n=y,i):n}function s(y){var b;if($1("use",o),y!=null)if(typeof y=="function")P.apply(null,arguments);else if(typeof y=="object")"length"in y?w(y):g(y);else throw new Error("Expected usable value, not `"+y+"`");return b&&(n.settings=Sh(n.settings||{},b)),i;function g(C){w(C.plugins),C.settings&&(b=Sh(b||{},C.settings))}function x(C){if(typeof C=="function")P(C);else if(typeof C=="object")"length"in C?P.apply(null,C):g(C);else throw new Error("Expected usable value, not `"+C+"`")}function w(C){var E=-1;if(C!=null)if(typeof C=="object"&&"length"in C)for(;++E<C.length;)x(C[E]);else throw new Error("Expected a list of plugins, not `"+C+"`")}function P(C,E){var S=u(C);S?(xR(S[1])&&xR(E)&&(E=Sh(!0,S[1],E)),S[1]=E):e.push(UCe.call(arguments))}}function u(y){for(var b=-1;++b<e.length;)if(e[b][0]===y)return e[b]}function c(y){var b=lf(y),g;return a(),g=i.Parser,P1("parse",g),wR(g,"parse")?new g(String(b),b).parse():g(String(b),b)}function d(y,b,g){if(CR(y),a(),!g&&typeof b=="function"&&(g=b,b=null),!g)return new Promise(x);x(null,g);function x(w,P){t.run(y,lf(b),C);function C(E,S,M){S=S||y,E?P(E):w?w(S):g(null,S,M)}}}function f(y,b){var g,x;return d(y,b,w),SR("runSync","run",x),g;function w(P,C){x=!0,g=C,bR(P)}}function m(y,b){var g=lf(b),x;return a(),x=i.Compiler,k1("stringify",x),CR(y),wR(x,"compile")?new x(y,g).compile():x(y,g)}function p(y,b){if(a(),P1("process",i.Parser),k1("process",i.Compiler),!b)return new Promise(g);g(null,b);function g(x,w){var P=lf(y);GCe.run(i,{file:P},C);function C(E){E?w(E):x?x(P):b(null,P)}}}function h(y){var b,g;return a(),P1("processSync",i.Parser),k1("processSLine truncated
|
|
|
|
`;else if(r===-3)o=`\r
|
|
|
|
`;else if(r===-3)o=`\r
|
|
|
|
`;else if(r===-2)o=" ";else if(r===-1){if(i)continue;o=" "}else o=tEe(r);i=r===-2,n.push(o)}return n.join("")}var rEe=nEe;function oEe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}var iEe=oEe,aEe=ym,lEe=_n,sEe=rk,uEe=al,O1=nk,cEe=T0,dEe=rEe,E2=Pu,fEe=iEe;function pEe(e,t,n){var r=n?E2(n):{line:1,column:1,offset:0},o={},i=[],a=[],l=[],s={consume:g,enter:x,exit:w,attempt:E(P),check:E(C),interrupt:E(C,{interrupt:!0}),lazy:E(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:f,now:p,defineSkip:h,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(R){return a=sEe(a,R),y(),a[a.length-1]!==null?[]:(S(t,0),u.events=cEe(i,u.events,u),u.events)}function f(R){return dEe(m(R))}function m(R){return fEe(a,R)}function p(){return E2(r)}function h(R){o[R.line]=R.column,I()}function y(){for(var R,_;r._index<a.length;)if(_=a[r._index],typeof _=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<_.length;)b(_.charCodeAt(r._bufferIndex));else b(_)}function b(R){c=c(R)}function g(R){lEe(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,I()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function x(R,_){var D=_||{};return D.type=R,D.start=p(),u.events.push(["enter",D,u]),l.push(D),D}function w(R){var _=l.pop();return _.end=p(),u.events.push(["exit",_,u]),_}function P(R,_){S(R,_.from)}function C(R,_){_.restore()}function E(R,_){return D;function D(T,F,N){var $,L,z,B;return T.tokenize||"length"in T?H(O1(T)):A;function A(Y){return Y in T||null in T?H(T.null?O1(T[Y]).concat(O1(T.null)):T[Y])(Y):N(Y)}function H(Y){return $=Y,L=0,q(Y[L])}function q(Y){return re;function re(le){return B=M(),z=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.indexOf(Y.name)>-1?G():Y.tokenize.call(_?aEe({},u,_):u,s,U,G)(le)}}function U(Y){return R(z,B),F}function G(Y){return B.restore(),++L<$.length?q($[L]):N}}}function S(R,_){R.resolveAll&&i.indexOf(R)<0&&i.push(R),R.resolve&&uEe(u.events,_,u.events.length-_,R.resolve(u.events.slice(_),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function M(){var R=p(),_=u.previous,D=u.currentConstruct,T=u.events.length,F=Array.from(l);return{restore:N,from:T};function N(){r=R,u.previous=_,u.currentConstruct=D,u.events.length=T,l=F,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var mEe=pEe,ua={};function hEe(e){return e<0||e===32}var ll=hEe,gEe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,vEe=gEe,yEe=M0;function bEe(e){return t;function t(n){return e.test(yEe(n))}}var hs=bEe,xEe=vEe,wEe=hs,CEe=wEe(xEe),ok=CEe,SEe=hs,EEe=SEe(/\s/),ik=EEe,PEe=ll,kEe=ok,$Ee=ik;function IEe(e){if(e===null||PEe(e)||$Ee(e))return 1;if(kEe(e))return 2}var Dz=IEe;function OEe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var MEe=OEe,af=rk,REe=al,P2=Dz,k2=MEe,TEe=T0,Oi=Pu,_Ee={name:"attention",tokenize:AEe,resolveAll:FEe};function FEe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,a={type:s>1Line truncated
|
|
|
|
`;else if(r===-2)o=" ";else if(r===-1){if(i)continue;o=" "}else o=uEe(r);i=r===-2,n.push(o)}return n.join("")}var dEe=cEe;function fEe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}var pEe=fEe,mEe=bm,hEe=Fn,gEe=ak,vEe=sl,M1=ik,yEe=F0,bEe=dEe,IR=$u,xEe=pEe;function wEe(e,t,n){var r=n?IR(n):{line:1,column:1,offset:0},o={},i=[],a=[],l=[],s={consume:g,enter:x,exit:w,attempt:E(P),check:E(C),interrupt:E(C,{interrupt:!0}),lazy:E(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:f,now:p,defineSkip:h,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(R){return a=gEe(a,R),y(),a[a.length-1]!==null?[]:(S(t,0),u.events=yEe(i,u.events,u),u.events)}function f(R){return bEe(m(R))}function m(R){return xEe(a,R)}function p(){return IR(r)}function h(R){o[R.line]=R.column,O()}function y(){for(var R,_;r._index<a.length;)if(_=a[r._index],typeof _=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<_.length;)b(_.charCodeAt(r._bufferIndex));else b(_)}function b(R){c=c(R)}function g(R){hEe(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,O()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function x(R,_){var D=_||{};return D.type=R,D.start=p(),u.events.push(["enter",D,u]),l.push(D),D}function w(R){var _=l.pop();return _.end=p(),u.events.push(["exit",_,u]),_}function P(R,_){S(R,_.from)}function C(R,_){_.restore()}function E(R,_){return D;function D(T,F,j){var $,L,z,B;return T.tokenize||"length"in T?H(M1(T)):A;function A(Y){return Y in T||null in T?H(T.null?M1(T[Y]).concat(M1(T.null)):T[Y])(Y):j(Y)}function H(Y){return $=Y,L=0,q(Y[L])}function q(Y){return re;function re(le){return B=M(),z=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.indexOf(Y.name)>-1?G():Y.tokenize.call(_?mEe({},u,_):u,s,U,G)(le)}}function U(Y){return R(z,B),F}function G(Y){return B.restore(),++L<$.length?q($[L]):j}}}function S(R,_){R.resolveAll&&i.indexOf(R)<0&&i.push(R),R.resolve&&vEe(u.events,_,u.events.length-_,R.resolve(u.events.slice(_),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function M(){var R=p(),_=u.previous,D=u.currentConstruct,T=u.events.length,F=Array.from(l);return{restore:j,from:T};function j(){r=R,u.previous=_,u.currentConstruct=D,u.events.length=T,l=F,O()}}function O(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var CEe=wEe,da={};function SEe(e){return e<0||e===32}var ul=SEe,EEe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,PEe=EEe,kEe=T0;function $Ee(e){return t;function t(n){return e.test(kEe(n))}}var ys=$Ee,IEe=PEe,OEe=ys,MEe=OEe(IEe),lk=MEe,REe=ys,TEe=REe(/\s/),sk=TEe,_Ee=ul,FEe=lk,AEe=sk;function LEe(e){if(e===null||_Ee(e)||AEe(e))return 1;if(FEe(e))return 2}var G5=LEe;function DEe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var NEe=DEe,sf=ak,jEe=sl,OR=G5,MR=NEe,zEe=F0,Mi=$u,BEe={name:"attention",tokenize:VEe,resolveAll:HEe};function HEe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,a={type:s>1Line truncated
|
|
|
|
`));++r<o;)r&&n.push(z1("text",`
|
|
|
|
`));++r<o;)r&&n.push(B1("text",`
|
|
|
|
`)),n.push(e[r]);return t&&e.length>0&&n.push(z1("text",`
|
|
|
|
`)),n.push(e[r]);return t&&e.length>0&&n.push(B1("text",`
|
|
|
|
`)),n}var p5=YIe,KIe=wm,QIe=Kr();function YIe(e,t){var n={},r=t.ordered?"ol":"ul",o,i=-1,a;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start),o=QIe(e,t),a=o.length;++i<a;)if(o[i].properties.className&&o[i].properties.className.indexOf("task-list-item")!==-1){n.className=["contains-task-list"];break}return e(t,r,n,KIe(o,!0))}var XIe=tOe,ZIe=f5,JIe=p5,eOe=wm;function tOe(e){for(var t=e.footnoteById,n=e.footnoteOrder,r=n.length,o=-1,i=[],a,l,s,u;++o<r;)a=t[n[o].toUpperCase()],a&&(s=a.children.concat(),u=s[s.length-1],l={type:"link",url:"#fnref-"+a.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},(!u||u.type!=="paragraph")&&(u={type:"paragraph",children:[]},s.push(u)),u.children.push(l),i.push({type:"listItem",data:{hProperties:{id:"fn-"+a.identifier}},children:s,position:a.position}));return i.length===0?null:e(null,"div",{className:["footnotes"]},eOe([ZIe(e),JIe(e,{type:"list",ordered:!0,children:i})],!0))}var nOe=iOe,rOe=wm,oOe=Kr();function iOe(e,t){return e(t,"blockquote",rOe(oOe(e,t),!0))}var aOe=sOe,lOe=ei;function sOe(e,t){return[e(t,"br"),lOe("text",`
|
|
|
|
`)),n}var Cz=oOe,nOe=Cm,rOe=Kr();function oOe(e,t){var n={},r=t.ordered?"ol":"ul",o,i=-1,a;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start),o=rOe(e,t),a=o.length;++i<a;)if(o[i].properties.className&&o[i].properties.className.indexOf("task-list-item")!==-1){n.className=["contains-task-list"];break}return e(t,r,n,nOe(o,!0))}var iOe=uOe,aOe=wz,lOe=Cz,sOe=Cm;function uOe(e){for(var t=e.footnoteById,n=e.footnoteOrder,r=n.length,o=-1,i=[],a,l,s,u;++o<r;)a=t[n[o].toUpperCase()],a&&(s=a.children.concat(),u=s[s.length-1],l={type:"link",url:"#fnref-"+a.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},(!u||u.type!=="paragraph")&&(u={type:"paragraph",children:[]},s.push(u)),u.children.push(l),i.push({type:"listItem",data:{hProperties:{id:"fn-"+a.identifier}},children:s,position:a.position}));return i.length===0?null:e(null,"div",{className:["footnotes"]},sOe([aOe(e),lOe(e,{type:"list",ordered:!0,children:i})],!0))}var cOe=pOe,dOe=Cm,fOe=Kr();function pOe(e,t){return e(t,"blockquote",dOe(fOe(e,t),!0))}var mOe=gOe,hOe=ei;function gOe(e,t){return[e(t,"br"),hOe("text",`
|
|
|
|
`)]}var uOe=dOe,cOe=ei;function dOe(e,t){var n=t.value?t.value+`
|
|
|
|
`)]}var vOe=bOe,yOe=ei;function bOe(e,t){var n=t.value?t.value+`
|
|
|
|
`:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={},i;return r&&(o.className=["language-"+r]),i=e(t,"code",o,[cOe("text",n)]),t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])}var fOe=mOe,pOe=Kr();function mOe(e,t){return e(t,"del",pOe(e,t))}var hOe=vOe,gOe=Kr();function vOe(e,t){return e(t,"em",gOe(e,t))}var m5=bOe,yOe=ei;function bOe(e,t){var n=e.footnoteOrder,r=String(t.identifier);return n.indexOf(r)===-1&&n.push(r),e(t.position,"sup",{id:"fnref-"+r},[e(t,"a",{href:"#fn-"+r,className:["footnote-ref"]},[yOe("text",t.label||r)])])}var xOe=COe,wOe=m5;function COe(e,t){for(var n=e.footnoteById,r=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),r.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},wOe(e,{type:"footnoteReference",identifier:o,position:t.position})}var SOe=POe,EOe=Kr();function POe(e,t){return e(t,"h"+t.depth,EOe(e,t))}var kOe=IOe,$Oe=ei;function IOe(e,t){return e.dangerous?e.augment(t,$Oe("raw",t.value)):null}var q2={};function OOe(e){var t,n,r=q2[e];if(r)return r;for(r=q2[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function D0(e,t,n){var r,o,i,a,l,s="";for(typeof t!="string"&&(n=t,t=D0.defaultChars),typeof n>"u"&&(n=!0),l=OOe(t),r=0,o=e.length;r<o;r++){if(i=e.charCodeAt(r),n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(i<128){s+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}D0.defaultChars=";/?:@&=+$,-_.!~*'()#";D0.componentChars="-_.!~*'()";var N0=D0,h5=ROe,B1=ei,MOe=Kr();function ROe(e,t){var n=t.referenceType,r="]",o,i,a;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?B1("text","!["+t.alt+r):(o=MOe(e,t),i=o[0],i&&i.type==="text"?i.value="["+i.value:o.unshift(B1("text","[")),a=o[o.length-1],a&&a.type==="text"?a.value+=r:o.push(B1("text",r)),o)}var TOe=AOe,_Oe=N0,FOe=h5;function AOe(e,t){var n=e.definition(t.identifier),r;return n?(r={src:_Oe(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):FOe(e,t)}var LOe=N0,DOe=NOe;function NOe(e,t){var n={src:LOe(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var jOe=BOe,zOe=ei;function BOe(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[zOe("text",n)])}var HOe=GOe,VOe=N0,UOe=h5,WOe=Kr();function GOe(e,t){var n=e.definition(t.identifier),r;return n?(r={href:VOe(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,WOe(e,t))):UOe(e,t)}var qOe=N0,KOe=Kr(),QOe=YOe;function YOe(e,t){var n={href:qOe(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,KOe(e,t))}var XOe=JOe,H1=ei,ZOe=Kr();function JOe(e,t,n){var r=ZOe(e,t),o=r[0],i=n?eMe(n):g5(t),a={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!o||o.tagName!=="p")&&(o=e(null,"p",[]),r.unshift(o)),o.children.length>0&&o.children.unshift(H1("text"," ")),o.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]),s=r.length,u=-1;++u<s;)c=r[u],(i||u!==0||c.tagName!=="p")&&l.push(H1("text",`
|
|
|
|
`:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={},i;return r&&(o.className=["language-"+r]),i=e(t,"code",o,[yOe("text",n)]),t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])}var xOe=COe,wOe=Kr();function COe(e,t){return e(t,"del",wOe(e,t))}var SOe=POe,EOe=Kr();function POe(e,t){return e(t,"em",EOe(e,t))}var Sz=$Oe,kOe=ei;function $Oe(e,t){var n=e.footnoteOrder,r=String(t.identifier);return n.indexOf(r)===-1&&n.push(r),e(t.position,"sup",{id:"fnref-"+r},[e(t,"a",{href:"#fn-"+r,className:["footnote-ref"]},[kOe("text",t.label||r)])])}var IOe=MOe,OOe=Sz;function MOe(e,t){for(var n=e.footnoteById,r=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),r.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},OOe(e,{type:"footnoteReference",identifier:o,position:t.position})}var ROe=_Oe,TOe=Kr();function _Oe(e,t){return e(t,"h"+t.depth,TOe(e,t))}var FOe=LOe,AOe=ei;function LOe(e,t){return e.dangerous?e.augment(t,AOe("raw",t.value)):null}var XR={};function DOe(e){var t,n,r=XR[e];if(r)return r;for(r=XR[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function j0(e,t,n){var r,o,i,a,l,s="";for(typeof t!="string"&&(n=t,t=j0.defaultChars),typeof n>"u"&&(n=!0),l=DOe(t),r=0,o=e.length;r<o;r++){if(i=e.charCodeAt(r),n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(i<128){s+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}j0.defaultChars=";/?:@&=+$,-_.!~*'()#";j0.componentChars="-_.!~*'()";var z0=j0,Ez=jOe,H1=ei,NOe=Kr();function jOe(e,t){var n=t.referenceType,r="]",o,i,a;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?H1("text","!["+t.alt+r):(o=NOe(e,t),i=o[0],i&&i.type==="text"?i.value="["+i.value:o.unshift(H1("text","[")),a=o[o.length-1],a&&a.type==="text"?a.value+=r:o.push(H1("text",r)),o)}var zOe=VOe,BOe=z0,HOe=Ez;function VOe(e,t){var n=e.definition(t.identifier),r;return n?(r={src:BOe(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):HOe(e,t)}var UOe=z0,WOe=GOe;function GOe(e,t){var n={src:UOe(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var qOe=QOe,KOe=ei;function QOe(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[KOe("text",n)])}var YOe=eMe,XOe=z0,ZOe=Ez,JOe=Kr();function eMe(e,t){var n=e.definition(t.identifier),r;return n?(r={href:XOe(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,JOe(e,t))):ZOe(e,t)}var tMe=z0,nMe=Kr(),rMe=oMe;function oMe(e,t){var n={href:tMe(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,nMe(e,t))}var iMe=lMe,V1=ei,aMe=Kr();function lMe(e,t,n){var r=aMe(e,t),o=r[0],i=n?sMe(n):Pz(t),a={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!o||o.tagName!=="p")&&(o=e(null,"p",[]),r.unshift(o)),o.children.length>0&&o.children.unshift(V1("text"," ")),o.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]),s=r.length,u=-1;++u<s;)c=r[u],(i||u!==0||c.tagName!=="p")&&l.push(V1("text",`
|
|
|
|
`)),c.tagName==="p"&&!i?l=l.concat(c.children):l.push(c);return s&&(i||c.tagName!=="p")&&l.push(H1("text",`
|
|
|
|
`)),c.tagName==="p"&&!i?l=l.concat(c.children):l.push(c);return s&&(i||c.tagName!=="p")&&l.push(V1("text",`
|
|
|
|
`)),e(t,"li",a,l)}function eMe(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=g5(n[o]);return t}function g5(e){var t=e.spread;return t??e.children.length>1}var tMe=rMe,nMe=Kr();function rMe(e,t){return e(t,"p",nMe(e,t))}var oMe=sMe,iMe=ei,aMe=wm,lMe=Kr();function sMe(e,t){return e.augment(t,iMe("root",aMe(lMe(e,t))))}var uMe=dMe,cMe=Kr();function dMe(e,t){return e(t,"strong",cMe(e,t))}var fMe=mMe,K2=l5,Ih=wm,pMe=Kr();function mMe(e,t){for(var n=t.children,r=n.length,o=t.align||[],i=o.length,a=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:o[l]},d?pMe(e,d):[]);a[r]=e(n[r],"tr",Ih(u,!0))}return e(t,"table",Ih([e(a[0].position,"thead",Ih([a[0]],!0))].concat(a[1]?e({start:K2.start(a[1]),end:K2.end(a[a.length-1])},"tbody",Ih(a.slice(1),!0)):[]),!0))}var hMe=vMe,gMe=ei;function vMe(e,t){return e.augment(t,gMe("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var yMe={blockquote:nOe,break:aOe,code:uOe,delete:fOe,emphasis:hOe,footnoteReference:m5,footnote:xOe,heading:SOe,html:kOe,imageReference:TOe,image:DOe,inlineCode:jOe,linkReference:HOe,link:QOe,listItem:XOe,list:p5,paragraph:tMe,root:oMe,strong:uMe,table:fMe,text:hMe,thematicBreak:f5,toml:Oh,yaml:Oh,definition:Oh,footnoteDefinition:Oh};function Oh(){return null}var bMe=OMe,xMe=ei,wMe=ck,Q2=l5,CMe=jIe,SMe=HIe,EMe=d5(),PMe=XIe,kMe=yMe,$Me={}.hasOwnProperty,Y2=!1;function IMe(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!Y2&&(Y2=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,o={};return a.dangerous=r,a.definition=SMe(e),a.footnoteById=o,a.footnoteOrder=[],a.augment=i,a.handlers=Object.assign({},kMe,n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,wMe(e,"footnoteDefinition",l),a;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},CMe(d)||(u.position={start:Q2.start(d),end:Q2.end(d)}),u}function a(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();$Me.call(o,u)||(o[u]=s)}}function OMe(e,t){var n=IMe(e,t),r=EMe(n,e),o=PMe(n);return o&&(r.children=r.children.concat(xMe("text",`
|
|
|
|
`)),e(t,"li",a,l)}function sMe(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=Pz(n[o]);return t}function Pz(e){var t=e.spread;return t??e.children.length>1}var uMe=dMe,cMe=Kr();function dMe(e,t){return e(t,"p",cMe(e,t))}var fMe=gMe,pMe=ei,mMe=Cm,hMe=Kr();function gMe(e,t){return e.augment(t,pMe("root",mMe(hMe(e,t))))}var vMe=bMe,yMe=Kr();function bMe(e,t){return e(t,"strong",yMe(e,t))}var xMe=CMe,ZR=gz,Mh=Cm,wMe=Kr();function CMe(e,t){for(var n=t.children,r=n.length,o=t.align||[],i=o.length,a=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:o[l]},d?wMe(e,d):[]);a[r]=e(n[r],"tr",Mh(u,!0))}return e(t,"table",Mh([e(a[0].position,"thead",Mh([a[0]],!0))].concat(a[1]?e({start:ZR.start(a[1]),end:ZR.end(a[a.length-1])},"tbody",Mh(a.slice(1),!0)):[]),!0))}var SMe=PMe,EMe=ei;function PMe(e,t){return e.augment(t,EMe("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var kMe={blockquote:cOe,break:mOe,code:vOe,delete:xOe,emphasis:SOe,footnoteReference:Sz,footnote:IOe,heading:ROe,html:FOe,imageReference:zOe,image:WOe,inlineCode:qOe,linkReference:YOe,link:rMe,listItem:iMe,list:Cz,paragraph:uMe,root:fMe,strong:vMe,table:xMe,text:SMe,thematicBreak:wz,toml:Rh,yaml:Rh,definition:Rh,footnoteDefinition:Rh};function Rh(){return null}var $Me=DMe,IMe=ei,OMe=pk,JR=gz,MMe=qIe,RMe=YIe,TMe=xz(),_Me=iOe,FMe=kMe,AMe={}.hasOwnProperty,eT=!1;function LMe(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!eT&&(eT=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,o={};return a.dangerous=r,a.definition=RMe(e),a.footnoteById=o,a.footnoteOrder=[],a.augment=i,a.handlers=Object.assign({},FMe,n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,OMe(e,"footnoteDefinition",l),a;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},MMe(d)||(u.position={start:JR.start(d),end:JR.end(d)}),u}function a(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();AMe.call(o,u)||(o[u]=s)}}function DMe(e,t){var n=LMe(e,t),r=TMe(n,e),o=_Me(n);return o&&(r.children=r.children.concat(IMe("text",`
|
|
|
|
`),o)),r}var MMe=bMe,v5=MMe,RMe=TMe;function TMe(e,t){return e&&!e.process&&(t=e,e=null),e?_Me(e,t):FMe(t)}function _Me(e,t){return n;function n(r,o,i){e.run(v5(r,t),o,a);function a(l){i(l)}}}function FMe(e){return t;function t(n){return v5(n,e)}}var AMe=DMe,LMe=Object.prototype.hasOwnProperty;function DMe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)LMe.call(n,r)&&(e[r]=n[r])}return e}var y5=b5,fk=b5.prototype;fk.space=null;fk.normal={};fk.property={};function b5(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var X2=AMe,NMe=y5,x5=jMe;function jMe(e){for(var t=e.length,n=[],r=[],o=-1,i,a;++o<t;)i=e[o],n.push(i.property),r.push(i.normal),a=i.space;return new NMe(X2.apply(null,n),X2.apply(null,r),a)}var w5=zMe;function zMe(e){return e.toLowerCase()}var C5=S5,ti=S5.prototype;ti.space=null;ti.attribute=null;ti.property=null;ti.boolean=!1;ti.booleanish=!1;ti.overloadedBoolean=!1;ti.number=!1;ti.commaSeparated=!1;ti.spaceSeparated=!1;ti.commaOrSpaceSeparated=!1;ti.mustUseProperty=!1;ti.defined=!1;function S5(e,t){this.property=e,this.attribute=t}var Ci={},BMe=0;Ci.boolean=ku();Ci.booleanish=ku();Ci.overloadedBoolean=ku();Ci.number=ku();Ci.spaceSeparated=ku();Ci.commaSeparated=ku();Ci.commaOrSpaceSeparated=ku();function ku(){return Math.pow(2,++BMe)}var E5=C5,Z2=Ci,P5=pk;pk.prototype=new E5;pk.prototype.defined=!0;var k5=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],HMe=k5.length;function pk(e,t,n,r){var o=-1,i;for(J2(this,"space",r),E5.call(this,e,t);++o<HMe;)i=k5[o],J2(this,i,(n&Z2[i])===Z2[i])}function J2(e,t,n){n&&(e[t]=n)}var eT=w5,VMe=y5,UMe=P5,Id=WMe;function WMe(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},o=e.properties,i=e.transform,a={},l={},s,u;for(s in o)u=new UMe(s,i(r,s),o[s],t),n.indexOf(s)!==-1&&(u.mustUseProperty=!0),a[s]=u,l[eT(s)]=s,l[eT(u.attribute)]=s;return new VMe(a,l,t)}var GMe=Id,$5=GMe({space:"xlink",transform:qMe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function qMe(e,t){return"xlink:"+t.slice(5).toLowerCase()}var KMe=Id,I5=KMe({space:"xml",transform:QMe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function QMe(e,t){return"xml:"+t.slice(3).toLowerCase()}var O5=YMe;function YMe(e,t){return t in e?e[t]:t}var XMe=O5,M5=ZMe;function ZMe(e,t){return XMe(e,t.toLowerCase())}var JMe=Id,eRe=M5,R5=JMe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:eRe,properties:{xmlns:null,xmlnsXLink:null}}),mk=Ci,tRe=Id,_r=mk.booleanish,bo=mk.number,vs=mk.spaceSeparated,T5=tRe({transform:nRe,properties:{ariaActiveDescendant:null,ariaAtomic:_r,ariaAutoComplete:null,ariaBusy:_r,ariaChecked:_r,ariaColCount:bo,ariaColIndex:bo,ariaColSpan:bo,ariaControls:vs,ariaCurrent:null,ariaDescribedBy:vs,ariaDetails:null,ariaDisabled:_r,ariaDropEffect:vs,ariaErrorMessage:null,ariaExpanded:_r,ariaFlowTo:vs,ariaGrabbed:_r,ariaHasPopup:null,ariaHidden:_r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vs,ariaLevel:bo,ariaLive:null,ariaModal:_r,ariaMultiLine:_r,ariaMultiSelectable:_r,ariaOrientation:null,ariaOwns:vs,ariaPlaceholder:null,ariaPosInSet:bo,ariaPressed:_r,ariaReadOnly:_r,ariaRelevant:null,ariaRequired:_r,ariaRoleDescription:vs,ariaRowCount:bo,ariaRowIndex:bo,ariaRowSpan:bo,ariaSelected:_r,ariaSetSize:bo,ariaSort:null,ariaValueMax:bo,ariaValueMin:bo,ariaValueNow:bo,ariaValueText:null,role:null}});function nRe(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Od=Ci,rRe=Id,oRe=M5,at=Od.boolean,iRe=Od.overloadedBoolean,uf=Od.booleanish,Gt=Od.number,vr=Od.spaceSeparated,Mh=Od.commaSeparated,aRe=rRe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:oRe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mh,acceptCharset:vr,accessKey:vr,action:null,allow:null,allowFullScreen:at,allowPaymentRequest:at,allowUserMedia:at,alt:null,as:null,async:at,autoCapitalize:null,autoComplete:vr,autoFocus:at,autoPlay:at,capture:at,charSet:null,checked:at,cite:null,className:vr,cols:Gt,colSpan:null,content:null,contentEditable:uf,controls:at,controlsList:vr,coords:Gt|Mh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:at,defer:at,dir:null,dirName:null,disabled:at,download:iRe,draggable:uf,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:at,formTarget:null,headers:vr,height:Gt,hidden:at,high:Gt,href:null,hrefLang:null,htmlFor:vr,httpEquiv:vr,id:null,imageSizes:null,imageSrcSet:Mh,inputMode:null,integrity:null,is:null,isMap:at,itemId:null,itemProp:vr,itemRef:vr,itemScope:at,itemType:vr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:at,low:Gt,manifest:null,max:null,maxLength:Gt,media:null,method:null,min:null,minLength:Gt,multiple:at,muted:at,name:null,nonce:null,noModule:at,noValidate
Line truncated
|
|
|
|
`),o)),r}var NMe=$Me,kz=NMe,jMe=zMe;function zMe(e,t){return e&&!e.process&&(t=e,e=null),e?BMe(e,t):HMe(t)}function BMe(e,t){return n;function n(r,o,i){e.run(kz(r,t),o,a);function a(l){i(l)}}}function HMe(e){return t;function t(n){return kz(n,e)}}var VMe=WMe,UMe=Object.prototype.hasOwnProperty;function WMe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)UMe.call(n,r)&&(e[r]=n[r])}return e}var $z=Iz,hk=Iz.prototype;hk.space=null;hk.normal={};hk.property={};function Iz(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var tT=VMe,GMe=$z,Oz=qMe;function qMe(e){for(var t=e.length,n=[],r=[],o=-1,i,a;++o<t;)i=e[o],n.push(i.property),r.push(i.normal),a=i.space;return new GMe(tT.apply(null,n),tT.apply(null,r),a)}var Mz=KMe;function KMe(e){return e.toLowerCase()}var Rz=Tz,ti=Tz.prototype;ti.space=null;ti.attribute=null;ti.property=null;ti.boolean=!1;ti.booleanish=!1;ti.overloadedBoolean=!1;ti.number=!1;ti.commaSeparated=!1;ti.spaceSeparated=!1;ti.commaOrSpaceSeparated=!1;ti.mustUseProperty=!1;ti.defined=!1;function Tz(e,t){this.property=e,this.attribute=t}var Si={},QMe=0;Si.boolean=Iu();Si.booleanish=Iu();Si.overloadedBoolean=Iu();Si.number=Iu();Si.spaceSeparated=Iu();Si.commaSeparated=Iu();Si.commaOrSpaceSeparated=Iu();function Iu(){return Math.pow(2,++QMe)}var _z=Rz,nT=Si,Fz=gk;gk.prototype=new _z;gk.prototype.defined=!0;var Az=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],YMe=Az.length;function gk(e,t,n,r){var o=-1,i;for(rT(this,"space",r),_z.call(this,e,t);++o<YMe;)i=Az[o],rT(this,i,(n&nT[i])===nT[i])}function rT(e,t,n){n&&(e[t]=n)}var oT=Mz,XMe=$z,ZMe=Fz,Rd=JMe;function JMe(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},o=e.properties,i=e.transform,a={},l={},s,u;for(s in o)u=new ZMe(s,i(r,s),o[s],t),n.indexOf(s)!==-1&&(u.mustUseProperty=!0),a[s]=u,l[oT(s)]=s,l[oT(u.attribute)]=s;return new XMe(a,l,t)}var e2e=Rd,Lz=e2e({space:"xlink",transform:t2e,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t2e(e,t){return"xlink:"+t.slice(5).toLowerCase()}var n2e=Rd,Dz=n2e({space:"xml",transform:r2e,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function r2e(e,t){return"xml:"+t.slice(3).toLowerCase()}var Nz=o2e;function o2e(e,t){return t in e?e[t]:t}var i2e=Nz,jz=a2e;function a2e(e,t){return i2e(e,t.toLowerCase())}var l2e=Rd,s2e=jz,zz=l2e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:s2e,properties:{xmlns:null,xmlnsXLink:null}}),vk=Si,u2e=Rd,Fr=vk.booleanish,bo=vk.number,xs=vk.spaceSeparated,Bz=u2e({transform:c2e,properties:{ariaActiveDescendant:null,ariaAtomic:Fr,ariaAutoComplete:null,ariaBusy:Fr,ariaChecked:Fr,ariaColCount:bo,ariaColIndex:bo,ariaColSpan:bo,ariaControls:xs,ariaCurrent:null,ariaDescribedBy:xs,ariaDetails:null,ariaDisabled:Fr,ariaDropEffect:xs,ariaErrorMessage:null,ariaExpanded:Fr,ariaFlowTo:xs,ariaGrabbed:Fr,ariaHasPopup:null,ariaHidden:Fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xs,ariaLevel:bo,ariaLive:null,ariaModal:Fr,ariaMultiLine:Fr,ariaMultiSelectable:Fr,ariaOrientation:null,ariaOwns:xs,ariaPlaceholder:null,ariaPosInSet:bo,ariaPressed:Fr,ariaReadOnly:Fr,ariaRelevant:null,ariaRequired:Fr,ariaRoleDescription:xs,ariaRowCount:bo,ariaRowIndex:bo,ariaRowSpan:bo,ariaSelected:Fr,ariaSetSize:bo,ariaSort:null,ariaValueMax:bo,ariaValueMin:bo,ariaValueNow:bo,ariaValueText:null,role:null}});function c2e(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Td=Si,d2e=Rd,f2e=jz,lt=Td.boolean,p2e=Td.overloadedBoolean,df=Td.booleanish,qt=Td.number,yr=Td.spaceSeparated,Th=Td.commaSeparated,m2e=d2e({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:f2e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Th,acceptCharset:yr,accessKey:yr,action:null,allow:null,allowFullScreen:lt,allowPaymentRequest:lt,allowUserMedia:lt,alt:null,as:null,async:lt,autoCapitalize:null,autoComplete:yr,autoFocus:lt,autoPlay:lt,capture:lt,charSet:null,checked:lt,cite:null,className:yr,cols:qt,colSpan:null,content:null,contentEditable:df,controls:lt,controlsList:yr,coords:qt|Th,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lt,defer:lt,dir:null,dirName:null,disabled:lt,download:p2e,draggable:df,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lt,formTarget:null,headers:yr,height:qt,hidden:lt,high:qt,href:null,hrefLang:null,htmlFor:yr,httpEquiv:yr,id:null,imageSizes:null,imageSrcSet:Th,inputMode:null,integrity:null,is:null,isMap:lt,itemId:null,itemProp:yr,itemRef:yr,itemScope:lt,itemType:yr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lt,low:qt,manifest:null,max:null,maxLength:qt,media:null,method:null,min:null,minLength:qt,multiple:lt,muted:lt,name:null,nonce:null,noModule:lt,noValidate
Line truncated
|
|
|
|
* react-is.production.min.js
|
|
|
|
* react-is.production.min.js
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/var j0=60103,z0=60106,Cm=60107,Sm=60108,Em=60114,Pm=60109,km=60110,$m=60112,Im=60113,gk=60120,Om=60115,Mm=60116,F5=60121,A5=60122,L5=60117,D5=60129,N5=60131;if(typeof Symbol=="function"&&Symbol.for){var Qn=Symbol.for;j0=Qn("react.element"),z0=Qn("react.portal"),Cm=Qn("react.fragment"),Sm=Qn("react.strict_mode"),Em=Qn("react.profiler"),Pm=Qn("react.provider"),km=Qn("react.context"),$m=Qn("react.forward_ref"),Im=Qn("react.suspense"),gk=Qn("react.suspense_list"),Om=Qn("react.memo"),Mm=Qn("react.lazy"),F5=Qn("react.block"),A5=Qn("react.server.block"),L5=Qn("react.fundamental"),D5=Qn("react.debug_trace_mode"),N5=Qn("react.legacy_hidden")}function Si(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case j0:switch(e=e.type,e){case Cm:case Em:case Sm:case Im:case gk:return e;default:switch(e=e&&e.$$typeof,e){case km:case $m:case Mm:case Om:case Pm:return e;default:return t}}case z0:return t}}}var bRe=Pm,xRe=j0,wRe=$m,CRe=Cm,SRe=Mm,ERe=Om,PRe=z0,kRe=Em,$Re=Sm,IRe=Im;Bt.ContextConsumer=km;Bt.ContextProvider=bRe;Bt.Element=xRe;Bt.ForwardRef=wRe;Bt.Fragment=CRe;Bt.Lazy=SRe;Bt.Memo=ERe;Bt.Portal=PRe;Bt.Profiler=kRe;Bt.StrictMode=$Re;Bt.Suspense=IRe;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Si(e)===km};Bt.isContextProvider=function(e){return Si(e)===Pm};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===j0};Bt.isForwardRef=function(e){return Si(e)===$m};Bt.isFragment=function(e){return Si(e)===Cm};Bt.isLazy=function(e){return Si(e)===Mm};Bt.isMemo=function(e){return Si(e)===Om};Bt.isPortal=function(e){return Si(e)===z0};Bt.isProfiler=function(e){return Si(e)===Em};Bt.isStrictMode=function(e){return Si(e)===Sm};Bt.isSuspense=function(e){return Si(e)===Im};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cm||e===Em||e===D5||e===Sm||e===Im||e===gk||e===N5||typeof e=="object"&&e!==null&&(e.$$typeof===Mm||e.$$typeof===Om||e.$$typeof===Pm||e.$$typeof===km||e.$$typeof===$m||e.$$typeof===L5||e.$$typeof===F5||e[0]===A5)};Bt.typeOf=Si;_5.exports=Bt;var ORe=_5.exports,Rm=Ci,MRe=Id,RRe=O5,TRe=Rm.boolean,Ye=Rm.number,nT=Rm.spaceSeparated,V1=Rm.commaSeparated,xo=Rm.commaOrSpaceSeparated,_Re=MRe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPLine truncated
|
|
|
|
*/var B0=60103,H0=60106,Sm=60107,Em=60108,Pm=60114,km=60109,$m=60110,Im=60112,Om=60113,bk=60120,Mm=60115,Rm=60116,Vz=60121,Uz=60122,Wz=60117,Gz=60129,qz=60131;if(typeof Symbol=="function"&&Symbol.for){var Qn=Symbol.for;B0=Qn("react.element"),H0=Qn("react.portal"),Sm=Qn("react.fragment"),Em=Qn("react.strict_mode"),Pm=Qn("react.profiler"),km=Qn("react.provider"),$m=Qn("react.context"),Im=Qn("react.forward_ref"),Om=Qn("react.suspense"),bk=Qn("react.suspense_list"),Mm=Qn("react.memo"),Rm=Qn("react.lazy"),Vz=Qn("react.block"),Uz=Qn("react.server.block"),Wz=Qn("react.fundamental"),Gz=Qn("react.debug_trace_mode"),qz=Qn("react.legacy_hidden")}function Ei(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case B0:switch(e=e.type,e){case Sm:case Pm:case Em:case Om:case bk:return e;default:switch(e=e&&e.$$typeof,e){case $m:case Im:case Rm:case Mm:case km:return e;default:return t}}case H0:return t}}}var $2e=km,I2e=B0,O2e=Im,M2e=Sm,R2e=Rm,T2e=Mm,_2e=H0,F2e=Pm,A2e=Em,L2e=Om;Ht.ContextConsumer=$m;Ht.ContextProvider=$2e;Ht.Element=I2e;Ht.ForwardRef=O2e;Ht.Fragment=M2e;Ht.Lazy=R2e;Ht.Memo=T2e;Ht.Portal=_2e;Ht.Profiler=F2e;Ht.StrictMode=A2e;Ht.Suspense=L2e;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return Ei(e)===$m};Ht.isContextProvider=function(e){return Ei(e)===km};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===B0};Ht.isForwardRef=function(e){return Ei(e)===Im};Ht.isFragment=function(e){return Ei(e)===Sm};Ht.isLazy=function(e){return Ei(e)===Rm};Ht.isMemo=function(e){return Ei(e)===Mm};Ht.isPortal=function(e){return Ei(e)===H0};Ht.isProfiler=function(e){return Ei(e)===Pm};Ht.isStrictMode=function(e){return Ei(e)===Em};Ht.isSuspense=function(e){return Ei(e)===Om};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sm||e===Pm||e===Gz||e===Em||e===Om||e===bk||e===qz||typeof e=="object"&&e!==null&&(e.$$typeof===Rm||e.$$typeof===Mm||e.$$typeof===km||e.$$typeof===$m||e.$$typeof===Im||e.$$typeof===Wz||e.$$typeof===Vz||e[0]===Uz)};Ht.typeOf=Ei;Hz.exports=Ht;var D2e=Hz.exports,Tm=Si,N2e=Rd,j2e=Nz,z2e=Tm.boolean,Ye=Tm.number,aT=Tm.spaceSeparated,U1=Tm.commaSeparated,xo=Tm.commaOrSpaceSeparated,B2e=N2e({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPLine truncated
|
|
|
|
`,aT="/",lT="*",Ms="",M2e="comment",R2e="declaration",T2e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(p){var h=p.match(C2e);h&&(n+=h.length);var y=p.lastIndexOf(O2e);r=~y?p.length-y:r+p.length}function i(){var p={line:n,column:r};return function(h){return h.position=new a(p),u(),h}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(p){var h=new Error(t.source+":"+n+":"+r+": "+p);if(h.reason=p,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function s(p){var h=p.exec(e);if(h){var y=h[0];return o(y),e=e.slice(y.length),h}}function u(){s(S2e)}function c(p){var h;for(p=p||[];h=d();)h!==!1&&p.push(h);return p}function d(){var p=i();if(!(aT!=e.charAt(0)||lT!=e.charAt(1))){for(var h=2;Ms!=e.charAt(h)&&(lT!=e.charAt(h)||aT!=e.charAt(h+1));)++h;if(h+=2,Ms===e.charAt(h-1))return l("End of comment missing");var y=e.slice(2,h-2);return r+=2,o(y),e=e.slice(h),r+=2,p({type:M2e,comment:y})}}function f(){var p=i(),h=s(E2e);if(h){if(d(),!s(P2e))return l("property missing ':'");var y=s(k2e),b=p({type:R2e,property:sT(h[0].replace(iT,Ms)),value:y?sT(y[0].replace(iT,Ms)):Ms});return s($2e),b}}function m(){var p=[];c(p);for(var h;h=f();)h!==!1&&(p.push(h),c(p));return p}return u(),m()};function sT(e){return e?e.replace(I2e,Ms):Ms}var _2e=T2e;function F2e(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=_2e(e),i=typeof t=="function",a,l,s=0,u=o.length;s<u;s++)r=o[s],a=r.property,l=r.value,i?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}var A2e=F2e;const U1=v,L2e=ORe,D2e=zRe,N2e=URe,uT=h2e,j2e=yk,z2e=bk,B2e=A2e;hk.hastToReact=B5;hk.hastChildrenToReact=z5;const dC={}.hasOwnProperty,H2e=new Set(["table","thead","tbody","tfoot","tr"]);function z5(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(B5(e,o,r,t)):o.type==="text"?(t.type!=="element"||!H2e.has(t.tagName)||o.value!==`
|
|
|
|
`,cT="/",dT="*",_s="",NRe="comment",jRe="declaration",zRe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(p){var h=p.match(MRe);h&&(n+=h.length);var y=p.lastIndexOf(DRe);r=~y?p.length-y:r+p.length}function i(){var p={line:n,column:r};return function(h){return h.position=new a(p),u(),h}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(p){var h=new Error(t.source+":"+n+":"+r+": "+p);if(h.reason=p,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function s(p){var h=p.exec(e);if(h){var y=h[0];return o(y),e=e.slice(y.length),h}}function u(){s(RRe)}function c(p){var h;for(p=p||[];h=d();)h!==!1&&p.push(h);return p}function d(){var p=i();if(!(cT!=e.charAt(0)||dT!=e.charAt(1))){for(var h=2;_s!=e.charAt(h)&&(dT!=e.charAt(h)||cT!=e.charAt(h+1));)++h;if(h+=2,_s===e.charAt(h-1))return l("End of comment missing");var y=e.slice(2,h-2);return r+=2,o(y),e=e.slice(h),r+=2,p({type:NRe,comment:y})}}function f(){var p=i(),h=s(TRe);if(h){if(d(),!s(_Re))return l("property missing ':'");var y=s(FRe),b=p({type:jRe,property:fT(h[0].replace(uT,_s)),value:y?fT(y[0].replace(uT,_s)):_s});return s(ARe),b}}function m(){var p=[];c(p);for(var h;h=f();)h!==!1&&(p.push(h),c(p));return p}return u(),m()};function fT(e){return e?e.replace(LRe,_s):_s}var BRe=zRe;function HRe(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=BRe(e),i=typeof t=="function",a,l,s=0,u=o.length;s<u;s++)r=o[s],a=r.property,l=r.value,i?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}var VRe=HRe;const W1=v,URe=D2e,WRe=K2e,GRe=Z2e,pT=SRe,qRe=wk,KRe=Ck,QRe=VRe;yk.hastToReact=Yz;yk.hastChildrenToReact=Qz;const pC={}.hasOwnProperty,YRe=new Set(["table","thead","tbody","tfoot","tr"]);function Qz(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(Yz(e,o,r,t)):o.type==="text"?(t.type!=="element"||!YRe.has(t.tagName)||o.value!==`
|
|
|
|
`)&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function B5(e,t,n,r){const o=e.options,i=e.schema,a=t.tagName,l={};let s=i,u;if(i.space==="html"&&a==="svg"&&(s=D2e,e.schema=s),t.properties)for(u in t.properties)dC.call(t.properties,u)&&U2e(l,u,t.properties[u],e);(a==="ol"||a==="ul")&&e.listDepth++;const c=z5(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&dC.call(o.components,a)?o.components[a]:a,m=typeof f=="string"||f===U1.Fragment;if(!L2e.isValidElementType(f))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(l.key=[a,d.start.line,d.start.column,n].join("-"),a==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(l.href,t.children,l.title):o.linkTarget),a==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(l.href,t.children,l.title)),!m&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(l.level=parseInt(a.charAt(1),10)),a==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(l.src,l.alt,l.title)),!m&&a==="li"&&r.type==="element"){const p=V2e(t);l.checked=p&&p.properties?!!p.properties.checked:null,l.index=W1(r,t),l.ordered=r.tagName==="ol"}return!m&&(a==="ol"||a==="ul")&&(l.ordered=a==="ol",l.depth=e.listDepth),(a==="td"||a==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=a==="th")),!m&&a==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),o.sourcePos&&(l["data-sourcepos"]=q2e(d)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=W1(r,t),l.siblingCount=W1(r)),m||(l.node=t),c.length>0?U1.createElement(f,l,c):U1.createElement(f,l)}function V2e(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function W1(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function U2e(e,t,n,r){const o=N2e(r.schema,t);let i=n;i==null||i!==i||(i&&typeof i=="object"&&"length"in i&&(i=(o.commaSeparated?z2e:j2e).stringify(i)),o.property==="style"&&typeof i=="string"&&(i=W2e(i)),o.space&&o.property?e[dC.call(uT,o.property)?uT[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function W2e(e){const t={};try{B2e(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,G2e)]=o}}function G2e(e,t){return t.toUpperCase()}function q2e(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}const G1=v,cT=wz,K2e=ACe,Q2e=SIe,Y2e=RMe,pt=ND,X2e=pRe,Z2e=hRe,H5=vRe,J2e=hk.hastChildrenToReact;var eTe=B0;const dT={}.hasOwnProperty,tTe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rh={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function B0(e){for(const i in Rh)if(dT.call(Rh,i)&&dT.call(e,i)){const a=Rh[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${tTe}#${a.id}> for more info)`),delete Rh[i]}const t=K2e().use(Q2e).use(e.remarkPlugins||e.plugins||[]).use(Y2e,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Z2e,e);let n;typeof e.children=="string"?n=cT(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=cT());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=G1.createElement(G1.Fragment,{},J2e({options:e,schema:X2e,listDepth:0},r));return e.className&&(o=G1.createElement("div",{className:e.className},o)),o}B0.defaultProps={transformLinkUri:H5};B0.propTypes={children:pt.string,className:pt.string,allowElement:pt.func,allowedElements:pt.arrayOf(pt.string),disallowedElements:pt.arrayOf(pt.string),unwrapDisallowed:pt.bool,remarkPlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),rehypePlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),sourcePos:pt.bool,rawSourcePos:pt.bool,skipHtml:pt.bool,includeElementIndex:pt.bool,transformLinkUri:pt.oneOfType([pt.func,pt.bool]),linLine truncated
|
|
|
|
`)&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function Yz(e,t,n,r){const o=e.options,i=e.schema,a=t.tagName,l={};let s=i,u;if(i.space==="html"&&a==="svg"&&(s=WRe,e.schema=s),t.properties)for(u in t.properties)pC.call(t.properties,u)&&ZRe(l,u,t.properties[u],e);(a==="ol"||a==="ul")&&e.listDepth++;const c=Qz(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&pC.call(o.components,a)?o.components[a]:a,m=typeof f=="string"||f===W1.Fragment;if(!URe.isValidElementType(f))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(l.key=[a,d.start.line,d.start.column,n].join("-"),a==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(l.href,t.children,l.title):o.linkTarget),a==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(l.href,t.children,l.title)),!m&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(l.level=parseInt(a.charAt(1),10)),a==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(l.src,l.alt,l.title)),!m&&a==="li"&&r.type==="element"){const p=XRe(t);l.checked=p&&p.properties?!!p.properties.checked:null,l.index=G1(r,t),l.ordered=r.tagName==="ol"}return!m&&(a==="ol"||a==="ul")&&(l.ordered=a==="ol",l.depth=e.listDepth),(a==="td"||a==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=a==="th")),!m&&a==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),o.sourcePos&&(l["data-sourcepos"]=tTe(d)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=G1(r,t),l.siblingCount=G1(r)),m||(l.node=t),c.length>0?W1.createElement(f,l,c):W1.createElement(f,l)}function XRe(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function G1(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function ZRe(e,t,n,r){const o=GRe(r.schema,t);let i=n;i==null||i!==i||(i&&typeof i=="object"&&"length"in i&&(i=(o.commaSeparated?KRe:qRe).stringify(i)),o.property==="style"&&typeof i=="string"&&(i=JRe(i)),o.space&&o.property?e[pC.call(pT,o.property)?pT[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function JRe(e){const t={};try{QRe(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,eTe)]=o}}function eTe(e,t){return t.toUpperCase()}function tTe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}const q1=v,mT=M5,nTe=VCe,rTe=RIe,oTe=jMe,pt=WD,iTe=w2e,aTe=S2e,Xz=P2e,lTe=yk.hastChildrenToReact;var sTe=V0;const hT={}.hasOwnProperty,uTe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function V0(e){for(const i in _h)if(hT.call(_h,i)&&hT.call(e,i)){const a=_h[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${uTe}#${a.id}> for more info)`),delete _h[i]}const t=nTe().use(rTe).use(e.remarkPlugins||e.plugins||[]).use(oTe,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(aTe,e);let n;typeof e.children=="string"?n=mT(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=mT());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=q1.createElement(q1.Fragment,{},lTe({options:e,schema:iTe,listDepth:0},r));return e.className&&(o=q1.createElement("div",{className:e.className},o)),o}V0.defaultProps={transformLinkUri:Xz};V0.propTypes={children:pt.string,className:pt.string,allowElement:pt.func,allowedElements:pt.arrayOf(pt.string),disallowedElements:pt.arrayOf(pt.string),unwrapDisallowed:pt.bool,remarkPlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),rehypePlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),sourcePos:pt.bool,rawSourcePos:pt.bool,skipHtml:pt.bool,includeElementIndex:pt.bool,transformLinkUri:pt.oneOfType([pt.func,pt.bool]),linLine truncated
|
|
|
|
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" "),o.push(t.handle(u,e,t,{before:a,after:l})),a=o[o.length-1].slice(-1);return o.join("")}var E_e=sB;Ek.unsafe=[{character:"~",inConstruct:"phrasing"}];Ek.handlers={delete:uB};uB.peek=P_e;function uB(e,t,n){var r=n.enter("emphasis"),o=E_e(e,n,{before:"~",after:"~"});return r(),"~~"+o+"~~"}function P_e(){return"~"}var k_e=$_e;function $_e(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var I_e=cB;cB.peek=M_e;var O_e=k_e;function cB(e,t,n){for(var r=e.value||"",o="`",i=-1,a,l,s,u;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i<n.unsafe.length;)if(a=n.unsafe[i],!!a.atBreak)for(l=O_e(a);s=l.exec(r);)u=s.index,r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1);return o+r+o}function M_e(){return"`"}/*!
|
|
|
|
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" "),o.push(t.handle(u,e,t,{before:a,after:l})),a=o[o.length-1].slice(-1);return o.join("")}var T_e=v3;$k.unsafe=[{character:"~",inConstruct:"phrasing"}];$k.handlers={delete:y3};y3.peek=__e;function y3(e,t,n){var r=n.enter("emphasis"),o=T_e(e,n,{before:"~",after:"~"});return r(),"~~"+o+"~~"}function __e(){return"~"}var F_e=A_e;function A_e(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var L_e=b3;b3.peek=N_e;var D_e=F_e;function b3(e,t,n){for(var r=e.value||"",o="`",i=-1,a,l,s,u;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i<n.unsafe.length;)if(a=n.unsafe[i],!!a.atBreak)for(l=D_e(a);s=l.exec(r);)u=s.index,r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1);return o+r+o}function N_e(){return"`"}/*!
|
|
|
|
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
|
|
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
|
|
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
|
|
* Licensed under the MIT License.
|
|
|
|
* Licensed under the MIT License.
|
|
|
|
*/var wa="",J1,Pk=R_e;function R_e(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(J1!==e||typeof J1>"u")J1=e,wa="";else if(wa.length>=n)return wa.substr(0,n);for(;n>wa.length&&t>1;)t&1&&(wa+=e),t>>=1,e+=e;return wa+=e,wa=wa.substr(0,n),wa}var Gu=Pk,T_e=j_e,__e=/ +$/,bs=" ",F_e=`
|
|
|
|
*/var Sa="",ex,Ik=j_e;function j_e(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(ex!==e||typeof ex>"u")ex=e,Sa="";else if(Sa.length>=n)return Sa.substr(0,n);for(;n>Sa.length&&t>1;)t&1&&(Sa+=e),t>>=1,e+=e;return Sa+=e,Sa=Sa.substr(0,n),Sa}var Ku=Ik,z_e=q_e,B_e=/ +$/,Cs=" ",H_e=`
|
|
|
|
`,A_e="-",_h=":",wT="|",CT=0,L_e=67,D_e=76,N_e=82,Ov=99,fC=108,Mv=114;function j_e(e,t){for(var n=t||{},r=n.padding!==!1,o=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,a=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||B_e,c=-1,d=e.length,f=[],m=[],p=[],h=[],y=[],b=0,g,x,w,P,C,E,S,M,I,R,_;++c<d;){for(g=e[c],x=-1,w=g.length,p=[],h=[],w>b&&(b=w);++x<w;)E=z_e(g[x]),l===!0&&(C=u(E),h[x]=C,P=y[x],(P===void 0||C>P)&&(y[x]=C)),p.push(E);f[c]=p,m[c]=h}if(x=-1,w=b,typeof a=="object"&&"length"in a)for(;++x<w;)s[x]=ST(a[x]);else for(_=ST(a);++x<w;)s[x]=_;for(x=-1,w=b,p=[],h=[];++x<w;)_=s[x],I="",R="",_===fC?I=_h:_===Mv?R=_h:_===Ov&&(I=_h,R=_h),C=l?Math.max(1,y[x]-I.length-R.length):1,E=I+Gu(A_e,C)+R,l===!0&&(C=I.length+C+R.length,C>y[x]&&(y[x]=C),h[x]=C),p[x]=E;for(f.splice(1,0,p),m.splice(1,0,h),c=-1,d=f.length,S=[];++c<d;){for(p=f[c],h=m[c],x=-1,w=b,M=[];++x<w;)E=p[x]||"",I="",R="",l===!0&&(C=y[x]-(h[x]||0),_=s[x],_===Mv?I=Gu(bs,C):_===Ov?C%2===0?(I=Gu(bs,C/2),R=I):(I=Gu(bs,C/2+.5),R=Gu(bs,C/2-.5)):R=Gu(bs,C)),o===!0&&x===0&&M.push(wT),r===!0&&!(l===!1&&E==="")&&(o===!0||x!==0)&&M.push(bs),l===!0&&M.push(I),M.push(E),l===!0&&M.push(R),r===!0&&M.push(bs),(i===!0||x!==w-1)&&M.push(wT);M=M.join(""),i===!1&&(M=M.replace(__e,"")),S.push(M)}return S.join(F_e)}function z_e(e){return e==null?"":String(e)}function B_e(e){return e.length}function ST(e){var t=typeof e=="string"?e.charCodeAt(0):CT;return t===D_e||t===fC?fC:t===N_e||t===Mv?Mv:t===L_e||t===Ov?Ov:CT}var H_e=sB,V_e=I_e,U_e=T_e,W_e=G_e;function G_e(e){var t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
|
|
`,V_e="-",Ah=":",PT="|",kT=0,U_e=67,W_e=76,G_e=82,Rv=99,mC=108,Tv=114;function q_e(e,t){for(var n=t||{},r=n.padding!==!1,o=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,a=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||Q_e,c=-1,d=e.length,f=[],m=[],p=[],h=[],y=[],b=0,g,x,w,P,C,E,S,M,O,R,_;++c<d;){for(g=e[c],x=-1,w=g.length,p=[],h=[],w>b&&(b=w);++x<w;)E=K_e(g[x]),l===!0&&(C=u(E),h[x]=C,P=y[x],(P===void 0||C>P)&&(y[x]=C)),p.push(E);f[c]=p,m[c]=h}if(x=-1,w=b,typeof a=="object"&&"length"in a)for(;++x<w;)s[x]=$T(a[x]);else for(_=$T(a);++x<w;)s[x]=_;for(x=-1,w=b,p=[],h=[];++x<w;)_=s[x],O="",R="",_===mC?O=Ah:_===Tv?R=Ah:_===Rv&&(O=Ah,R=Ah),C=l?Math.max(1,y[x]-O.length-R.length):1,E=O+Ku(V_e,C)+R,l===!0&&(C=O.length+C+R.length,C>y[x]&&(y[x]=C),h[x]=C),p[x]=E;for(f.splice(1,0,p),m.splice(1,0,h),c=-1,d=f.length,S=[];++c<d;){for(p=f[c],h=m[c],x=-1,w=b,M=[];++x<w;)E=p[x]||"",O="",R="",l===!0&&(C=y[x]-(h[x]||0),_=s[x],_===Tv?O=Ku(Cs,C):_===Rv?C%2===0?(O=Ku(Cs,C/2),R=O):(O=Ku(Cs,C/2+.5),R=Ku(Cs,C/2-.5)):R=Ku(Cs,C)),o===!0&&x===0&&M.push(PT),r===!0&&!(l===!1&&E==="")&&(o===!0||x!==0)&&M.push(Cs),l===!0&&M.push(O),M.push(E),l===!0&&M.push(R),r===!0&&M.push(Cs),(i===!0||x!==w-1)&&M.push(PT);M=M.join(""),i===!1&&(M=M.replace(B_e,"")),S.push(M)}return S.join(H_e)}function K_e(e){return e==null?"":String(e)}function Q_e(e){return e.length}function $T(e){var t=typeof e=="string"?e.charCodeAt(0):kT;return t===W_e||t===mC?mC:t===G_e||t===Tv?Tv:t===U_e||t===Rv?Rv:kT}var Y_e=v3,X_e=L_e,Z_e=z_e,J_e=eFe;function eFe(e){var t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
|
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:s,inlineCode:f}};function a(m,p,h){return u(c(m,h),m.align)}function l(m,p,h){var y=d(m,h),b=u([y]);return b.slice(0,b.indexOf(`
|
|
|
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:s,inlineCode:f}};function a(m,p,h){return u(c(m,h),m.align)}function l(m,p,h){var y=d(m,h),b=u([y]);return b.slice(0,b.indexOf(`
|
|
|
|
`))}function s(m,p,h){var y=h.enter("tableCell"),b=H_e(m,h,{before:i,after:i});return y(),b}function u(m,p){return U_e(m,{align:p,alignDelimiters:r,padding:n,stringLength:o})}function c(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("table");++y<b;)g[y]=d(h[y],p);return x(),g}function d(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("tableRow");++y<b;)g[y]=s(h[y],m,p);return x(),g}function f(m,p,h){var y=V_e(m,p,h);return h.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}var kk={},q_e=K_e;function K_e(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var Q_e=Y_e;function Y_e(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var X_e=J_e,Z_e=Pk;function J_e(e,t){for(var n=e.children||[],r=[],o=-1,i;++o<n.length;)i=n[o],r.push(t.handle(i,e,t,{before:`
|
|
|
|
`))}function s(m,p,h){var y=h.enter("tableCell"),b=Y_e(m,h,{before:i,after:i});return y(),b}function u(m,p){return Z_e(m,{align:p,alignDelimiters:r,padding:n,stringLength:o})}function c(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("table");++y<b;)g[y]=d(h[y],p);return x(),g}function d(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("tableRow");++y<b;)g[y]=s(h[y],m,p);return x(),g}function f(m,p,h){var y=X_e(m,p,h);return h.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}var Ok={},tFe=nFe;function nFe(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var rFe=oFe;function oFe(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var iFe=lFe,aFe=Ik;function lFe(e,t){for(var n=e.children||[],r=[],o=-1,i;++o<n.length;)i=n[o],r.push(t.handle(i,e,t,{before:`
|
|
|
|
`,after:`
|
|
|
|
`,after:`
|
|
|
|
`})),o+1<n.length&&r.push(a(i,n[o+1]));return r.join("");function a(l,s){for(var u=-1,c;++u<t.join.length&&(c=t.join[u](l,s,e,t),!(c===!0||c===1));){if(typeof c=="number")return Z_e(`
|
|
|
|
`})),o+1<n.length&&r.push(a(i,n[o+1]));return r.join("");function a(l,s){for(var u=-1,c;++u<t.join.length&&(c=t.join[u](l,s,e,t),!(c===!0||c===1));){if(typeof c=="number")return aFe(`
|
|
|
|
`,1+Number(c));if(c===!1)return`
|
|
|
|
`,1+Number(c));if(c===!1)return`
|
|
|
|
|
|
|
|
|
|
|
|
<!---->
|
|
|
|
<!---->
|
|
|
|
|
|
|
|
|
|
|
|
`}return`
|
|
|
|
`}return`
|
|
|
|
|
|
|
|
|
|
|
|
`}}var eFe=nFe,tFe=/\r?\n|\r/g;function nFe(e,t){for(var n=[],r=0,o=0,i;i=tFe.exec(e);)a(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,o++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,o,!l))}}var rFe=sFe,ET=Pk,oFe=q_e,iFe=Q_e,aFe=X_e,lFe=eFe;function sFe(e,t,n){var r=oFe(n),o=iFe(n),i,a,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),a=lFe(aFe(e,n),s),l(),a;function s(u,c,d){return c?(d?"":ET(" ",i))+u:(d?r:r+ET(" ",i-r.length))+u}}var uFe=rFe;kk.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];kk.handlers={listItem:cFe};function cFe(e,t,n){var r=uFe(e,t,n),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(a){return a+"["+(e.checked?"x":" ")+"] "}}var dFe=dB;function dB(e,t){var n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)dB(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=e[r].concat(t[r]||[]):r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}var fFe=lB,pFe=Ek,mFe=W_e,hFe=kk,gFe=dFe,vFe=yFe;function yFe(e){var t=gFe({handlers:{},join:[],unsafe:[],options:{}},{extensions:[fFe,pFe,mFe(e),hFe]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}var bFe=DTe,xFe=x_e,wFe=vFe,PT,CFe=SFe;function SFe(e){var t=this.data();!PT&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(PT=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",bFe(e)),n("fromMarkdownExtensions",xFe),n("toMarkdownExtensions",wFe(e));function n(r,o){t[r]?t[r].push(o):t[r]=[o]}}const EFe=ta(CFe),PFe=rt(j.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),kFe=["slots","slotProps"],$Fe=fe(Wa)(({theme:e})=>O({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":O({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":O({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:iM(e.palette.grey[200],.12)}:{backgroundColor:iM(e.palette.grey[600],.12)})})),IFe=fe(PFe)({width:24,height:16});function OFe(e){const{slots:t={},slotProps:n={}}=e,r=ue(e,kFe),o=e;return j.jsx("li",{children:j.jsx($Fe,O({focusRipple:!0},r,{ownerState:o,children:j.jsx(IFe,O({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function MFe(e){return Ve("MuiBreadcrumbs",e)}const RFe=Ue("MuiBreadcrumbs",["root","ol","li","separator"]),TFe=RFe,_Fe=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],FFe=e=>{const{classes:t}=e;return Oe({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},MFe,t)},AFe=fe(Xe,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${TFe.li}`]:t.li},t.root]})({}),LFe=fe("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),DFe=fe("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function NFe(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,j.jsx(DFe,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const jFe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:s={},expandText:u="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:m="/"}=r,p=ue(r,_Fe),[h,y]=v.useState(!1),b=O({},r,{component:a,expanded:h,expandText:u,itemsAfterCollapse:c,itemsBeforeCollapse:d,maxItems:f,separator:m}),g=FFe(b),x=Yi({elementType:l.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),w=v.useRef(null),P=E=>{const S=()=>{y(!0);const M=w.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return d+c>=E.length?E:[...E.slice(0,d),j.jsx(OFe,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:S},"ellipsis"),...E.slice(E.length-c,E.length)]},C=v.Children.toArray(o).filter(E=>v.isValidElement(E)).map((E,S)=>j.jsx("li",{className:g.li,children:E},`child-${S}`));return j.jsx(AFe,O({ref:n,component:a,color:"text.secondary",className:ve(g.root,i),ownerState:b},p,{children:j.jsx(LFe,{className:g.ol,ref:w,ow
Line truncated
|
|
|
|
`}}var sFe=cFe,uFe=/\r?\n|\r/g;function cFe(e,t){for(var n=[],r=0,o=0,i;i=uFe.exec(e);)a(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,o++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,o,!l))}}var dFe=gFe,IT=Ik,fFe=tFe,pFe=rFe,mFe=iFe,hFe=sFe;function gFe(e,t,n){var r=fFe(n),o=pFe(n),i,a,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),a=hFe(mFe(e,n),s),l(),a;function s(u,c,d){return c?(d?"":IT(" ",i))+u:(d?r:r+IT(" ",i-r.length))+u}}var vFe=dFe;Ok.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Ok.handlers={listItem:yFe};function yFe(e,t,n){var r=vFe(e,t,n),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(a){return a+"["+(e.checked?"x":" ")+"] "}}var bFe=x3;function x3(e,t){var n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)x3(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=e[r].concat(t[r]||[]):r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}var xFe=g3,wFe=$k,CFe=J_e,SFe=Ok,EFe=bFe,PFe=kFe;function kFe(e){var t=EFe({handlers:{},join:[],unsafe:[],options:{}},{extensions:[xFe,wFe,CFe(e),SFe]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}var $Fe=WTe,IFe=I_e,OFe=PFe,OT,MFe=RFe;function RFe(e){var t=this.data();!OT&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(OT=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",$Fe(e)),n("fromMarkdownExtensions",IFe),n("toMarkdownExtensions",OFe(e));function n(r,o){t[r]?t[r].push(o):t[r]=[o]}}const TFe=ra(MFe),_Fe=tt(N.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),FFe=["slots","slotProps"],AFe=de(Zi)(({theme:e})=>I({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":I({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":I({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:uM(e.palette.grey[200],.12)}:{backgroundColor:uM(e.palette.grey[600],.12)})})),LFe=de(_Fe)({width:24,height:16});function DFe(e){const{slots:t={},slotProps:n={}}=e,r=ue(e,FFe),o=e;return N.jsx("li",{children:N.jsx(AFe,I({focusRipple:!0},r,{ownerState:o,children:N.jsx(LFe,I({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function NFe(e){return Be("MuiBreadcrumbs",e)}const jFe=He("MuiBreadcrumbs",["root","ol","li","separator"]),zFe=jFe,BFe=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],HFe=e=>{const{classes:t}=e;return Ie({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},NFe,t)},VFe=de(Xe,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${zFe.li}`]:t.li},t.root]})({}),UFe=de("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),WFe=de("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function GFe(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,N.jsx(WFe,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const qFe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:s={},expandText:u="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:m="/"}=r,p=ue(r,BFe),[h,y]=v.useState(!1),b=I({},r,{component:a,expanded:h,expandText:u,itemsAfterCollapse:c,itemsBeforeCollapse:d,maxItems:f,separator:m}),g=HFe(b),x=Xi({elementType:l.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),w=v.useRef(null),P=E=>{const S=()=>{y(!0);const M=w.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return d+c>=E.length?E:[...E.slice(0,d),N.jsx(DFe,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:S},"ellipsis"),...E.slice(E.length-c,E.length)]},C=v.Children.toArray(o).filter(E=>v.isValidElement(E)).map((E,S)=>N.jsx("li",{className:g.li,children:E},`child-${S}`));return N.jsx(VFe,I({ref:n,component:a,color:"text.secondary",className:he(g.root,i),ownerState:b},p,{children:N.jsx(UFe,{className:g.ol,ref:w,ow
Line truncated
|
|
|
|
&.SnackbarItem-contentRoot {
|
|
|
|
&.SnackbarItem-contentRoot {
|
|
|
|
background-color: ${e=>e.theme.palette.background.default};
|
|
|
|
background-color: ${e=>e.theme.palette.background.default};
|
|
|
|
color: ${e=>e.theme.palette.primary.main};
|
|
|
|
color: ${e=>e.theme.palette.primary.main};
|
|
|
@@ -416,7 +416,7 @@ return result$$;`.replaceAll("$$",String(_R)));return _R+=1,(l,s)=>i(t.current.g
|
|
|
|
background-color: ${e=>e.theme.palette.warning.main};
|
|
|
|
background-color: ${e=>e.theme.palette.warning.main};
|
|
|
|
color: ${e=>e.theme.palette.warning.contrastText};
|
|
|
|
color: ${e=>e.theme.palette.warning.contrastText};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;const VAe=(e,t)=>O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),UAe=e=>O({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),WAe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var s;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=l.palette)==null?void 0:s.mode}});let o=O({html:VAe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:O({margin:0},UAe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function GAe(e){const t=qe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return j.jsxs(v.Fragment,{children:[j.jsx(uP,{styles:o=>WAe(o,r)}),n]})}/**
|
|
|
|
`;const ZAe=(e,t)=>I({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),JAe=e=>I({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),eLe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var s;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=l.palette)==null?void 0:s.mode}});let o=I({html:ZAe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:I({margin:0},JAe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function tLe(e){const t=Ue({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return N.jsxs(v.Fragment,{children:[N.jsx(dP,{styles:o=>eLe(o,r)}),n]})}/**
|
|
|
|
* @remix-run/router v1.15.3
|
|
|
|
* @remix-run/router v1.15.3
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) Remix Software Inc.
|
|
|
|
* Copyright (c) Remix Software Inc.
|
|
|
@@ -425,7 +425,7 @@ return result$$;`.replaceAll("$$",String(_R)));return _R+=1,(l,s)=>i(t.current.g
|
|
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @license MIT
|
|
|
|
* @license MIT
|
|
|
|
*/function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rp.apply(this,arguments)}var Dl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dl||(Dl={}));const MT="popstate";function qAe(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return pC("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Rv(o)}return QAe(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $B(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function KAe(){return Math.random().toString(36).substr(2,8)}function RT(e,t){return{usr:e.state,key:e.key,idx:t}}function pC(e,t,n,r){return n===void 0&&(n=null),Rp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Md(t):t,{state:n,key:t&&t.key||r||KAe()})}function Rv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Md(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function QAe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Dl.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Rp({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){l=Dl.Pop;let y=c(),b=y==null?null:y-u;u=y,s&&s({action:l,location:h.location,delta:b})}function f(y,b){l=Dl.Push;let g=pC(h.location,y,b);n&&n(g,y),u=c()+1;let x=RT(g,u),w=h.createHref(g);try{a.pushState(x,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(w)}i&&s&&s({action:l,location:h.location,delta:1})}function m(y,b){l=Dl.Replace;let g=pC(h.location,y,b);n&&n(g,y),u=c();let x=RT(g,u),w=h.createHref(g);a.replaceState(x,"",w),i&&s&&s({action:l,location:h.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof y=="string"?y:Rv(y);return g=g.replace(/ $/,"%20"),xn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let h={get action(){return l},get location(){return e(o,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(MT,d),s=y,()=>{o.removeEventListener(MT,d),s=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(y){return a.go(y)}};return h}var TT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(TT||(TT={}));function YAe(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Md(t):t,o=Dk(r.pathname||"/",n);if(o==null)return null;let i=IB(e);XAe(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let s=sLe(o);a=aLe(i[l],s)}return a}function IB(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(xn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Yl([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(xn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),IB(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:oLe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of OB(i.path))o(i,a,s)}),t}function OB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=OB(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function XAe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ZAe=/^:[\w-]+$/,JAe=3,eLe=2,tLe=1,nLe=10,rLe=-2,_T=e=>e==="*";function oLe(e,t){let n=e.split("/"),r=n.length;return n.some(_T)&&(r+=rLe),t&&(r+=eLe),n.filter(o=>!_T(o)).reduce((o,i)=>o+(ZAe.test(i)?JAe:i===""?tLe:nLe),r)}function iLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function aLe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],s=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=MB({path:l.relativePath,caseSensitive:lLine truncated
|
|
|
|
*/function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tp.apply(this,arguments)}var jl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(jl||(jl={}));const FT="popstate";function nLe(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return hC("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:_v(o)}return oLe(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function L3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rLe(){return Math.random().toString(36).substr(2,8)}function AT(e,t){return{usr:e.state,key:e.key,idx:t}}function hC(e,t,n,r){return n===void 0&&(n=null),Tp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_d(t):t,{state:n,key:t&&t.key||r||rLe()})}function _v(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function oLe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=jl.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Tp({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){l=jl.Pop;let y=c(),b=y==null?null:y-u;u=y,s&&s({action:l,location:h.location,delta:b})}function f(y,b){l=jl.Push;let g=hC(h.location,y,b);n&&n(g,y),u=c()+1;let x=AT(g,u),w=h.createHref(g);try{a.pushState(x,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(w)}i&&s&&s({action:l,location:h.location,delta:1})}function m(y,b){l=jl.Replace;let g=hC(h.location,y,b);n&&n(g,y),u=c();let x=AT(g,u),w=h.createHref(g);a.replaceState(x,"",w),i&&s&&s({action:l,location:h.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof y=="string"?y:_v(y);return g=g.replace(/ $/,"%20"),xn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let h={get action(){return l},get location(){return e(o,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(FT,d),s=y,()=>{o.removeEventListener(FT,d),s=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(y){return a.go(y)}};return h}var LT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(LT||(LT={}));function iLe(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?_d(t):t,o=zk(r.pathname||"/",n);if(o==null)return null;let i=D3(e);aLe(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let s=vLe(o);a=hLe(i[l],s)}return a}function D3(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(xn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Zl([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(xn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),D3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:pLe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of N3(i.path))o(i,a,s)}),t}function N3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=N3(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function aLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lLe=/^:[\w-]+$/,sLe=3,uLe=2,cLe=1,dLe=10,fLe=-2,DT=e=>e==="*";function pLe(e,t){let n=e.split("/"),r=n.length;return n.some(DT)&&(r+=fLe),t&&(r+=uLe),n.filter(o=>!DT(o)).reduce((o,i)=>o+(lLe.test(i)?sLe:i===""?cLe:dLe),r)}function mLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function hLe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],s=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=j3({path:l.relativePath,caseSensitive:lLine truncated
|
|
|
|
* React Router v6.22.3
|
|
|
|
* React Router v6.22.3
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) Remix Software Inc.
|
|
|
|
* Copyright (c) Remix Software Inc.
|
|
|
@@ -434,7 +434,7 @@ return result$$;`.replaceAll("$$",String(_R)));return _R+=1,(l,s)=>i(t.current.g
|
|
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @license MIT
|
|
|
|
* @license MIT
|
|
|
|
*/function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tp.apply(this,arguments)}const zk=v.createContext(null),vLe=v.createContext(null),cl=v.createContext(null),K0=v.createContext(null),da=v.createContext({outlet:null,matches:[],isDataRoute:!1}),TB=v.createContext(null);function yLe(e,t){let{relative:n}=t===void 0?{}:t;Rd()||xn(!1);let{basename:r,navigator:o}=v.useContext(cl),{hash:i,pathname:a,search:l}=FB(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Yl([r,a])),o.createHref({pathname:s,search:l,hash:i})}function Rd(){return v.useContext(K0)!=null}function ea(){return Rd()||xn(!1),v.useContext(K0).location}function _B(e){v.useContext(cl).static||v.useLayoutEffect(e)}function Tv(){let{isDataRoute:e}=v.useContext(da);return e?FLe():bLe()}function bLe(){Rd()||xn(!1);let e=v.useContext(zk),{basename:t,future:n,navigator:r}=v.useContext(cl),{matches:o}=v.useContext(da),{pathname:i}=ea(),a=JSON.stringify(Nk(o,n.v7_relativeSplatPath)),l=v.useRef(!1);return _B(()=>{l.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=jk(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Yl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}const xLe=v.createContext(null);function wLe(e){let t=v.useContext(da).outlet;return t&&v.createElement(xLe.Provider,{value:e},t)}function CLe(){let{matches:e}=v.useContext(da),t=e[e.length-1];return t?t.params:{}}function FB(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(cl),{matches:o}=v.useContext(da),{pathname:i}=ea(),a=JSON.stringify(Nk(o,r.v7_relativeSplatPath));return v.useMemo(()=>jk(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function SLe(e,t){return ELe(e,t)}function ELe(e,t,n,r){Rd()||xn(!1);let{navigator:o}=v.useContext(cl),{matches:i}=v.useContext(da),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=ea(),c;if(t){var d;let y=typeof t=="string"?Md(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||xn(!1),c=y}else c=u;let f=c.pathname||"/",m=f;if(s!=="/"){let y=s.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=YAe(e,{pathname:m}),h=OLe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Yl([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Yl([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&h?v.createElement(K0.Provider,{value:{location:Tp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Dl.Pop}},h):h}function PLe(){let e=_Le(),t=hLe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const kLe=v.createElement(PLe,null);class $Le extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(da.Provider,{value:this.props.routeContext},v.createElement(TB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ILe(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(zk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(da.Provider,{value:t},r)}function OLe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||xn(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||p){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let m,p=!1,h=null,y=null;Line truncated
|
|
|
|
*/function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(this,arguments)}const Vk=v.createContext(null),kLe=v.createContext(null),fl=v.createContext(null),Q0=v.createContext(null),pa=v.createContext({outlet:null,matches:[],isDataRoute:!1}),B3=v.createContext(null);function $Le(e,t){let{relative:n}=t===void 0?{}:t;Fd()||xn(!1);let{basename:r,navigator:o}=v.useContext(fl),{hash:i,pathname:a,search:l}=V3(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Zl([r,a])),o.createHref({pathname:s,search:l,hash:i})}function Fd(){return v.useContext(Q0)!=null}function na(){return Fd()||xn(!1),v.useContext(Q0).location}function H3(e){v.useContext(fl).static||v.useLayoutEffect(e)}function Fv(){let{isDataRoute:e}=v.useContext(pa);return e?VLe():ILe()}function ILe(){Fd()||xn(!1);let e=v.useContext(Vk),{basename:t,future:n,navigator:r}=v.useContext(fl),{matches:o}=v.useContext(pa),{pathname:i}=na(),a=JSON.stringify(Bk(o,n.v7_relativeSplatPath)),l=v.useRef(!1);return H3(()=>{l.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=Hk(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Zl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}const OLe=v.createContext(null);function MLe(e){let t=v.useContext(pa).outlet;return t&&v.createElement(OLe.Provider,{value:e},t)}function RLe(){let{matches:e}=v.useContext(pa),t=e[e.length-1];return t?t.params:{}}function V3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(fl),{matches:o}=v.useContext(pa),{pathname:i}=na(),a=JSON.stringify(Bk(o,r.v7_relativeSplatPath));return v.useMemo(()=>Hk(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function TLe(e,t){return _Le(e,t)}function _Le(e,t,n,r){Fd()||xn(!1);let{navigator:o}=v.useContext(fl),{matches:i}=v.useContext(pa),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=na(),c;if(t){var d;let y=typeof t=="string"?_d(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||xn(!1),c=y}else c=u;let f=c.pathname||"/",m=f;if(s!=="/"){let y=s.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=iLe(e,{pathname:m}),h=NLe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Zl([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Zl([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&h?v.createElement(Q0.Provider,{value:{location:_p({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:jl.Pop}},h):h}function FLe(){let e=HLe(),t=ELe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const ALe=v.createElement(FLe,null);class LLe extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(pa.Provider,{value:this.props.routeContext},v.createElement(B3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DLe(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Vk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(pa.Provider,{value:t},r)}function NLe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||xn(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||p){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let m,p=!1,h=null,y=null;Line truncated
|
|
|
|
* React Router DOM v6.22.3
|
|
|
|
* React Router DOM v6.22.3
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) Remix Software Inc.
|
|
|
|
* Copyright (c) Remix Software Inc.
|
|
|
@@ -443,9 +443,9 @@ return result$$;`.replaceAll("$$",String(_R)));return _R+=1,(l,s)=>i(t.current.g
|
|
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @license MIT
|
|
|
|
* @license MIT
|
|
|
|
*/function hC(){return hC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hC.apply(this,arguments)}function NLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function jLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zLe(e,t){return e.button===0&&(!t||t==="_self")&&!jLe(e)}const BLe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],HLe="6";try{window.__reactRouterVersion=HLe}catch{}const VLe="startTransition",LT=vg[VLe];function ULe(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=qAe({window:o,v5Compat:!0}));let a=i.current,[l,s]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&<?LT(()=>s(d)):s(d)},[s,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(LLe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const WLe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GLe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qLe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=NLe(t,BLe),{basename:m}=v.useContext(cl),p,h=!1;if(typeof u=="string"&&GLe.test(u)&&(p=u,WLe))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=Dk(w.pathname,m);w.origin===x.origin&&P!=null?u=P+w.search+w.hash:h=!0}catch{}let y=yLe(u,{relative:o}),b=KLe(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||b(x)}return v.createElement("a",hC({},f,{href:p||y,onClick:h||i?r:g,ref:n,target:s}))});var DT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DT||(DT={}));var NT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(NT||(NT={}));function KLe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Tv(),u=ea(),c=FB(e,{relative:a});return v.useCallback(d=>{if(zLe(d,n)){d.preventDefault();let f=r!==void 0?r:Rv(u)===Rv(c);s(e,{replace:f,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}var jT=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},QLe={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},YLe={go:()=>{let{search:e,hash:t}=ea(),n=Tv();return v.useCallback(({to:r,type:o,query:i,hash:a,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&Xh.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(a||s&&t||"").replace(/^#/,"")}`,f=d.length>1,m=`${r||""}${c?Xh.stringify(u,QLe):""}${f?d:""}`;return o==="path"?m:n(m,{replace:o==="replace"})},[t,e,n])},back:()=>{let e=Tv();return v.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=CLe(),{pathname:n,search:r}=ea(),{resources:o}=v.useContext(Up),{resource:i,action:a,matchedRoute:l}=k.useMemo(()=>zL(n,o),[o,n]);return Object.entries(t).length===0&&l&&(t=((e=MB(l,n))==null?void 0:e.params)||{}),v.useCallback(()=>{let s=Xh.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...a&&{action:a},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:jT(u.current),pageSize:jT(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,a])},Link:k.forwardRef(function(e,t){return k.createElement(qLe,{...e,ref:t})})},zT=({resource:e,meta:t})=>{let n=qp(),{resource:r,resources:o}=Je(e),i=r||o.find(a=>a.list);if(i){let a=n({resource:i,action:"list",meta:t});return a?k.createElement(DB,{to:a}):(console.warn("No resource is found to navigate to."),null)}return console.warn("No resource is found to navigate to."),null};function XLe(e,t=!0){let{navigator:n}=k.useContext(cl);k.useEffect(()=>{if(!t)return;let r=n.go,o=n.push;return n.push=(...i)=>{e()!==!1&&o(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=o,n.go=r}},[n,e,t])}function ZLe(e,t=!0,n,r=!1){let o=k.useCallback(a=>(a.preventDefault(),a.returnValue=e,a.returnValue),[e]);k.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}),[o,t,r]);let i=k.useCallback(()=>{let a=window.confirm(e);return a&&n&&n(),a},[e]);XLe(i,t)}var JLe=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=Qe(),{pathname:r}=ea(),{warnWhen:o,setWarnWhen:i}=Ja();k.useEffect(()=>()=>i==nLine truncated
|
|
|
|
*/function vC(){return vC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vC.apply(this,arguments)}function qLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function KLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QLe(e,t){return e.button===0&&(!t||t==="_self")&&!KLe(e)}const YLe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],XLe="6";try{window.__reactRouterVersion=XLe}catch{}const ZLe="startTransition",zT=yg[ZLe];function JLe(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=nLe({window:o,v5Compat:!0}));let a=i.current,[l,s]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&zT?zT(()=>s(d)):s(d)},[s,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(WLe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const eDe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tDe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nDe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=qLe(t,YLe),{basename:m}=v.useContext(fl),p,h=!1;if(typeof u=="string"&&tDe.test(u)&&(p=u,eDe))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=zk(w.pathname,m);w.origin===x.origin&&P!=null?u=P+w.search+w.hash:h=!0}catch{}let y=$Le(u,{relative:o}),b=rDe(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||b(x)}return v.createElement("a",vC({},f,{href:p||y,onClick:h||i?r:g,ref:n,target:s}))});var BT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(BT||(BT={}));var HT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(HT||(HT={}));function rDe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Fv(),u=na(),c=V3(e,{relative:a});return v.useCallback(d=>{if(QLe(d,n)){d.preventDefault();let f=r!==void 0?r:_v(u)===_v(c);s(e,{replace:f,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}var VT=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},oDe={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},iDe={go:()=>{let{search:e,hash:t}=na(),n=Fv();return v.useCallback(({to:r,type:o,query:i,hash:a,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&Jh.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(a||s&&t||"").replace(/^#/,"")}`,f=d.length>1,m=`${r||""}${c?Jh.stringify(u,oDe):""}${f?d:""}`;return o==="path"?m:n(m,{replace:o==="replace"})},[t,e,n])},back:()=>{let e=Fv();return v.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=RLe(),{pathname:n,search:r}=na(),{resources:o}=v.useContext(Wp),{resource:i,action:a,matchedRoute:l}=k.useMemo(()=>WL(n,o),[o,n]);return Object.entries(t).length===0&&l&&(t=((e=j3(l,n))==null?void 0:e.params)||{}),v.useCallback(()=>{let s=Jh.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...a&&{action:a},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:VT(u.current),pageSize:VT(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,a])},Link:k.forwardRef(function(e,t){return k.createElement(nDe,{...e,ref:t})})},UT=({resource:e,meta:t})=>{let n=Kp(),{resource:r,resources:o}=Je(e),i=r||o.find(a=>a.list);if(i){let a=n({resource:i,action:"list",meta:t});return a?k.createElement(G3,{to:a}):(console.warn("No resource is found to navigate to."),null)}return console.warn("No resource is found to navigate to."),null};function aDe(e,t=!0){let{navigator:n}=k.useContext(fl);k.useEffect(()=>{if(!t)return;let r=n.go,o=n.push;return n.push=(...i)=>{e()!==!1&&o(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=o,n.go=r}},[n,e,t])}function lDe(e,t=!0,n,r=!1){let o=k.useCallback(a=>(a.preventDefault(),a.returnValue=e,a.returnValue),[e]);k.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}),[o,t,r]);let i=k.useCallback(()=>{let a=window.confirm(e);return a&&n&&n(),a},[e]);aDe(i,t)}var sDe=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=Qe(),{pathname:r}=na(),{warnWhen:o,setWarnWhen:i}=tl();k.useEffect(()=>()=>i==nLine truncated
|
|
|
|
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&iNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},YT=Symbol("internals");function cf(e){return e&&String(e).trim().toLowerCase()}function hg(e){return e===!1||e==null?e:Se.isArray(e)?e.map(hg):String(e)}function lNe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const sNe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nx(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function uNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cNe(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class J0{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=cf(s);if(!c)throw new Error("header name must be a non-empty string");const d=Se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=hg(l))}const a=(l,s)=>Se.forEach(l,(u,c)=>i(u,c,s));return Se.isPlainObject(t)||t instanceof this.constructor?a(t,n):Se.isString(t)&&(t=t.trim())&&!sNe(t)?a(aNe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=cf(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return lNe(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cf(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=cf(a),a){const l=Se.findKey(r,a);l&&(!n||nx(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||nx(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const a=Se.findKey(r,i);if(a){n[a]=hg(o),delete n[i];return}const l=t?uNe(i):String(i).trim();l!==i&&delete n[i],n[l]=hg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
|
|
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&mNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},e_=Symbol("internals");function ff(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:Se.isArray(e)?e.map(gg):String(e)}function gNe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vNe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rx(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function yNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bNe(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class eb{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=ff(s);if(!c)throw new Error("header name must be a non-empty string");const d=Se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=gg(l))}const a=(l,s)=>Se.forEach(l,(u,c)=>i(u,c,s));return Se.isPlainObject(t)||t instanceof this.constructor?a(t,n):Se.isString(t)&&(t=t.trim())&&!vNe(t)?a(hNe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ff(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return gNe(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ff(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ff(a),a){const l=Se.findKey(r,a);l&&(!n||rx(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||rx(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const a=Se.findKey(r,i);if(a){n[a]=gg(o),delete n[i];return}const l=t?yNe(i):String(i).trim();l!==i&&delete n[i],n[l]=gg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[YT]=this[YT]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=cf(a);r[l]||(cNe(o,a),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}J0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Se.reduceDescriptors(J0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Se.freezeMethods(J0);const Da=J0;function rx(e,t){const n=this||Uk,r=t||n,o=Da.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function t3(e){return!!(e&&e.__CANCEL__)}function _m(e,t,n){vt.call(this,e??"canceled",vt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits(_m,vt,{__CANCEL__:!0});function dNe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new vt("Request failed with status code "+n.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const fNe=Bi.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&a.push("path="+r),Se.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mNe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function n3(e,t){return e&&!pNe(t)?mNe(e,t):t}const hNe=Bi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Se.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function gNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(f*1e3/m):void 0}}function XT(e,t){let n=0;const r=vNe(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&u?(a-i)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const yNe=typeof XMLHttpRequest<"u",bNe=yNe&&function(e){return new Promise(function(n,r){let o=e.data;const i=Da.from(e.headers).normalize();let{responseType:a,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(Se.isFormData(o)){if(Bi.hasStandardBrowserEnv||Bi.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=n3(e.baseURL,e.url);d.open(e.method.toUpperCase(),XB(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=Da.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};dNe(function(x){n(x),u()},function(x){r(x),u()},b),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new vt("Request aborted",vt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new vt("Network Error",vt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||ZB;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new vt(y,b.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,e,d)),d=null},Bi.hasStandardBrowserEnv&&(l&&Se.isFunction(l)&&(l=l(e)),l||l!==!1&&hNe(f))){const h=e.xsrfHeaderName&&e.
Line truncated
|
|
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[e_]=this[e_]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=ff(a);r[l]||(bNe(o,a),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}eb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Se.reduceDescriptors(eb.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Se.freezeMethods(eb);const za=eb;function ox(e,t){const n=this||qk,r=t||n,o=za.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function cB(e){return!!(e&&e.__CANCEL__)}function Am(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits(Am,yt,{__CANCEL__:!0});function xNe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wNe=Hi.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&a.push("path="+r),Se.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SNe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dB(e,t){return e&&!CNe(t)?SNe(e,t):t}const ENe=Hi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Se.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function PNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(f*1e3/m):void 0}}function t_(e,t){let n=0;const r=kNe(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&u?(a-i)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const $Ne=typeof XMLHttpRequest<"u",INe=$Ne&&function(e){return new Promise(function(n,r){let o=e.data;const i=za.from(e.headers).normalize();let{responseType:a,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(Se.isFormData(o)){if(Hi.hasStandardBrowserEnv||Hi.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=dB(e.baseURL,e.url);d.open(e.method.toUpperCase(),aB(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=za.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};xNe(function(x){n(x),u()},function(x){r(x),u()},b),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new yt("Request aborted",yt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||lB;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new yt(y,b.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,d)),d=null},Hi.hasStandardBrowserEnv&&(l&&Se.isFunction(l)&&(l=l(e)),l||l!==!1&&ENe(f))){const h=e.xsrfHeaderName&&e.
Line truncated
|
|
|
|
`+i.map(ZT).join(`
|
|
|
|
`+i.map(n_).join(`
|
|
|
|
`):" "+ZT(i[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:bC};function ox(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _m(null,e)}function JT(e){return ox(e),e.headers=Da.from(e.headers),e.data=rx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),r3.getAdapter(e.adapter||Uk.adapter)(e).then(function(r){return ox(e),r.data=rx.call(e,e.transformResponse,r),r.headers=Da.from(r.headers),r},function(r){return t3(r)||(ox(e),r&&r.response&&(r.response.data=rx.call(e,e.transformResponse,r.response),r.response.headers=Da.from(r.response.headers))),Promise.reject(r)})}const e_=e=>e instanceof Da?e.toJSON():e;function rd(e,t){t=t||{};const n={};function r(u,c,d){return Se.isPlainObject(u)&&Se.isPlainObject(c)?Se.merge.call({caseless:d},u,c):Se.isPlainObject(c)?Se.merge({},c):Se.isArray(c)?c.slice():c}function o(u,c,d){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Se.isUndefined(c))return r(void 0,c)}function a(u,c){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(e_(u),e_(c),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Se.isUndefined(f)&&d!==l||(n[c]=f)}),n}const o3="1.6.7",Wk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const t_={};Wk.transitional=function(t,n,r){function o(i,a){return"[Axios v"+o3+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new vt(o(a," has been removed"+(n?" in "+n:"")),vt.ERR_DEPRECATED);return n&&!t_[a]&&(t_[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function wNe(e,t,n){if(typeof e!="object")throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new vt("option "+i+" must be "+s,vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vt("Unknown option "+i,vt.ERR_BAD_OPTION)}}const xC={assertOptions:wNe,validators:Wk},hl=xC.validators;class Fv{constructor(t){this.defaults=t,this.interceptors={request:new QT,response:new QT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
|
|
`):" "+n_(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:wC};function ix(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Am(null,e)}function r_(e){return ix(e),e.headers=za.from(e.headers),e.data=ox.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fB.getAdapter(e.adapter||qk.adapter)(e).then(function(r){return ix(e),r.data=ox.call(e,e.transformResponse,r),r.headers=za.from(r.headers),r},function(r){return cB(r)||(ix(e),r&&r.response&&(r.response.data=ox.call(e,e.transformResponse,r.response),r.response.headers=za.from(r.response.headers))),Promise.reject(r)})}const o_=e=>e instanceof za?e.toJSON():e;function ad(e,t){t=t||{};const n={};function r(u,c,d){return Se.isPlainObject(u)&&Se.isPlainObject(c)?Se.merge.call({caseless:d},u,c):Se.isPlainObject(c)?Se.merge({},c):Se.isArray(c)?c.slice():c}function o(u,c,d){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Se.isUndefined(c))return r(void 0,c)}function a(u,c){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(o_(u),o_(c),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Se.isUndefined(f)&&d!==l||(n[c]=f)}),n}const pB="1.6.7",Kk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const i_={};Kk.transitional=function(t,n,r){function o(i,a){return"[Axios v"+pB+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new yt(o(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!i_[a]&&(i_[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function MNe(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new yt("option "+i+" must be "+s,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const CC={assertOptions:MNe,validators:Kk},vl=CC.validators;class Lv{constructor(t){this.defaults=t,this.interceptors={request:new JT,response:new JT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
|
|
`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=rd(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&xC.assertOptions(r,{silentJSONParsing:hl.transitional(hl.boolean),forcedJSONParsing:hl.transitional(hl.boolean),clarifyTimeoutError:hl.transitional(hl.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:xC.assertOptions(o,{encode:hl.function,serialize:hl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Da.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!s){const p=[JT.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let m=n;for(d=0;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{c=JT.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=rd(this.defaults,t);const n=n3(t.baseURL,t.url);return XB(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){Fv.prototype[t]=function(n,r){return this.request(rd(r||{},{method:t,url:n,data:(r||{}).data}))}});Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(rd(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Fv.prototype[t]=n(),Fv.prototype[t+"Form"]=n(!0)});const gg=Fv;class Gk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new _m(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Gk(function(o){t=o}),cancel:t}}}const CNe=Gk;function SNe(e){return function(n){return e.apply(null,n)}}function ENe(e){return Se.isObject(e)&&e.isAxiosError===!0}const wC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wC).forEach(([e,t])=>{wC[t]=e});const PNe=wC;function i3(e){const t=new gg(e),n=jB(gg.prototype.request,t);return Se.extend(n,gg.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return i3(rd(e,o))},n}const Tn=i3(Uk);Tn.Axios=gg;Tn.CanceledError=_m;Tn.CancelToken=CNe;Tn.isCancel=t3;Tn.VERSION=o3;Tn.toFormData=Z0;Tn.AxiosError=vt;Tn.Cancel=Tn.CanceledError;Tn.all=function(t){return Promise.all(t)};Tn.spread=SNe;Tn.isAxiosError=ENe;Tn.mergeConfig=rd;Tn.AxiosHeaders=Da;Tn.formToJSON=e=>e3(Se.isHTMLForm(e)?new FormData(e):e);Tn.getAdapter=r3.getAdapter;Tn.HttpStatusCode=PNe;Tn.default=Tn;const kNe=Tn,a3=kNe.create();a3.interceptors.response.use(e=>e,e=>{var n,r,o;const t={...e,message:(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message,statusCode:(o=e.response)==null?void 0:o.status};return Promise.reject(t)});const ix=(e,t=a3)=>({getList:async({resource:n,pagination:r,filters:o,sorters:i,meta:a})=>{const l=`${e}/${n}`,{current:s=1,pageSi
Line truncated
|
|
|
|
`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ad(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&CC.assertOptions(r,{silentJSONParsing:vl.transitional(vl.boolean),forcedJSONParsing:vl.transitional(vl.boolean),clarifyTimeoutError:vl.transitional(vl.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:CC.assertOptions(o,{encode:vl.function,serialize:vl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=za.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!s){const p=[r_.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let m=n;for(d=0;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{c=r_.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=ad(this.defaults,t);const n=dB(t.baseURL,t.url);return aB(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){Lv.prototype[t]=function(n,r){return this.request(ad(r||{},{method:t,url:n,data:(r||{}).data}))}});Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(ad(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Lv.prototype[t]=n(),Lv.prototype[t+"Form"]=n(!0)});const vg=Lv;class Qk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Am(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Qk(function(o){t=o}),cancel:t}}}const RNe=Qk;function TNe(e){return function(n){return e.apply(null,n)}}function _Ne(e){return Se.isObject(e)&&e.isAxiosError===!0}const SC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(SC).forEach(([e,t])=>{SC[t]=e});const FNe=SC;function mB(e){const t=new vg(e),n=K3(vg.prototype.request,t);return Se.extend(n,vg.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mB(ad(e,o))},n}const _n=mB(qk);_n.Axios=vg;_n.CanceledError=Am;_n.CancelToken=RNe;_n.isCancel=cB;_n.VERSION=pB;_n.toFormData=J0;_n.AxiosError=yt;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=TNe;_n.isAxiosError=_Ne;_n.mergeConfig=ad;_n.AxiosHeaders=za;_n.formToJSON=e=>uB(Se.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=fB.getAdapter;_n.HttpStatusCode=FNe;_n.default=_n;const ANe=_n,hB=ANe.create();hB.interceptors.response.use(e=>e,e=>{var n,r,o;const t={...e,message:(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message,statusCode:(o=e.response)==null?void 0:o.status};return Promise.reject(t)});const ax=(e,t=hB)=>({getList:async({resource:n,pagination:r,filters:o,sorters:i,meta:a})=>{const l=`${e}/${n}`,{current:s=1,pageSi
Line truncated
|