UNPKG

react-declarative-lite

Version:

A lighter version of the react-declarative which exports the <One /> component and dependencies only and as such makes the library slightly faster and smaller. Unlike react-declarative, it doesn't provide any additional overhead like state management. For

15 lines (13 loc) 231 kB
import*as e from"react";import n,{createContext as t,useMemo as r,useContext as i,useState as o,useRef as a,useCallback as l,useEffect as u,useLayoutEffect as c,forwardRef as s,memo as d,Fragment as f,createElement as m,cloneElement as v}from"react";import{useTheme as p,createTheme as h,ThemeProvider as b,alpha as y}from"@mui/material/styles";import{createMakeAndWithStyles as g}from"tss-react";import E from"@mui/material/Box";import w from"@mui/material/CircularProgress";import x from"@mui/material/ListItemIcon";import C from"@mui/material/Typography";import k from"@mui/material/MenuItem";import S from"@mui/material/Divider";import I from"@mui/material/Menu";import{flushSync as R}from"react-dom";import{v4 as M}from"uuid";import L from"@mui/material/Grid";import{Grid as N,alpha as T,Typography as O,useMediaQuery as P,Accordion as j,AccordionSummary as A,AccordionDetails as F,Paper as D,Box as B,debounce as _}from"@mui/material";import H from"@mui/material/Checkbox";import V from"@mui/material/FormControlLabel";import z from"@mui/material/FormGroup";import W from"@mui/material/Button";import Y from"@mui/material/Stack";import U from"@mui/material/Autocomplete";import $ from"@mui/material/TextField";import q from"@mui/material/Radio";import G from"@mui/material/Paper";import X from"@mui/material/Modal";import Q from"@mui/material/InputAdornment";import K from"@mui/material/IconButton";import Z from"@mui/material/List";import J from"@mui/material/ListItemButton";import ee from"@mui/material/Backdrop";import ne from"@mui/material/ListItemText";import te from"@mui/icons-material/Close";import re from"@mui/icons-material/RadioButtonChecked";import ie from"@mui/icons-material/RadioButtonUnchecked";import oe from"@mui/material/Chip";import ae from"@mui/icons-material/CheckBox";import le from"@mui/icons-material/CheckBoxOutlineBlank";import ue from"@mui/material/RadioGroup";import ce from"@mui/material/LinearProgress";import se from"@mui/material/Rating";import de from"dayjs";export{default as dayjs}from"dayjs";import fe from"@mui/material/Popover";import me from"@mui/material/Toolbar";import ve from"@mui/icons-material/KeyboardArrowLeft";import pe from"@mui/icons-material/KeyboardArrowRight";import he from"@mui/icons-material/CalendarTodayOutlined";import be from"@mui/icons-material/ArrowForward";import ye from"@mui/icons-material/AlarmOutlined";import ge from"@mui/material/Switch";import Ee from"@mui/material/Slider";import we from"@mui/material/ListItem";import xe from"@mui/icons-material/Clear";import Ce from"@mui/material/ListSubheader";import ke from"@mui/icons-material/Search";import Se from"@mui/icons-material/ArrowDropDown";import Ie from"@mui/icons-material/ExpandMore";import Re from"@mui/material/Tab";import Me from"@mui/material/Tabs"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Le=function(e,n){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Le(e,n)};function Ne(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Le(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Te=function(){return Te=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Te.apply(this,arguments)};function Oe(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function Pe(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function l(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}u((r=r.apply(e,n||[])).next())}))}function je(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function Ae(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a}function De(e,n,t){if(t||2===arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function Be(e){return this instanceof Be?(this.v=e,this):new Be(e)}function _e(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(n){return new Promise((function(t,r){o.push([e,n,t,r])>1||l(e,n)}))})}function l(e,n){try{(t=i[e](n)).value instanceof Be?Promise.resolve(t.value.v).then(u,c):s(o[0][2],t)}catch(e){s(o[0][3],e)}var t}function u(e){l("next",e)}function c(e){l("throw",e)}function s(e,n){e(n),o.shift(),o.length&&l(o[0][0],o[0][1])}}var He,Ve=t(null),ze=function(n){var t=n.children,i=n.apiRef,o=void 0===i?null:i,a=n.reloadSubject,l=void 0===a?null:a,u=n.changeSubject,c=void 0===u?null:u,s=n.updateSubject,d=void 0===s?null:s,f=r((function(){return{apiRef:o,reloadSubject:l,changeSubject:c,updateSubject:d}}),[o,l,c,d]);return e.createElement(Ve.Provider,{value:f},t)},We=g({useTheme:p}).makeStyles,Ye=function(n){var t=n.children,i=p(),o=r((function(){return h(i)}),[i]);return e.createElement(b,{theme:o},t)};!function(e){e.Layout="custom-layout",e.Switch="switch-field",e.YesNo="yesno-field",e.Line="line-field",e.File="file-field",e.Group="group-layout",e.Paper="paper-layout",e.Outline="outline-layout",e.Expansion="expansion-layout",e.Radio="radio-field",e.Checkbox="checkbox-field",e.Text="text-field",e.Date="date-field",e.Time="time-field",e.Progress="progress-field",e.Component="component-field",e.Slider="slider-field",e.Combo="combo-field",e.Choose="choose-field",e.Tree="tree-field",e.Dict="dict-field",e.Init="init-field",e.Phony="phony-field",e.Button="button-field",e.Icon="icon-field",e.Complete="complete-field",e.Items="items-field",e.Rating="rating-field",e.Typography="typography-field",e.Fragment="fragment-layout",e.Div="div-layout",e.Box="box-layout",e.Tabs="tabs-layout",e.Hero="hero-layout",e.Center="center-layout",e.Stretch="stretch-layout",e.Condition="condition-layout"}(He||(He={})),Object.entries(He).forEach((function(e){var n=Fe(e,2),t=n[0],r=n[1];He[t]=Symbol.for(r)}));var Ue=He,$e=new Set([Ue.Group,Ue.Box,Ue.Paper,Ue.Outline,Ue.Expansion,Ue.Div,Ue.Tabs,Ue.Hero,Ue.Fragment,Ue.Center,Ue.Stretch,Ue.Condition,Ue.Layout]),qe=function(e){return $e.has(e)},Ge=function(e){var n=e.type;return e.name&&!$e.has(n)},Xe=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype},Qe=function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(Array.isArray(e[t])?n[t]=e[t].slice(0):Xe(e[t])?n[t]=Qe(e[t]):n[t]=e[t]);return n},Ke=function(e,n,t){var r=(Array.isArray(n)?n:n.split(".").filter((function(e){return e}))).flatMap((function(e){return"string"==typeof e?e.split("."):e})),i=r.slice(0,r.length-1).reduce((function(e,n){return e&&e[n]}),e),o=Fe(r.reverse(),1)[0];try{return i[o]=t,!0}catch(e){return!1}},Ze=function(e,n){return(Array.isArray(n)?n:n.split(".").filter((function(e){return e}))).flatMap((function(e){return"string"==typeof e?e.split("."):e})).reduce((function(e,n){return e&&e[n]}),e)},Je=function(e,n){if(e===n)return!0;if(Xe(e)&&Xe(n)){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var t in e)if(!Je(e[t],n[t]))return!1;return!0}return!1};var en,nn=function(){function e(){var e=this;this._events={},this.getListeners=function(n){return e._events[n]||[]},this.subscribe=function(n,t){!e._events[n]&&(e._events[n]=[]),e._events[n].push(t)},this.unsubscribe=function(n,t){!e._events[n]&&(e._events[n]=[]),e._events[n]=e._events[n].filter((function(e){return t!==e}))},this.unsubscribeAll=function(){e._events={}},this.once=function(n,t){var r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Pe(e,void 0,void 0,(function(){return je(this,(function(e){switch(e.label){case 0:return[4,t.apply(void 0,De([],Fe(i),!1))];case 1:return e.sent(),this.unsubscribe(n,r),[2]}}))}))};return e.subscribe(n,r),function(){e.unsubscribe(n,r)}},this.emit=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Pe(e,void 0,void 0,(function(){var e,r;return je(this,(function(i){switch(i.label){case 0:e=De([],Fe(this._events&&this._events[n]||[]),!1),r=0,i.label=1;case 1:return r===e.length?[3,4]:[4,e[r].apply(e,De([],Fe(t),!1))];case 2:i.sent(),i.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))}}return Object.defineProperty(e.prototype,"hasListeners",{get:function(){return e=this._events,!(0===Object.getOwnPropertySymbols(e).length&&0===Object.getOwnPropertyNames(e).length);var e},enumerable:!1,configurable:!0}),e}(),tn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?function(e){return e}:1===e.length?e[0]:e.reduce((function(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,De([],Fe(t),!1)))}}))},rn=function(e){return void 0===e&&(e=1e3),new Promise((function(n){return setTimeout((function(){return n()}),e)}))},on=Symbol("cancelable-canceled"),an=function(e){var n,t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new Promise((function(r,i){var o=!1;n&&n(),n=function(){o=!0,r(on)};var a=e.apply(void 0,De([],Fe(t),!1));a.then((function(e){o||r(e)})),a.catch((function(e){o||i(e)}))}))};return t.cancel=function(){n&&n()},t},ln=function(e){var n=Promise.resolve(),t=void 0,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=!1,l=function(){a=!0};return t=t?tn(t,l):l,n=n.then((function(){return Pe(void 0,void 0,void 0,(function(){return je(this,(function(n){switch(n.label){case 0:return a?[3,2]:[4,e.apply(void 0,De([],Fe(i),!1))];case 1:return[2,n.sent()];case 2:return[2,on]}}))}))})).finally((function(){r.clear(),t=void 0})),n};return r.clear=function(){n=Promise.resolve(),t=void 0},r.cancel=function(){n=Promise.resolve(),t&&t(),t=void 0},r},un=function(e){return requestAnimationFrame(e)},cn=function(e){return cancelAnimationFrame(e)},sn=function(e,n){var t;void 0===n&&(n=1e3);var r=null,i=n?setTimeout:un,o=n?clearTimeout:cn,a=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];null!==t&&o(t);var u=function(){r=null,t=null,e.apply(void 0,De([],Fe(a),!1))};r=u,t=i(u,n)};return a.clear=function(){null!==t&&o(t),t=null,r=null},a.flush=function(){null!==t&&o(t),r&&r(),t=null,r=null},a.pending=function(){return!!r},a},dn=Symbol("observer-subscribe"),fn=Symbol("observer-connect"),mn=Symbol("observer-disconnect"),vn=Symbol("observer-connect-listen"),pn=Symbol("observer-disconnect-listen"),hn=function(){function e(n){var t=this;this.dispose=n,this.broadcast=new nn,this._isShared=!1,this._subscribe=function(e,n){t.broadcast.subscribe(dn,n),e[vn]((function(){t.broadcast.emit(fn)})),e[pn]((function(){t.hasListeners||t.broadcast.emit(mn)}))},this._unsubscribe=function(e){t.broadcast.unsubscribe(dn,e)},this.tryDispose=function(){t.hasListeners||t._isShared||(t.dispose(),t.broadcast.emit(mn))},this.map=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=function(e){var t=n(e);i.emit(t)};return t._subscribe(i,o),r=function(){return t._unsubscribe(o)},i},this.flatMap=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=function(e){var t=n(e);Array.isArray(t)?t.forEach((function(e){i.emit(e)})):i.emit(t)};return t._subscribe(i,o),r=function(){return t._unsubscribe(o)},i},this.operator=function(e){return e(t)},this.reduce=function(n,r){var i,o=r,a=new e(tn((function(){return t.tryDispose()}),(function(){return i()}))),l=function(e){var t=n(o,e);o=t,a.emit(t)};return t._subscribe(a,l),i=function(){return t._unsubscribe(l)},a},this.split=function(){var n,r=new e(tn((function(){return t.tryDispose()}),(function(){return n()}))),i=function(e){Array.isArray(e)?e.flat(Number.POSITIVE_INFINITY).forEach((function(e){r.emit(e)})):r.emit(e)};return t._subscribe(r,i),n=function(){return t._unsubscribe(i)},r},this.mapAsync=function(n,r){var i,o=new e(tn((function(){return t.tryDispose()}),(function(){return i()}))),a=ln(n),l=function(e){return Pe(t,void 0,void 0,(function(){var n,t;return je(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,a(e)];case 1:return(n=i.sent())!==on&&o.emit(n),[3,3];case 2:if(t=i.sent(),!r)throw t;return r(t),[3,3];case 3:return[2]}}))}))};return t._subscribe(o,l),i=tn((function(){return t._unsubscribe(l)}),(function(){return a.clear()})),o},this.filter=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=function(e){n(e)&&i.emit(e)};return t._subscribe(i,o),r=function(){return t._unsubscribe(o)},i},this.tap=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=function(e){n(e),i.emit(e)};return t._subscribe(i,o),r=function(){return t._unsubscribe(o)},i},this.debounce=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=sn((function(e){i.emit(e)}),n);return t._subscribe(i,o),r=tn((function(){return o.clear()}),(function(){return t._unsubscribe(o)})),i},this.delay=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=!1,a=ln((function(e){return Pe(t,void 0,void 0,(function(){return je(this,(function(t){switch(t.label){case 0:return[4,rn(n)];case 1:return t.sent(),o?[3,3]:[4,i.emit(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))}));return t._subscribe(i,a),r=tn((function(){return a.clear()}),(function(){return t._unsubscribe(a)}),(function(){o=!0})),i},this.emit=function(e){return Pe(t,void 0,void 0,(function(){return je(this,(function(n){switch(n.label){case 0:return[4,this.broadcast.emit(dn,e)];case 1:return n.sent(),[2]}}))}))},this.connect=function(e){return t.broadcast.subscribe(dn,e),t.broadcast.emit(fn),tn((function(){return t.tryDispose()}),(function(){return t._unsubscribe(e)}))},this.once=function(e){var n;return n=t.connect((function(t){e(t),n()}))},this.share=function(){return t._isShared=!0,t},this.repeat=function(n){var r,i;void 0===n&&(n=1e3);var o=new e(tn((function(){return t.tryDispose()}),(function(){return r()}),(function(){return void 0!==i&&clearTimeout(i)}))),a=function(e){void 0!==i&&clearTimeout(i),o.emit(e),t.hasListeners&&(i=setTimeout(a,n,e))};return t._subscribe(o,a),r=function(){return t._unsubscribe(a)},o},this.merge=function(n){var r,i=new e(tn((function(){return t.tryDispose()}),(function(){return r()}))),o=function(e){i.emit(e)};t._subscribe(i,o);var a=function(){};return i[vn]((function(){a=n.connect(o)||function(){}})),r=tn((function(){return t._unsubscribe(o)}),(function(){return a()})),i},this.unsubscribe=function(){t.broadcast.unsubscribeAll(),t.broadcast.emit(mn),t.dispose()},this.toPromise=function(){return new Promise((function(e){t.once((function(n){return e(n)}))}))},this.toIteratorContext=function(){var e=t,n=!1;return{iterate:function(){return _e(this,arguments,(function(){return je(this,(function(t){switch(t.label){case 0:return n?[3,4]:[4,Be(e.toPromise())];case 1:return[4,Be(t.sent())];case 2:return[4,t.sent()];case 3:return t.sent(),[3,0];case 4:return[2]}}))}))},done:function(){n=!0}}}}return Object.defineProperty(e.prototype,"isShared",{get:function(){return this._isShared},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasListeners",{get:function(){return!!this.broadcast.getListeners(dn).length},enumerable:!1,configurable:!0}),e.prototype[vn]=function(e){this.broadcast.once(fn,e)},e.prototype[pn]=function(e){this.broadcast.once(mn,e)},e}(),bn=Symbol("react-declarative-subject"),yn=function(){function e(){var e=this;this._emitter=new nn,this.map=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.map(n)},this.flatMap=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.flatMap(n)},this.reduce=function(n,t){var r,i=new hn((function(){return r()}));return r=e.subscribe(i.emit),i.reduce(n,t)},this.mapAsync=function(n,t){var r,i=new hn((function(){return r()}));return r=e.subscribe(i.emit),i.mapAsync(n,t)},this.filter=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.filter(n)},this.tap=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.tap(n)},this.operator=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.operator(n)},this.split=function(){var n,t=new hn((function(){return n()}));return n=e.subscribe(t.emit),t.split()},this.debounce=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.debounce(n)},this.delay=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.delay(n)},this.repeat=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.repeat(n)},this.merge=function(n){var t,r=new hn((function(){return t()}));return t=e.subscribe(r.emit),r.merge(n)},this.subscribe=function(n){return e._emitter.subscribe(bn,n),function(){e._emitter.unsubscribe(bn,n)}},this.unsubscribeAll=function(){e._emitter.unsubscribeAll()},this.once=function(n){return e._emitter.once(bn,n)},this.toPromise=function(){return e.toObserver().toPromise()},this.toIteratorContext=function(){return e.toObserver().toIteratorContext()},this.next=this.next.bind(this),this.toObserver=this.toObserver.bind(this),this.toIteratorContext=this.toIteratorContext.bind(this)}return e.prototype.next=function(e){return Pe(this,void 0,void 0,(function(){return je(this,(function(n){switch(n.label){case 0:return[4,this._emitter.emit(bn,e)];case 1:return n.sent(),[2]}}))}))},e.prototype.toObserver=function(){var e,n=new hn((function(){return e()}));return e=this.subscribe(n.emit),n},e}(),gn=function(e){var n,t=0,r=new hn((function(){void 0!==n&&clearTimeout(n)})),i=function(){r.emit(t),t++,n=setTimeout(i,e)};return r[vn]((function(){i()})),r},En=function(e,n){var t=!1,r=new hn((function(){t=!0}));return r[vn]((function(){Pe(void 0,void 0,void 0,(function(){var i,o;return je(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e()];case 1:return i=a.sent(),t||r.emit(i),[3,3];case 2:if(o=a.sent(),!n)throw o;return n(o),[3,3];case 3:return[2]}}))}))})),r},wn=function(e){var n,t=new hn((function(){void 0!==n&&clearTimeout(n)})),r=function(){n=void 0,t.emit()};return t[vn]((function(){setTimeout(r,e)})),t},xn=function(e){var n=new hn((function(){}));return n[vn]((function(){Array.isArray(e)?e.flat(Number.POSITIVE_INFINITY).forEach((function(e){n.emit(e)})):n.emit(e)})),n},Cn=function(e){var n=new hn((function(){document.removeEventListener(e,n.emit)}));return n[vn]((function(){document.addEventListener(e,n.emit)})),n},kn=function(e){return{tap:function(n){return e().tap(n)},debounce:function(n){return e().debounce(n)},delay:function(n){return e().delay(n)},repeat:function(n){return e().repeat(n)},filter:function(n){return e().filter(n)},map:function(n){return e().map(n)},flatMap:function(n){return e().flatMap(n)},operator:function(n){return e().operator(n)},reduce:function(n,t){return e().reduce(n,t)},mapAsync:function(n,t){return e().mapAsync(n,t)},merge:function(n){return e().merge(n)},split:function(){return e().split()},connect:function(n){return e().connect(n)},once:function(n){return e().once(n)},unsubscribe:function(){return e().unsubscribe()},share:function(){return e().share()},toPromise:function(){return e().toPromise()},toIteratorContext:function(){return e().toIteratorContext()}}},Sn=function(){function e(){}var n;return n=e,e.merge=function(e){var n=(new yn).toObserver();return e.forEach((function(e){e&&(n=n.merge(e))})),n},e.join=function(e,n){var t=void 0===n?{}:n,r=t.race,i=void 0!==r&&r,o=t.buffer,a=void 0===o?[]:o,l=function(){},u=new hn((function(){return l()}));e=e.filter((function(e){return!!e})),a=De([],Fe(new Array(e.length)),!1).map((function(e,n){return a[n]}));var c=[],s=function(){a.every((function(e){return void 0!==e}))&&(u.emit(De([],Fe(a),!1)),!i&&a.fill(void 0))};return u[vn]((function(){e.forEach((function(e,n){if(e){var t=e.connect((function(e){a[n]=e,s()}));c.push((function(){return t()}))}})),l=tn.apply(void 0,De([],Fe(c),!1))})),u},e.unicast=function(e){return Te(Te({},kn(e)),{isUnicasted:!0})},e.multicast=function(e){var n;return Te(Te({},kn((function(){return n||(n=e())[pn]((function(){n=void 0})),n}))),{getRef:function(){return n},isMulticasted:!0})},e.createHot=function(e){var n,t=new hn((function(){return n()}));return n=e(t.emit)||function(){},t},e.createCold=function(e){var n=function(){},t=new hn((function(){return n()}));return t[vn]((function(){n=e(t.emit)||function(){}})),t},e.create=n.createCold,e.pipe=function(e,n){var t=function(){},r=new hn((function(){return t()}));return r[vn]((function(){var i=new yn,o=e.connect(i.next),a=n(i,r.emit)||function(){};t=tn((function(){return a()}),(function(){return o()}))})),r},e.fromInterval=gn,e.fromPromise=En,e.fromDelay=wn,e.fromArray=xn,e.fromEvent=Cn,e.fromValue=function(e){var n=new hn((function(){}));return n[vn]((function(){"function"==typeof e?n.emit(e()):n.emit(e)})),n},e.fromSubject=function(e){var n,t=new hn((function(){return n()}));return n=e.subscribe(t.emit),t},e.fromBehaviorSubject=function(e){var n,t=new hn((function(){return n()}));return t[vn]((function(){e.data&&t.emit(e.data)})),n=e.subscribe(t.emit),t},e}(),In=Sn.create((function(e){return document.addEventListener("mousemove",e),function(){return document.removeEventListener("mousemove",e)}})),Rn=Sn.create((function(e){return document.addEventListener("touchmove",e),function(){return document.removeEventListener("touchmove",e)}})),Mn=Sn.create((function(e){return document.addEventListener("scroll",e),function(){return document.removeEventListener("scroll",e)}})),Ln=Sn.unicast((function(){var e=0;return Sn.merge([In,Rn,Mn]).filter((function(){return 20===e||(e+=1,!1)})).tap((function(){e=0})).share()})),Nn=function(e){return Ln.connect(e)},Tn=Sn.unicast((function(){return Sn.create((function(e){return Sn.fromEvent("keydown").connect((function(n){"Tab"===n.code&&e()}))})).share()})),On=Sn.unicast((function(){return Sn.create((function(e){return document.addEventListener("touchstart",e,{passive:!1}),document.addEventListener("mousedown",e),function(){document.removeEventListener("touchstart",e),document.removeEventListener("mousedown",e)}})).share()})),Pn=function(e){var r=t(e||null);return[function(e){var t=e.children,i=e.payload;return n.createElement(r.Provider,{value:i},t)},function(){return i(r)}]},jn=Fe(Pn(),2),An=jn[0],Fn=jn[1],Dn=t(null),Bn={},_n=function(n){var t=n.children,r=n.payload,i=void 0===r?Bn:r;return e.createElement(Dn.Provider,{value:i},t)},Hn=function(){return i(Dn)},Vn=((en={})[Ue.Checkbox]=!1,en[Ue.Radio]=null,en[Ue.Text]="",en[Ue.Switch]=!1,en[Ue.Progress]=1,en[Ue.Slider]=0,en[Ue.Combo]=null,en[Ue.Items]=null,en[Ue.Rating]=3,en[Ue.Typography]="",en[Ue.Date]="",en[Ue.Time]="",en[Ue.File]=null,en[Ue.Choose]=null,en[Ue.Component]=null,en[Ue.Complete]="",en[Ue.Init]=null,en[Ue.YesNo]=null,en[Ue.Dict]=null,en[Ue.Tree]=null,en),zn=function(e){var n=Vn[e];return void 0===n?void console.warn("react-declarative One initialValue unknown type ".concat(String(e))):n},Wn=function(e){void 0===e&&(e=[]);var n=[],t=function(e){return void 0===e&&(e=[]),null==e?void 0:e.forEach((function(e){var r=e.fields||[],i=e.child?[e.child]:[];t(De(De([],Fe(r),!1),Fe(i),!1)),n.push(e)}))};return t(e),n},Yn=function(e){for(var n,t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!r.length)return e;var o=r.shift();if(Xe(e)&&Xe(o))for(var a in o)Array.isArray(o[a])?e[a]=o[a].slice(0):Xe(o[a])?(e[a]||Object.assign(e,((n={})[a]={},n)),Yn(e[a],o[a])):Object.assign(e,((t={})[a]=o[a],t));return Yn.apply(void 0,De([e],Fe(r),!1))},Un=function(e,n){var t=(Array.isArray(n)?n:n.split(".").filter((function(e){return e}))).flatMap((function(e){return"string"==typeof e?e.split("."):e}));t.slice(0,t.length-1).reduce((function(e,n){return e[n]=e[n]?e[n]:{}}),e)},$n=function(e){var n=Fe(o(e),2),t=n[0],r=n[1],i=a(t),u=l((function(e){var n;n="function"==typeof e?e(i.current):e,i.current=n,r(n)}),[]);return[i,u]},qn=Symbol("empty-value"),Gn=function(e){var n=a(qn);return n.current===qn&&(n.current=function(e){return"function"==typeof e?e():e}(e)),n.current},Xn=function(e){var n=Gn((function(){return new yn}));return u((function(){var t=void 0;return e&&(t=e.subscribe(n.next)),t}),[e]),n},Qn="one-resolve",Kn=function(e){return e},Zn=function(e,n,t){var r={};return e&&Wn(e).filter((function(e){return!t||!e.features||e.features.some((function(e){return t.includes(e)}))})).filter((function(e){return e.type!==Ue.Phony})).filter((function(e){return e.type!==Ue.Button})).filter((function(e){return e.type!==Ue.Icon})).forEach((function(e){if(Ge(e)){if(Un(r,e.name),"function"==typeof e.hidden?e.hidden(n):e.hidden)return;void 0===e.defaultValue?Ke(r,e.name,Ze(r,e.name)||zn(e.type)):"function"==typeof e.defaultValue?Ke(r,e.name,e.defaultValue(n)):Ke(r,e.name,e.defaultValue)}})),r},Jn=function(e){var n=e.handler,t=e.fallback,r=e.fields,o=e.features,s=e.payload,d=e.change,f=e.loadStart,m=e.loadEnd,v=e.incomingTransform,p=void 0===v?Kn:v,h=Fe($n(null),2),b=h[0],y=h[1],g=i(Ve),E=g.apiRef,w=g.changeSubject,x=g.reloadSubject,C=g.updateSubject,k=a(!0),S=a(!1),I=Xn(w),R=Xn(x),M=Xn(C);u((function(){var e,i=function(){return Pe(void 0,void 0,void 0,(function(){var e,i,a,l,u,c,v;return je(this,(function(h){switch(h.label){case 0:return S.current?[2]:[3,1];case 1:if("function"!=typeof n)return[3,9];e=!0,f&&f(Qn),h.label=2;case 2:return h.trys.push([2,6,7,8]),(i=n(s))instanceof Promise?(a=Yn,l=[{},Zn(r,s,o)],u=Qe,[4,i]):[3,4];case 3:return v=a.apply(void 0,l.concat([u.apply(void 0,[h.sent()])])),d(v,!0),k.current&&y(p(v,s)),[3,5];case 4:v=Yn({},Zn(r,s,o),Qe(i)),d(v,!0),k.current&&y(p(v,s)),h.label=5;case 5:return[3,8];case 6:if(c=h.sent(),e=!1,!t)throw c;return t(c),[3,8];case 7:return m&&m(e,Qn),S.current=!0,[7];case 8:return[3,10];case 9:n&&!Je(b.current,n)&&(v=Yn({},Zn(r,s,o),Qe(n)),k.current&&y(p(v,s))),h.label=10;case 10:return[2]}}))}))};i(),e={reload:i,change:function(e,n){void 0===n&&(n=!1),y(p(e,s)),d(e,n)},getData:function(){return Te({},b.current||{})}},"function"==typeof E?E(e):E&&(E.current=e),R.unsubscribeAll(),R.subscribe(e.reload),I.unsubscribeAll(),I.subscribe((function(n){n&&n!==b.current&&e.change(n,!0)})),M.unsubscribeAll(),M.subscribe((function(n){n&&n!==b.current&&e.change(n,!1)}))}),[n]),c((function(){return function(){k.current=!1}}),[]);var L=l((function(){return b.current}),[]);return[b.current,y,L]},et=function(e){var n=a(e);return n.current=e,n},nt=t(null),tt=function(n){var t=n.children,i=Oe(n,["children"]),o=a({}),u=a(!1),c=i.fields,s=void 0===c?[]:c,d=i.features,f=i.change,m=void 0===f?function(){return null}:f,v=i.fallback,p=void 0===v?function(){return null}:v,h=i.handler,b=void 0===h?function(){return{}}:h,y=i.payload,g=i.loadStart,E=i.loadEnd,w=i.incomingTransform,x=Fe(Jn({handler:b,fallback:p,fields:s,features:d,payload:y,change:m,loadStart:g,loadEnd:E,incomingTransform:w}),3),C=x[0],k=x[1],S=x[2],I=et(C),R=l((function(e,n){var t=o.current,r=I.current;k(e),Object.entries(n).forEach((function(e){var n=Fe(e,2),r=n[0],i=n[1];t[r]=i})),Object.values(t).some((function(e){return e}))?u.current=!0:(e!==r||u.current)&&(u.current=!1,m(e,!1))}),[]),M=l((function(e){return R(Qe(Te(Te({},I.current),e)),{})}),[]),L=r((function(){return{object:C,setObject:R,changeObject:M,getObjectRef:S}}),[C]);return e.createElement(nt.Provider,{value:L},!!C&&t)},rt=function(){return i(nt)},it=function(){return M()},ot=it(),at=function(e){void 0===e&&(e=0);var n=Fe(o(ot),2),t=n[0],r=n[1],i=l((function(){return r(it())}),[]);return u((function(){var n;return e&&(n=setTimeout((function(){n=void 0,i()}),e)),function(){void 0!==n&&clearTimeout(n)}}),[t,e,i]),{reloadTrigger:t,doReload:i}},lt=function(n){var t=n.reloadSubject,r=n.loading,i=n.children,l=n.fallback,s=n.Loader,d=void 0===s?function(){return null}:s,f=n.Error,m=void 0===f?function(){return null}:f,v=n.onLoadStart,p=n.onLoadEnd,h=n.payload,b=n.deps,y=void 0===b?[]:b,g=n.throwError,E=void 0!==g&&g,w=Fe(o(""),2),x=w[0],C=w[1],k=at(),S=k.reloadTrigger,I=k.doReload,M=Xn(t);u((function(){return M.subscribe((function(){I()}))}),[]);var L=a(null),N=Fe(o(!1),2),T=N[0],O=N[1],P=Fe(o(!1),2),j=P[0],A=P[1],F=a(!0),D=r||T;return c((function(){return function(){F.current=!1}}),[]),u((function(){L.current&&L.current.cancel();var e=an((function(){return Pe(void 0,void 0,void 0,(function(){var e,n,t;return je(this,(function(r){switch(r.label){case 0:e=!0,v&&v(),r.label=1;case 1:return r.trys.push([1,5,6,7]),(n=i(h))instanceof Promise?[4,n]:[3,3];case 2:return[2,r.sent()||null];case 3:return[2,n||null];case 4:return[3,7];case 5:throw t=r.sent(),e=!1,t;case 6:return p&&p(e),[7];case 7:return[2]}}))}))}));L.current=e;Pe(void 0,void 0,void 0,(function(){var n,t,r;return je(this,(function(i){switch(i.label){case 0:n=!1,F.current&&O(!0),F.current&&A(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,e()];case 2:return(t=i.sent())===on?(n=!0,[2]):(L.current=null,F.current&&queueMicrotask((function(){return R((function(){C(t)}))})),[3,5]);case 3:if(r=i.sent(),F.current&&A(!0),E)throw r;return l&&l(r),[3,5];case 4:return n||F.current&&O(!1),[7];case 5:return[2]}}))}))}),De(De([h],Fe(y),!1),[S],!1)),D?e.createElement(d,{payload:h}):j?e.createElement(m,{payload:h}):e.createElement(e.Fragment,null,x)},ut=function(){function e(e){var n=this;this.target=e,this._status="pending",e.then((function(){return n._status="fulfilled"})),e.catch((function(){return n._status="rejected"}))}return Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),e}(),ct=function(e){var n=void 0,t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"pending"!==(null==n?void 0:n.status)&&(n=new ut(e.apply(void 0,De([],Fe(t),!1)))),null==n?void 0:n.target};return t.clear=function(){n=void 0},t.getStatus=function(){return(null==n?void 0:n.status)||"ready"},t},st=function(e,n){void 0===n&&(n=[]);var t=a(e);return t.current=e,l((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(t,De([],Fe(e),!1))}),n)},dt=function(e,n){var t=void 0===n?{}:n,i=t.onLoadStart,l=t.onLoadEnd,u=t.fallback,s=t.throwError,d=Fe(o(!1),2),f=d[0],m=d[1],v=Fe(o(!1),2),p=v[0],h=v[1],b=a(!0),y=st(e);c((function(){return function(){b.current=!1}}),[]);var g=r((function(){return ct((function(e){return Pe(void 0,void 0,void 0,(function(){var n,t,r;return je(this,(function(o){switch(o.label){case 0:n=function(){return Pe(void 0,void 0,void 0,(function(){var n,t,r;return je(this,(function(o){switch(o.label){case 0:n=!0,i&&i(),o.label=1;case 1:return o.trys.push([1,5,6,7]),(t=y(e))instanceof Promise?[4,t]:[3,3];case 2:return[2,o.sent()||null];case 3:return[2,t||null];case 4:return[3,7];case 5:throw r=o.sent(),n=!1,r;case 6:return l&&l(n),[7];case 7:return[2]}}))}))},b.current&&m(!0),b.current&&h(!1),t=!1,o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,n()];case 2:return[2,o.sent()];case 3:if(r=o.sent(),b.current&&h(!0),s)throw r;return u&&u(r),[3,5];case 4:return t||b.current&&m(!1),[7];case 5:return[2,null]}}))}))}))}),[]);return{loading:f,error:p,execute:g}},ft=function(e){var n=Gn(e),t=a(n),r=l((function(e){var n;n="function"==typeof e?e(t.current):e,t.current=n}),[]);return[t,r]},mt={name:"",menu:function(){return null},menuItems:[],onValueChange:function(){return null}},vt=We()({container:{position:"relative",display:"flex",alignItems:"stretch",justifyContent:"stretch",maxHeight:"45vh",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflowY:"auto",overflowX:"hidden"},content:{flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch"},loader:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"}}),pt=function(n){var t=n.requestSubject,i=vt().classes,a=Fe(o(null),2),c=a[0],s=a[1],d=Fe(o(0),2),f=d[0],m=d[1],v=Fe(ft(mt),2),p=v[0],h=v[1],b=Fe(ft(0),2),y=b[0],g=b[1],E=rt(),R=E.object,M=E.changeObject,L=Hn(),N=l((function(){m((function(e){return e+1}))}),[]),T=l((function(){m((function(e){return Math.max(e-1,0)}))}),[]),O=dt((function(e){return Pe(void 0,void 0,void 0,(function(){return je(this,(function(n){switch(n.label){case 0:return[4,p.current.menu(p.current.name,e,P.current,L,p.current.onValueChange,M)];case 1:return n.sent(),s(null),[2]}}))}))}),{onLoadStart:N,onLoadEnd:T}).execute,P=et(R),j=r((function(){return p.current.menuItems.map((function(e){var n=e.isDisabled,t=void 0===n?function(){return!1}:n,r=e.isVisible,i=void 0===r?function(){return!0}:r,o=Oe(e,["isDisabled","isVisible"]);return Te(Te({},o),{isDisabled:function(){return t(P.current,L)},isVisible:function(){return i(P.current,L)}})}))}),[p.current.menuItems]),A=et(j);return u((function(){return t.subscribe(ln((function(e){var n=e.event,t=e.menuItems,r=e.menu,i=e.name,o=e.onValueChange;return Pe(void 0,void 0,void 0,(function(){var e;return je(this,(function(a){switch(a.label){case 0:return[4,rn(350)];case 1:return a.sent(),g((function(e){return e+1})),h({name:i,menuItems:t,onValueChange:o,menu:r}),e=document.elementFromPoint(n.clientX,n.clientY),s(e||n.target),[2]}}))}))})))}),[]),e.createElement(I,{key:y.current,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},anchorEl:c,open:!!c,onClose:function(){return s(null)},MenuListProps:{disablePadding:!0}},e.createElement("div",{className:i.container},0!==f&&e.createElement("div",{className:i.loader},e.createElement(w,{size:14})),e.createElement("div",{className:i.content},A.current.map((function(n,t){var r=n.label,i=void 0===r?"unknown-label":r,o=n.action,a=void 0===o?"unknown-action":o,l=n.divider,u=n.onClick,c=n.icon,d=n.isDisabled,f=void 0===d?function(){return!1}:d,m=n.isVisible,v=void 0===m?function(){return!0}:m;return e.createElement(lt,{Loader:function(){return l?null:e.createElement(k,{sx:{visibility:"hidden",minWidth:225}},!!c&&e.createElement(x,null,e.createElement(c,null)),e.createElement(C,{variant:"inherit"},i))},onLoadStart:N,onLoadEnd:T,key:"".concat(y.current,"-").concat(t),payload:L},(function(n){return Pe(void 0,void 0,void 0,(function(){var t;return je(this,(function(r){switch(r.label){case 0:return[4,rn(0)];case 1:return r.sent(),[4,f(n)];case 2:return t=r.sent(),[4,v(n)];case 3:return r.sent()?l?[2,e.createElement(S,{orientation:"horizontal"})]:[2,e.createElement(k,{disabled:t,onClick:function(){if(u)return u(P.current,n,p.current.onValueChange,M),void s(null);O(a)},sx:{minWidth:225}},!!c&&e.createElement(x,null,e.createElement(c,null)),e.createElement(C,{variant:"inherit"},i))]:[2,null]}}))}))}))})))))},ht=t(null),bt=function(n){var t=n.children,i=Xn(),o=r((function(){return{createContextMenu:function(e){var n=e.menuItems,t=void 0===n?[]:n,r=e.onValueChange,o=void 0===r?function(){return null}:r,a=e.menu,l=e.name;return function(e){return Pe(void 0,void 0,void 0,(function(){return je(this,(function(n){switch(n.label){case 0:return t?(e.preventDefault(),e.stopPropagation(),(null==t?void 0:t.length)?[4,i.next({name:l,menu:a,event:e,menuItems:t,onValueChange:o})]:[2]):[2];case 1:return[2,n.sent()]}}))}))}},requestSubject:i}}),[]);return e.createElement(ht.Provider,{value:o},t,e.createElement(pt,{requestSubject:i}))},yt=function(){return i(ht)};var gt=function(e){var n=!1,t=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(void 0,De([],Fe(r),!1))),t};return r.clear=function(){n=!1},r},Et=function(){return!0},wt=function(e,n){var t=e.compute,r=e.type,i=e.readTransform,o=e.name,a=e.object,l=e.payload,u=e.config;if(t&&u.WITH_SYNC_COMPUTE){var c=n?t(a,l):zn(r);return!(c instanceof Promise)&&c}return!(t||!o)&&(i(Ze(a,o),o,a,l)||zn(r))},xt=function(e,n){var t=void 0===n?{}:n,r=t.allowedErrors,i=t.fallback,o=t.defaultValue,a=void 0===o?null:o;return function(){for(var n,t,o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];try{var u=e.apply(void 0,De([],Fe(o),!1));return u instanceof Promise?function(e,n){var t=n.fallback,r=n.defaultValue;return Pe(void 0,void 0,void 0,(function(){var n;return je(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e];case 1:return[2,i.sent()];case 2:return n=i.sent(),t&&t(n),[2,r];case 3:return[2]}}))}))}(u,{fallback:i,defaultValue:a}):u}catch(e){if(i&&i(e),r){try{for(var c=Ae(r),s=c.next();!s.done;s=c.next()){if(e instanceof s.value)return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(t=c.return)&&t.call(c)}finally{if(n)throw n.error}}throw e}return a}}},Ct=function(){return!1},kt=function(){return!0},St=function(){return null},It=function(){return null},Rt=function(){return!1},Mt=function(e,n,t){var r="".concat(n,"(").concat(e||"unknown",")");return function(e){console.error("react-declarative ".concat(r," ").concat(t," exception"),e)}},Lt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=[];return e.forEach((function(e){if(e)if("string"==typeof e)t.push(e);else if(Array.isArray(e)){if(e.length){var n=Lt.apply(void 0,De([],Fe(e),!1));n&&t.push(n)}}else"object"==typeof e&&(e.toString!==Object.prototype.toString?t.push(e.toString()):Object.entries(e).filter((function(e){var n=Fe(e,2);return n[0],!!n[1]})).forEach((function(e){var n=Fe(e,1)[0];return t.push(n)})))})),t.join(" ")},Nt="12",Tt=function(e){return Number(e)},Ot=We()({root:{position:"relative",display:"flex",alignItems:"stretch",justifyContent:"stretch"},container:{flex:1,display:"flex",alignItems:"stretch",justifyContent:"stretch",width:"100%","& > *":{flex:1}}}),Pt=function(n,t){var i=n.className,o=n.style,a=n.sx,l=n.columns,u=void 0===l?"":l,c=n.phoneColumns,s=void 0===c?"":c,d=n.tabletColumns,f=void 0===d?"":d,m=n.desktopColumns,v=void 0===m?"":m,p=n.fieldRightMargin,h=void 0===p?"1":p,b=n.fieldBottomMargin,y=void 0===b?"2":b,g=n.children,w=n.onClick,x=n.onFocus,C=n.onContextMenu,k=Oe(n,["className","style","sx","columns","phoneColumns","tabletColumns","desktopColumns","fieldRightMargin","fieldBottomMargin","children","onClick","onFocus","onContextMenu"]),S=Ot().classes,I=r((function(){return{xs:Tt(s||u||Nt),sm:Tt(f||u||Nt),md:Tt(f||u||Nt),lg:Tt(v||u||Nt),xl:Tt(v||u||Nt),mr:Tt(h),mb:Tt(y)}}),[]),R=I.xs,M=I.sm,N=I.md,T=I.lg,O=I.xl,P=I.mr,j=I.mb;return e.createElement(L,Te({},k,{ref:t,item:!0,className:Lt(i,S.root),style:o,onFocus:x,onClick:w,xs:R,sm:M,md:N,lg:T,xl:O,sx:a,onContextMenu:C}),e.createElement(E,{className:S.container,mr:P,mb:j},g))};Pt.displayName="Item";var jt=s(Pt),At=function(n,t){var i=n.className,o=n.style,a=n.children,l=n.onFocus,u=n.onClick,c=n.isBaselineAlign,s=n.columnsOverride,d=n.sx,f=n.onContextMenu,m=Oe(n,["className","style","children","onFocus","onClick","isBaselineAlign","columnsOverride","sx","onContextMenu"]),v=r((function(){return s&&Number(s)}),[]);return e.createElement(N,Te({},m,{ref:t,container:!0,alignItems:c?"flex-end":"flex-start",className:i,style:o,onClick:u,onFocus:l,columns:v,onContextMenu:f,sx:d}),a)};At.displayName="Container";var Ft=s(At),Dt=We()({root:{position:"relative","& > *":{width:"100%"}}}),Bt=function(n,t){var r=n.className,i=void 0===r?"":r,o=n.columns,a=void 0===o?"":o,l=n.phoneColumns,u=void 0===l?"":l,c=n.tabletColumns,s=void 0===c?"":c,d=n.desktopColumns,f=void 0===d?"":d,m=n.children,v=n.isItem,p=n.isBaselineAlign,h=n.style,b=n.columnsOverride,y=n.sx,g=n.fieldRightMargin,E=void 0===g?"1":g,w=n.fieldBottomMargin,x=void 0===w?"2":w,C=n.onClick,k=n.onFocus,S=n.onContextMenu,I=Oe(n,["className","columns","phoneColumns","tabletColumns","desktopColumns","children","isItem","isBaselineAlign","style","columnsOverride","sx","fieldRightMargin","fieldBottomMargin","onClick","onFocus","onContextMenu"]),R=Dt().classes;return v?e.createElement(jt,Te({},I,{ref:t,className:Lt(R.root,i),style:h,columns:a,phoneColumns:u,tabletColumns:s,desktopColumns:f,fieldRightMargin:E,fieldBottomMargin:x,onFocus:k,onClick:C,onContextMenu:S,sx:y}),m):e.createElement(Ft,Te({},I,{ref:t,className:Lt(R.root,i),isBaselineAlign:p,columnsOverride:b,style:h,onFocus:k,onContextMenu:S,onClick:C,sx:y}),m)};Bt.displayName="Group";var _t=s(Bt),Ht=function(e){if(e){if(e.includes(".")){var n=e.split(".");e=Fe(n.reverse(),1)[0]}var t=Fe(e.split("_")),r=t[0],i=t.slice(1);return De(["".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))],Fe(i),!1).join(" ")}},Vt={WITH_DIRTY_CLICK_LISTENER:!0,WITH_MOBILE_READONLY_FALLBACK:!0,WITH_WAIT_FOR_MOVE_LISTENER:!0,WITH_WAIT_FOR_TAB_LISTENER:!0,WITH_WAIT_FOR_TOUCH_LISTENER:!0,WITH_DISMOUNT_LISTENER:!0,WITH_SYNC_COMPUTE:!1,CUSTOM_FIELD_DEBOUNCE:800,FIELD_BLUR_DEBOUNCE:100},zt=function(){var e=this;this._config=Vt,this.getRef=function(){return e._config},this.setValue=function(n){Object.assign(e._config,Vt,n)}},Wt=Symbol("get-reference"),Yt=function(){function e(){}var n;return n=Wt,e.instance=new zt,e[n]=e.instance.getRef,e.setValue=e.instance.setValue,e}(),Ut={display:"flex",alignItems:"stretch",justifyContent:"stretch"},$t=We()((function(e){var n,t,r;return{root:Te(Te({},Ut),{"& > *":Te(Te({},Ut),{flexGrow:1}),"& > * > *":{flexGrow:1},pointerEvents:"all"}),hidden:{display:"none !important"},fieldReadonly:{"& > *":{pointerEvents:"none !important"}},phoneHidden:(n={},n[e.breakpoints.only("xs")]={display:"none !important"},n),tabletHidden:(t={},t[e.breakpoints.between("sm","lg")]={display:"none !important"},t),desktopHidden:(r={},r[e.breakpoints.up("lg")]={display:"none !important"},r)}})),qt=function(e){return console.log({v:e})},Gt=function(){return null},Xt=function(){return null},Qt=function(e){return e},Kt=function(){},Zt=function(){return null},Jt=function(){return null},er=function(e){return e},nr=function(e){return e};function tr(n,t){var i=this;void 0===t&&(t={withApplyQueue:!1,skipDirtyClickListener:!1,skipClickListener:!1,skipFocusReadonly:!1,skipFocusBlurCall:!1,skipDebounce:!1,defaultProps:{}});var a=d(n),s=Yt[Wt](),f=function(d){var f,m,v,p,h,b,y,g=d.className,E=void 0===g?"":g,w=d.sx,x=d.columns,C=void 0===x?"":x,k=d.phoneColumns,S=void 0===k?"":k,I=d.tabletColumns,R=void 0===I?"":I,M=d.desktopColumns,L=void 0===M?"":M,N=d.phoneHidden,T=void 0!==N&&N,O=d.tabletHidden,P=void 0!==O&&O,j=d.desktopHidden,A=void 0!==j&&j,F=d.isDisabled,D=d.isVisible,B=d.isInvalid,_=d.isIncorrect,H=d.isReadonly,V=d.readTransform,z=void 0===V?er:V,W=d.writeTransform,Y=void 0===W?nr:W,U=d.change,$=void 0===U?qt:U,q=d.fallback,G=void 0===q?Gt:q,X=d.ready,Q=void 0===X?Xt:X,K=d.compute,Z=d.shouldRecompute,J=d.click,ee=void 0===J?Kt:J,ne=d.map,te=void 0===ne?Qt:ne,re=d.object,ie=d.name,oe=void 0===ie?"":ie,ae=d.title,le=void 0===ae?Ht(oe)||void 0:ae,ue=d.menu,ce=void 0===ue?Jt:ue,se=d.type,de=d.debug,fe=d.focus,me=d.blur,ve=d.invalidity,pe=d.prefix,he=d.dirty,be=void 0!==he&&he,ye=d.disabled,ge=void 0!==ye&&ye,Ee=d.readonly,we=void 0!==Ee&&Ee,xe=d.autoFocus,Ce=d.style,ke=d.menuItems,Se=d.groupRef,Ie=void 0===Se?Zt:Se,Re=d.fieldRightMargin,Me=void 0===Re?null===(m=t.defaultProps)||void 0===m?void 0:m.fieldRightMargin:Re,Le=d.fieldBottomMargin,Ne=void 0===Le?null===(v=t.defaultProps)||void 0===v?void 0:v.fieldBottomMargin:Le,Ae=d.outlinePaper,De=void 0!==Ae&&Ae,Be=d.transparentPaper,_e=void 0!==Be&&Be,He=d.testId,Ve=void 0===He?oe:He,ze=Oe(d,["className","sx","columns","phoneColumns","tabletColumns","desktopColumns","phoneHidden","tabletHidden","desktopHidden","isDisabled","isVisible","isInvalid","isIncorrect","isReadonly","readTransform","writeTransform","change","fallback","ready","compute","shouldRecompute","click","map","object","name","title","menu","type","debug","focus","blur","invalidity","prefix","dirty","disabled","readonly","autoFocus","style","menuItems","groupRef","fieldRightMargin","fieldBottomMargin","outlinePaper","transparentPaper","testId"]),We=rt(),Ye=We.object,Ue=We.changeObject,$e=We.getObjectRef,qe=Hn(),Ge=yt().createContextMenu,Xe=function(e){var n=e.prefix,t=e.name,i=e.isDisabled,o=void 0===i?Ct:i,a=e.isVisible,l=void 0===a?kt:a,u=e.isInvalid,c=void 0===u?St:u,s=e.isIncorrect,d=void 0===s?It:s,f=e.isReadonly,m=void 0===f?Rt:f;return r((function(){return{isDisabled:xt(o,{defaultValue:!1,fallback:Mt(t,n,"isDisabled")}),isVisible:xt(l,{defaultValue:!1,fallback:Mt(t,n,"isVisible")}),isInvalid:xt(c,{defaultValue:null,fallback:Mt(t,n,"isInvalid")}),isIncorrect:xt(d,{defaultValue:null,fallback:Mt(t,n,"isIncorrect")}),isReadonly:xt(m,{defaultValue:!1,fallback:Mt(t,n,"isReadonly")})}}),[])}({prefix:pe,name:oe,isDisabled:F,isVisible:D,isInvalid:B,isIncorrect:_,isReadonly:H}),en=Xe.isDisabled,nn=Xe.isVisible,tn=Xe.isInvalid,un=Xe.isIncorrect,cn=Xe.isReadonly,dn=Ye||re,fn=$t().classes,mn=function(e){var n=e.compute,t=e.shouldRecompute,i=void 0===t?Et:t;return r((function(){var e=null;if(n){var t=gt(n);return function(n,r){return e&&i(e,n,r)&&t.clear(),e=n,t(n,r)}}}),[])}({compute:K,shouldRecompute:Z}),vn=function(e,n){var t=Fe(o((function(){var t=function(e){var n=e.phoneHidden,t=e.tabletHidden,r=e.desktopHidden,i=e.isReadonly,o=e.isInvalid,a=e.isDisabled,l=e.isVisible,u=e.isIncorrect,c=e.object,s=e.payload;return{phoneHidden:"function"==typeof n?n(s):n,tabletHidden:"function"==typeof t?t(s):t,desktopHidden:"function"==typeof r?r(s):r,fieldReadonly:i(c,s),invalid:o(c,s),visible:l(c,s),incorrect:u(c,s),disabled:a(c,s)}}(n);return Te(Te(Te({groupRef:null,focusReadonly:!0,loading:!1},t),{value:wt(n,t.visible)}),e)})),2),i=t[0],a=t[1];return{state:i,action:r((function(){return{setGroupRef:function(e){return a((function(n){return Te(Te({},n),{groupRef:e})}))},setFocusReadonly:function(e){return a((function(n){return Te(Te({},n),{focusReadonly:e})}))},setFieldReadonly:function(e){return a((function(n){return Te(Te({},n),{fieldReadonly:e})}))},setDisabled:function(e){return a((function(n){return Te(Te({},n),{disabled:e})}))},setInvalid:function(e){return a((function(n){return Te(Te({},n),{invalid:e})}))},setIncorrect:function(e){return a((function(n){return Te(Te({},n),{incorrect:e})}))},setVisible:function(e){return a((function(n){return Te(Te({},n),{visible:e})}))},setLoading:function(e){return a((function(n){return Te(Te({},n),{loading:e})}))},setDirty:function(e){return a((function(n){return Te(Te({},n),{dirty:e})}))},setValue:function(e){return a((function(n){return Te(Te({},n),{value:e})}))}}}),[])}}({dirty:be},{compute:mn,type:se,readTransform:z,config:s,name:oe,object:dn,payload:qe,isVisible:nn,isDisabled:en,isInvalid:tn,isIncorrect:un,isReadonly:cn,phoneHidden:T,tabletHidden:P,desktopHidden:A}),pn=vn.state,hn=pn.phoneHidden,bn=pn.tabletHidden,yn=pn.desktopHidden,gn=pn.dirty,En=pn.disabled,wn=pn.fieldReadonly,xn=pn.focusReadonly,Cn=pn.groupRef,kn=pn.invalid,Sn=pn.incorrect,In=pn.loading,Rn=pn.value,Mn=pn.visible,Ln=vn.action,Pn=Ln.setDirty,jn=Ln.setDisabled,An=Ln.setFieldReadonly,Dn=Ln.setFocusReadonly,Bn=Ln.setGroupRef,_n=Ln.setInvalid,Vn=Ln.setIncorrect,zn=Ln.setLoading,Wn=Ln.setValue,Yn=Ln.setVisible,Un=(h=s,b=Fn(),y=h.CUSTOM_FIELD_DEBOUNCE,b||y),$n=Fe(function(e,n){var t=Fe(o((function(){return{value:e}})),2),i=t[0],a=t[1],l=r((function(){return sn((function(e){return a({value:e})}),n)}),[]);return u((function(){return function(){return l.clear()}}),[]),[i,l,l]}(Rn,t.skipDebounce?0:Un),3),qn=$n[0],Gn=$n[1],Xn=$n[2],Qn=Xn.pen