Current Path : /home/church/www/mekhimalachi.org/wp-content/plugins/ninja-forms/build/ |
Current File : /home/church/www/mekhimalachi.org/wp-content/plugins/ninja-forms/build/sub-table-block.js |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=701)}({0:function(e,t){e.exports=window.wp.element},10:function(e,t,n){var r=n(86),o=n(87),i=n(67),a=n(88);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},109:function(e,t,n){!function(e,t){"use strict";function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var s={init:"init"},u=function(e){var t=e.value;return void 0===t?"":t},l=function(){return t.createElement(t.Fragment,null," ")},c={Cell:u,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){var n=t.style,r=t.className;return e=o({},e,{},i(t,["style","className"])),n&&(e.style=e.style?o({},e.style||{},{},n||{}):n),r&&(e.className=e.className?e.className+" "+r:r),""===e.className&&delete e.className,e}),{})}var f=function(e,t){return void 0===t&&(t={}),function(n){return void 0===n&&(n={}),[].concat(e,[n]).reduce((function(e,r){return function e(t,n,r){return"function"==typeof n?e({},n(t,r)):Array.isArray(n)?d.apply(void 0,[t].concat(n)):d(t,n)}(e,r,o({},t,{userProps:n}))}),{})}},p=function(e,t,n,r){return void 0===n&&(n={}),e.reduce((function(e,t){return t(e,n)}),t)},g=function(e,t,n){return void 0===n&&(n={}),e.forEach((function(e){e(t,n)}))};function m(e,t,n,r){e.findIndex((function(e){return e.pluginName===n})),t.forEach((function(t){e.findIndex((function(e){return e.pluginName===t}))}))}function h(e,t){return"function"==typeof e?e(t):e}function v(e){var n=t.useRef();return n.current=e,t.useCallback((function(){return n.current}),[])}var y="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function b(e,n){var r=t.useRef(!1);y((function(){r.current&&e(),r.current=!0}),n)}function w(e,t,n){return void 0===n&&(n={}),function(r,i){void 0===i&&(i={});var a="string"==typeof r?t[r]:r;if(void 0===a)throw console.info(t),new Error("Renderer Error ☝️");return S(a,o({},e,{column:t},n,{},i))}}function S(e,n){return function(e){return"function"==typeof e&&(t=Object.getPrototypeOf(e)).prototype&&t.prototype.isReactComponent;var t}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?t.createElement(e,n):e;var r}function R(e,t,n){return void 0===n&&(n=0),e.map((function(e){return x(e=o({},e,{parent:t,depth:n})),e.columns&&(e.columns=R(e.columns,e,n+1)),e}))}function C(e){return A(e,"columns")}function x(e){var t=e.id,n=e.accessor,r=e.Header;if("string"==typeof n){t=t||n;var o=n.split(".");n=function(e){return function(e,t,n){if(!t)return e;var r,o="function"==typeof t?t:JSON.stringify(t),i=k.get(o)||function(){var e=function(e){return function e(t,n){if(void 0===n&&(n=[]),Array.isArray(t))for(var r=0;r<t.length;r+=1)e(t[r],n);else n.push(t);return n}(e).map((function(e){return String(e).replace(".","_")})).join(".").replace(M,".").replace(_,"").split(".")}(t);return k.set(o,e),e}();try{r=i.reduce((function(e,t){return e[t]}),e)}catch(e){}return void 0!==r?r:void 0}(e,o)}}if(!t&&"string"==typeof r&&r&&(t=r),!t&&e.columns)throw console.error(e),new Error('A column ID (or unique "Header" value) is required!');if(!t)throw console.error(e),new Error("A column ID (or string accessor) is required!");return Object.assign(e,{id:t,accessor:n}),e}function P(e,t){if(!t)throw new Error;return Object.assign(e,o({Header:l,Footer:l},c,{},t,{},e)),Object.assign(e,{originalWidth:e.width}),e}function O(e,t,n){void 0===n&&(n=function(){return{}});for(var r=[],i=e,a=0,s=function(){return a++},u=function(){var e={headers:[]},a=[],u=i.some((function(e){return e.parent}));i.forEach((function(r){var i,l=[].concat(a).reverse()[0];u&&(i=r.parent?o({},r.parent,{originalId:r.parent.id,id:r.parent.id+"_"+s(),headers:[r]},n(r)):P(o({originalId:r.id+"_placeholder",id:r.id+"_placeholder_"+s(),placeholderOf:r,headers:[r]},n(r)),t),l&&l.originalId===i.originalId?l.headers.push(r):a.push(i)),e.headers.push(r)})),r.push(e),i=a};i.length;)u();return r.reverse()}var k=new Map;function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0;r<t.length;r+=1)if(void 0!==t[r])return t[r]}function I(e){if("function"==typeof e)return e}function A(e,t){var n=[];return function e(r){r.forEach((function(r){r[t]?e(r[t]):n.push(r)}))}(e),n}function j(e,t){var n=t.manualExpandedKey,r=t.expanded,o=t.expandSubRows,i=void 0===o||o,a=[];return e.forEach((function(e){return function e(t,o){void 0===o&&(o=!0),t.isExpanded=t.original&&t.original[n]||r[t.id],t.canExpand=t.subRows&&!!t.subRows.length,o&&a.push(t),t.subRows&&t.subRows.length&&t.isExpanded&&t.subRows.forEach((function(t){return e(t,i)}))}(e)})),a}function F(e,t,n){return I(e)||t[e]||n[e]||n.text}function B(e,t,n){return e?e(t,n):void 0===t}function T(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var G=null,M=/\[/g,_=/\]/g,z=function(e){return o({role:"table"},e)},H=function(e){return o({role:"rowgroup"},e)},D=function(e,t){var n=t.column;return o({key:"header_"+n.id,colSpan:n.totalVisibleHeaderCount,role:"columnheader"},e)},N=function(e,t){var n=t.column;return o({key:"footer_"+n.id,colSpan:n.totalVisibleHeaderCount},e)},W=function(e,t){return o({key:"headerGroup_"+t.index,role:"row"},e)},L=function(e,t){return o({key:"footerGroup_"+t.index},e)},$=function(e,t){return o({key:"row_"+t.row.id,role:"row"},e)},V=function(e,t){var n=t.cell;return o({key:"cell_"+n.row.id+"_"+n.column.id,role:"cell"},e)};function X(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[z],getTableBodyProps:[H],getHeaderGroupProps:[W],getFooterGroupProps:[L],getHeaderProps:[D],getFooterProps:[N],getRowProps:[$],getCellProps:[V],useFinalInstance:[]}}s.resetHiddenColumns="resetHiddenColumns",s.toggleHideColumn="toggleHideColumn",s.setHiddenColumns="setHiddenColumns",s.toggleHideAllColumns="toggleHideAllColumns";var q=function(e){e.getToggleHiddenProps=[U],e.getToggleHideAllColumnsProps=[Y],e.stateReducers.push(K),e.useInstanceBeforeDimensions.push(Z),e.headerGroupsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.hiddenColumns])})),e.useInstance.push(J)};q.pluginName="useColumnVisibility";var U=function(e,t){var n=t.column;return[e,{onChange:function(e){n.toggleHidden(!e.target.checked)},style:{cursor:"pointer"},checked:n.isVisible,title:"Toggle Column Visible"}]},Y=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleHideAllColumns(!e.target.checked)},style:{cursor:"pointer"},checked:!n.allColumnsHidden&&!n.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!n.allColumnsHidden&&n.state.hiddenColumns.length}]};function K(e,t,n,r){if(t.type===s.init)return o({hiddenColumns:[]},e);if(t.type===s.resetHiddenColumns)return o({},e,{hiddenColumns:r.initialState.hiddenColumns||[]});if(t.type===s.toggleHideColumn){var i=(void 0!==t.value?t.value:!e.hiddenColumns.includes(t.columnId))?[].concat(e.hiddenColumns,[t.columnId]):e.hiddenColumns.filter((function(e){return e!==t.columnId}));return o({},e,{hiddenColumns:i})}return t.type===s.setHiddenColumns?o({},e,{hiddenColumns:h(t.value,e.hiddenColumns)}):t.type===s.toggleHideAllColumns?o({},e,{hiddenColumns:(void 0!==t.value?t.value:!e.hiddenColumns.length)?r.allColumns.map((function(e){return e.id})):[]}):void 0}function Z(e){var n=e.headers,r=e.state.hiddenColumns;t.useRef(!1).current;var o=0;n.forEach((function(e){return o+=function e(t,n){t.isVisible=n&&!r.includes(t.id);var o=0;return t.headers&&t.headers.length?t.headers.forEach((function(n){return o+=e(n,t.isVisible)})):o=t.isVisible?1:0,t.totalVisibleHeaderCount=o,o}(e,!0)}))}function J(e){var n=e.columns,r=e.flatHeaders,o=e.dispatch,i=e.allColumns,a=e.getHooks,u=e.state.hiddenColumns,l=e.autoResetHiddenColumns,c=void 0===l||l,d=v(e),p=i.length===u.length,g=t.useCallback((function(e,t){return o({type:s.toggleHideColumn,columnId:e,value:t})}),[o]),m=t.useCallback((function(e){return o({type:s.setHiddenColumns,value:e})}),[o]),h=t.useCallback((function(e){return o({type:s.toggleHideAllColumns,value:e})}),[o]),y=f(a().getToggleHideAllColumnsProps,{instance:d()});r.forEach((function(e){e.toggleHidden=function(t){o({type:s.toggleHideColumn,columnId:e.id,value:t})},e.getToggleHiddenProps=f(a().getToggleHiddenProps,{instance:d(),column:e})}));var w=v(c);b((function(){w()&&o({type:s.resetHiddenColumns})}),[o,n]),Object.assign(e,{allColumnsHidden:p,toggleHideColumn:g,setHiddenColumns:m,toggleHideAllColumns:h,getToggleHideAllColumnsProps:y})}var Q={},ee={},te=function(e,t,n){return e},ne=function(e,t){return e.subRows||[]},re=function(e,t,n){return""+(n?[n.id,t].join("."):t)},oe=function(e){return e};function ie(e){var t=e.initialState,n=void 0===t?Q:t,r=e.defaultColumn,a=void 0===r?ee:r,s=e.getSubRows,u=void 0===s?ne:s,l=e.getRowId,c=void 0===l?re:l,d=e.stateReducer,f=void 0===d?te:d,p=e.useControlledState,g=void 0===p?oe:p;return o({},i(e,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:n,defaultColumn:a,getSubRows:u,getRowId:c,stateReducer:f,useControlledState:g})}function ae(e,t){void 0===t&&(t=0);var n=0,r=0,o=0,i=0;return e.forEach((function(e){var a=e.headers;if(e.totalLeft=t,a&&a.length){var s=ae(a,t),u=s[0],l=s[1],c=s[2],d=s[3];e.totalMinWidth=u,e.totalWidth=l,e.totalMaxWidth=c,e.totalFlexWidth=d}else e.totalMinWidth=e.minWidth,e.totalWidth=Math.min(Math.max(e.minWidth,e.width),e.maxWidth),e.totalMaxWidth=e.maxWidth,e.totalFlexWidth=e.canResize?e.totalWidth:0;e.isVisible&&(t+=e.totalWidth,n+=e.totalMinWidth,r+=e.totalWidth,o+=e.totalMaxWidth,i+=e.totalFlexWidth)})),[n,r,o,i]}function se(e){var t=e.data,n=e.rows,r=e.flatRows,o=e.rowsById,i=e.column,a=e.getRowId,s=e.getSubRows,u=e.accessValueHooks,l=e.getInstance;t.forEach((function(e,c){return function e(n,c,d,f,g){void 0===d&&(d=0);var m=n,h=a(n,c,f),v=o[h];if(v)v.subRows&&v.originalSubRows.forEach((function(t,n){return e(t,n,d+1,v)}));else if((v={id:h,original:m,index:c,depth:d,cells:[{}]}).cells.map=T,v.cells.filter=T,v.cells.forEach=T,v.cells[0].getCellProps=T,v.values={},g.push(v),r.push(v),o[h]=v,v.originalSubRows=s(n,c),v.originalSubRows){var y=[];v.originalSubRows.forEach((function(t,n){return e(t,n,d+1,v,y)})),v.subRows=y}i.accessor&&(v.values[i.id]=i.accessor(n,c,v,g,t)),v.values[i.id]=p(u,v.values[i.id],{row:v,column:i,instance:l()})}(e,c,0,void 0,n)}))}s.resetExpanded="resetExpanded",s.toggleRowExpanded="toggleRowExpanded",s.toggleAllRowsExpanded="toggleAllRowsExpanded";var ue=function(e){e.getToggleAllRowsExpandedProps=[le],e.getToggleRowExpandedProps=[ce],e.stateReducers.push(de),e.useInstance.push(fe),e.prepareRow.push(pe)};ue.pluginName="useExpanded";var le=function(e,t){var n=t.instance;return[e,{onClick:function(e){n.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},ce=function(e,t){var n=t.row;return[e,{onClick:function(){n.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function de(e,t,n,r){if(t.type===s.init)return o({expanded:{}},e);if(t.type===s.resetExpanded)return o({},e,{expanded:r.initialState.expanded||{}});if(t.type===s.toggleAllRowsExpanded){var u=t.value,l=r.isAllRowsExpanded,c=r.rowsById;if(void 0!==u?u:!l){var d={};return Object.keys(c).forEach((function(e){d[e]=!0})),o({},e,{expanded:d})}return o({},e,{expanded:{}})}if(t.type===s.toggleRowExpanded){var f,p=t.id,g=t.value,m=e.expanded[p],h=void 0!==g?g:!m;if(!m&&h)return o({},e,{expanded:o({},e.expanded,(f={},f[p]=!0,f))});if(m&&!h){var v=e.expanded;return v[p],o({},e,{expanded:i(v,[p].map(a))})}return e}}function fe(e){var n=e.data,r=e.rows,o=e.rowsById,i=e.manualExpandedKey,a=void 0===i?"expanded":i,u=e.paginateExpandedRows,l=void 0===u||u,c=e.expandSubRows,d=void 0===c||c,p=e.autoResetExpanded,g=void 0===p||p,h=e.getHooks,y=e.plugins,w=e.state.expanded,S=e.dispatch;m(y,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var R=v(g),C=Boolean(Object.keys(o).length&&Object.keys(w).length);C&&Object.keys(o).some((function(e){return!w[e]}))&&(C=!1),b((function(){R()&&S({type:s.resetExpanded})}),[S,n]);var x=t.useCallback((function(e,t){S({type:s.toggleRowExpanded,id:e,value:t})}),[S]),P=t.useCallback((function(e){return S({type:s.toggleAllRowsExpanded,value:e})}),[S]),O=t.useMemo((function(){return l?j(r,{manualExpandedKey:a,expanded:w,expandSubRows:d}):r}),[l,r,a,w,d]),k=t.useMemo((function(){return function(e){var t=0;return Object.keys(e).forEach((function(e){var n=e.split(".");t=Math.max(t,n.length)})),t}(w)}),[w]),E=v(e),I=f(h().getToggleAllRowsExpandedProps,{instance:E()});Object.assign(e,{preExpandedRows:r,expandedRows:O,rows:O,expandedDepth:k,isAllRowsExpanded:C,toggleRowExpanded:x,toggleAllRowsExpanded:P,getToggleAllRowsExpandedProps:I})}function pe(e,t){var n=t.instance.getHooks,r=t.instance;e.toggleRowExpanded=function(t){return r.toggleRowExpanded(e.id,t)},e.getToggleRowExpandedProps=f(n().getToggleRowExpandedProps,{instance:r,row:e})}var ge=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return String(r).toLowerCase().includes(String(n).toLowerCase())}))}))};ge.autoRemove=function(e){return!e};var me=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r).toLowerCase()===String(n).toLowerCase()}))}))};me.autoRemove=function(e){return!e};var he=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r)===String(n)}))}))};he.autoRemove=function(e){return!e};var ve=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t].includes(n)}))}))};ve.autoRemove=function(e){return!e||!e.length};var ye=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.every((function(e){return r.includes(e)}))}))}))};ye.autoRemove=function(e){return!e||!e.length};var be=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.some((function(e){return r.includes(e)}))}))}))};be.autoRemove=function(e){return!e||!e.length};var we=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return n.includes(r)}))}))};we.autoRemove=function(e){return!e||!e.length};var Se=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]===n}))}))};Se.autoRemove=function(e){return void 0===e};var Re=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]==n}))}))};Re.autoRemove=function(e){return null==e};var Ce=function(e,t,n){var r=n||[],o=r[0],i=r[1];if((o="number"==typeof o?o:-1/0)>(i="number"==typeof i?i:1/0)){var a=o;o=i,i=a}return e.filter((function(e){return t.some((function(t){var n=e.values[t];return n>=o&&n<=i}))}))};Ce.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var xe=Object.freeze({__proto__:null,text:ge,exactText:me,exactTextCase:he,includes:ve,includesAll:ye,includesSome:be,includesValue:we,exact:Se,equals:Re,between:Ce});s.resetFilters="resetFilters",s.setFilter="setFilter",s.setAllFilters="setAllFilters";var Pe=function(e){e.stateReducers.push(Oe),e.useInstance.push(ke)};function Oe(e,t,n,r){if(t.type===s.init)return o({filters:[]},e);if(t.type===s.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===s.setFilter){var i=t.columnId,a=t.filterValue,u=r.allColumns,l=r.filterTypes,c=u.find((function(e){return e.id===i}));if(!c)throw new Error("React-Table: Could not find a column with id: "+i);var d=F(c.filter,l||{},xe),f=e.filters.find((function(e){return e.id===i})),p=h(a,f&&f.value);return B(d.autoRemove,p,c)?o({},e,{filters:e.filters.filter((function(e){return e.id!==i}))}):o({},e,f?{filters:e.filters.map((function(e){return e.id===i?{id:i,value:p}:e}))}:{filters:[].concat(e.filters,[{id:i,value:p}])})}if(t.type===s.setAllFilters){var g=t.filters,m=r.allColumns,v=r.filterTypes;return o({},e,{filters:h(g,e.filters).filter((function(e){var t=m.find((function(t){return t.id===e.id}));return!B(F(t.filter,v||{},xe).autoRemove,e.value,t)}))})}}function ke(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.filterTypes,l=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,f=e.disableFilters,p=e.state.filters,g=e.dispatch,m=e.autoResetFilters,h=void 0===m||m,y=t.useCallback((function(e,t){g({type:s.setFilter,columnId:e,filterValue:t})}),[g]),w=t.useCallback((function(e){g({type:s.setAllFilters,filters:e})}),[g]);a.forEach((function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?E(!0!==o&&void 0,!0!==f&&void 0,!0):E(r,d,!1),e.setFilter=function(t){return y(e.id,t)};var i=p.find((function(e){return e.id===t}));e.filterValue=i&&i.value}));var S=t.useMemo((function(){if(l||!p.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=p.reduce((function(e,t){var n=t.id,r=t.value,i=a.find((function(e){return e.id===n}));if(!i)return e;0===o&&(i.preFilteredRows=e);var s=F(i.filter,u||{},xe);return s?(i.filteredRows=s(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)}),r)).forEach((function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)})),i}(r),e,t]}),[l,p,r,o,i,a,u]),R=S[0],C=S[1],x=S[2];t.useMemo((function(){a.filter((function(e){return!p.find((function(t){return t.id===e.id}))})).forEach((function(e){e.preFilteredRows=R,e.filteredRows=R}))}),[R,p,a]);var P=v(h);b((function(){P()&&g({type:s.resetFilters})}),[g,l?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:R,filteredFlatRows:C,filteredRowsById:x,rows:R,flatRows:C,rowsById:x,setFilter:y,setAllFilters:w})}Pe.pluginName="useFilters",s.resetGlobalFilter="resetGlobalFilter",s.setGlobalFilter="setGlobalFilter";var Ee=function(e){e.stateReducers.push(Ie),e.useInstance.push(Ae)};function Ie(e,t,n,r){if(t.type===s.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===s.setGlobalFilter){var a=t.filterValue,u=r.userFilterTypes,l=F(r.globalFilter,u||{},xe),c=h(a,e.globalFilter);return B(l.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function Ae(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.filterTypes,l=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,f=e.dispatch,p=e.autoResetGlobalFilter,g=void 0===p||p,m=e.disableGlobalFilter,h=t.useCallback((function(e){f({type:s.setGlobalFilter,filterValue:e})}),[f]),y=t.useMemo((function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=F(l,u||{},xe);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;a.forEach((function(e){var t=e.disableGlobalFilter;e.canFilter=E(!0!==t&&void 0,!0!==m&&void 0,!0)}));var s=a.filter((function(e){return!0===e.canFilter}));return[function r(o){return(o=n(o,s.map((function(e){return e.id})),d)).forEach((function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows})),o}(r),e,t]}),[c,d,l,u,a,r,o,i,m]),w=y[0],S=y[1],R=y[2],C=v(g);b((function(){C()&&f({type:s.resetGlobalFilter})}),[f,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:w,globalFilteredFlatRows:S,globalFilteredRowsById:R,rows:w,flatRows:S,rowsById:R,setGlobalFilter:h,disableGlobalFilter:m})}function je(e,t){return t.reduce((function(e,t){return e+("number"==typeof t?t:0)}),0)}Ee.pluginName="useGlobalFilter";var Fe=Object.freeze({__proto__:null,sum:je,min:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e))})),t},max:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.max(t,e))})),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))})),t+".."+n},average:function(e){return je(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort((function(e,t){return e-t}));return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),Be=[],Te={};s.resetGroupBy="resetGroupBy",s.setGroupBy="setGroupBy",s.toggleGroupBy="toggleGroupBy";var Ge=function(e){e.getGroupByToggleProps=[Me],e.stateReducers.push(_e),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.groupBy])})),e.visibleColumns.push(ze),e.useInstance.push(De),e.prepareRow.push(Ne)};Ge.pluginName="useGroupBy";var Me=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function _e(e,t,n,r){if(t.type===s.init)return o({groupBy:[]},e);if(t.type===s.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===s.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===s.toggleGroupBy){var i=t.columnId,a=t.value,u=void 0!==a?a:!e.groupBy.includes(i);return o({},e,u?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter((function(e){return e!==i}))})}}function ze(e,t){var n=t.instance.state.groupBy,r=n.map((function(t){return e.find((function(e){return e.id===t}))})).filter(Boolean),o=e.filter((function(e){return!n.includes(e.id)}));return(e=[].concat(r,o)).forEach((function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)})),e}var He={};function De(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,u=e.flatHeaders,l=e.groupByFn,c=void 0===l?We:l,d=e.manualGroupBy,p=e.aggregations,g=void 0===p?He:p,h=e.plugins,y=e.state.groupBy,w=e.dispatch,S=e.autoResetGroupBy,R=void 0===S||S,C=e.disableGroupBy,x=e.defaultCanGroupBy,P=e.getHooks;m(h,["useColumnOrder","useFilters"],"useGroupBy");var O=v(e);a.forEach((function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?E(t.canGroupBy,!0!==o&&void 0,!0!==C&&void 0,!0):E(t.canGroupBy,r,x,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell}));var k=t.useCallback((function(e,t){w({type:s.toggleGroupBy,columnId:e,value:t})}),[w]),I=t.useCallback((function(e){w({type:s.setGroupBy,value:e})}),[w]);u.forEach((function(e){e.getGroupByToggleProps=f(P().getGroupByToggleProps,{instance:O(),header:e})}));var j=t.useMemo((function(){if(d||!y.length)return[r,o,i,Be,Te,o,i];var e=y.filter((function(e){return a.find((function(t){return t.id===e}))})),t=[],n={},s=[],u={},l=[],f={},p=function r(o,i,d){if(void 0===i&&(i=0),i===e.length)return o;var p=e[i],m=c(o,p);return Object.entries(m).map((function(o,c){var m=o[0],h=o[1],v=p+":"+m,y=r(h,i+1,v=d?d+">"+v:v),b=i?A(h,"leafRows"):h,w=function(t,n,r){var o={};return a.forEach((function(i){if(e.includes(i.id))o[i.id]=n[0]?n[0].values[i.id]:null;else{var a="function"==typeof i.aggregate?i.aggregate:g[i.aggregate]||Fe[i.aggregate];if(a){var s=n.map((function(e){return e.values[i.id]})),u=t.map((function(e){var t=e.values[i.id];if(!r&&i.aggregateValue){var n="function"==typeof i.aggregateValue?i.aggregateValue:g[i.aggregateValue]||Fe[i.aggregateValue];if(!n)throw console.info({column:i}),new Error("React Table: Invalid column.aggregateValue option for column listed above");t=n(t,e,i)}return t}));o[i.id]=a(u,s)}else{if(i.aggregate)throw console.info({column:i}),new Error("React Table: Invalid column.aggregate option for column listed above");o[i.id]=null}}})),o}(b,h,i),S={id:v,isGrouped:!0,groupByID:p,groupByVal:m,values:w,subRows:y,leafRows:b,depth:i,index:c};return y.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(s.push(e),u[e.id]=e):(l.push(e),f[e.id]=e)})),S}))}(r);return p.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(s.push(e),u[e.id]=e):(l.push(e),f[e.id]=e)})),[p,t,n,s,u,l,f]}),[d,y,r,o,i,a,g,c]),F=j[0],B=j[1],T=j[2],G=j[3],M=j[4],_=j[5],z=j[6],H=v(R);b((function(){H()&&w({type:s.resetGroupBy})}),[w,d?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:o,preGroupedRowsById:i,groupedRows:F,groupedFlatRows:B,groupedRowsById:T,onlyGroupedFlatRows:G,onlyGroupedRowsById:M,nonGroupedFlatRows:_,nonGroupedRowsById:z,rows:F,flatRows:B,rowsById:T,toggleGroupBy:k,setGroupBy:I})}function Ne(e){e.allCells.forEach((function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)}))}function We(e,t){return e.reduce((function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e}),{})}var Le=/([0-9]+)/gm;function $e(e,t){return e===t?0:e>t?1:-1}function Ve(e,t,n){return[e.values[n],t.values[n]]}function Xe(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var qe=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1];for(o=Xe(o),i=Xe(i),o=o.split(Le).filter(Boolean),i=i.split(Le).filter(Boolean);o.length&&i.length;){var a=o.shift(),s=i.shift(),u=parseInt(a,10),l=parseInt(s,10),c=[u,l].sort();if(isNaN(c[0])){if(a>s)return 1;if(s>a)return-1}else{if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return-1}}return o.length-i.length},datetime:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1];return $e(o=o.getTime(),i=i.getTime())},basic:function(e,t,n){var r=Ve(e,t,n);return $e(r[0],r[1])},string:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1];for(o=o.split("").filter(Boolean),i=i.split("").filter(Boolean);o.length&&i.length;){var a=o.shift(),s=i.shift(),u=a.toLowerCase(),l=s.toLowerCase();if(u>l)return 1;if(l>u)return-1;if(a>s)return 1;if(s>a)return-1}return o.length-i.length},number:function(e,t,n){var r=Ve(e,t,n),o=r[0],i=r[1],a=/[^0-9.]/gi;return $e(o=Number(String(o).replace(a,"")),i=Number(String(i).replace(a,"")))}});s.resetSortBy="resetSortBy",s.setSortBy="setSortBy",s.toggleSortBy="toggleSortBy",s.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var Ue=function(e){e.getSortByToggleProps=[Ye],e.stateReducers.push(Ke),e.useInstance.push(Ze)};Ue.pluginName="useSortBy";var Ye=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function Ke(e,t,n,r){if(t.type===s.init)return o({sortBy:[]},e);if(t.type===s.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===s.clearSortBy)return o({},e,{sortBy:e.sortBy.filter((function(e){return e.id!==t.columnId}))});if(t.type===s.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===s.toggleSortBy){var i,a=t.columnId,u=t.desc,l=t.multi,c=r.allColumns,d=r.disableMultiSort,f=r.disableSortRemove,p=r.disableMultiRemove,g=r.maxMultiSortColCount,m=void 0===g?Number.MAX_SAFE_INTEGER:g,h=e.sortBy,v=c.find((function(e){return e.id===a})).sortDescFirst,y=h.find((function(e){return e.id===a})),b=h.findIndex((function(e){return e.id===a})),w=null!=u,S=[];return"toggle"!=(i=!d&&l?y?"toggle":"add":b!==h.length-1||1!==h.length?"replace":y?"toggle":"replace")||f||w||l&&p||!(y&&y.desc&&!v||!y.desc&&v)||(i="remove"),"replace"===i?S=[{id:a,desc:w?u:v}]:"add"===i?(S=[].concat(h,[{id:a,desc:w?u:v}])).splice(0,S.length-m):"toggle"===i?S=h.map((function(e){return e.id===a?o({},e,{desc:w?u:!y.desc}):e})):"remove"===i&&(S=h.filter((function(e){return e.id!==a}))),o({},e,{sortBy:S})}}function Ze(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,a=e.orderByFn,u=void 0===a?Je:a,l=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,p=e.disableSortBy,g=e.flatHeaders,h=e.state.sortBy,y=e.dispatch,w=e.plugins,S=e.getHooks,R=e.autoResetSortBy,C=void 0===R||R;m(w,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var x=t.useCallback((function(e){y({type:s.setSortBy,sortBy:e})}),[y]),P=t.useCallback((function(e,t,n){y({type:s.toggleSortBy,columnId:e,desc:t,multi:n})}),[y]),O=v(e);g.forEach((function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?E(!0!==r&&void 0,!0!==p&&void 0,!0):E(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return P(e.id,t,n)},e.clearSortBy=function(){y({type:s.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=f(S().getSortByToggleProps,{instance:O(),column:e});var a=h.find((function(e){return e.id===o}));e.isSorted=!!a,e.sortedIndex=h.findIndex((function(e){return e.id===o})),e.isSortedDesc=e.isSorted?a.desc:void 0}));var k=t.useMemo((function(){if(c||!h.length)return[r,o];var e=[],t=h.filter((function(e){return i.find((function(t){return t.id===e.id}))}));return[function n(r){var o=u(r,t.map((function(e){var t=i.find((function(t){return t.id===e.id}));if(!t)throw new Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=I(n)||(l||{})[n]||qe[n];if(!r)throw new Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}})),t.map((function(e){var t=i.find((function(t){return t.id===e.id}));return t&&t.sortInverted?e.desc:!e.desc})));return o.forEach((function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))})),o}(r),e]}),[c,h,r,o,i,u,l]),A=k[0],j=k[1],F=v(C);b((function(){F()&&y({type:s.resetSortBy})}),[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:A,sortedFlatRows:j,rows:A,flatRows:j,setSortBy:x,toggleSortBy:P})}function Je(e,t,n){return[].concat(e).sort((function(e,r){for(var o=0;o<t.length;o+=1){var i=t[o],a=!1===n[o]||"desc"===n[o],s=i(e,r);if(0!==s)return a?-s:s}return n[0]?e.index-r.index:r.index-e.index}))}s.resetPage="resetPage",s.gotoPage="gotoPage",s.setPageSize="setPageSize";var Qe=function(e){e.stateReducers.push(et),e.useInstance.push(tt)};function et(e,t,n,r){if(t.type===s.init)return o({pageSize:10,pageIndex:0},e);if(t.type===s.resetPage)return o({},e,{pageIndex:r.initialState.pageIndex||0});if(t.type===s.gotoPage){var i=r.pageCount,a=r.page,u=h(t.pageIndex,e.pageIndex),l=!1;return u>e.pageIndex?l=-1===i?a.length>=e.pageSize:u<i:u<e.pageIndex&&(l=u>-1),l?o({},e,{pageIndex:u}):e}if(t.type===s.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function tt(e){var n=e.rows,r=e.autoResetPage,o=void 0===r||r,i=e.manualExpandedKey,a=void 0===i?"expanded":i,u=e.plugins,l=e.pageCount,c=e.paginateExpandedRows,d=void 0===c||c,f=e.expandSubRows,p=void 0===f||f,g=e.state,h=g.pageSize,y=g.pageIndex,w=g.expanded,S=g.globalFilter,R=g.filters,C=g.groupBy,x=g.sortBy,P=e.dispatch,O=e.data,k=e.manualPagination;m(u,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var E=v(o);b((function(){E()&&P({type:s.resetPage})}),[P,k?null:O,S,R,C,x]);var I=k?l:Math.ceil(n.length/h),A=t.useMemo((function(){return I>0?[].concat(new Array(I)).fill(null).map((function(e,t){return t})):[]}),[I]),F=t.useMemo((function(){var e;if(k)e=n;else{var t=h*y,r=t+h;e=n.slice(t,r)}return d?e:j(e,{manualExpandedKey:a,expanded:w,expandSubRows:p})}),[p,w,a,k,y,h,d,n]),B=y>0,T=-1===I?F.length>=h:y<I-1,G=t.useCallback((function(e){P({type:s.gotoPage,pageIndex:e})}),[P]),M=t.useCallback((function(){return G((function(e){return e-1}))}),[G]),_=t.useCallback((function(){return G((function(e){return e+1}))}),[G]),z=t.useCallback((function(e){P({type:s.setPageSize,pageSize:e})}),[P]);Object.assign(e,{pageOptions:A,pageCount:I,page:F,canPreviousPage:B,canNextPage:T,gotoPage:G,previousPage:M,nextPage:_,setPageSize:z})}Qe.pluginName="usePagination",s.resetPivot="resetPivot",s.togglePivot="togglePivot";var nt=function(e){e.getPivotToggleProps=[ot],e.stateReducers.push(it),e.useInstanceAfterData.push(at),e.allColumns.push(st),e.accessValue.push(ut),e.materializedColumns.push(lt),e.materializedColumnsDeps.push(ct),e.visibleColumns.push(dt),e.visibleColumnsDeps.push(ft),e.useInstance.push(pt),e.prepareRow.push(gt)};nt.pluginName="usePivotColumns";var rt=[],ot=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function it(e,t,n,r){if(t.type===s.init)return o({pivotColumns:rt},e);if(t.type===s.resetPivot)return o({},e,{pivotColumns:r.initialState.pivotColumns||rt});if(t.type===s.togglePivot){var i=t.columnId,a=t.value,u=void 0!==a?a:!e.pivotColumns.includes(i);return o({},e,u?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter((function(e){return e!==i}))})}}function at(e){e.allColumns.forEach((function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)}))}function st(e,t){var n=t.instance;return e.forEach((function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set})),e}function ut(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function lt(e,t){var n=t.instance,r=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var a=i.pivotColumns.map((function(e){return r.find((function(t){return t.id===e}))})).filter(Boolean),s=r.filter((function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)})),u=C(function e(t,n,r){void 0===t&&(t=0),void 0===r&&(r=[]);var i=a[t];return i?Array.from(i.uniqueValues).sort().map((function(a){var s=o({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+a:a,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+a:i.id+"."+a,pivotValue:a});return s.columns=e(t+1,s,[].concat(r,[function(e){return e.values[i.id]===a}])),s})):s.map((function(e){return o({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,o){if(r.every((function(e){return e(o)})))return o.values[e.id]}})}))}());return[].concat(e,u)}function ct(e,t){var n=t.instance.state,r=n.pivotColumns,o=n.groupBy;return[].concat(e,[r,o])}function dt(e,t){var n=t.instance.state;return e=e.filter((function(e){return!e.isPivotSource})),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter((function(e){return e.isGrouped||e.isPivoted}))),e}function ft(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function pt(e){var t=e.columns,n=e.allColumns,r=e.flatHeaders,o=e.getHooks,i=e.plugins,a=e.dispatch,u=e.autoResetPivot,l=void 0===u||u,c=e.manaulPivot,d=e.disablePivot,p=e.defaultCanPivot;m(i,["useGroupBy"],"usePivotColumns");var g=v(e);n.forEach((function(t){var n=t.accessor,r=t.defaultPivot,o=t.disablePivot;t.canPivot=n?E(t.canPivot,!0!==o&&void 0,!0!==d&&void 0,!0):E(t.canPivot,r,p,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell})),r.forEach((function(e){e.getPivotToggleProps=f(o().getPivotToggleProps,{instance:g(),header:e})}));var h=v(l);b((function(){h()&&a({type:s.resetPivot})}),[a,c?null:t]),Object.assign(e,{togglePivot:function(e,t){a({type:s.togglePivot,columnId:e,value:t})}})}function gt(e){e.allCells.forEach((function(e){e.isPivoted=e.column.isPivoted}))}s.resetSelectedRows="resetSelectedRows",s.toggleAllRowsSelected="toggleAllRowsSelected",s.toggleRowSelected="toggleRowSelected",s.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var mt=function(e){e.getToggleRowSelectedProps=[ht],e.getToggleAllRowsSelectedProps=[vt],e.getToggleAllPageRowsSelectedProps=[yt],e.stateReducers.push(bt),e.useInstance.push(wt),e.prepareRow.push(St)};mt.pluginName="useRowSelect";var ht=function(e,t){var n=t.instance,r=t.row,o=n.manualRowSelectedKey,i=void 0===o?"isSelected":o;return[e,{onChange:function(e){r.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!r.original||!r.original[i])||r.isSelected,title:"Toggle Row Selected",indeterminate:r.isSomeSelected}]},vt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},yt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some((function(e){var t=e.id;return n.state.selectedRowIds[t]})))}]};function bt(e,t,n,r){if(t.type===s.init)return o({selectedRowIds:{}},e);if(t.type===s.resetSelectedRows)return o({},e,{selectedRowIds:r.initialState.selectedRowIds||{}});if(t.type===s.toggleAllRowsSelected){var i=t.value,a=r.isAllRowsSelected,u=r.rowsById,l=r.nonGroupedRowsById,c=void 0===l?u:l,d=void 0!==i?i:!a,f=Object.assign({},e.selectedRowIds);return d?Object.keys(c).forEach((function(e){f[e]=!0})):Object.keys(c).forEach((function(e){delete f[e]})),o({},e,{selectedRowIds:f})}if(t.type===s.toggleRowSelected){var p=t.id,g=t.value,m=r.rowsById,h=r.selectSubRows,v=void 0===h||h,y=r.getSubRows,b=e.selectedRowIds[p],w=void 0!==g?g:!b;if(b===w)return e;var S=o({},e.selectedRowIds);return function e(t){var n=m[t];if(n.isGrouped||(w?S[t]=!0:delete S[t]),v&&y(n))return y(n).forEach((function(t){return e(t.id)}))}(p),o({},e,{selectedRowIds:S})}if(t.type===s.toggleAllPageRowsSelected){var R=t.value,C=r.page,x=r.rowsById,P=r.selectSubRows,O=void 0===P||P,k=r.isAllPageRowsSelected,E=r.getSubRows,I=void 0!==R?R:!k,A=o({},e.selectedRowIds);return C.forEach((function(e){return function e(t){var n=x[t];if(n.isGrouped||(I?A[t]=!0:delete A[t]),O&&E(n))return E(n).forEach((function(t){return e(t.id)}))}(e.id)})),o({},e,{selectedRowIds:A})}return e}function wt(e){var n=e.data,r=e.rows,o=e.getHooks,i=e.plugins,a=e.rowsById,u=e.nonGroupedRowsById,l=void 0===u?a:u,c=e.autoResetSelectedRows,d=void 0===c||c,p=e.state.selectedRowIds,g=e.selectSubRows,h=void 0===g||g,y=e.dispatch,w=e.page,S=e.getSubRows;m(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var R=t.useMemo((function(){var e=[];return r.forEach((function(t){var n=h?function e(t,n,r){if(n[t.id])return!0;var o=r(t);if(o&&o.length){var i=!0,a=!1;return o.forEach((function(t){a&&!i||(e(t,n,r)?a=!0:i=!1)})),!!i||!!a&&null}return!1}(t,p,S):!!p[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)})),e}),[r,h,p,S]),C=Boolean(Object.keys(l).length&&Object.keys(p).length),x=C;C&&Object.keys(l).some((function(e){return!p[e]}))&&(C=!1),C||w&&w.length&&w.some((function(e){var t=e.id;return!p[t]}))&&(x=!1);var P=v(d);b((function(){P()&&y({type:s.resetSelectedRows})}),[y,n]);var O=t.useCallback((function(e){return y({type:s.toggleAllRowsSelected,value:e})}),[y]),k=t.useCallback((function(e){return y({type:s.toggleAllPageRowsSelected,value:e})}),[y]),E=t.useCallback((function(e,t){return y({type:s.toggleRowSelected,id:e,value:t})}),[y]),I=v(e),A=f(o().getToggleAllRowsSelectedProps,{instance:I()}),j=f(o().getToggleAllPageRowsSelectedProps,{instance:I()});Object.assign(e,{selectedFlatRows:R,isAllRowsSelected:C,isAllPageRowsSelected:x,toggleRowSelected:E,toggleAllRowsSelected:O,getToggleAllRowsSelectedProps:A,getToggleAllPageRowsSelectedProps:j,toggleAllPageRowsSelected:k})}function St(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=f(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var Rt=function(e){return{}},Ct=function(e){return{}};s.setRowState="setRowState",s.setCellState="setCellState",s.resetRowState="resetRowState";var xt=function(e){e.stateReducers.push(Pt),e.useInstance.push(Ot),e.prepareRow.push(kt)};function Pt(e,t,n,r){var i=r.initialRowStateAccessor,a=void 0===i?Rt:i,u=r.initialCellStateAccessor,l=void 0===u?Ct:u,c=r.rowsById;if(t.type===s.init)return o({rowState:{}},e);if(t.type===s.resetRowState)return o({},e,{rowState:r.initialState.rowState||{}});if(t.type===s.setRowState){var d,f=t.rowId,p=t.value,g=void 0!==e.rowState[f]?e.rowState[f]:a(c[f]);return o({},e,{rowState:o({},e.rowState,(d={},d[f]=h(p,g),d))})}if(t.type===s.setCellState){var m,v,y,b,w,S=t.rowId,R=t.columnId,C=t.value,x=void 0!==e.rowState[S]?e.rowState[S]:a(c[S]),P=void 0!==(null==x||null==(m=x.cellState)?void 0:m[R])?x.cellState[R]:l(null==(v=c[S])||null==(y=v.cells)?void 0:y.find((function(e){return e.column.id===R})));return o({},e,{rowState:o({},e.rowState,(w={},w[S]=o({},x,{cellState:o({},x.cellState||{},(b={},b[R]=h(C,P),b))}),w))})}}function Ot(e){var n=e.autoResetRowState,r=void 0===n||n,o=e.data,i=e.dispatch,a=t.useCallback((function(e,t){return i({type:s.setRowState,rowId:e,value:t})}),[i]),u=t.useCallback((function(e,t,n){return i({type:s.setCellState,rowId:e,columnId:t,value:n})}),[i]),l=v(r);b((function(){l()&&i({type:s.resetRowState})}),[o]),Object.assign(e,{setRowState:a,setCellState:u})}function kt(e,t){var n=t.instance,r=n.initialRowStateAccessor,o=void 0===r?Rt:r,i=n.initialCellStateAccessor,a=void 0===i?Ct:i,s=n.state.rowState;e&&(e.state=void 0!==s[e.id]?s[e.id]:o(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach((function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:a(t),t.setState=function(r){return n.setCellState(e.id,t.column.id,r)}})))}xt.pluginName="useRowState",s.resetColumnOrder="resetColumnOrder",s.setColumnOrder="setColumnOrder";var Et=function(e){e.stateReducers.push(It),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.columnOrder])})),e.visibleColumns.push(At),e.useInstance.push(jt)};function It(e,t,n,r){return t.type===s.init?o({columnOrder:[]},e):t.type===s.resetColumnOrder?o({},e,{columnOrder:r.initialState.columnOrder||[]}):t.type===s.setColumnOrder?o({},e,{columnOrder:h(t.columnOrder,e.columnOrder)}):void 0}function At(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var r=[].concat(n),o=[].concat(e),i=[],a=function(){var e=r.shift(),t=o.findIndex((function(t){return t.id===e}));t>-1&&i.push(o.splice(t,1)[0])};o.length&&r.length;)a();return[].concat(i,o)}function jt(e){var n=e.dispatch;e.setColumnOrder=t.useCallback((function(e){return n({type:s.setColumnOrder,columnOrder:e})}),[n])}Et.pluginName="useColumnOrder",c.canResize=!0,s.columnStartResizing="columnStartResizing",s.columnResizing="columnResizing",s.columnDoneResizing="columnDoneResizing",s.resetResize="resetResize";var Ft=function(e){e.getResizerProps=[Bt],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Tt),e.useInstance.push(Mt),e.useInstanceBeforeDimensions.push(Gt)},Bt=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r=function(e){var t=[];return function e(n){n.columns&&n.columns.length&&n.columns.map(e),t.push(n)}(e),t}(t).map((function(e){return[e.id,e.totalWidth]})),i=n?Math.round(e.touches[0].clientX):e.clientX,a=function(e){o({type:s.columnResizing,clientX:e})},u=function(){return o({type:s.columnDoneResizing})},l={mouse:{moveEvent:"mousemove",moveHandler:function(e){return a(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",l.mouse.moveHandler),document.removeEventListener("mouseup",l.mouse.upHandler),u()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),a(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(l.touch.moveEvent,l.touch.moveHandler),document.removeEventListener(l.touch.upEvent,l.touch.moveHandler),u()}}},c=n?l.touch:l.mouse,d=!!function(){if("boolean"==typeof G)return G;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return G=e}()&&{passive:!1};document.addEventListener(c.moveEvent,c.moveHandler,d),document.addEventListener(c.upEvent,c.upHandler,d),o({type:s.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:r,clientX:i})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Tt(e,t){if(t.type===s.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===s.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===s.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,a=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:a,columnWidth:i,isResizingColumn:r})})}if(t.type===s.columnResizing){var u=t.clientX,l=e.columnResizing,c=l.startX,d=l.columnWidth,f=l.headerIdWidths,p=(u-c)/d,g={};return(void 0===f?[]:f).forEach((function(e){var t=e[0],n=e[1];g[t]=Math.max(n+n*p,0)})),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},g)})})}return t.type===s.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Ft.pluginName="useResizeColumns";var Gt=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=v(e);t.forEach((function(e){var t=E(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=f(r().getResizerProps,{instance:i(),header:e}))}))};function Mt(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=void 0===o||o,a=e.columns;m(n,["useAbsoluteLayout"],"useResizeColumns");var u=v(i);b((function(){u()&&r({type:s.resetResize})}),[a]);var l=t.useCallback((function(){return r({type:s.resetResize})}),[r]);Object.assign(e,{resetResizing:l})}var _t={position:"absolute",top:0},zt=function(e){e.getTableBodyProps.push(Ht),e.getRowProps.push(Ht),e.getHeaderGroupProps.push(Ht),e.getFooterGroupProps.push(Ht),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},_t,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},_t,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},_t,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}))};zt.pluginName="useAbsoluteLayout";var Ht=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},Dt={display:"inline-block",boxSizing:"border-box"},Nt=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},Wt=function(e){e.getRowProps.push(Nt),e.getHeaderGroupProps.push(Nt),e.getFooterGroupProps.push(Nt),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Dt,{width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Dt,{width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Dt,{width:n.totalWidth+"px"})}]}))};function Lt(e){e.getTableProps.push($t),e.getRowProps.push(Vt),e.getHeaderGroupProps.push(Vt),e.getFooterGroupProps.push(Vt),e.getHeaderProps.push(Xt),e.getCellProps.push(qt),e.getFooterProps.push(Ut)}Wt.pluginName="useBlockLayout",Lt.pluginName="useFlexLayout";var $t=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Vt=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Xt=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},qt=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},Ut=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function Yt(e){e.stateReducers.push(Jt),e.getTableProps.push(Kt),e.getHeaderProps.push(Zt)}Yt.pluginName="useGridLayout";var Kt=function(e,t){return[e,{style:{display:"grid",gridTemplateColumns:t.instance.state.gridLayout.columnWidths.map((function(e){return e})).join(" ")}}]},Zt=function(e,t){return[e,{id:"header-cell-"+t.column.id,style:{position:"sticky"}}]};function Jt(e,t,n,r){if("init"===t.type)return o({gridLayout:{columnWidths:r.columns.map((function(){return"auto"}))}},e);if("columnStartResizing"===t.type){var i=t.columnId,a=r.visibleColumns.findIndex((function(e){return e.id===i})),s=function(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}(i);return void 0!==s?o({},e,{gridLayout:o({},e.gridLayout,{columnId:i,columnIndex:a,startingWidth:s})}):e}if("columnResizing"===t.type){var u=e.gridLayout,l=u.columnIndex,c=u.startingWidth,d=u.columnWidths,f=c-(e.columnResizing.startX-t.clientX),p=[].concat(d);return p[l]=f+"px",o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:p})})}}e._UNSTABLE_usePivotColumns=nt,e.actions=s,e.defaultColumn=c,e.defaultGroupByFn=We,e.defaultOrderByFn=Je,e.defaultRenderer=u,e.emptyRenderer=l,e.ensurePluginOrder=m,e.flexRender=S,e.functionalUpdate=h,e.loopHooks=g,e.makePropGetter=f,e.makeRenderer=w,e.reduceHooks=p,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=zt,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o=t.useRef({}),i=v(e),a=v(n);return t.useCallback(function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,s,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=u.length,n=new Array(t),s=0;s<t;s++)n[s]=u[s];return o.current.promise||(o.current.promise=new Promise((function(e,t){o.current.resolve=e,o.current.reject=t}))),o.current.timeout&&clearTimeout(o.current.timeout),o.current.timeout=setTimeout(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete o.current.timeout,e.prev=1,e.t0=o.current,e.next=5,i().apply(void 0,n);case 5:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=12;break;case 9:e.prev=9,e.t2=e.catch(1),o.current.reject(e.t2);case 12:return e.prev=12,delete o.current.promise,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])}))),a()),e.abrupt("return",o.current.promise);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[i,a])},e.useBlockLayout=Wt,e.useColumnOrder=Et,e.useExpanded=ue,e.useFilters=Pe,e.useFlexLayout=Lt,e.useGetLatest=v,e.useGlobalFilter=Ee,e.useGridLayout=Yt,e.useGroupBy=Ge,e.useMountedLayoutEffect=b,e.usePagination=Qe,e.useResizeColumns=Ft,e.useRowSelect=mt,e.useRowState=xt,e.useSortBy=Ue,e.useTable=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e=ie(e),r=[q].concat(r);var a=t.useRef({}),u=v(a.current);Object.assign(u(),o({},e,{plugins:r,hooks:X()})),r.filter(Boolean).forEach((function(e){e(u().hooks)}));var l=v(u().hooks);u().getHooks=l,delete u().hooks,Object.assign(u(),p(l().useOptions,ie(e)));var c=u(),d=c.data,m=c.columns,h=c.initialState,y=c.defaultColumn,b=c.getSubRows,S=c.getRowId,k=c.stateReducer,E=c.useControlledState,I=v(k),A=t.useCallback((function(e,t){if(!t.type)throw console.info({action:t}),new Error("Unknown Action 👆");return[].concat(l().stateReducers,Array.isArray(I())?I():[I()]).reduce((function(n,r){return r(n,t,e,u())||n}),e)}),[l,I,u]),j=t.useReducer(A,void 0,(function(){return A(h,{type:s.init})})),F=j[0],B=j[1],T=p([].concat(l().useControlledState,[E]),F,{instance:u()});Object.assign(u(),{state:T,dispatch:B});var G=t.useMemo((function(){return R(p(l().columns,m,{instance:u()}))}),[l,u,m].concat(p(l().columnsDeps,[],{instance:u()})));u().columns=G;var M=t.useMemo((function(){return p(l().allColumns,C(G),{instance:u()}).map(x)}),[G,l,u].concat(p(l().allColumnsDeps,[],{instance:u()})));u().allColumns=M;var _=t.useMemo((function(){for(var e=[],t=[],n={},r=[].concat(M);r.length;){var o=r.shift();se({data:d,rows:e,flatRows:t,rowsById:n,column:o,getRowId:S,getSubRows:b,accessValueHooks:l().accessValue,getInstance:u})}return[e,t,n]}),[M,d,S,b,l,u]),z=_[0],H=_[1],D=_[2];Object.assign(u(),{rows:z,initialRows:[].concat(z),flatRows:H,rowsById:D}),g(l().useInstanceAfterData,u());var N=t.useMemo((function(){return p(l().visibleColumns,M,{instance:u()}).map((function(e){return P(e,y)}))}),[l,M,u,y].concat(p(l().visibleColumnsDeps,[],{instance:u()})));M=t.useMemo((function(){var e=[].concat(N);return M.forEach((function(t){e.find((function(e){return e.id===t.id}))||e.push(t)})),e}),[M,N]),u().allColumns=M;var W=t.useMemo((function(){return p(l().headerGroups,O(N,y),u())}),[l,N,y,u].concat(p(l().headerGroupsDeps,[],{instance:u()})));u().headerGroups=W;var L=t.useMemo((function(){return W.length?W[0].headers:[]}),[W]);u().headers=L,u().flatHeaders=W.reduce((function(e,t){return[].concat(e,t.headers)}),[]),g(l().useInstanceBeforeDimensions,u());var $=N.filter((function(e){return e.isVisible})).map((function(e){return e.id})).sort().join("_");N=t.useMemo((function(){return N.filter((function(e){return e.isVisible}))}),[N,$]),u().visibleColumns=N;var V=ae(L),U=V[0],Y=V[1],K=V[2];return u().totalColumnsMinWidth=U,u().totalColumnsWidth=Y,u().totalColumnsMaxWidth=K,g(l().useInstance,u()),[].concat(u().flatHeaders,u().allColumns).forEach((function(e){e.render=w(u(),e),e.getHeaderProps=f(l().getHeaderProps,{instance:u(),column:e}),e.getFooterProps=f(l().getFooterProps,{instance:u(),column:e})})),u().headerGroups=t.useMemo((function(){return W.filter((function(e,t){return e.headers=e.headers.filter((function(e){return e.headers?function e(t){return t.filter((function(t){return t.headers?e(t.headers):t.isVisible})).length}(e.headers):e.isVisible})),!!e.headers.length&&(e.getHeaderGroupProps=f(l().getHeaderGroupProps,{instance:u(),headerGroup:e,index:t}),e.getFooterGroupProps=f(l().getFooterGroupProps,{instance:u(),headerGroup:e,index:t}),!0)}))}),[W,u,l]),u().footerGroups=[].concat(u().headerGroups).reverse(),u().prepareRow=t.useCallback((function(e){e.getRowProps=f(l().getRowProps,{instance:u(),row:e}),e.allCells=M.map((function(t){var n=e.values[t.id],r={column:t,row:e,value:n};return r.getCellProps=f(l().getCellProps,{instance:u(),cell:r}),r.render=w(u(),t,{row:e,cell:r,value:n}),r})),e.cells=N.map((function(t){return e.allCells.find((function(e){return e.column.id===t.id}))})),g(l().prepareRow,e,{instance:u()})}),[l,u,M,N]),u().getTableProps=f(l().getTableProps,{instance:u()}),u().getTableBodyProps=f(l().getTableBodyProps,{instance:u()}),g(l().useFinalInstance,u()),u()},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(14))},13:function(e,t){e.exports=window.wp.apiFetch},130:function(e,t){e.exports=window.wp.blocks},131:function(e,t,n){"use strict";var r=n(29),o=n.n(r),i=n(20),a=n.n(i),s=n(13),u=n.n(s);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={forms:!1,fields:{},submissions:{}},f={setForms:function(e){return{type:"SET_FORMS",forms:e}},setFields:function(e,t){return{type:"SET_FIELDS",formID:e,fields:t}},setSubmissions:function(e,t,n){return{type:"SET_SUBMISSIONS",formID:e,submissions:t,page:n}},fetchFromAPI:function(e,t){return{type:"FETCH_FROM_API",path:e,data:t}}},p={getForms:function(e){return e.forms},getForm:function(e,t){var n=p.getForms(e);return Object.values(n).find((function(e){return e.formID==t}))},getFormFields:function(e,t){return e.fields[t]},getFormSubmissions:function(e,t){return e.submissions[t]},getFormSubmissionsPage:function(e,t,n){var r=e.submissions;return void 0!==r[t]&&r[t][n]}};t.a={reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FORMS":return c(c({},e),{},{forms:t.forms});case"SET_FIELDS":return c(c({},e),{},{fields:c(c({},e.fields),{},o()({},t.formID,t.fields))});case"SET_SUBMISSIONS":return c(c({},e),{},{submissions:c(c({},e.submissions),{},o()({},t.formID,c(c({},e.submissions[t.formID]),{},o()({},t.page,t.submissions))))})}return e},actions:f,selectors:p,controls:{FETCH_FROM_API:function(e){return u()({path:e.path})}},resolvers:{getForms:a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,f.fetchFromAPI("/ninja-forms-views/forms");case 3:return t=e.sent,e.abrupt("return",f.setForms(t));case 5:case"end":return e.stop()}}),e)})),getFormFields:a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="/ninja-forms-views/forms/"+t+"/fields",e.next=3,f.fetchFromAPI(n);case 3:return r=e.sent,e.abrupt("return",f.setFields(t,r));case 5:case"end":return e.stop()}}),e)})),getFormSubmissions:a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="/ninja-forms-views/forms/"+t+"/submissions?page=1&perPage=10",e.next=3,f.fetchFromAPI(n);case 3:return r=e.sent,e.abrupt("return",f.setSubmissions(t,r,1));case 5:case"end":return e.stop()}}),e)})),getFormSubmissionsPage:a.a.mark((function e(t,n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/ninja-forms-views/forms/"+t+"/submissions?page="+n+"&perPage=10",e.next=3,f.fetchFromAPI(r);case 3:return o=e.sent,e.abrupt("return",f.setSubmissions(t,o,n));case 5:case"end":return e.stop()}}),e)}))}}},132:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(29),o=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){function t(e,n){if(0!==(e.path||"").indexOf("/ninja-forms-views/"))return n(e);var r=e.headers,o=void 0===r?{}:r;for(var i in o)if("x-ninjaformsviews-auth"===i.toLowerCase())return n(e);return n(a(a({},e),{},{headers:a(a({},o),{},{"X-NinjaFormsViews-Auth":t.token})}))}return t.token=e,t}},134:function(e,t,n){"use strict";var r=n(36),o=n.n(r),i=n(10),a=n.n(i),s=n(0),u=n(3),l=n(5),c=n(50);function d(e){var t=e.columns,n=e.data,r=e.initialPageIndex,i=e.loadMore,a=e.more,u=e.loading,l=Object(c.useTable)({columns:t,data:n,initialState:{pageIndex:r,pageSize:10}},c.usePagination),d=l.state.pageIndex,m=l.getTableProps,h=l.getTableBodyProps,v=l.canNextPage,y=l.canPreviousPage,b=l.page;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("table",m(),Object(s.createElement)("thead",null,Object(s.createElement)(f,l)),Object(s.createElement)("tbody",h(),Object(s.createElement)(p,o()({},l,{dataset:b})))),Object(s.createElement)(g,o()({},l,{loadMore:function(){return i(d+1)},more:a,loading:u,canNextPage:v,canPreviousPage:y})))}function f(e){var t=e.headerGroups;return t.length<=0?Object(s.createElement)("tr",null,Object(s.createElement)("th",null,Object(u.__)("No columns selected. Please choose fields using the block settings ->","ninja-forms"))):t.map((function(e){return Object(s.createElement)("tr",e.getHeaderGroupProps(),e.headers.map((function(e){return Object(s.createElement)("th",e.getHeaderProps(),e.render("Header"))})))}))}function p(e){var t=e.dataset,n=e.prepareRow;return t.map((function(e,t){return n(e),Object(s.createElement)("tr",e.getRowProps(),e.cells.map((function(e){return Object(s.createElement)("td",o()({},e.getCellProps(),{"data-header":e.column.Header}),e.render("Cell"))})))}))}function g(e){var t,n=e.previousPage,r=e.nextPage,o=e.canPreviousPage,i=e.canNextPage,a=e.loadMore,u=e.more,l=e.loading,c=function(){a(),r()};return i?t=Object(s.createElement)("button",{onClick:c},">"):u&&(t=Object(s.createElement)("button",{onClick:c},l?"...":">")),Object(s.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},Object(s.createElement)("div",null,o&&Object(s.createElement)("button",{onClick:function(){return n()}},"<")),i&&Object(s.createElement)("div",null,t))}t.a=function(e){var t=e.formID,n=e.selectedFields,r=e.fields,o=e.submissions,i=r.filter((function(e){return-1!==n.indexOf(e.id)})).map((function(e){return{Header:e.label,accessor:e.id.toString()}})),u=Object(s.useState)(0),c=a()(u,2),f=c[0],p=c[1],g=Object(s.useState)(!1),m=a()(g,2),h=m[0],v=m[1];o[h]&&(o[h].length&&p(h),v(!1)),o[f+1]||Object(l.select)("ninja-forms-views").getFormSubmissionsPage(t,f+2);var y=o[o.length-1]&&o[o.length-1].length,b=o.flat();return Object(s.createElement)(d,{columns:i,data:b,initialPageIndex:f,loadMore:function(e){v(e),Object(l.select)("ninja-forms-views").getFormSubmissionsPage(t,e+1)},more:y,loading:h})}},14:function(e,t){e.exports=window.React},20:function(e,t){e.exports=window.regeneratorRuntime},206:function(e,t,n){"use strict";e.exports=n(293)},207:function(e,t,n){"use strict";var r=n(294),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=p(n);o&&o!==g&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{l(t,v,y)}catch(e){}}}}return t}},208:function(e,t,n){"use strict";var r,o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(r={},function(e){return void 0===r[e]&&(r[e]=(t=e,o.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),r[e];var t});t.a=i},282:function(e){e.exports=JSON.parse('{"attributes":{"alignment":{"type":"string","default":"none"},"formID":{"type":"string"},"selectedFields":{"type":"array"}}}')},283:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},284:function(e,t,n){"use strict";(function(e){var r=n(206),o=n(14),i=n.n(o),a=n(285),s=n.n(a),u=n(286),l=n(287),c=n(208),d=n(207),f=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var g=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},h=Object.freeze([]),v=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",R="undefined"!=typeof window&&"HTMLElement"in window,C=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&"false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY);function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&x(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),O=new Map,k=new Map,E=1,I=function(e){if(O.has(e))return O.get(e);for(;k.has(E);)E++;var t=E++;return O.set(e,t),k.set(t,e),t},A=function(e){return k.get(e)},j=function(e,t){O.set(e,t),k.set(t,e)},F="style["+S+'][data-styled-version="5.2.1"]',B=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},G=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(B);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(j(l,u),T(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},M=function(){return n.nc},_=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.2.1");var a=M();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},z=function(){function e(e){var t=this.element=_(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}x(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=_(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),D=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),N=R,W={isServer:!R,useCSSOMInjection:!C},L=function(){function e(e,t,n){void 0===e&&(e=v),void 0===t&&(t={}),this.options=p({},W,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&R&&N&&(N=!1,function(e){for(var t=document.querySelectorAll(F),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(G(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new D(o):r?new z(o):new H(o),new P(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=A(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(void 0!==a&&0!==s.length){var u=S+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),$=/(a)(d)/gi,V=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=V(t%52)+n;return(V(t%52)+n).replace($,"$1-$2")}var q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},U=function(e){return q(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var K=U("5.2.1"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Y(e),this.componentId=t,this.baseHash=q(K,t),this.baseStyle=n,L.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),a=X(q(this.baseHash,i.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=q(this.baseHash,n.hash),c="",d=0;d<u;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=ge(f,e,t,n),g=Array.isArray(p)?p.join(""):p;l=q(l,g+d),c+=g}}if(c){var m=X(l>>>0);if(!t.hasNameForId(r,m)){var h=n(c,"."+m,void 0,r);t.insertRules(r,m,h)}o.push(m)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?v:e,a=i.options,s=void 0===a?v:a,l=i.plugins,c=void 0===l?h:l,d=new u.a(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),g=function(e,r,i){return 0===r&&Q.includes(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var u=e.replace(J,""),l=i&&a?a+" "+i+" { "+u+" }":u;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,l)}return d.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,g))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||x(15),q(e,t.name)}),5381).toString():"",m}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new L),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),u=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:u},i.a.createElement(ne.Provider,{value:l},e.children))}var se=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return x(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,le=/([A-Z])/g,ce=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function fe(e){return ue.test(e)?e.replace(le,de).replace(ce,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ge(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return pe(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof se?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(m(t[a])?i.push.apply(i,e(t[a],a)):y(t[a])?i.push(fe(a)+":",t[a],";"):i.push(fe(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in l.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}function me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||m(e)?ge(g(h,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ge(g(e,n))}new Set;var he=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ve=/(^-|-$)/g;function ye(e){return e.replace(he,"-").replace(ve,"")}function be(e){return"string"==typeof e&&!0}var we=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Se=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Re(e,t,n){var r=e[n];we(t)&&we(r)?Ce(r,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(we(a))for(var s in a)Se(s)&&Re(e,a[s],s)}return e}var xe=i.a.createContext();xe.Consumer;var Pe={};function Oe(e,t,n){var r=w(e),a=!be(e),s=t.attrs,u=void 0===s?h:s,l=t.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ye(e);Pe[n]=(Pe[n]||0)+1;var r=n+"-"+function(e){return X(U(e)>>>0)}("5.2.1"+n+Pe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,g=t.displayName,m=void 0===g?function(e){return be(e)?"styled."+e:"Styled("+b(e)+")"}(e):g,S=t.displayName&&t.componentId?ye(t.displayName)+"-"+t.componentId:t.componentId||d,R=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,C=t.shouldForwardProp;r&&e.shouldForwardProp&&(C=t.shouldForwardProp?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var x,P=new Z(n,S,r?e.componentStyle:void 0),O=P.isStatic&&0===u.length,k=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,g=function(e,t,n){void 0===e&&(e=v);var r=p({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme}(t,Object(o.useContext)(xe),s)||v,t,i),m=g[0],h=g[1],b=function(e,t,n,r){var i=ie(),a=Object(o.useContext)(ne)||oe;return t?e.generateAndInjectStyles(v,i,a):e.generateAndInjectStyles(n,i,a)}(a,r,m),w=n,S=h.$as||t.$as||h.as||t.as||f,R=be(S),C=h!==t?p({},t,{},h):t,x={};for(var P in C)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?x.as=C[P]:(l?l(P,c.a):!R||Object(c.a)(P))&&(x[P]=C[P]));return t.style&&h.style!==t.style&&(x.style=p({},t.style,{},h.style)),x.className=Array.prototype.concat(u,d,b!==d?b:null,t.className,h.className).filter(Boolean).join(" "),x.ref=w,Object(o.createElement)(S,x)}(x,e,t,O)};return k.displayName=m,(x=i.a.forwardRef(k)).attrs=R,x.componentStyle=P,x.displayName=m,x.shouldForwardProp=C,x.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,x.styledComponentId=S,x.target=r?e.target:e,x.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(be(e)?e:ye(b(e)));return Oe(e,p({},o,{attrs:R,componentId:i}),n)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ce({},e.defaultProps,t):t}}),x.toString=function(){return"."+x.styledComponentId},a&&f()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var ke,Ee=function(e){return function e(t,n,o){if(void 0===o&&(o=v),!Object(r.isValidElementType)(n))return x(1,String(n));var i=function(){return t(n,o,me.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,p({},o,{},r))},i.attrs=function(r){return e(t,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Oe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ee[e]=Ee(e)})),(ke=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),L.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var o=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},ke.removeStyles=function(e,t){t.clearRules(this.componentId+e)},ke.renderStyles=function(e,t,n,r){e>2&&L.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=M();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.2.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?x(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return x(2);var n=((t={})[S]="",t["data-styled-version"]="5.2.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=M();return r&&(n.nonce=r),[i.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new L({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?x(2):i.a.createElement(ae,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return x(3)}}(),t.a=Ee}).call(this,n(292))},285:function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var l=i[u];if(!s(l))return!1;var c=e[l],d=t[l];if(!1===(o=n?n.call(r,c,d,l):void 0)||void 0===o&&c!==d)return!1}return!0}},286:function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===I||2===I&&o(u,1)?"-webkit-"+u+u:u}if(0===I||2===I&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(P,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(R,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(R,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),B(2!==t?r:r.replace(C,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,c){for(var d,f=0,p=t;f<F;++f)switch(d=j[f].call(u,e,p,n,r,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(B=null,e?"function"!=typeof e?I=1:(I=2,B=e):I=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<F){var u=a(-1,n,s,s,k,O,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var d=function e(n,s,u,d,f){for(var p,g,m,b,S,R=0,C=0,x=0,P=0,j=0,B=0,G=m=p=0,M=0,_=0,z=0,H=0,D=u.length,N=D-1,W="",L="",$="",V="";M<D;){if(g=u.charCodeAt(M),M===N&&0!==C+P+x+R&&(0!==C&&(g=47===C?10:47),P=x=R=0,D++,N++),0===C+P+x+R){if(M===N&&(0<_&&(W=W.replace(c,"")),0<W.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(M)}g=59}switch(g){case 123:for(p=(W=W.trim()).charCodeAt(0),m=1,H=++M;M<D;){switch(g=u.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(g=u.charCodeAt(M+1)){case 42:case 47:e:{for(G=M+1;G<N;++G)switch(u.charCodeAt(G)){case 47:if(42===g&&42===u.charCodeAt(G-1)&&M+2!==G){M=G+1;break e}break;case 10:if(47===g){M=G+1;break e}}M=G}}break;case 91:g++;case 40:g++;case 34:case 39:for(;M++<N&&u.charCodeAt(M)!==g;);}if(0===m)break;M++}switch(m=u.substring(H,M),0===p&&(p=(W=W.replace(l,"").trim()).charCodeAt(0)),p){case 64:switch(0<_&&(W=W.replace(c,"")),g=W.charCodeAt(1)){case 100:case 109:case 115:case 45:_=s;break;default:_=A}if(H=(m=e(s,_,m,g,f+1)).length,0<F&&(S=a(3,m,_=t(A,W,z),s,k,O,H,g,f,d),W=_.join(""),void 0!==S&&0===(H=(m=S.trim()).length)&&(g=0,m="")),0<H)switch(g){case 115:W=W.replace(w,i);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(h,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===d&&(L+=m,m="")}else m="";break;default:m=e(s,t(s,W,z),m,d,f+1)}$+=m,m=z=_=G=p=0,W="",g=u.charCodeAt(++M);break;case 125:case 59:if(1<(H=(W=(0<_?W.replace(c,""):W).trim()).length))switch(0===G&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(H=(W=W.replace(" ",":")).length),0<F&&void 0!==(S=a(1,W,s,n,k,O,L.length,d,f,d))&&0===(H=(W=S.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),g=W.charCodeAt(1),p){case 0:break;case 64:if(105===g||99===g){V+=W+u.charAt(M);break}default:58!==W.charCodeAt(H-1)&&(L+=r(W,p,g,W.charCodeAt(2)))}z=_=G=p=0,W="",g=u.charCodeAt(++M)}}switch(g){case 13:case 10:47===C?C=0:0===1+p&&107!==d&&0<W.length&&(_=1,W+="\0"),0<F*T&&a(0,W,s,n,k,O,L.length,d,f,d),O=1,k++;break;case 59:case 125:if(0===C+P+x+R){O++;break}default:switch(O++,b=u.charAt(M),g){case 9:case 32:if(0===P+R+C)switch(j){case 44:case 58:case 9:case 32:b="";break;default:32!==g&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===P+C+R&&(_=z=1,b="\f"+b);break;case 108:if(0===P+C+R+E&&0<G)switch(M-G){case 2:112===j&&58===u.charCodeAt(M-3)&&(E=j);case 8:111===B&&(E=B)}break;case 58:0===P+C+R&&(G=M);break;case 44:0===C+x+P+R&&(_=1,b+="\r");break;case 34:case 39:0===C&&(P=P===g?0:0===P?g:P);break;case 91:0===P+C+x&&R++;break;case 93:0===P+C+x&&R--;break;case 41:0===P+C+R&&x--;break;case 40:if(0===P+C+R){if(0===p)switch(2*j+3*B){case 533:break;default:p=1}x++}break;case 64:0===C+x+P+R+G+m&&(m=1);break;case 42:case 47:if(!(0<P+R+x))switch(C){case 0:switch(2*g+3*u.charCodeAt(M+1)){case 235:C=47;break;case 220:H=M,C=42}break;case 42:47===g&&42===j&&H+2!==M&&(33===u.charCodeAt(H+2)&&(L+=u.substring(H,M+1)),b="",C=0)}}0===C&&(W+=b)}B=j,j=g,M++}if(0<(H=L.length)){if(_=s,0<F&&void 0!==(S=a(2,L,_,n,k,O,H,d,f,d))&&0===(L=S).length)return V+L+$;if(L=_.join(",")+"{"+L+"}",0!=I*E){switch(2!==I||o(L,2)||(E=0),E){case 111:L=L.replace(y,":-moz-$1")+L;break;case 112:L=L.replace(v,"::-webkit-input-$1")+L.replace(v,"::-moz-$1")+L.replace(v,":-ms-input-$1")+L}E=0}}return V+L+$}(A,s,n,0,0);return 0<F&&void 0!==(u=a(-2,d,s,s,k,O,d.length,0,0,0))&&(d=u),E=0,O=k=1,d}var l=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,h=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,R=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,O=1,k=1,E=0,I=1,A=[],j=[],F=0,B=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:F=j.length=0;break;default:if("function"==typeof t)j[F++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}},287:function(e,t,n){"use strict";t.a={animationIterationCount: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}},29:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},292:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,d=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new g(e,t)),1!==l.length||c||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},293:function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,s=60114,u=60109,l=60110,c=60112,d=60113,f=60120,p=60115,g=60116,m=60121,h=60122,v=60117,y=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;r=w("react.element"),o=w("react.portal"),i=w("react.fragment"),a=w("react.strict_mode"),s=w("react.profiler"),u=w("react.provider"),l=w("react.context"),c=w("react.forward_ref"),d=w("react.suspense"),f=w("react.suspense_list"),p=w("react.memo"),g=w("react.lazy"),m=w("react.block"),h=w("react.server.block"),v=w("react.fundamental"),y=w("react.debug_trace_mode"),b=w("react.legacy_hidden")}function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case g:case p:case u:return e;default:return t}}case o:return t}}}var R=u,C=r,x=c,P=i,O=g,k=p,E=o,I=s,A=a,j=d;t.ContextConsumer=l,t.ContextProvider=R,t.Element=C,t.ForwardRef=x,t.Fragment=P,t.Lazy=O,t.Memo=k,t.Portal=E,t.Profiler=I,t.StrictMode=A,t.Suspense=j,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===c},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===p},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===y||e===a||e===d||e===f||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===u||e.$$typeof===l||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===h)},t.typeOf=S},294:function(e,t,n){"use strict";e.exports=n(295)},295:function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function R(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case u:case s:case g:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case h:case l:return e;default:return t}}case i:return t}}}function C(e){return R(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=i,t.Profiler=u,t.StrictMode=s,t.Suspense=g,t.isAsyncMode=function(e){return C(e)||R(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return R(e)===c},t.isContextProvider=function(e){return R(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return R(e)===p},t.isFragment=function(e){return R(e)===a},t.isLazy=function(e){return R(e)===v},t.isMemo=function(e){return R(e)===h},t.isPortal=function(e){return R(e)===i},t.isProfiler=function(e){return R(e)===u},t.isStrictMode=function(e){return R(e)===s},t.isSuspense=function(e){return R(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===s||e===g||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===S||e.$$typeof===y)},t.typeOf=R},3:function(e,t){e.exports=window.wp.i18n},36:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},5:function(e,t){e.exports=window.wp.data},50:function(e,t,n){e.exports=n(109)},66:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},67:function(e,t,n){var r=n(66);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},701:function(e,t,n){"use strict";n.r(t);var r,o=n(29),i=n.n(o),a=n(0),s=n(3),u=n(130),l=n(5),c=n(8),d=n(282),f=n(36),p=n.n(f),g=n(98),m=Object(a.createElement)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 29.93 13.43"},Object(a.createElement)("path",{fill:"#fff",d:"M22,21.7a4.72,4.72,0,0,0-2.44-4,14.44,14.44,0,0,0-13.38-.06,4.61,4.61,0,0,0-2.53,4Z",transform:"translate(-0.03 -8.27)"}),Object(a.createElement)("path",{fill:"#414242",d:"M3.68,21.7a4.6,4.6,0,0,1,2.53-4,14.44,14.44,0,0,1,13.38,0,4.73,4.73,0,0,1,2.44,4h3.65v-.37a12.76,12.76,0,0,0-1.2-5.42A7.59,7.59,0,0,0,24,15a31.79,31.79,0,0,1,4.14-1c1.36-.28,2.14-.46,1.68-.83-1-.81-2.24-1.68-2.24-1.68s5.05-4.18,0-2.91a9.62,9.62,0,0,0-2.53,1,10.69,10.69,0,0,0-3.13,2.76,12.83,12.83,0,0,0-21.9,9,3.15,3.15,0,0,0,0,.37Z",transform:"translate(-0.03 -8.27)"}),Object(a.createElement)("path",{fill:"#414242",d:"M9.3,21.7c0-1-.58-1.81-1.29-1.81s-1.27.81-1.29,1.81Z",transform:"translate(-0.03 -8.27)"}),Object(a.createElement)("path",{fill:"#414242",d:"M19,21.7c0-1-.59-1.81-1.29-1.81s-1.27.81-1.29,1.81Z",transform:"translate(-0.03 -8.27)"})),h=function(e){return Object(a.createElement)(c.Placeholder,{icon:Object(a.createElement)("div",null,e.icon?e.icon:m),instructions:"Select a form to display the submissions.",style:{alignItems:"center"}},Object(a.createElement)("div",{style:{margin:"auto",width:"50%"}},e.children))},v=n(283),y=n.n(v),b=n(284).a.div(r||(r=y()(["\n padding: 1rem;\n\n button {\n cursor: pointer;\n padding: .75em 1.44em;\n border: 2px solid black;\n outline: 4px solid transparent;\n background-color: transparent;\n\n :hover {\n outline-color: white;\n background-color: white;\n }\n }\n\n table {\n width: 100%;\n border-spacing: 0;\n border: 1px solid black;\n margin-bottom: 20px;\n\n tr {\n :last-child {\n td {\n border-bottom: 0;\n }\n }\n }\n\n th,\n td {\n margin: 0;\n padding: 0.5rem;\n border-bottom: 1px solid black;\n border-right: 1px solid black;\n\n :last-child {\n border-right: 0;\n }\n }\n }\n"]))),w=function(e){var t=e.fields,n=e.isChecked,r=e.onChange;return Object(a.createElement)("ul",null,t.map((function(e){return Object(a.createElement)("li",{key:"li_"+e.id},Object(a.createElement)(c.CheckboxControl,{key:e.id,label:e.label,checked:n(e.id),onChange:function(t){return r(t,e.id)}}))})))},S=n(134),R=function(e){e.forms;var t=Object.values(e.fields),n=Object.values(e.submissions),r=void 0!==e.attributes.selectedFields?e.attributes.selectedFields:[];return Object(a.createElement)(a.Fragment,null,e.attributes.formID&&Object(a.createElement)(b,null,Object(a.createElement)(S.a,p()({},e.attributes,{selectedFields:r,fields:t,submissions:n}))),e.isSelected&&Object(a.createElement)(g.BlockControls,null,Object(a.createElement)(g.BlockAlignmentToolbar,{value:e.attributes.alignment,onChange:function(t){e.setAttributes({alignment:void 0===t?"none":t})}})),e.isSelected&&Object(a.createElement)(g.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:"Fields",initialOpen:!0},Object(a.createElement)(w,{fields:t,isChecked:function(e){return-1!==r.indexOf(e)},onChange:function(t,n){var o=t?r.concat([n]):r.filter((function(e){return e!=n}));e.setAttributes({selectedFields:o})}}))))},C=n(131),x=n(13),P=n.n(x),O=n(132);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}P.a.use(Object(O.a)(window.ninjaFormsViews.token)),Object(l.registerStore)("ninja-forms-views",C.a),Object(u.registerBlockType)("ninja-forms/submissions-table",E(E({title:"Ninja Forms Submissions Table",icon:"editor-table",category:"common"},d),{},{edit:Object(l.withSelect)((function(e){return{forms:e("ninja-forms-views").getForms()}}))((function(e){if(!e.attributes.formID){if(!e.forms)return Object(a.createElement)(h,{label:Object(s.__)("Ninja Forms Submissions Table")},Object(a.createElement)(c.Spinner,null));var t=Object.values(e.forms).map((function(e){return{key:e.formID,label:e.formTitle,value:e.formID}}));return Object(a.createElement)(h,null,Object(a.createElement)(c.SelectControl,{label:"Select Form",onChange:function(t){return e.setAttributes({formID:t})},options:[{key:0,label:"-",value:0}].concat(t)}))}var n=Object(l.withSelect)((function(t){return{fields:t("ninja-forms-views").getFormFields(e.attributes.formID),submissions:t("ninja-forms-views").getFormSubmissions(e.attributes.formID)}}))((function(t){var n=t.fields,r=t.submissions;return n&&r?Object(a.createElement)(R,E(E({},e),{},{fields:n,submissions:r})):Object(a.createElement)(h,{label:Object(s.__)("Loading Form Data")},Object(a.createElement)(c.Spinner,null))}));return Object(a.createElement)(n,null)})),getEditWrapperProps:function(e){var t=e.alignment;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t}},save:function(){return null}}))},8:function(e,t){e.exports=window.wp.components},86:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},87:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,a=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(a)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},88:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},98:function(e,t){e.exports=window.wp.blockEditor}});