1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2943],{580:e=>{function t(e,t,n){function i(){var s=Date.now()-a;s<t&&s>=0?o=setTimeout(i,t-s):(o=null,n||(u=e.apply(r,l),r=l=null))}null==t&&(t=100);var o,l,r,a,u,s=function(){r=this,l=arguments,a=Date.now();var s=n&&!o;return o||(o=setTimeout(i,t)),s&&(u=e.apply(r,l),r=l=null),u};return s.clear=function(){o&&(clearTimeout(o),o=null)},s.flush=function(){o&&(u=e.apply(r,l),r=l=null,clearTimeout(o),o=null)},s}t.debounce=t,e.exports=t},29395:(e,t,n)=>{"use strict";n.d(t,{$l:()=>eA,LV:()=>O,Mq:()=>H,Z7:()=>A,uQ:()=>D});var i=n(61975),o=n(87773),l=n(44351),r=n(75310),a=n(51462),u=n(78927),s=n(19318),c=n(3037),d=n(79703),f=n(82732),g=n(45849),p=n(22043),x=n(15098),h=n(45377),m=n(80971),b=n(65616),v=n(71450),y=n(95155),w=n(12115),_=n(39160),C=n(4893),S=n(84551),R=n(96241),I=n(83592),E=n(74620),F=n(15384),k=n(58179),M=n(58715),V=n(8341),T=n(92653),P=n(87282),A="structure",D=(0,_.GW0)({locale:"en-US",namespace:A,resources:function(){return n.e(3914).then(n.bind(n,63914))}}),L=["_id","_type","_createdAt","_updatedAt","_rev"];function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.map(function(t){return function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,x._)(n),l=o[0],r=o.slice(1);if(!("fields"in t))return"";var a=t.fields.find(function(e){return e.name===l});if(!a){if(!L.includes(l)){var u='The current ordering config targeted the nonexistent field "'.concat(l,'" on schema type "').concat(t.name,'". It should be one of ').concat(t.fields.map(function(e){return e.name}).join(", "));if(i)throw Error(u);console.warn(u)}return""}if("to"in a.type&&"reference"===a.type.name){var s=a.type.to;return"".concat(l,"->{").concat(s.map(function(t){return e(t,r)}).join(","),"}")}var c=r.length>0&&e(a.type,r);return r.length>0?"".concat(l).concat(c?"{".concat(c,"}"):""):l}(e,t.field.split("."),n)}).join(", ")}var O=function(e){function t(e,n,i,r){(0,l._)(this,t),(a=(0,o._)(this,t,[e])).name="SerializeError";var a,u=(void 0===i?"undefined":(0,m._)(i))>"u"?"<unknown>":"".concat(i);return a.path=(n||[]).concat(r?"".concat(u," (").concat(r,")"):u),a}return(0,c._)(t,e),(0,a._)(t,[{key:"withHelpUrl",value:function(e){return this.helpId=e,this}}]),t}((0,b._)(Error)),G={ID_REQUIRED:"structure-node-id-required",TITLE_REQUIRED:"structure-title-required",FILTER_REQUIRED:"structure-filter-required",INVALID_LIST_ITEM:"structure-invalid-list-item",COMPONENT_REQUIRED:"structure-view-component-required",DOCUMENT_ID_REQUIRED:"structure-document-id-required",SCHEMA_TYPE_REQUIRED:"structure-schema-type-required",SCHEMA_TYPE_NOT_FOUND:"structure-schema-type-not-found",LIST_ITEMS_MUST_BE_ARRAY:"structure-list-items-must-be-array",QUERY_PROVIDED_FOR_FILTER:"structure-query-provided-for-filter",ACTION_OR_INTENT_REQUIRED:"structure-action-or-intent-required",LIST_ITEM_IDS_MUST_BE_UNIQUE:"structure-list-item-ids-must-be-unique",ACTION_AND_INTENT_MUTUALLY_EXCLUSIVE:"structure-action-and-intent-mutually-exclusive",API_VERSION_REQUIRED_FOR_CUSTOM_FILTER:"structure-api-version-required-for-custom-filter"},z={title:"Last edited",i18n:{title:{key:"menu-items.sort-by.last-edited",ns:A}},name:"lastEditedDesc",by:[{field:"_updatedAt",direction:"desc"}]},N=[z,{title:"Created",i18n:{title:{key:"menu-items.sort-by.created",ns:A}},name:"lastCreatedDesc",by:[{field:"_createdAt",direction:"desc"}]}];function j(e,t,n){return(0,d._)(e,U)?e.serialize({path:n,index:t}):e}var U=function(){function e(t,n){(0,l._)(this,e),this._context=t,this.spec=n||{}}return(0,a._)(e,[{key:"action",value:function(e){return this.clone({action:e})}},{key:"getAction",value:function(){return this.spec.action}},{key:"intent",value:function(e){return this.clone({intent:e})}},{key:"getIntent",value:function(){return this.spec.intent}},{key:"title",value:function(e){return this.clone({title:e})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"i18n",value:function(e){return this.clone({i18n:e})}},{key:"getI18n",value:function(){return this.spec.i18n}},{key:"group",value:function(e){return this.clone({group:e})}},{key:"getGroup",value:function(){return this.spec.group}},{key:"icon",value:function(e){return this.clone({icon:e})}},{key:"getIcon",value:function(){return this.spec.icon}},{key:"params",value:function(e){return this.clone({params:e})}},{key:"getParams",value:function(){return this.spec.params}},{key:"showAsAction",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.clone({showAsAction:!!e})}},{key:"getShowAsAction",value:function(){return this.spec.showAsAction}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=this.spec,n=t.title,i=t.action,o=t.intent;if(!n)throw new O("`title` is required for menu item",e.path,e.index,"string"==typeof i?'action: "'.concat(i,'"'):void 0).withHelpUrl(G.TITLE_REQUIRED);if(!i&&!o)throw new O("`action` or `intent` required for menu item with title ".concat(this.spec.title),e.path,e.index,'"'.concat(n,'"')).withHelpUrl(G.ACTION_OR_INTENT_REQUIRED);
1if(o&&i)throw new O("cannot set both `action` AND `intent`",e.path,e.index,'"'.concat(n,'"')).withHelpUrl(G.ACTION_AND_INTENT_MUTUALLY_EXCLUSIVE);return(0,g._)((0,f._)({},this.spec),{title:n})}},{key:"clone",value:function(t){var n=new e(this._context);return n.spec=(0,f._)({},this.spec,t),n}}]),e}();function q(e,t,n){var i=t.by,o=t.title,l=t.i18n,r=new U(e).group("sorting").title(e.i18n.t("default-menu-item.fallback-title",{ns:"studio",replace:{title:o}})).icon(R.ycB).action("setSortOrder").params({by:i,extendedProjection:n});return l&&(r=r.i18n(l)),r}function B(e,t){var n=e.schema,i="string"==typeof t?n.get(t):t;return i&&"orderings"in i?(i.orderings?i.orderings.concat(N):N).map(function(t){return q(e,t,H(i,t.by))}):[]}function Q(e,t,n){return(0,d._)(e,$)?e.serialize({path:n,index:t}):e}var $=function(){function e(t,n){(0,l._)(this,e),this._context=t,this._id=n?n.id:"",this._title=n?n.title:"",this._i18n=n?n.i18n:void 0}return(0,a._)(e,[{key:"id",value:function(t){return new e(this._context,{id:t,title:this._title,i18n:this._i18n})}},{key:"getId",value:function(){return this._id}},{key:"title",value:function(t){return new e(this._context,{title:t,id:this._id,i18n:this._i18n})}},{key:"getTitle",value:function(){return this._title}},{key:"i18n",value:function(t){return new e(this._context,{i18n:t,id:this._id,title:this._title})}},{key:"getI18n",value:function(){return this._i18n}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=this._id,n=this._title,i=this._i18n;if(!t)throw new O("`id` is required for a menu item group",e.path,e.index,n).withHelpUrl(G.ID_REQUIRED);if(!n)throw new O("`title` is required for a menu item group",e.path,t).withHelpUrl(G.TITLE_REQUIRED);return{id:t,title:n,i18n:i}}}]),e}(),W=/([^A-Za-z0-9-_.])/;function Y(e,t,n){if("string"!=typeof e)throw new O("Structure node id must be of type string, got ".concat(void 0===e?"undefined":(0,m._)(e)),t,n);var i=(0,p._)(e.match(W)||[],1)[0];if(i)throw new O('Structure node id cannot contain character "'.concat(i,'"'),t,n);if(e.startsWith("__edit__"))throw new O("Structure node id cannot start with __edit__",t,n);return e}function X(e,t){if(t)return t;var n=I(e);return W.test(n)?I(E(e)):n}var K=function(){function e(t){(0,l._)(this,e),this.spec=(0,f._)({options:{}},t||{})}return(0,a._)(e,[{key:"id",value:function(e){return this.clone({id:e})}},{key:"getId",value:function(){return this.spec.id}},{key:"title",value:function(e){return this.clone({title:e,id:X(e,this.spec.id)})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"i18n",value:function(e){return this.clone({i18n:e})}},{key:"getI18n",value:function(){return this.spec.i18n}},{key:"child",value:function(e){return this.clone({child:e})}},{key:"getChild",value:function(){return this.spec.child}},{key:"component",value:function(e){return this.clone({component:e})}},{key:"getComponent",value:function(){return this.spec.component}},{key:"options",value:function(e){return this.clone({options:e})}},{key:"getOptions",value:function(){return this.spec.options||{}}},{key:"menuItems",value:function(e){return this.clone({menuItems:e})}},{key:"getMenuItems",value:function(){return this.spec.menuItems}},{key:"menuItemGroups",value:function(e){return this.clone({menuItemGroups:e})}},{key:"getMenuItemGroups",value:function(){return this.spec.menuItemGroups}},{key:"canHandleIntent",value:function(e){return this.clone({canHandleIntent:e})}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=this.spec,n=t.id,i=t.title,o=t.child,l=t.options,r=t.component;if(!n)throw new O("`id` is required for `component` structure item",e.path,e.index).withHelpUrl(G.ID_REQUIRED);if(!r)throw new O("`component` is required for `component` structure item",e.path,e.index).withHelpUrl(G.ID_REQUIRED);return{id:Y(n,e.path,e.index),title:i,type:"component",child:o,component:r,canHandleIntent:this.spec.canHandleIntent,options:l||{},menuItems:(this.spec.menuItems||[]).map(function(t,n){return j(t,n,e.path)}),menuItemGroups:(this.spec.menuItemGroups||[]).map(function(t,n){return Q(t,n,e.path)})}}},{key:"clone",value:function(t){var n=new e;return n.spec=(0,f._)({},this.spec,t),n}}]),e}(),Z=function(){function e(t){(0,l._)(this,e),this.spec=(0,f._)({id:
1F("__divider__"),type:"divider"},t)}return(0,a._)(e,[{key:"title",value:function(e){return this.clone({title:e})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"i18n",value:function(e){return this.clone({i18n:e})}},{key:"getI18n",value:function(){return this.spec.i18n}},{key:"serialize",value:function(){return(0,f._)({},this.spec)}},{key:"clone",value:function(t){var n=new e;return n.spec=(0,f._)({},this.spec,t),n}}]),e}();function J(e,t){return(0,i._)(function(){return(0,v.YH)(this,function(n){switch(n.label){case 0:return[4,e(_.miu).fetch("*[sanity::versionOf($publishedId)][0]._type",{publishedId:(0,_.IMx)(t)},{tag:"structure.resolve-type"})];case 1:return[2,n.sent()]}})})()}var ee=function(){function e(){(0,l._)(this,e),this.spec={}}return(0,a._)(e,[{key:"id",value:function(e){return this.clone({id:e})}},{key:"getId",value:function(){return this.spec.id}},{key:"title",value:function(e){return this.clone({title:e,id:this.spec.id||M(e)})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"icon",value:function(e){return this.clone({icon:e})}},{key:"getIcon",value:function(){return this.spec.icon}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=this.spec,n=t.id,i=t.title,o=t.icon;if(!n)throw new O("`id` is required for view item",e.path,e.index).withHelpUrl(G.ID_REQUIRED);if(!i)throw new O("`title` is required for view item",e.path,e.index).withHelpUrl(G.TITLE_REQUIRED);return{id:Y(n,e.path,e.index),title:i,icon:o}}}]),e}();function et(e,t,n){return"function"==typeof e.serialize?e.serialize({path:n,index:t}):e}var en=function(e){function t(e){(0,l._)(this,t);var n,i=(0,_.u4i)(e)&&"component"===e.type?(0,f._)({},e):{options:{}};(n=(0,o._)(this,t)).spec=i;var r="function"==typeof e?e:n.spec.component;return r&&(n.spec=n.component(r).spec),n}
1return(0,c._)(t,e),(0,a._)(t,[{key:"component",value:function(e){return this.clone({component:e})}},{key:"getComponent",value:function(){return this.spec.component}},{key:"options",value:function(e){return this.clone({options:e})}},{key:"getOptions",value:function(){return this.spec.options||{}}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},n=(0,u._)((0,s._)(t.prototype),"serialize",this).call(this,e),i=this.spec.component;if("function"!=typeof i)throw new O("`component` is required and must be a function for `component()` view item",e.path,e.index).withHelpUrl(G.COMPONENT_REQUIRED);return(0,g._)((0,f._)({},n),{component:i,options:this.spec.options||{},type:"component"})}},{key:"clone",value:function(e){var n=new t;return n.spec=(0,f._)({},this.spec,e),n}}]),t}(ee),ei=function(e){function t(e){var n;return(0,l._)(this,t),(n=(0,o._)(this,t)).spec=(0,f._)({id:"editor",title:"Editor"},e||{}),n}return(0,c._)(t,e),(0,a._)(t,[{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]};return(0,g._)((0,f._)({},(0,u._)((0,s._)(t.prototype),"serialize",this).call(this,e)),{type:"form"})}},{key:"clone",value:function(e){var n=new t;return n.spec=(0,f._)({},this.spec,e),n}}]),t}(ee),eo=function(e){return new ei(e)},el=Object.freeze({__proto__:null,ComponentViewBuilder:en,FormViewBuilder:ei,GenericViewBuilder:ee,component:function(e){return new en(e)},form:eo,maybeSerializeView:et}),er=function(e){var t=e.resolveDocumentNode,n=e.getClient;return function(e,o){var l=o.params,r=o.path;return(0,i._)(function(){var i,o,a;return(0,v.YH)(this,function(u){switch(u.label){case 0:if(i=l.type,o=r.slice(0,r.length-1),a=r[r.length-1],i)return[3,2];return[4,J(n,e)];case 1:i=u.sent(),u.label=2;case 2:if(!i)throw new O("Failed to resolve document, and no type provided in parameters.",o,a);return[2,t({documentId:e,schemaType:i})]}})})()}},ea=function(){function e(t,n){(0,l._)(this,e),this._context=t,this.spec=n||{}}return(0,a._)(e,[{key:"id",value:function(e){return this.clone({id:e})}},{key:"getId",value:function(){return this.spec.id}},{key:"title",value:function(e){return this.clone({title:e,id:X(e,this.spec.id)})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"i18n",value:function(e){return this.clone({i18n:e})}},{key:"getI18n",value:function(){return this.spec.i18n}},{key:"child",value:function(e){return this.clone({child:e})}},{key:"getChild",value:function(){return this.spec.child}},{key:"documentId",value:function(e){var t=this.spec.id||e;return this.clone({id:t,options:(0,g._)((0,f._)({},this.spec.options),{id:e})})}},{key:"getDocumentId",value:function(){var e;return null==(e=this.spec.options)?void 0:e.id}},{key:"schemaType",value:function(e){return this.clone({options:(0,g._)((0,f._)({},this.spec.options),{type:"string"==typeof e?e:e.name})})}},{key:"getSchemaType",value:function(){var e;return null==(e=this.spec.options)?void 0:e.type}},{key:"initialValueTemplate",value:function(e,t){return this.clone({options:(0,g._)((0,f._)({},this.spec.options),{template:e,templateParameters:t})})}},{key:"getInitialValueTemplate",value:function(){var e;return null==(e=this.spec.options)?void 0:e.template}},{key:"getInitialValueTemplateParameters",value:function(){var e;return null==(e=this.spec.options)?void 0:e.templateParameters}},{key:"views",value:function(e){return this.clone({views:e})}},{key:"getViews",value:function(){return this.spec.views||[]}},{key:"serialize",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},i=n.path,o=void 0===i?[]:i,l=n.index,r=n.hint,a=o[l||o.length-1],u=this.spec.id||a&&"".concat(a)||"",s=(0,f._)({id:u,type:void 0,template:void 0,templateParameters:void 0},this.spec.options);if("string"!=typeof u||!u)throw new O("`id` is required for document nodes",o,l,r).withHelpUrl(G.ID_REQUIRED);if(!s||!s.id)throw new O("document id (`id`) is required for document nodes",o,u,r).withHelpUrl(G.DOCUMENT_ID_REQUIRED);if(!s||!s.type)throw new O("document type (`schemaType`) is required for document nodes",o,u,r);var c=(this.spec.views&&this.spec.views.length>0?this.spec.views:[eo()]).map(function(e,t){return et(e,t,o)}),d=c.map(function(e){return e.id}),p=k(d.filter(function(e,t){return d.includes(e,t+1)}));if(p.length>0)throw new O("document node has views with duplicate IDs: ".concat(p.join(", ")),o,u,r);return(0,g._)((0,f._)({},this.spec),{child:this.spec.child||er(this._context),id:Y(u,o,l),type:"document",options:(t={id:(e=s).id||"",type:e.type||"*"},e.template&&(t.template=e.template),e.templateParameters&&(t.templateParameters=e.templateParameters),t),views:c})}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new e(this._context),i=(0,f._)({},this.spec.options,t.options);return n.spec=(0,g._)((0,f._)({},this.spec,t),{options:i}),n}}]),e}();function eu(e,t){var n=(null==t?void 0:t.type)?e.resolveDocumentNode({schemaType:t.type}):new ea(e);if(!t)return n;
1var i=t.options,o=i.id,l=i.type,r=i.template,a=i.templateParameters;return n=n.id(t.id).documentId(o),l&&(n=n.schemaType(l)),r&&(n=n.initialValueTemplate(r,a)),t.child&&(n=n.child(t.child)),n}function es(e,t,n){var i=e.resolveDocumentNode,o=e.templates.find(function(e){return e.id===t});if(!o)throw Error('Template with ID "'.concat(t,'" not defined'));return i({schemaType:o.schemaType}).initialValueTemplate(t,n)}var ec=function(){function e(t,n){(0,l._)(this,e),this._context=t,this.spec=n||{}}return(0,a._)(e,[{key:"id",value:function(e){return this.clone({id:e})}},{key:"getId",value:function(){return this.spec.id}},{key:"title",value:function(e){return this.clone({title:e})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"description",value:function(e){return this.clone({description:e})}},{key:"getDescription",value:function(){return this.spec.description}},{key:"templateId",value:function(e){var t=this.spec.id||e;return this.clone({id:t,templateId:e})}},{key:"getTemplateId",value:function(){return this.spec.templateId}},{key:"parameters",value:function(e){return this.clone({parameters:e})}},{key:"getParameters",value:function(){return this.spec.parameters}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=e.path,n=void 0===t?[]:t,i=e.index,o=e.hint,l=this.spec,r=this._context.templates;if("string"!=typeof l.id||!l.id)throw new O("`id` is required for initial value template item nodes",n,i,o).withHelpUrl(G.ID_REQUIRED);if(!l.templateId)throw new O("template id (`templateId`) is required for initial value template item nodes",n,l.id,o).withHelpUrl(G.ID_REQUIRED);var a=r.find(function(e){return e.id===l.templateId});if(!a)throw new O("template id (`templateId`) is required for initial value template item nodes",n,l.id,o).withHelpUrl(G.ID_REQUIRED);return{id:l.id,templateId:l.id,schemaType:a.schemaType,type:"initialValueTemplateItem",description:l.description||a.description,title:l.title||a.title,subtitle:l.subtitle,icon:l.icon||a.icon,initialDocumentId:l.initialDocumentId,parameters:l.parameters}}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new e(this._context);return n.spec=(0,f._)({},this.spec,t),n}}]),e}();function ed(e){var t=e.schema,n=e.getStructureBuilder,i=e.templates,o=t.getTypeNames();return i.filter(function(e){var t;return!(null==(t=e.parameters)?void 0:t.length)}).sort(function(e,t){return o.indexOf(e.schemaType)-o.indexOf(t.schemaType)}).map(function(e){return n().initialValueTemplateItem(e.id)})}function ef(e,t){var n=e.schema,i=e.templates;return t.map(function(t){var o=i.find(function(e){return e.id===t.templateId}),l=t.title||(null==o?void 0:o.title)||"Create",r={};o&&o.schemaType&&(r.type=o.schemaType),t.templateId&&(r.template=t.templateId);var a=t.parameters?[r,t.parameters]:r,u=o&&n.get(o.schemaType),s=t.i18n||(null==o?void 0:o.i18n),c=new U(e).title(l).icon(o&&o.icon||(null==u?void 0:u.icon)||R.REV).intent({type:"create",params:a});return s&&(c=c.i18n(s)),c.serialize()})}var eg=Symbol("Document type list canHandleIntent"),ep=function(e,t,n){var i,o,l=n.pane,r="create"===e,a=(null==(i=l.options)?void 0:i.filter)||"",u=(null==(o=l.options)?void 0:o.params)||{},s=l.schemaTypeName?[l.schemaTypeName]:ew(a,u),c=l.initialValueTemplates||[];return r&&t.template?c.some(function(e){return e.templateId===t.template}):"edit"===e&&t.id&&s.includes(t.type)||r&&s.includes(t.type)};ep.identity=eg;var ex=["default","card","media","detail","block"];function eh(){}var em=function(e,t,n){var i=n.pane;return n.index<=1&&ep(e,t,{pane:i})},eb=function(){function e(){(0,l._)(this,e),this.initialValueTemplatesSpecified=!1,this.spec={}}return(0,a._)(e,[{key:"id",value:function(e){return this.clone({id:e})}},{key:"getId",value:function(){return this.spec.id}},{key:"title",value:function(e){return this.clone({title:e,id:X(e,this.spec.id)})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"i18n",value:function(e){return this.clone({i18n:e})}},{key:"getI18n",value:function(){return this.spec.i18n}},{key:"defaultLayout",value:function(e){return this.clone({defaultLayout:e})}},{key:"getDefaultLayout",value:function(){return this.spec.defaultLayout}},{key:"menuItems",value:function(e){return this.clone({menuItems:e})}},{key:"getMenuItems",value:function(){return this.spec.menuItems}},{key:"menuItemGroups",value:function(e){return this.clone({menuItemGroups:e})}},{key:"getMenuItemGroups",value:function(){return this.spec.menuItemGroups}},{key:"child",value:function(e){return this.clone({child:e})}},{key:"getChild",value:function(){return this.spec.child}},{key:"canHandleIntent",value:function(e){return this.clone({canHandleIntent:e})}},{key:"getCanHandleIntent",value:function(){return this.spec.canHandleIntent}},{key:"showIcons",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.clone({displayOptions:(0,g._)((0,f._)({},this.spec.displayOptions),{showIcons:e})})}},{key:"getShowIcons",value:function(){return this.spec.displayOptions?this.spec.displayOptions.showIcons:void 0}},{key:"initialValueTemplates",value:function(e){return this.initialValueTemplatesSpecified=!0,this.clone({initialValueTemplates:Array.isArray(e)?e:[e]})}},{key:"getInitialValueTemplates",value:function(){return this.spec.initialValueTemplates}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=this.spec.id||"",n=e.path,i=this.spec.defaultLayout;if(i&&!ex.includes(i))throw new O("`layout` must be one of ".concat(ex.map(function(e){return'"'.concat(e,'"')}).join(", ")),n,t||e.index,this.spec.title);var o=(this.spec.initialValueTemplates||[]).map(function(e,t){return(0,d._)(e,ec)?e.serialize({path:n,index:t}):e});return{id:Y(t,e.path,t||e.index),title:this.spec.title,i18n:this.spec.i18n,type:"genericList",defaultLayout:i,child:this.spec.child||eh,canHandleIntent:this.spec.canHandleIntent||em,displayOptions:this.spec.displayOptions,initialValueTemplates:o,menuItems:(this.spec.menuItems||[]).map(function(e,t){return j(e,t,n)}),menuItemGroups:(this.spec.menuItemGroups||[]).map(function(e,t){return Q(e,t,n)})}}}]),e}(),ev=function(e,t){var n,i=(null==(n=e.options)?void 0:n.filter.trim())||"";if(["*","{"].includes(i[0]))throw new O("`filter` cannot start with `".concat(i[0],"` - looks like you are providing a query, not a filter"),t.path,e.id,e.title).withHelpUrl(G.QUERY_PROVIDED_FOR_FILTER);return i},ey=function(e){function t(e,n){var i;return(0,l._)(this,t),(i=(0,o._)(this,t))._context=e,i.spec=n||{},i.initialValueTemplatesSpecified=!!(null==n?void 0:n.initialValueTemplates),i}return(0,c._)(t,e),(0,a._)(t,[{key:"apiVersion",value:function(e){return this.clone({options:(0,g._)((0,f._)({},this.spec.options||{filter:""}),{apiVersion:e})})}},{key:"getApiVersion",value:function(){var e;return null==(e=this.spec.options)?void 0:e.apiVersion}},{key:"filter",value:function(e){return this.clone({options:(0,g._)((0,f._)({},this.spec.options),{filter:e})})}},{key:"getFilter",value:function(){var e;return null==(e=this.spec.options)?void 0:e.filter}},{key:"schemaType",value:function(e){var t="string"==typeof e?e:e.name;return this.clone({schemaTypeName:t})}},{key:"getSchemaType",value:function(){return this.spec.schemaTypeName}},{key:"params",value:function(e){return this.clone({options:(0,g._)((0,f._)({},this.spec.options||{filter:""}),{params:e})})}},{key:"getParams",value:function(){var e;return null==(e=this.spec.options)?void 0:e.params}},{key:"defaultOrdering",value:function(e){if(!Array.isArray(e))throw Error("`defaultOrdering` must be an array of order clauses");return this.clone({options:(0,g._)((0,f._)({},this.spec.options||{filter:""}),{defaultOrdering:e})})}},{key:"getDefaultOrdering",value:function(){var e;return null==(e=this.spec.options)?void 0:e.defaultOrdering}},{key:"serialize",value:function(){var e,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]};if("string"!=typeof this.spec.id||!this.spec.id)throw new O("`id` is required for document lists",i.path,i.index,this.spec.title).withHelpUrl(G.ID_REQUIRED);if(!this.spec.options||!this.spec.options.filter)throw new O("`filter` is required for document lists",i.path,this.spec.id,this.spec.title).withHelpUrl(G.FILTER_REQUIRED);return(null==(n=this.spec.options)?void 0:n.filter)!=="_type == $type"&&this.spec.options.filter&&!this.spec.options.apiVersion&&console.warn("No apiVersion specified for document type list with custom filter: `".concat(this.spec.options.filter,"`. This will be required in the future. See %s for more info."),(0,V.iB)(G.API_VERSION_REQUIRED_FOR_CUSTOM_FILTER)),(0,g._)((0,f._)({},(0,u._)((0,s._)(t.prototype),"serialize",this).call(this,i)),{type:"documentList",sc
1hemaTypeName:this.spec.schemaTypeName,child:this.spec.child||(e=this._context,function(t,n){var i,o=n.parent,l=(null==(i=n.params)?void 0:i.template)?e.templates.find(function(e){return e.id===n.params.template}):void 0;return Promise.resolve(l?l.schemaType:o.schemaTypeName||J(e.getClient,t)).then(function(n){return n?e.resolveDocumentNode({schemaType:n,documentId:t}):new ea(e).id("editor").documentId(t).schemaType("")})}),options:(0,g._)((0,f._)({},this.spec.options),{apiVersion:this.spec.options.apiVersion||_.miu.apiVersion,filter:ev(this.spec,i)})})}},{key:"clone",value:function(e){var n,i,o=new t(this._context);return o.spec=(0,f._)({},this.spec,e),this.initialValueTemplatesSpecified||(o.spec.initialValueTemplates=function(e,t){var n=e.document,i=t.schemaTypeName,o=t.options||{filter:"",params:{}},l=o.filter,r=o.params,a=i?[i]:Array.from(new Set(ew(l,r)));if(0!==a.length)return a.flatMap(function(e){return n.resolveNewDocumentOptions({type:"structure",schemaType:e})}).map(function(e){return(0,g._)((0,f._)({},e),{icon:R.REV})})}(this._context,o.spec)),o.spec.schemaTypeName||(o.spec.schemaTypeName=1===(i=ew((n=o.spec.options||{filter:"",params:{}}).filter,n.params)).length?i[0]:void 0),o}},{key:"getSpec",value:function(){return this.spec}}]),t}(eb);function ew(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=/\b_type\s*==\s*(['"].*?['"]|\$.*?(?:\s|$))|\B(['"].*?['"]|\$.*?(?:\s|$))\s*==\s*_type/g,o=[];null!==(t=i.exec(e));)o.push(t[1]||t[2]);return o.map(function(e){return(("$"===e[0]?n[e.slice(1)]:e)||"").trim().replace(/^["']|["']$/g,"")}).filter(Boolean)}(e,t);return 0===n.length&&(n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(/\b_type\s+in\s+\[(.*?)\]/);return n?n[1].split(/,\s*/).map(function(e){return e.trim().replace(/^["']+|["']+$/g,"")}).map(function(e){return"$"===e[0]?t[e.slice(1)]:e}).filter(Boolean):[]}(e,t)),n}var e_=function(e){return"listItem"===e.type},eC=function(e,t,n){return(n.pane.items||[]).filter(eF).some(function(e){return e.schemaType.name===t.type&&e._id===t.id})||em(e,t,n)},eS=function(e,t){var n=(t.parent.items.filter(e_).find(function(t){return t.id===e})||{child:void 0}).child;return n&&"function"==typeof n&&"function"==typeof n?n(e,t):n},eR=function(e){function t(e,n){var i;return(0,l._)(this,t),(i=(0,o._)(this,t))._context=e,i.spec=n||{},i.initialValueTemplatesSpecified=!!(n&&n.initialValueTemplates),i}return(0,c._)(t,e),(0,a._)(t,[{key:"items",value:function(e){return this.clone({items:e})}},{key:"getItems",value:function(){return this.spec.items}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},n=this.spec.id;if("string"!=typeof n||!n)throw new O("`id` is required for lists",e.path,e.index).withHelpUrl(G.ID_REQUIRED);var i=(0,m._)(this.spec.items)>"u"?[]:this.spec.items;if(!Array.isArray(i))throw new O("`items` must be an array of items",e.path,e.index).withHelpUrl(G.LIST_ITEMS_MUST_BE_ARRAY);var o=(e.path||[]).concat(n),l=i.map(function(e,t){if((0,d._)(e,eI))return e.serialize({path:o,index:t});if((0,d._)(e,Z))return e.serialize();if(e&&"divider"===e.type)return e;if(!e||"listItem"!==e.type){var n,i=e&&e.type||((0,d._)(e,eR)?"ListBuilder":(n=e,(0,_.u4i)(n)&&"function"==typeof n.then)?"Promise":Array.isArray(e)?"array":void 0===e?"undefined":(0,m._)(e));throw new O('List items must be of type "listItem", got "'.concat(i,'"').concat("array"===i?" - did you forget to spread (...moreItems)?":""),o,t).withHelpUrl(G.INVALID_LIST_ITEM)}return e}),r=l.filter(function(e,t){return T(l,{id:e.id},t+1)});if(r.length>0){var a=r.map(function(e){return e.id}).slice(0,5),c=r.length>5?"".concat(a.join(", "),"..."):a.join(", ");throw new O("List items with same ID found (".concat(c,")"),e.path,e.index).withHelpUrl(G.LIST_ITEM_IDS_MUST_BE_UNIQUE)}return(0,g._)((0,f._)({},(0,u._)((0,s._)(t.prototype),"serialize",this).call(this,e)),{type:"list",canHandleIntent:this.spec.canHandleIntent||eC,child:this.spec.child||eS,items:l})}},{key:"clone",value:function(e){var n=new t(this._context);return n.spec=(0,f._)({},this.spec,e),n}}]),t}(eb),eI=function(){function e(t,n){(0,l._)(this,e),this._context=t,this.spec=n||{}}return(0,a._)(e,[{key:"id",value:function(e){return this.clone({id:e})}},{key:"getId",value:function(){return this.spec.id}}
1,{key:"title",value:function(e){return this.clone({title:e,id:X(e,this.spec.id)})}},{key:"getTitle",value:function(){return this.spec.title}},{key:"i18n",value:function(e){return this.clone({i18n:e})}},{key:"getI18n",value:function(){return this.spec.i18n}},{key:"icon",value:function(e){return this.clone({icon:e})}},{key:"showIcon",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.clone({displayOptions:(0,g._)((0,f._)({},this.spec.displayOptions),{showIcon:e})})}},{key:"getShowIcon",value:function(){return this.spec.displayOptions?this.spec.displayOptions.showIcon:void 0}},{key:"getIcon",value:function(){return this.spec.icon}},{key:"child",value:function(e){return this.clone({child:e})}},{key:"getChild",value:function(){return this.spec.child}},{key:"schemaType",value:function(e){return this.clone({schemaType:e})}},{key:"getSchemaType",value:function(){var e=this.spec.schemaType;return"string"==typeof e?this._context.schema.get(e):this.spec.schemaType}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},t=this.spec,n=t.id,i=t.title,o=t.child;if("string"!=typeof n||!n)throw new O("`id` is required for list items",e.path,e.index).withHelpUrl(G.ID_REQUIRED);if(!e.titleIsOptional&&("string"!=typeof i||!i))throw new O("`title` is required for list items",e.path,n).withHelpUrl(G.TITLE_REQUIRED);var l=this.spec.schemaType;if("string"==typeof l){var r=this._context.schema.get(l);if(!r)throw new O('Could not find type "'.concat(l,'" in schema'),e.path,n).withHelpUrl(G.SCHEMA_TYPE_NOT_FOUND);l=r}var a={path:e.path.concat(n),hint:"child"},u=(0,d._)(o,K)||(0,d._)(o,ey)||(0,d._)(o,ea)||(0,d._)(o,eR)?o.serialize(a):o;if("function"==typeof u){var s=u;u=function(e,t){return s(e,(0,g._)((0,f._)({},t),{serializeOptions:a}))}}return(0,g._)((0,f._)({},this.spec),{id:Y(n,e.path,e.index),schemaType:l,child:u,title:i,type:"listItem"})}},{key:"clone",value:function(t){var n=new e(this._context);return n.spec=(0,f._)({},this.spec,t),n}}]),e}(),eE=function(e){function t(e,n){var i;return(0,l._)(this,t),(i=(0,o._)(this,t,[e,n]))._context=e,i.spec=n||{},i}return(0,c._)(t,e),(0,a._)(t,[{key:"serialize",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:[]},i=(0,u._)((0,s._)(t.prototype),"serialize",this).call(this,(0,g._)((0,f._)({},n),{titleIsOptional:!0}));if(!i.schemaType)throw new O("`schemaType` is required for document list items",n.path,n.index).withHelpUrl(G.SCHEMA_TYPE_REQUIRED);var o=i.child||(e=this._context,function(t){var n=i.schemaType&&("string"==typeof i.schemaType?i.schemaType:i.schemaType.name);return n?e.resolveDocumentNode({schemaType:n,documentId:t}):new ea(e).id("documentEditor").documentId(t)});return(0,g._)((0,f._)({},i),{child:o,schemaType:i.schemaType,_id:i.id})}},{key:"clone",value:function(e){var n=new t(this._context);return n.spec=(0,f._)({},this.spec,e),n}}]),t}(eI);function eF(e){return(0,_.u4i)(e)&&"u">(0,m._)(e.schemaType)&&"string"==typeof e._id}var ek=function(e){function t(e,n){var i;return(0,l._)(this,t),(i=(0,o._)(this,t,[e]))._context=e,i.spec=n||{},i}return(0,c._)(t,e),(0,a._)(t,[{key:"child",value:function(e){return this.cloneWithoutDefaultIntentHandler({child:e})}},{key:"clone",value:function(e){var n=(0,u._)((0,s._)(t.prototype),"clone",this).call(this,e),i=new t(this._context);return i.spec=(0,f._)({},this.spec,n.getSpec(),e),i}},{key:"cloneWithoutDefaultIntentHandler",value:function(e){var n=(0,u._)((0,s._)(t.prototype),"clone",this).call(this,e),i=new t(this._context),o=this.spec.canHandleIntent,l=o&&o.identity===eg?{canHandleIntent:void 0}:{};return i.spec=(0,f._)({},n.getSpec(),this.spec,e,l),i}}]),t}(ey),eM=["sanity.imageAsset","sanity.fileAsset"];function eV(e){var t;return(t=e.schema).getTypeNames().filter(function(e){var n,i=t.get(e);return i&&(null==(n=i.type)?void 0:n.name)==="document"}).filter(function(e){return!eM.includes(e)}).map(function(t){return eT(e,t)})}function eT(e,t){var n=e.schema.get(t);if(!n)throw Error('Schema type with name "'.concat(t,'" not found'));var i=n.title||P(t);return new eI(e).id(t).title(i).schemaType(n).child(function(n,i){var o=i.parent,l="list"===o.type?o.items.find(function(e){return e.id===n}):null,r=eP(e,t);return l&&l.title&&(r=r.title(l.title)),r})}
1function eP(e,t){var n=e.schema,i=e.resolveDocumentNode,o="string"==typeof t?t:t.schemaType,l="string"==typeof o?o:o.name,r="string"==typeof t?{}:t,a=n.get(l);if(!a)throw Error('Schema type with name "'.concat(l,'" not found'));var u=a.title||P(l);return new ek(e).id(r.id||l).title(r.title||u).filter("_type == $type").params({type:l}).schemaType(a).defaultOrdering(z.by).menuItemGroups(r.menuItemGroups||[{id:"sorting",title:"Sort",i18n:{title:{key:"menu-item-groups.actions-group",ns:A}}},{id:"layout",title:"Layout",i18n:{title:{key:"menu-item-groups.layout-group",ns:A}}},{id:"actions",title:"Actions",i18n:{title:{key:"menu-item-groups.sorting-group",ns:A}}}]).child(r.child||function(e){return i({schemaType:l,documentId:e})}).canHandleIntent(r.canHandleIntent||ep).menuItems(r.menuItems||(0,h._)(B(e,a)).concat([new U(e).group("layout").i18n({title:{key:"menu-items.layout.compact-view",ns:A}}).title("Compact view").icon(R.dSb).action("setLayout").params({layout:"default"}),new U(e).group("layout").i18n({title:{key:"menu-items.layout.detailed-view",ns:A}}).title("Detailed view").icon(R.m1D).action("setLayout").params({layout:"detail"})]))}function eA(e){var t=e.defaultDocumentNode,n=e.structure,i=e.children,o=(0,p._)((0,w.useState)(!1),2),l=o[0],a=o[1],u=(0,_.For)(),s=(0,_.Yfj)(u),c=(0,_.q3J)(),d=(0,_.QO2)().perspectiveStack,x=(0,w.useMemo)(function(){var e,n,i,o,l,a,s;return n=(e={defaultDocumentNode:t,source:u,perspectiveStack:d}).defaultDocumentNode,i=e.source,o=e.perspectiveStack,l=(0,_.VMk)(i),s={defaults:function(){var e,t;return t=eV(e=a),new eR(e).id("__root__").title("Content").i18n({title:{key:"default-definition.content-title",ns:A}}).items(t).showIcons(t.some(function(e){var t;return!!(t=e.getSchemaType())&&"string"!=typeof t&&!!t.icon}))},documentTypeList:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return eP.apply(void 0,[a].concat((0,h._)(t)))},documentTypeListItem:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return eT.apply(void 0,[a].concat((0,h._)(t)))},documentTypeListItems:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return eV.apply(void 0,[a].concat((0,h._)(t)))},document:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)(ea,[a].concat((0,h._)(t)))},documentWithInitialValueTemplate:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return es.apply(void 0,[a].concat((0,h._)(t)))},defaultDocument:(a=(0,g._)((0,f._)({},i),{getStructureBuilder:function(){return s},resolveDocumentNode:function(e){var t=(null==n?void 0:n(s,(0,f._)({},e,l)))||new ea(a);return t.getId()||(t=t.id("documentEditor")),e.documentId&&(t=t.documentId((0,_.IMx)(e.documentId))),t.schemaType(e.schemaType)},perspectiveStack:o})).resolveDocumentNode,list:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)(eR,[a].concat((0,h._)(t)))},listItem:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)(eI,[a].concat((0,h._)(t)))},menuItem:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)(U,[a].concat((0,h._)(t)))},menuItemGroup:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)($,[a].concat((0,h._)(t)))},menuItemsFromInitialValueTemplateItems:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ef.apply(void 0,[a].concat((0,h._)(t)))},documentList:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)(ey,[a].concat((0,h._)(t)))},documentListItem:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r._)(eE,[a].concat((0,h._)(t)))},orderingMenuItem:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return q.apply(void 0,[a].concat((0,h._)(t)))},orderingMenuItemsForType:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return B.apply(void 0,[a].concat((0,h._)(t)))},editor:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return eu.apply(void 0,[a].concat((0,h._)(t)))},defaultInitialValueTemplateItems:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ed.apply(void 0,[a].concat((0,h._)(t)))},initialValueTemplateItem:function(e,t){return new ec(a,{id:e,parameters:t,templateId:e})},component:function(e){return(0,S.isValidElementType)(e)?new K().component(e):new K(e)},divider:function(e){return new Z(e)},view:el,context:a}},[t,u,d]),m=(0,w.useMemo)(function(){return n?n(x,(0,g._)((0,f._)({},s),{documentStore:c,perspectiveStack:d})):x.defaults()},[n,x,s,c,d]),b=(0,w.useMemo)(function(){return{backButton:l,resizablePanes:!l,reviewChanges:!l,splitPanes:!l,splitViews:!l}},[l]),v=(0,w.useMemo)(function(){return{features:b,layoutCollapsed:l,setLayoutCollapsed:a,rootPaneNode:m,structureContext:x.context}},[b,l,m,x.context]);return(0,y.jsx)(C.DI.Provider,{value:v,children:i})}},30563:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>l,N4:()=>r});var i=n(12115),o=n(92273);function l(e,t){var n,o,l;return e?"function"==typeof(o=n=e)&&(()=>
1{let e=Object.getPrototypeOf(o);return e.prototype&&e.prototype.isReactComponent})()||"function"==typeof n||"object"==typeof(l=n)&&"symbol"==typeof l.$$typeof&&["react.memo","react.forward_ref"].includes(l.$$typeof.description)?i.createElement(e,t):e:null}function r(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=i.useState(()=>({current:(0,o.ZR)(t)})),[l,r]=i.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...l,...e.state},onStateChange:t=>{r(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},45188:(e,t,n)=>{"use strict";n.d(t,{NextStudio:()=>a});var i=n(82732),o=n(95155),l=n(12115),r=(0,l.lazy)(function(){return Promise.all([n.e(6654),n.e(6678),n.e(3558),n.e(4398),n.e(9690),n.e(4390),n.e(7926),n.e(5839),n.e(7564),n.e(8478),n.e(3617),n.e(6497),n.e(9781),n.e(7866),n.e(9849),n.e(1341),n.e(4049)]).then(n.bind(n,5350))});function a(e){return(0,o.jsx)(l.Suspense,{fallback:null,children:(0,o.jsx)(r,(0,i._)({},e))})}},47620:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>I});var i=n(19825),o=null;function l(e,t){if("number"!=typeof(e=e||m))throw Error("Illegal arguments: "+typeof e+", "+typeof t);e<4?e=4:e>31&&(e=31);var n=[];return n.push("$2b$"),e<10&&n.push("0"),n.push(e.toString()),n.push("$"),n.push(p(function(e){try{return crypto.getRandomValues(new Uint8Array(e))}catch{}try{return i.randomBytes(e)}catch{}if(!o)throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");return o(e)}(h),h)),n.join("")}function r(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),void 0===e)e=m;else if("number"!=typeof e)throw Error("illegal arguments: "+typeof e);function i(t){c(function(){try{t(null,l(e))}catch(e){t(e)}})}if(!n)return new Promise(function(e,t){i(function(n,i){if(n)return void t(n);e(i)})});if("function"!=typeof n)throw Error("Illegal callback: "+typeof n);i(n)}function a(e,t){if(void 0===t&&(t=m),"number"==typeof t&&(t=l(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return R(e,t)}function u(e,t,n,i){function o(n){"string"==typeof e&&"number"==typeof t?r(t,function(t,o){R(e,o,n,i)}):"string"==typeof e&&"string"==typeof t?R(e,t,n,i):c(n.bind(this,Error("Illegal arguments: "+typeof e+", "+typeof t)))}if(!n)return new Promise(function(e,t){o(function(n,i){if(n)return void t(n);e(i)})});if("function"!=typeof n)throw Error("Illegal callback: "+typeof n);o(n)}function s(e,t){for(var n=e.length^t.length,i=0;i<e.length;++i)n|=e.charCodeAt(i)^t.charCodeAt(i);return 0===n}var c="function"==typeof setImmediate?setImmediate:"object"==typeof scheduler&&"function"==typeof scheduler.postTask?scheduler.postTask.bind(scheduler):setTimeout;function d(e){for(var t=0,n=0,i=0;i<e.length;++i)(n=e.charCodeAt(i))<128?t+=1:n<2048?t+=2:(64512&n)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t}var f="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),g=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,54,55,56,57,58,59,60,61,62,63,-1,-1,-1,-1,-1,-1,-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,-1,-1,-1,-1,-1,-1,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,-1,-1,-1,-1,-1];function p(e,t){var n,i,o=0,l=[];if(t<=0||t>e.length)throw Error("Illegal len: "+t);for(;o<t;){if(n=255&e[o++],l.push(f[n>>2&63]),n=(3&n)<<4,o>=t||(n|=(i=255&e[o++])>>4&15,l.push(f[63&n]),n=(15&i)<<2,o>=t)){l.push(f[63&n]);break}n|=(i=255&e[o++])>>6&3,l.push(f[63&n]),l.push(f[63&i])}return l.join("")}function x(e,t){var n,i,o,l,r,a=0,u=e.length,s=0,c=[];if(t<=0)throw Error("Illegal len: "+t);for(;a<u-1&&s<t&&(n=(r=e.charCodeAt(a++))<g.length?g[r]:-1,i=(r=e.charCodeAt(a++))<g.length?g[r]:-1,-1!=n&&-1!=i)&&(l=n<<2>>>0|(48&i)>>4,c.push(String.fromCharCode(l)),!(++s>=t||a>=u||-1==(o=(r=e.charCodeAt(a++))<g.length?g[r]:-1)||(l=(15&i)<<4>>>0|(60&o)>>2,c.push(String.fromCharCode(l)),++s>=t||a>=u)));){;l=(3&o)<<6>>>0|((r=e.charCodeAt(a++))<g.length?g[r]:-1),c.push(String.fromCharCode(l)),++s}var d=[];for(a=0;a<s;
1a++)d.push(c[a].charCodeAt(0));return d}var h=16,m=10,b=[0x243f6a88,0x85a308d3,0x13198a2e,0x3707344,0xa4093822,0x299f31d0,0x82efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b],v=[0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0xd95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0xf6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x75372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x4c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0
1xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,2428461,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x2e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x8ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x8ba4799,0x6e85076a,0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,290971e4,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x21ecc5e,0x9686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0xfd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x43556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x18cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0xe358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x95bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0xc55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0xe1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7,0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x3bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0xa2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0
1x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x4272f70,0x80bb155c,0x5282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x7f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0xe12b4c2,0x2e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0xa476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x6a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0xa121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x9f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0xba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0xde6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,6314154,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x8fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0,0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x22b8b51,0x96d5ac3a,0x17da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x3a16125,0x564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x3563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x9072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x115af84,3786409e3,0x95983a1d,0x6b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x11a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0xf91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0xfe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x2fb8a8c,0x1c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6],y=[0x4f727068,0x65616e42,0x65686f6c,0x64657253,0x63727944,0x6f756274];function w(e,t,n,i){var o=e[t],l=e[t+1];return o^=n[0],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[1],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[2],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[3],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[4],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[5],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[6],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[7],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[8],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[9],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[10],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[11],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[12],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[13],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[14],l^=(i[o>>>24]+i[256|o>>16&255]^i[512|o>>8&255])+i[768|255&o]^n[15],o^=(i[l>>>24]+i[256|l>>16&255]^i[512|l>>8&255])+i[768|255&l]^n[16],e[t]=l^n[17],e[t+1]=o,e}function _(e,t){for(var n=0,i=0;n<4;++n)i=i<<8|255&e[t],t=(t+1)%e.length;return{key:i,offp:t}}
1function C(e,t,n){for(var i,o=0,l=[0,0],r=t.length,a=n.length,u=0;u<r;u++)o=(i=_(e,o)).offp,t[u]=t[u]^i.key;for(u=0;u<r;u+=2)l=w(l,0,t,n),t[u]=l[0],t[u+1]=l[1];for(u=0;u<a;u+=2)l=w(l,0,t,n),n[u]=l[0],n[u+1]=l[1]}function S(e,t,n,i,o){var l,r,a=y.slice(),u=a.length;if(n<4||n>31){if(r=Error("Illegal number of rounds (4-31): "+n),i)return void c(i.bind(this,r));throw r}if(t.length!==h){if(r=Error("Illegal salt length: "+t.length+" != "+h),i)return void c(i.bind(this,r));throw r}n=1<<n>>>0;var s,d,f,g=0;function p(){if(o&&o(g/n),g<n)for(var l=Date.now();g<n&&(g+=1,C(e,s,d),C(t,s,d),!(Date.now()-l>100)););else{for(g=0;g<64;g++)for(f=0;f<u>>1;f++)w(a,f<<1,s,d);var r=[];for(g=0;g<u;g++)r.push((a[g]>>24&255)>>>0),r.push((a[g]>>16&255)>>>0),r.push((a[g]>>8&255)>>>0),r.push((255&a[g])>>>0);return i?void i(null,r):r}i&&c(p)}if("function"==typeof Int32Array?(s=new Int32Array(b),d=new Int32Array(v)):(s=b.slice(),d=v.slice()),!function(e,t,n,i){for(var o,l=0,r=[0,0],a=n.length,u=i.length,s=0;s<a;s++)l=(o=_(t,l)).offp,n[s]=n[s]^o.key;for(s=0,l=0;s<a;s+=2)l=(o=_(e,l)).offp,r[0]^=o.key,l=(o=_(e,l)).offp,r[1]^=o.key,r=w(r,0,n,i),n[s]=r[0],n[s+1]=r[1];for(s=0;s<u;s+=2)l=(o=_(e,l)).offp,r[0]^=o.key,l=(o=_(e,l)).offp,r[1]^=o.key,r=w(r,0,n,i),i[s]=r[0],i[s+1]=r[1]}(t,e,s,d),void 0!==i)p();else for(;;)if(void 0!==(l=p()))return l||[]}function R(e,t,n,i){if("string"!=typeof e||"string"!=typeof t){if(o=Error("Invalid string / salt: Not a string"),n)return void c(n.bind(this,o));throw o}if("$"!==t.charAt(0)||"2"!==t.charAt(1)){if(o=Error("Invalid salt version: "+t.substring(0,2)),n)return void c(n.bind(this,o));throw o}if("$"===t.charAt(2))l="\0",r=3;else{if("a"!==(l=t.charAt(2))&&"b"!==l&&"y"!==l||"$"!==t.charAt(3)){if(o=Error("Invalid salt revision: "+t.substring(2,4)),n)return void c(n.bind(this,o));throw o}r=4}if(t.charAt(r+2)>"$"){if(o=Error("Missing salt rounds"),n)return void c(n.bind(this,o));throw o}var o,l,r,a=10*parseInt(t.substring(r,r+1),10)+parseInt(t.substring(r+1,r+2),10),u=t.substring(r+3,r+25),s=function(e){for(var t,n,i=0,o=Array(d(e)),l=0,r=e.length;l<r;++l)(t=e.charCodeAt(l))<128?o[i++]=t:(t<2048?o[i++]=t>>6|192:((64512&t)==55296&&(64512&(n=e.charCodeAt(l+1)))==56320?(t=65536+((1023&t)<<10)+(1023&n),++l,o[i++]=t>>18|240,o[i++]=t>>12&63|128):o[i++]=t>>12|224,o[i++]=t>>6&63|128),o[i++]=63&t|128);return o}(e+=l>="a"?"\0":""),f=x(u,h);function g(e){var t=[];return t.push("$2"),l>="a"&&t.push(l),t.push("$"),a<10&&t.push("0"),t.push(a.toString()),t.push("$"),t.push(p(f,f.length)),t.push(p(e,4*y.length-1)),t.join("")}if(void 0===n)return g(S(s,f,a));S(s,f,a,function(e,t){e?n(e,null):n(null,g(t))},i)}let I={setRandomFallback:function(e){o=e},genSaltSync:l,genSalt:r,hashSync:a,hash:u,compareSync:function(e,t){if("string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return 60===t.length&&s(a(e,t.substring(0,t.length-31)),t)},compare:function(e,t,n,i){function o(n){return"string"!=typeof e||"string"!=typeof t?void c(n.bind(this,Error("Illegal arguments: "+typeof e+", "+typeof t))):60!==t.length?void c(n.bind(this,null,!1)):void u(e,t.substring(0,29),function(e,i){e?n(e):n(null,s(i,t))},i)}if(!n)return new Promise(function(e,t){o(function(n,i){if(n)return void t(n);e(i)})});if("function"!=typeof n)throw Error("Illegal callback: "+typeof n);o(n)},getRounds:function(e){if("string"!=typeof e)throw Error("Illegal arguments: "+typeof e);return parseInt(e.split("$")[2],10)},getSalt:function(e){if("string"!=typeof e)throw Error("Illegal arguments: "+typeof e);if(60!==e.length)throw Error("Illegal hash length: "+e.length+" != 60");return e.substring(0,29)},truncates:function(e){if("string"!=typeof e)throw Error("Illegal arguments: "+typeof e);return d(e)>72},encodeBase64:function(e,t){return p(e,t)},decodeBase64:function(e,t){return x(e,t)}}},48200:(e,t,n)=>{"use strict";n.d(t,{$:()=>c,K:()=>u});var i=n(17389),o=n(96241),l=n(12115),r=n(39160),a=n(46521),u="vision",s=(0,r.GW0)({locale:"en-US",namespace:u,resources:function(){return n.e(6071).then(n.bind(n,66071))}}),c=(0,r.bzQ)(function(e){var t=e||{},r=t.name,u=t.title,c=t.icon,d=(0,i._)(t,["name","title","icon"]);return{name:"@sanity/vision",tools:[{name:r||"vision",title:u||"Vision",icon:c||o.N5q,component:(0,l.lazy)(function(){return Promise.all([n.e(6079),n.e(1339)]).then(n.bind(n,5397))}),options:d,router:a.wE.create("/*"),__internalApplicationType:"sanity/vision"}],i18n:{bundles:[s]}}})},58715:(e,t,n)=>{e.exports=n(88325)(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})},66265:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u});let i=({clientWidth:e,clientHeight:t,scrollWidth:n,scrollHeight:i})=>i>t||n>e,o=e=>{let t=window.getComputedStyle(e).overflow;return t.includes("auto")||t.includes("scroll")},l=e=>{if(null==e)return{x:0,y:0};
1let{scrollTop:t,scrollHeight:n,clientHeight:i,scrollLeft:o,scrollWidth:l,clientWidth:r}=e;return{x:o?o/Math.max(1e-5,l-r):0,y:t?t/Math.max(1e-5,n-i):0}};function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function a(e){return e.matches("body *")?e:window}class u{constructor(e,t={}){var n,a=this;this.elements=void 0,this.defaults={vertical:!0,horizontal:!0,debug:!0},this.options=void 0,this.paused=!1,this.logger=void 0,this.handleScroll=async function(e){if(a.paused||!e.currentTarget)return;let t=a.getScrollContainer(e.currentTarget);await new Promise(e=>{requestAnimationFrame(()=>e())}),a.mirrorScrollPositions(l(t),t)},this.elements=[...e].filter(Boolean).map(e=>this.getScrollContainer(e)),this.elements=[...new Set(this.elements)],this.options=r({},this.defaults,t),this.options.debug&&(this.logger=(n="[scroll-mirror]",{log:(...e)=>console.log(n,...e),warn:(...e)=>console.warn(n,...e),error:(...e)=>console.error(n,...e)}),function(e,t){if(e.length<1)null==t||t.warn("No elements provided.");else for(let n of(e.length<2&&(null==t||t.warn("Only one element provided.",e)),e.some(e=>!e)&&(null==t||t.error("Some elements are not defined.",e)),e))n instanceof HTMLElement&&!i(n)&&(null==t||t.warn("Element doesn't have overflow:",n)),n instanceof HTMLElement&&n.matches("body *")&&!o(n)&&(null==t||t.warn('No "overflow: auto;" or "overflow: scroll;" set on element:',n))}(this.elements,this.logger)),this.elements.forEach(e=>this.addScrollHandler(e)),this.elements.includes(document.documentElement)&&this.mirrorScrollPositions(l(document.documentElement),document.documentElement)}pause(){this.paused=!0}resume(){this.paused=!1}destroy(){this.elements.forEach(e=>this.removeScrollHandler(e))}addScrollHandler(e){this.removeScrollHandler(e),a(e).addEventListener("scroll",this.handleScroll,{passive:!0})}removeScrollHandler(e){a(e).removeEventListener("scroll",this.handleScroll)}getScrollContainer(e){return e instanceof HTMLElement&&e.matches("body *")?e:document.documentElement}mirrorScrollPositions(e,t){this.elements.forEach(n=>{t!==n&&(this.removeScrollHandler(n),this.setScrollPosition(e,n),window.requestAnimationFrame(()=>{this.addScrollHandler(n)}))})}setScrollPosition(e,t){let{vertical:n,horizontal:i}=this.options,o=t.scrollWidth-t.clientWidth,l=t.scrollHeight-t.clientHeight;n&&l&&t.scrollTo({top:l*e.y,behavior:"instant"}),i&&o&&t.scrollTo({left:o*e.x,behavior:"instant"})}get progress(){return l(this.elements.find(e=>i(e)))}set progress(e){"number"==typeof e&&(e={x:e,y:e});let t=r({},this.progress,e);(function(e,t){let n=!0;for(let[i,o]of Object.entries(e))("number"!=typeof o||o<0||o>1)&&(null==t||t.error(`progress.${i} must be a number between 0-1`),n=!1);return n})(t,this.logger)&&this.mirrorScrollPositions(t)}}},73765:e=>{"use strict";e.exports=function(e){for(var t=function(e){var t,n=(e.length+8>>6)+1,i=Array(16*n);for(t=0;t<16*n;t++)i[t]=0;for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;i[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return i[16*n-2]=255&o,i[16*n-2]|=(o>>>8&255)<<8,i[16*n-2]|=(o>>>16&255)<<16,i[16*n-2]|=(o>>>24&255)<<24,i}(e),n=0x67452301,i=-0x10325477,o=-0x67452302,a=0x10325476,f=0;f<t.length;f+=16){var g=n,p=i,x=o,h=a;n=u(n,i,o,a,t[f+0],7,-0x28955b88),a=u(a,n,i,o,t[f+1],12,-0x173848aa),o=u(o,a,n,i,t[f+2],17,0x242070db),i=u(i,o,a,n,t[f+3],22,-0x3e423112),n=u(n,i,o,a,t[f+4],7,-0xa83f051),a=u(a,n,i,o,t[f+5],12,0x4787c62a),o=u(o,a,n,i,t[f+6],17,-0x57cfb9ed),i=u(i,o,a,n,t[f+7],22,-0x2b96aff),n=u(n,i,o,a,t[f+8],7,0x698098d8),a=u(a,n,i,o,t[f+9],12,-0x74bb0851),o=u(o,a,n,i,t[f+10],17,-42063),i=u(i,o,a,n,t[f+11],22,-0x76a32842),n=u(n,i,o,a,t[f+12],7,0x6b901122),a=u(a,n,i,o,t[f+13],12,-0x2678e6d),o=u(o,a,n,i,t[f+14],17,-0x5986bc72),i=u(i,o,a,n,t[f+15],22,0x49b40821),n=s(n,i,o,a,t[f+1],5,-0x9e1da9e),a=s(a,n,i,o,t[f+6],9,-0x3fbf4cc0),o=s(o,a,n,i,t[f+11],14,0x265e5a51),i=s(i,o,a,n,t[f+0],20,-0x16493856),n=s(n,i,o,a,t[f+5],5,-0x29d0efa3),a=s(a,n,i,o,t[f+10],9,0
1x2441453),o=s(o,a,n,i,t[f+15],14,-0x275e197f),i=s(i,o,a,n,t[f+4],20,-0x182c0438),n=s(n,i,o,a,t[f+9],5,0x21e1cde6),a=s(a,n,i,o,t[f+14],9,-0x3cc8f82a),o=s(o,a,n,i,t[f+3],14,-0xb2af279),i=s(i,o,a,n,t[f+8],20,0x455a14ed),n=s(n,i,o,a,t[f+13],5,-0x561c16fb),a=s(a,n,i,o,t[f+2],9,-0x3105c08),o=s(o,a,n,i,t[f+7],14,0x676f02d9),i=s(i,o,a,n,t[f+12],20,-0x72d5b376),n=c(n,i,o,a,t[f+5],4,-378558),a=c(a,n,i,o,t[f+8],11,-0x788e097f),o=c(o,a,n,i,t[f+11],16,0x6d9d6122),i=c(i,o,a,n,t[f+14],23,-0x21ac7f4),n=c(n,i,o,a,t[f+1],4,-0x5b4115bc),a=c(a,n,i,o,t[f+4],11,0x4bdecfa9),o=c(o,a,n,i,t[f+7],16,-0x944b4a0),i=c(i,o,a,n,t[f+10],23,-0x41404390),n=c(n,i,o,a,t[f+13],4,0x289b7ec6),a=c(a,n,i,o,t[f+0],11,-0x155ed806),o=c(o,a,n,i,t[f+3],16,-0x2b10cf7b),i=c(i,o,a,n,t[f+6],23,0x4881d05),n=c(n,i,o,a,t[f+9],4,-0x262b2fc7),a=c(a,n,i,o,t[f+12],11,-0x1924661b),o=c(o,a,n,i,t[f+15],16,0x1fa27cf8),i=c(i,o,a,n,t[f+2],23,-0x3b53a99b),n=d(n,i,o,a,t[f+0],6,-0xbd6ddbc),a=d(a,n,i,o,t[f+7],10,0x432aff97),o=d(o,a,n,i,t[f+14],15,-0x546bdc59),i=d(i,o,a,n,t[f+5],21,-0x36c5fc7),n=d(n,i,o,a,t[f+12],6,0x655b59c3),a=d(a,n,i,o,t[f+3],10,-0x70f3336e),o=d(o,a,n,i,t[f+10],15,-1051523),i=d(i,o,a,n,t[f+1],21,-0x7a7ba22f),n=d(n,i,o,a,t[f+8],6,0x6fa87e4f),a=d(a,n,i,o,t[f+15],10,-0x1d31920),o=d(o,a,n,i,t[f+6],15,-0x5cfebcec),i=d(i,o,a,n,t[f+13],21,0x4e0811a1),n=d(n,i,o,a,t[f+4],6,-0x8ac817e),a=d(a,n,i,o,t[f+11],10,-0x42c50dcb),o=d(o,a,n,i,t[f+2],15,0x2ad7d2bb),i=d(i,o,a,n,t[f+9],21,-0x14792c6f),n=l(n,g),i=l(i,p),o=l(o,x),a=l(a,h)}return r(n)+r(i)+r(o)+r(a)};var t="0123456789abcdef";function n(e,t){return 1&e|1&t|(e>>>1|t>>>1)<<1}function i(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function o(e,t){return(e>>>1&t>>>1)<<1|1&e&(1&t)}function l(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e){var n,i="";for(n=0;n<=3;n++)i+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return i}function a(e,t,n,i,o,r){var a;return l((a=l(l(t,e),l(i,r)))<<o|a>>>32-o,n)}function u(e,t,i,l,r,u,s){return a(n(o(t,i),o(~t,l)),e,t,r,u,s)}function s(e,t,i,l,r,u,s){return a(n(o(t,l),o(i,~l)),e,t,r,u,s)}function c(e,t,n,o,l,r,u){return a(i(i(t,n),o),e,t,l,r,u)}function d(e,t,o,l,r,u,s){return a(i(o,n(t,~l)),e,t,r,u,s)}},77356:(e,t,n)=>{"use strict";n.d(t,{EQ:()=>u});var i=n(82732),o=n(95155),l=n(45188),r=n(47650),a="https://core.sanity-cdn.com/bridge.js";function u(e){return(0,r.preloadModule)(a,{as:"script"}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("script",{src:a,async:!0,type:"module","data-sanity-core":!0}),(0,o.jsx)(l.NextStudio,(0,i._)({},e))]})}},78927:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var i=n(19318);function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,i._)(e)););return e}(e,t);if(o){var l=Object.getOwnPropertyDescriptor(o,t);return l.get?l.get.call(n||e):l.value}})(e,t,n||e)}},83592:(e,t,n)=>{var i=n(86144);e.exports=n(88325)(function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)})},84264:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var i=n(95155),o=n(12115),l=n(580),r=n(73765);let a=Math.ceil(10*Math.random());function u(e){return Object.prototype.toString.call(e).slice(8,-1)}function s(e){let t=u(e);return"Object"!==t&&"Array"!==t}class c extends o.Component{shouldComponentUpdate(e){return e.highlight!==this.props.highlight}render(){let e=this.props.string||"",t=this.props.highlight||"",n=e.search(t);if(!t||-1===n)return(0,i.jsx)("span",{children:e});let o=t.source.length,l=e.slice(n,n+o);return(0,i.jsx)("span",{children:e.split(t).map(function(e,t){return(0,i.jsxs)("span",{children:[t>0?(0,i.jsx)("span",{className:"json-inspector__hl",children:l}):null,e]},t)})})}}function d(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class f extends o.Component{constructor(e){super(e),this.state={expanded:this._isInitiallyExpanded(this.props)}}render(){let{label:e,data:t,root:n,id:o}=this.props,l="id_"+ ++a,r={path:this.keypath(),key:e.toString(),value:t},u=this._onClick.bind(this,r);return(0,i.jsxs)("div",{"data-testid":n?"leaf-root":"leaf-child","aria-expanded":this.state.expanded,"data-root":n||void 0,className:this.getClassName(),id:"leaf-"+this._rootPath(),children:[(0,i.jsx)("input",{className:"json-inspector__radio",type:"radio",name:l,id:o,tabIndex:-1}),(0,i.jsxs)("label",{className:"json-inspector__line",htmlFor:l,onClick:u,children:[(0,i.jsx)("div",{className:"json-inspector__flatpath",children:r.path}),(0,i.jsxs)("span",{className:"json-inspector__key",children:[this.format(r.key),":",this.renderInteractiveLabel(r.key,!0)]}),this.renderTitle(),this.renderShowOriginalButton()]}),this.renderChildren()]})}renderTitle(){var e,t;let n=this.data(),o=u(n);if(Array.isArray(n)){let t=n.length;return(0,i.jsxs)("span",{className:"json-inspector__value json-inspector__value_helper",children:[t>0?"[â¦] ":"[] ",(e=t)+(1===e?" item":" items")]})}if("object"==typeof n&&null!==n){let e=Object.keys(n).length;return(0,i.jsxs)("span",{className:"json-inspector__value json-inspector__value_helper",children:[e>0?"{â¦} ":"{} ",(t=e)+(1===t?" property":" properties")]})}return(0,i.jsxs)("span",{className:"json-inspector__value json-inspector__value_"+o.toLowerCase(),children:[this.format(String(n)),this.renderInteractiveLabel(n,!1)]})}renderChildren(){let{verboseShowOriginal:e,query:t,id:n,isExpanded:o,interactiveLabel:l,onClick:a,getOriginal:c}=this.props,g=this._rootPath(),p=this.data();return this.state.expanded&&(d(p)||Array.isArray(p))?Object.keys(p).map(d=>{var x,h;let m=p[d],b=!this.state.original||!!e&&t;return(0,i.jsx)(f,{data:m,label:d,prefix:g,onClick:a,id:n,query:t,getOriginal:b?c:void 0,isExpanded:o,interactiveLabel:l,verboseShowOriginal:e},(x=d,s(h=m)?x+":"+r(String(h)):x+"["+u(h)+"]"))}):null}renderShowOriginalButton(){let{data:e,getOriginal:t,query:n}=this.props;return s(e)||this.state.original||!t||!n||n.test(this.keypath())?null:(0,i.jsx)("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})}renderInteractiveLabel(e,t){let n=this.props.interactiveLabel;return"function"==typeof n?(0,i.jsx)(n,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null}static getDerivedStateFromProps(e,t){return e.query?{expanded:!e.query.test(e.label)}:null}componentDidUpdate(e){e.query&&!this.props.query&&this.setState({expanded:this._isInitiallyExpanded(this.props)})}_rootPath(){return(this.props.prefix||"")+"."+this.props.label}keypath(){return this._rootPath().slice(6)}data(){return this.state.original||this.props.data}format(e){return(0,i.jsx)(c,{string:e,highlight:this.props.query})}getClassName(){let e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),s(this.props.data)||(e+=" json-inspector__leaf_composite"),e}toggle(){this.setState({expanded:!this.state.expanded})}_onClick(e,t){this.toggle(),this.props.onClick&&this.props.onClick(e),t.stopPropagation()}_onShowOriginalClick=e=>{this.setState({original:this.props.getOriginal?.(this.keypath())}),e.stopPropagation()};_isInitiallyExpanded(e){if(e.root)return!0;let t=this.keypath();return e.query?!e.query.test(t)&&"function"==typeof e.getOriginal:!!e.isExpanded&&e.isExpanded(t,e.data)}}let g=(...e)=>{},p=({onChange:e=g})=>{let t=(0,o.useCallback)(t=>e(t.target.value),[e]);return(0,i.jsx)("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:t})};function x(e){return d(e)?0===Object.keys(e).length:Array.isArray(e)?0===e.length:null===e||"string"!=typeof e||"number"!=typeof e||0===Object.keys(e).length}let h=function(e){let t,n,i;return(o,l)=>(i&&o===t&&l===n||(t=o,n=l,i=e(o,l)),i)}((e,t)=>{let n=t||{cacheResults:!0},i={};return function(t){let o;if(!n.cacheResults)return m(e,t,n);if(!i[t]){for(var l=t.length-1;l>0;l-=1)if(i[o=t.slice(0,l)]){i[t]=m(i[o],t,n);break}}return i[t]||(i[t]=m(e,t,n)),i[t]}});function m(e,t,n){return d(e)||Array.isArray(e)?Object.keys(e).reduce(function(i,o){let l,r=e[o];return r&&("object"!=typeof r?(b(t,o,n)||b(t,r,n))&&(i[o]=r):b(t,o,n)?i[o]=r:x(l=m(r,t,n))||Object.assign(i,{[o]:l})),i},{}):{}}function b(e,t,n){if(!t)return!1;var i=String(t),o=e;return n?.ignoreCase&&(i=i.toLowerCase(),o=o.toLowerCase()),-1!==i.indexOf(o)}function v(e){return parseInt(e,10)}let y=e=>e.length>
1=2,w={cacheResults:!0,ignoreCase:!1};class _ extends o.Component{static defaultProps={data:null,search:p,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:g,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1};constructor(e){super(e),this.state={query:"",filterer:h(e.data,e.filterOptions)}}render(){let{data:e,className:t,onClick:n,id:o,isExpanded:l,interactiveLabel:r,verboseShowOriginal:a,filterOptions:u=w,validateQuery:s=y}=this.props,c=""!==this.state.query&&s(this.state.query),d=c?this.state.filterer(this.state.query):e,g=c&&x(d);return(0,i.jsxs)("div",{"data-testid":"json-inspector",className:"json-inspector "+t,children:[this.renderToolbar(),g?(0,i.jsx)("div",{className:"json-inspector__not-found",children:"Nothing found"}):(0,i.jsx)(f,{data:d,onClick:n,id:o,getOriginal:this.getOriginal,query:c?new RegExp(this.state.query,u.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:l,interactiveLabel:r,verboseShowOriginal:a})]})}renderToolbar(){let e=this.props.search;return e?(0,i.jsx)("div",{className:"json-inspector__toolbar",children:(0,i.jsx)(e,{onChange:l(this.search,this.props.searchOptions?.debounceTime),data:this.props.data,query:this.state.query})}):null}search=e=>{this.setState({query:e})};static getDerivedStateFromProps(e,t){let n=h(e.data,e.filterOptions);return n===t.filterer?null:{...t,filterer:n}}shouldComponentUpdate(e,t){return t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick}createFilterer=(e,t)=>{this.setState({filterer:h(e,t)})};getOriginal=e=>(function e(t,n){var i=n.split("."),o=i.shift();return o?Array.isArray(t)&&t[v(o)]?e(t[v(o)],i.join(".")):d(t)&&o in t?e(t[o],i.join(".")):void 0:t})(this.props.data,e)}},92273:(e,t,n)=>{"use strict";function i(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function o(e,t){return"function"==typeof e?e(t):e}function l(e,t){return n=>{t.setState(t=>({...t,[e]:o(n,t[e])}))}}function r(e){return e instanceof Function}function a(e,t,n){let i,o=[];return l=>{let r,a;n.key&&n.debug&&(r=Date.now());let u=e(l);if(!(u.length!==o.length||u.some((e,t)=>o[t]!==e)))return i;if(o=u,n.key&&n.debug&&(a=Date.now()),i=t(...u),null==n||null==n.onChange||n.onChange(i),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-r)*100)/100,t=Math.round((Date.now()-a)*100)/100,i=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${o(t,5)} /${o(e,5)} ms`,` 2 font-size: .6rem; 3 font-weight: bold; 4 color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return i}}function u(e,t,n,i){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:i}}n.d(t,{FB:()=>i,HT:()=>B,ZR:()=>q,hM:()=>Q,kW:()=>$});let s="debugHeaders";function c(e,t,n){var i;let o={id:null!=(i=n.id)?i:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function d(e,t,n,i){var o,l;let r=0,a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let u=[],s=(e,t)=>{let o={depth:t,id:[i,`${t}`].filter(Boolean).join("_"),headers:[]},l=[];e.forEach(e=>{let r,a=[...l].reverse()[0],u=e.column.depth===o.depth,s=!1;if(u&&e.column.parent?r=e.column.parent:(r=e.column,s=!0),a&&(null==a?void 0:a.column)===r)a.subHeaders.push(e);else{let o=c(n,r,{id:[i,t,r.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${l.filter(e=>e.column===r).length}`:void 0,depth:t,index:l.length});o.subHeaders.push(e),l.push(o)}o.headers.push(e),e.headerGroup=o}),u.push(o),t>0&&s(l,t-1)};s(t.map((e,t)=>c(n,e,{depth:r,index:t})),r-1),u.reverse();let d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,i=[0];return e.subHeaders&&e.subHeaders.length?(i=[],d(e.subHeaders).forEac
4h(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,i.push(o)})):t=1,n+=Math.min(...i),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(l=u[0])?void 0:l.headers)?o:[]),u}let f=(e,t,n,i,o,l,r)=>{let s={id:t,index:i,original:n,depth:o,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,i),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,i):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=l?l:[],getLeafRows:()=>(function(e,t){let n=[],i=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&i(o)})};return i(e),n})(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,n,i){let o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,n,t,o],(e,t,n,i)=>({table:e,column:t,row:n,cell:i,getValue:i.getValue,renderValue:i.renderValue}),u(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{null==i.createCell||i.createCell(o,n,t,e)},{}),o})(e,s,t,t.id)),u(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:a(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),u(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},g=(e,t,n)=>{var i,o;let l=null==n||null==(i=n.toString())?void 0:i.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(l))};g.autoRemove=e=>C(e);let p=(e,t,n)=>{var i;return!!(null==(i=e.getValue(t))||null==(i=i.toString())?void 0:i.includes(n))};p.autoRemove=e=>C(e);let x=(e,t,n)=>{var i;return(null==(i=e.getValue(t))||null==(i=i.toString())?void 0:i.toLowerCase())===(null==n?void 0:n.toLowerCase())};x.autoRemove=e=>C(e);let h=(e,t,n)=>{var i;return null==(i=e.getValue(t))?void 0:i.includes(n)};h.autoRemove=e=>C(e);let m=(e,t,n)=>!n.some(n=>{var i;return!(null!=(i=e.getValue(t))&&i.includes(n))});m.autoRemove=e=>C(e)||!(null!=e&&e.length);let b=(e,t,n)=>n.some(n=>{var i;return null==(i=e.getValue(t))?void 0:i.includes(n)});b.autoRemove=e=>C(e)||!(null!=e&&e.length);let v=(e,t,n)=>e.getValue(t)===n;v.autoRemove=e=>C(e);let y=(e,t,n)=>e.getValue(t)==n;y.autoRemove=e=>C(e);let w=(e,t,n)=>{let[i,o]=n,l=e.getValue(t);return l>=i&&l<=o};w.resolveFilterValue=e=>{let[t,n]=e,i="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,l=null===t||Number.isNaN(i)?-1/0:i,r=null===n||Number.isNaN(o)?1/0:o;if(l>r){let e=l;l=r,r=e}return[l,r]},w.autoRemove=e=>C(e)||C(e[0])&&C(e[1]);let _={includesString:g,includesStringSensitive:p,equalsString:x,arrIncludes:h,arrIncludesAll:m,arrIncludesSome:b,equals:v,weakEquals:y,inNumberRange:w};function C(e){return null==e||""===e}function S(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}
4let R={sum:(e,t,n)=>n.reduce((t,n)=>{let i=n.getValue(e);return t+("number"==typeof i?i:0)},0),min:(e,t,n)=>{let i;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(i>n||void 0===i&&n>=n)&&(i=n)}),i},max:(e,t,n)=>{let i;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(i<n||void 0===i&&n>=n)&&(i=n)}),i},extent:(e,t,n)=>{let i,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===i?n>=n&&(i=o=n):(i>n&&(i=n),o<n&&(o=n)))}),[i,o]},mean:(e,t)=>{let n=0,i=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++n,i+=o)}),n)return i/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];let i=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[i]:(o[i-1]+o[i])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},I=()=>({left:[],right:[]}),E={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},F=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),k=null;function M(e){return"touchstart"===e.type}function V(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let T=()=>({pageIndex:0,pageSize:10}),P=()=>({top:[],bottom:[]}),A=(e,t,n,i,o)=>{var l;let r=o.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),r.getCanSelect()&&(e[t]=!0)):delete e[t],i&&null!=(l=r.subRows)&&l.length&&r.getCanSelectSubRows()&&r.subRows.forEach(t=>A(e,t.id,n,i,o))};function D(e,t){let n=e.getState().rowSelection,i=[],o={},l=function(e,t){return e.map(e=>{var t;let r=L(e,n);if(r&&(i.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:l(e.subRows)}),r)return e}).filter(Boolean)};return{rows:l(t.rows),flatRows:i,rowsById:o}}function L(e,t){var n;return null!=(n=t[e.id])&&n}function H(e,t,n){var i;if(!(null!=(i=e.subRows)&&i.length))return!1;let o=!0,l=!1;return e.subRows.forEach(e=>{if((!l||o)&&(e.getCanSelect()&&(L(e,t)?l=!0:o=!1),e.subRows&&e.subRows.length)){let n=H(e,t);"all"===n?l=!0:("some"===n&&(l=!0),o=!1)}}),o?"all":!!l&&"some"}let O=/([0-9]+)/gm;function G(e,t){return e===t?0:e>t?1:-1}function z(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function N(e,t){let n=e.split(O).filter(Boolean),i=t.split(O).filter(Boolean);for(;n.length&&i.length;){let e=n.shift(),t=i.shift(),o=parseInt(e,10),l=parseInt(t,10),r=[o,l].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(r[1]))return isNaN(o)?-1:1;if(o>l)return 1;if(l>o)return -1}return n.length-i.length}let j={alphanumeric:(e,t,n)=>N(z(e.getValue(n)).toLowerCase(),z(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>N(z(e.getValue(n)),z(t.getValue(n))),text:(e,t,n)=>G(z(e.getValue(n)).toLowerCase(),z(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>G(z(e.getValue(n)),z(t.getValue(n))),datetime:(e,t,n)=>{let i=e.getValue(n),o=t.getValue(n);return i>o?1:i<o?-1:0},basic:(e,t,n)=>G(e.getValue(n),t.getValue(n))},U=[{createTable:e=>{e.getHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,o)=>{var l,r;let a=null!=(l=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[],u=null!=(r=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[];return d(t,[...a,...n.filter(e=>!(null!=i&&i.includes(e.id))&&!(null!=o&&o.includes(e.id))),...u],e)},u(e.options,s,"getHeaderGroups")),e.getCenterHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,o)=>d(t,n=n.filter(e=>!(null!=i&&i.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),u(e.options,s,"getCenterHeaderGroups")),e.getLeftHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,i)=>{var o;return d(t,null!=(o=null==i?void 0:i.map(e=>n.find(t=>
4t.id===e)).filter(Boolean))?o:[],e,"left")},u(e.options,s,"getLeftHeaderGroups")),e.getRightHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,i)=>{var o;return d(t,null!=(o=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},u(e.options,s,"getRightHeaderGroups")),e.getFooterGroups=a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),u(e.options,s,"getFooterGroups")),e.getLeftFooterGroups=a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),u(e.options,s,"getLeftFooterGroups")),e.getCenterFooterGroups=a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),u(e.options,s,"getCenterFooterGroups")),e.getRightFooterGroups=a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),u(e.options,s,"getRightFooterGroups")),e.getFlatHeaders=a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,s,"getFlatHeaders")),e.getLeftFlatHeaders=a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,s,"getLeftFlatHeaders")),e.getCenterFlatHeaders=a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,s,"getCenterFlatHeaders")),e.getRightFlatHeaders=a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),u(e.options,s,"getRightFlatHeaders")),e.getCenterLeafHeaders=a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),u(e.options,s,"getCenterLeafHeaders")),e.getLeftLeafHeaders=a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),u(e.options,s,"getLeftLeafHeaders")),e.getRightLeafHeaders=a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),u(e.options,s,"getRightLeafHeaders")),e.getLeafHeaders=a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var i,o,l,r,a,u;return[...null!=(i=null==(o=e[0])?void 0:o.headers)?i:[],...null!=(l=null==(r=t[0])?void 0:r.headers)?l:[],...null!=(a=null==(u=n[0])?void 0:u.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},u(e.options,s,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:l("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,i;let o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(i=t.getState().columnVisibility)?void 0:i[e.id])||n},e.getCanHide=()=>{var n,i;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(i=t.options.enableHiding)||i)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),u(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],u(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,n)=>a(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),u(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:l("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a(e=>[V(t,e)],t=>t.findIndex(t=>t.id===e.id),u(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var i;return(null==(i=V(t,n)[0])?void 0:i.id)===e.id},e.getIsLastColumn=n=>{var i;let o=V(t,n);return(null==(i=o[o.length-1])?void 0:i.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>i=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...i];for(;n.length&&t.length;){let e=t.shift(),i=n.findIndex(t=>t.id===e);i>-1&&o.push(n.splice(i,1)[0])}o=[...o,...n]}else o=i;return function(e,t,n){if(!(null!=t&&t.length)||!n)return e;let i=e.filter(e=>!t.includes(e.id));return"remove"===n?i:[...t.map(t=>e.find(e=>
4e.id===t)).filter(Boolean),...i]}(o,t,n)},u(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:I(),...e}),getDefaultOptions:e=>({onColumnPinningChange:l("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let i=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,l,r,a,u;return"right"===n?{left:(null!=(l=null==e?void 0:e.left)?l:[]).filter(e=>!(null!=i&&i.includes(e))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=i&&i.includes(e))),...i]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=i&&i.includes(e))),...i],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=i&&i.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=i&&i.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=i&&i.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,i,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(i=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||i)}),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:i,right:o}=t.getState().columnPinning,l=n.some(e=>null==i?void 0:i.includes(e)),r=n.some(e=>null==o?void 0:o.includes(e));return l?"left":!!r&&"right"},e.getPinnedIndex=()=>{var n,i;let o=e.getIsPinned();return o?null!=(n=null==(i=t.getState().columnPinning)||null==(i=i[o])?void 0:i.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let i=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!i.includes(e.column.id))},u(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),u(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),u(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,i;return e.setColumnPinning(t?I():null!=(n=null==(i=e.initialState)?void 0:i.columnPinning)?n:I())},e.getIsSomeColumnsPinned=t=>{var n,i,o;let l=e.getState().columnPinning;return t?!!(null==(n=l[t])?void 0:n.length):!!((null==(i=l.left)?void 0:i.length)||(null==(o=l.right)?void 0:o.length))},e.getLeftLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),u(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),u(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let i=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!i.includes(e.id))},u(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
4d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:l("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(e.id);return"string"==typeof i?_.includesString:"number"==typeof i?_.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?_.equals:Array.isArray(i)?_.arrIncludes:_.weakEquals},e.getFilterFn=()=>{var n,i;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?n:_[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,i,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(i=t.options.enableColumnFilters)||i)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,i;return null!=(n=null==(i=t.getState().columnFilters)?void 0:i.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var i,l;let r=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),u=o(n,a?a.value:void 0);if(S(r,u,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];let s={id:e.id,value:u};return a?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var i;return null==(i=o(t,e))?void 0:i.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&S(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var n,i;e.setColumnFilters(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:l("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let i=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof i||"number"==typeof i}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,i,o,l;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(i=t.options.enableGlobalFilter)||i)&&(null==(o=t.options.enableFilters)||o)&&(null==(l=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||l)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>_.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:i}=e.options;return r(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[i])?t:_[i]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)}
4,e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:l("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),i=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return j.datetime;if("string"==typeof n&&(i=!0,n.split(O).length>1))return j.alphanumeric}return i?j.text:j.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,i;if(!e)throw Error();return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?n:j[e.columnDef.sortingFn]},e.toggleSorting=(n,i)=>{let o=e.getNextSortingOrder(),l=null!=n;t.setSorting(r=>{let a,u=null==r?void 0:r.find(t=>t.id===e.id),s=null==r?void 0:r.findIndex(t=>t.id===e.id),c=[],d=l?n:"desc"===o;if("toggle"!=(a=null!=r&&r.length&&e.getCanMultiSort()&&i?u?"toggle":"add":null!=r&&r.length&&s!==r.length-1?"replace":u?"toggle":"replace")||l||o||(a="remove"),"add"===a){var f;(c=[...r,{id:e.id,desc:d}]).splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?r.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===a?r.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,i;return(null!=(n=null!=(i=e.columnDef.sortDescFirst)?i:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var i,o;let l=e.getFirstSortDir(),r=e.getIsSorted();return r?(r===l||null!=(i=t.options.enableSortingRemoval)&&!i||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===r?"asc":"desc"):l},e.getCanSort=()=>{var n,i;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(i=t.options.enableSorting)||i)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,i;return null!=(n=null!=(i=e.columnDef.enableMultiSort)?i:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let i=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!i&&(i.desc?"desc":"asc")},e.getSortIndex=()=>{var n,i;return null!=(n=null==(i=t.getState().sorting)?void 0:i.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return i=>{n&&(null==i.persist||i.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(i))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,i;e.setSorting(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:l("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,i;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(i=t.options.enableGrouping)||i)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(e.id);return"number"==typeof i?R.sum:"[object Date]"===Object.prototype.toString.call(i)?R.extent:void 0},e.getAggregationFn=()=>{var n,i;if(!e)throw Error();return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?n:R[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,i;e.setGrouping(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let i=t.getColumn(n);return null!=i&&i.columnDef.getGroupingValue?(e._groupingValuesCache[n]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,i)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:l("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var i,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(i=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?i:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,i;e.setExpanded(t?{}:null!=(n=null==(i=e.initialState)?void 0:i.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEac
4h(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(i=>{var o;let l=!0===i||!!(null!=i&&i[e.id]),r={};if(!0===i?Object.keys(t.getRowModel().rowsById).forEach(e=>{r[e]=!0}):r=i,n=null!=(o=n)?o:!l,!l&&n)return{...r,[e.id]:!0};if(l&&!n){let{[e.id]:t,...n}=r;return n}return i})},e.getIsExpanded=()=>{var n;let i=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===i||(null==i?void 0:i[e.id]))},e.getCanExpand=()=>{var n,i,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(i=t.options.enableExpanding)||i)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,i=e;for(;n&&i.parentId;)n=(i=t.getRow(i.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...T(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:l("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var i,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(i=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?i:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>o(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?T():null!=(n=e.initialState.pagination)?n:T())},e.setPageIndex=t=>{e.setPagination(n=>{let i=o(t,n.pageIndex);return i=Math.max(0,Math.min(i,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:i}})},e.resetPageIndex=t=>{var n,i;e.setPageIndex(t?0:null!=(n=null==(i=e.initialState)||null==(i=i.pagination)?void 0:i.pageIndex)?n:0)},e.resetPageSize=t=>{var n,i;e.setPageSize(t?10:null!=(n=null==(i=e.initialState)||null==(i=i.pagination)?void 0:i.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,o(t,e.pageSize)),i=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var i;let l=o(t,null!=(i=e.options.pageCount)?i:-1);return"number"==typeof l&&(l=Math.max(-1,l)),{...n,pageCount:l}}),e.getPageOptions=a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},u(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:P(),...e}),getDefaultOptions:e=>({onRowPinningChange:l("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,i,o)=>{let l=i?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],r=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...l]);t.setRowPinning(e=>{var t,i,o,l,a,u;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=r&&r.has(e))),bottom:[...(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=r&&r.has(e))),...Array.from(r)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=r&&r.has(e))),...Array.from(r)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter(e=>!(null!=r&&r.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=r&&r.has(e))),bottom:(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=r&&r.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:i,enablePinning:o}=t.options;return"function"==typeof i?i(e):null==(n=null!=i?i:o)||n},e.getIsPinned=()=>{let n=[e.id],{top:i,bottom:o}=t.getState().rowPinning,l=n.some(e=>null==i?void 0:i.includes(e)),r=n.some(e=>null==o?void 0:o.includes(e));return l?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var n,i;let o=e.getIsPinned();if(!o)return -1;let l=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(i=null==l?void 0:l.indexOf(e.id))?i:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,i;return e.setRowPinning(t?P():null!=(n=null==(i=e.initialState)?void 0:i.rowPinning)?n:P())},e.getIsSomeRowsPinned=t=>{var n,i,o;let l=e.getState().rowPinning;return t?!!(null==(n=l[t])?void 0:n.length):!!((null==(i=l.top)?void 0:i.length)||(null==(o=l.bottom)?void 0:o.length))},e._getPinnedRows=(t,n,i)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>
4t.id===e))).filter(Boolean).map(e=>({...e,position:i}))},e.getTopRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),u(e.options,"debugRows","getTopRows")),e.getBottomRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),u(e.options,"debugRows","getBottomRows")),e.getCenterRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let i=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!i.has(e.id))},u(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:l("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let i={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(i[e.id]=!0)}):o.forEach(e=>{delete i[e.id]}),i})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let i=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{A(o,t.id,i,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?D(e,n):{rows:[],flatRows:[],rowsById:{}},u(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?D(e,n):{rows:[],flatRows:[],rowsById:{}},u(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?D(e,n):{rows:[],flatRows:[],rowsById:{}},u(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),i=!!(t.length&&Object.keys(n).length);return i&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),i=!!t.length;return i&&t.some(e=>!n[e.id])&&(i=!1),i},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,i)=>{let o=e.getIsSelected();t.setRowSelection(l=>{var r;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return l;let a={...l};return A(a,e.id,n,null==(r=null==i?void 0:i.selectChildren)||r,t),a})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return L(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===H(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===H(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var i;t&&e.toggleSelected(null==(i=n.target)?void 0:i.checked)}}}},{getDefaultColumnDef:()=>E,getInitialState:e=>({columnSizing:{},columnSizingInfo:F(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:l("columnSizing",e),onColumnSizingInfoChange:l("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,i,o;let l=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:E.minSize,null!=(i=null!=l?l:e.columnDef.size)?i:E.size),null!=(o=e.columnDef.maxSize)?o:E.maxSize)},e.getStart=a(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>
4e+t.getSize(),0),u(t.options,"debugColumns","getStart")),e.getAfter=a(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),u(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...i}=t;return i})},e.getCanResize=()=>{var n,i;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(i=t.options.enableColumnResizing)||i)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var i;t+=null!=(i=e.column.getSize())?i:0}};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let i=t.getColumn(e.column.id),o=null==i?void 0:i.getCanResize();return l=>{if(!i||!o||(null==l.persist||l.persist(),M(l)&&l.touches&&l.touches.length>1))return;let r=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[i.id,i.getSize()]],u=M(l)?Math.round(l.touches[0].clientX):l.clientX,s={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var i,o;let l="rtl"===t.options.columnResizeDirection?-1:1,r=(n-(null!=(i=null==e?void 0:e.startOffset)?i:0))*l,a=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:r,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...s})))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=n||("undefined"!=typeof document?document:null),p={moveHandler:e=>d(e.clientX),upHandler:e=>{null==g||g.removeEventListener("mousemove",p.moveHandler),null==g||g.removeEventListener("mouseup",p.upHandler),f(e.clientX)}},x={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==g||g.removeEventListener("touchmove",x.moveHandler),null==g||g.removeEventListener("touchend",x.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof k)return k;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return k=e}()&&{passive:!1};M(l)?(null==g||g.addEventListener("touchmove",x.moveHandler,h),null==g||g.addEventListener("touchend",x.upHandler,h)):(null==g||g.addEventListener("mousemove",p.moveHandler,h),null==g||g.addEventListener("mouseup",p.upHandler,h)),t.setColumnSizingInfo(e=>({...e,startOffset:u,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:i.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?F():null!=(n=e.initialState.columnSizingInfo)?n:F())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function q(e){var t,n;let i=[...U,...null!=(t=e._features)?t:[]],l={_features:i},r=l._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(l)),{}),s={...null!=(n=e.initialState)?n:{}};
4l._features.forEach(e=>{var t;s=null!=(t=null==e.getInitialState?void 0:e.getInitialState(s))?t:s});let c=[],d=!1,f={_features:i,options:{...r,...e},initialState:s,_queue:e=>{c.push(e),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{l.setState(l.initialState)},setOptions:e=>{var t;t=o(e,l.options),l.options=l.options.mergeOptions?l.options.mergeOptions(r,t):{...r,...t}},getState:()=>l.options.state,setState:e=>{null==l.options.onStateChange||l.options.onStateChange(e)},_getRowId:(e,t,n)=>{var i;return null!=(i=null==l.options.getRowId?void 0:l.options.getRowId(e,t,n))?i:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(l._getCoreRowModel||(l._getCoreRowModel=l.options.getCoreRowModel(l)),l._getCoreRowModel()),getRowModel:()=>l.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?l.getPrePaginationRowModel():l.getRowModel()).rowsById[e];if(!n&&!(n=l.getCoreRowModel().rowsById[e]))throw Error();return n},_getDefaultColumnDef:a(()=>[l.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...l._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},u(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>l.options.columns,getAllColumns:a(()=>[l._getColumnDefs()],e=>{let t=function(e,n,i){return void 0===i&&(i=0),e.map(e=>{let o=function(e,t,n,i){var o,l;let r,s={...e._getDefaultColumnDef(),...t}
4,c=s.accessorKey,d=null!=(o=null!=(l=s.id)?l:c?"function"==typeof String.prototype.replaceAll?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)?o:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?r=s.accessorFn:c&&(r=c.includes(".")?e=>{let t=e;for(let e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[s.accessorKey]),!d)throw Error();let f={id:`${String(d)}`,accessorFn:r,parent:i,depth:n,columnDef:s,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},u(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},u(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(f,e);return f}(l,e,i,n);return o.columns=e.columns?t(e.columns,o,i+1):[],o})};return t(e)},u(e,"debugColumns","getAllColumns")),getAllFlatColumns:a(()=>[l.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),u(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:a(()=>[l.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),u(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:a(()=>[l.getAllColumns(),l._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),u(e,"debugColumns","getAllLeafColumns")),getColumn:e=>l._getAllFlatColumnsById()[e]};Object.assign(l,f);for(let e=0;e<l._features.length;e++){let t=l._features[e];null==t||null==t.createTable||t.createTable(l)}return l}function B(){return e=>a(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},i=function(t,o,l){void 0===o&&(o=0);let r=[];for(let u=0;u<t.length;u++){let s=f(e,e._getRowId(t[u],u,l),t[u],u,o,void 0,null==l?void 0:l.id);if(n.flatRows.push(s),n.rowsById[s.id]=s,r.push(s),e.options.getSubRows){var a;s.originalSubRows=e.options.getSubRows(t[u],u),null!=(a=s.originalSubRows)&&a.length&&(s.subRows=i(s.originalSubRows,o+1,s))}}return r};return n.rows=i(t),n},u(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Q(){return e=>a(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,i)=>{var o,l;let r,a;if(!t.rows.length||!(null!=n&&n.length)&&!i){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let u=[],s=[];(null!=n?n:[]).forEach(t=>{var n;let i=e.getColumn(t.id);if(!i)return;let o=i.getFilterFn();o&&u.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})});let c=(null!=n?n:[]).map(e=>e.id),d=e.getGlobalFilterFn(),g=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());i&&d&&g.length&&(c.push("__global__"),g.forEach(e=>{var t;s.push({id:e.id,filterFn:d,resolvedValue:null!=(t=null==d.resolveFilterValue?void 0:d.resolveFilterValue(i))?t:i})}));for(let e=0;e<t.flatRows.length;e++){let n=t.flatRows[e];if(n.columnFilters={},u.length)for(let e=0;e<u.length;e++){let t=(r=u[e]).id;n.columnFilters[t]=r.filterFn(n,t,r.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(s.length){for(let e=0;e<s.length;e++){let t=(a=s[e]).id;if(a.filterFn(n,t,a.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return o=t.rows,l=e=>{for(let t=0;t<c.length;t++)if(!1===e.columnFilters[c[t]])return!1;return!0},e.options.filterFromLeafRows?function(e,t,n){var i;let o=[],l={},r=null!=(i=n.options.maxLeafRowFilterDepth)?i:100,a=function(e,i){void 0===i&&(i=0);let u=[];for(let c=0;c<e.length;c++){var s;let d=e[c],g=f(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(g.columnFilters=d.columnFilters,null!=(s=d.subRows)&&s.length&&i<r){if(g.subRows=a(d.subRows,i+1),t(d=g)&&!g.subRows.length||t(d)||g.subRows.length){u.push(d),l[d.id]=d,o.push(d);continue}}else t(d=g)&&(u.push(d),l[d.id]=d,o.push(d))}return u};return{rows:a(e),flatRows:o,rowsById:l}}(o,l,e):function(e,t,n){var i;let o=[],l={},r=null!=(i=n.options.maxLeafRowFilterDepth)?i:100,a=function(e,i){void 0===i&&(i=0);let u=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var s;if(null!=(s=d.subRows)&&s.length&&i<r){let e=f(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=a(d.subRows,i+1),d=e}u.push(d),o.push(d),l[d.id]=d}}return u};return{rows:a(e),flatRows:o,rowsById:l}}(o,l,e)},u(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function $(e){return e=>a(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{let i;if(!n.rows.length)return n;let{pageSize:o,pageIndex:l}=t,{rows:r,flatRows:a,rowsById:u}=n,s=o*l;r=r.slice(s,s+o),(i=e.options.paginateExpandedRows?{rows:r,flatRows:a,rowsById:u}:function(e){let t=[],n=e=>{var i;t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:r,flatRows:a,rowsById:u})).flatRows=[];let c=e=>{i.flatRows.push(e),e.subRows.length&&e.subRows.forEach(c)};return i.rows.forEach(c),i},u(e.options,"debugTable","getPaginationRowModel"))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.