PageSourceSearch

https://www.lastseen.org/_next/static/chunks/418-7ed0c57e5e2d6596.js

js lastseen.org collected 2026-10-02 17:05:54 UTC 301,679 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[418],{62771:function(t,n){Object.defineProperty(n,"__esModule",{value:!0});let GraphQLError=class GraphQLError extends Error{constructor(t,n,i,a,s,u,l){super(t),this.name="GraphQLError",this.message=t,s&&(this.path=s),n&&(this.nodes=Array.isArray(n)?n:[n]),i&&(this.source=i),a&&(this.positions=a),u&&(this.originalError=u);var d=l;if(!d&&u){var p=u.extensions;p&&"object"==typeof p&&(d=p)}this.extensions=d||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}};function error(t){return new GraphQLError(`Syntax Error: Unexpected token at ${a} in ${t}`)}function advance(t){if(t.lastIndex=a,t.test(i))return i.slice(a,a=t.lastIndex)}var i,a,s=/ +(?=[^\s])/y;function ignored(){for(var t=0|i.charCodeAt(a++);9===t||10===t||13===t||32===t||35===t||44===t||65279===t;t=0|i.charCodeAt(a++))if(35===t)for(;(t=0|i.charCodeAt(a++))&&10!==t&&13!==t;);a--}function name(){for(var t=a,n=0|i.charCodeAt(a++);n>=48&&n<=57||n>=65&&n<=90||95===n||n>=97&&n<=122;n=0|i.charCodeAt(a++));if(t===a-1)throw error("Name");var s=i.slice(t,--a);return ignored(),s}function nameNode(){return{kind:"Name",value:name()}}var u=/(?:"""|(?:[\s\S]*?[^\\])""")/y,l=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function value(t){var n;switch(i.charCodeAt(a)){case 91:a++,ignored();for(var d=[];93!==i.charCodeAt(a);)d.push(value(t));return a++,ignored(),{kind:"ListValue",values:d};case 123:a++,ignored();for(var p=[];125!==i.charCodeAt(a);){var f=nameNode();if(58!==i.charCodeAt(a++))throw error("ObjectField");ignored(),p.push({kind:"ObjectField",name:f,value:value(t)})}return a++,ignored(),{kind:"ObjectValue",fields:p};case 36:if(t)throw error("Variable");return a++,{kind:"Variable",name:nameNode()};case 34:if(34===i.charCodeAt(a+1)&&34===i.charCodeAt(a+2)){if(a+=3,null==(n=advance(u)))throw error("StringValue");return ignored(),{kind:"StringValue",value:function(t){for(var n=t.split("\n"),i="",a=0,u=0,l=n.length-1,d=0;d<n.length;d++)s.lastIndex=0,s.test(n[d])&&(d&&(!a||s.lastIndex<a)&&(a=s.lastIndex),u=u||d,l=d);for(var p=u;p<=l;p++)p!==u&&(i+="\n"),i+=n[p].slice(a).replace(/\\"""/g,'"""');return i}(n.slice(0,-3)),block:!0}}var h,y=a;a++;var m=!1;for(h=0|i.charCodeAt(a++);92===h&&(a++,m=!0)||10!==h&&13!==h&&34!==h&&h;
1h=0|i.charCodeAt(a++));if(34!==h)throw error("StringValue");return n=i.slice(y,a),ignored(),{kind:"StringValue",value:m?JSON.parse(n):n.slice(1,-1),block:!1};case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var g,v=a++;(g=0|i.charCodeAt(a++))>=48&&g<=57;);var _=i.slice(v,--a);if(46!==(g=i.charCodeAt(a))&&69!==g&&101!==g)return ignored(),{kind:"IntValue",value:_};if(null==(n=advance(l)))throw error("FloatValue");return ignored(),{kind:"FloatValue",value:_+n};case 110:if(117===i.charCodeAt(a+1)&&108===i.charCodeAt(a+2)&&108===i.charCodeAt(a+3))return a+=4,ignored(),{kind:"NullValue"};break;case 116:if(114===i.charCodeAt(a+1)&&117===i.charCodeAt(a+2)&&101===i.charCodeAt(a+3))return a+=4,ignored(),{kind:"BooleanValue",value:!0};break;case 102:if(97===i.charCodeAt(a+1)&&108===i.charCodeAt(a+2)&&115===i.charCodeAt(a+3)&&101===i.charCodeAt(a+4))return a+=5,ignored(),{kind:"BooleanValue",value:!1}}return{kind:"EnumValue",value:name()}}function arguments_(t){if(40===i.charCodeAt(a)){var n=[];a++,ignored();do{var s=nameNode();if(58!==i.charCodeAt(a++))throw error("Argument");ignored(),n.push({kind:"Argument",name:s,value:value(t)})}while(41!==i.charCodeAt(a));return a++,ignored(),n}}function directives(t){if(64===i.charCodeAt(a)){var n=[];do a++,n.push({kind:"Directive",name:nameNode(),arguments:arguments_(t)});while(64===i.charCodeAt(a));return n}}function type(){for(var t=0;91===i.charCodeAt(a);)t++,a++,ignored();var n={kind:"NamedType",name:nameNode()};do if(33===i.charCodeAt(a)&&(a++,ignored(),n={kind:"NonNullType",type:n}),t){if(93!==i.charCodeAt(a++))throw error("NamedType");ignored(),n={kind:"ListType",type:n}}while(t--);return n}function selectionSetStart(){if(123!==i.charCodeAt(a++))throw error("SelectionSet");return ignored(),selectionSet()}function selectionSet(){var t=[];do if(46===i.charCodeAt(a)){if(46!==i.charCodeAt(++a)||46!==i.charCodeAt(++a))throw error("SelectionSet");switch(a++,ignored(),i.charCodeAt(a)){case 64:t.push({kind:"InlineFragment",typeCondition:void 0,directives:directives(!1),selectionSet:selectionSetStart()});break;case 111:110===i.charCodeAt(a+1)?(a+=2,ignored(),t.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:nameNode()},directives:directives(!1),selectionSet:selectionSetStart()})):t.push({kind:"FragmentSpread",name:nameNode(),directives:directives(!1)});break;case 123:a++,ignored(),t.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:selectionSet()});break;default:t.push({kind:"FragmentSpread",name:nameNode(),directives:directives(!1)})}}else{var n=nameNode(),s=void 0;58===i.charCodeAt(a)&&(a++,ignored(),s=n,n=nameNode());var u=arguments_(!1),l=directives(!1),d=void 0;123===i.charCodeAt(a)&&(a++,ignored(),d=selectionSet()),t.push({kind:"Field",alias:s,name:n,arguments:u,directives:l,selectionSet:d})}while(125!==i.charCodeAt(a));return a++,ignored(),{kind:"SelectionSet",selections:t}}function definitions(){var t=[];do{var n=void 0;if(34===i.charCodeAt(a)&&(n=value(!0)),123===i.charCodeAt(a)){if(n)throw error("Document");a++,ignored(),t.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:selectionSet()})}else{var s=name();switch(s){case"fragment":t.push(function(t){var n=nameNode();if(111!==i.charCodeAt(a++)||110!==i.charCodeAt(a++))throw error("FragmentDefinition");ignored();var s={kind:"FragmentDefinition",name:n,typeCondition:{kind:"NamedType",name:nameNode()},directives:directives(!1),selectionSet:selectionSetStart()};return t&&(s.description=t),s}(n));break;case"query":case"mutation":case"subscription":var u,l=void 0;40!==(u=i.charCodeAt(a))&&64!==u&&123!==u&&(l=nameNode());var d={kind:"OperationDefinition",operation:s,name:l,variableDefinitions:function(){if(ignored(),40===i.charCodeAt(a)){var t=[];a++,ignored();do{var n=void 0;if(34===i.charCodeAt(a)&&(n=value(!0)),36!==i.charCodeAt(a++))throw error("Variable");var s=nameNode();if(58!==i.charCodeAt(a++))throw error("VariableDefinition");ignored();var u=type(),l=void 0;61===i.charCodeAt(a)&&(a++,ignored(),l=value(!0)),ignored();var d={kind:"VariableDefinition",variable:{kind:"Variable",name:s},type:u,defaultValue:l,directives:directives(!0)};n&&(d.description=n),t.push(d)}while(41!==i.charCodeAt(a));return a++,ignored(),t}}(),directives:directives(!1),selectionSet:selectionSetStart()};n&&(d.description=n),t.push(d);break;default:throw error("Document")}}}while(a<i.length);return t}var d={};function mapJoin(t,n,i){for(var a="",s=0;s<t.length;s++)s&&(a+=n),a+=i(t[s]);return a}function printString(t){return JSON.stringify(t)}function printBlockString(t){return'"""\n'+t.replace(/"""/g,'\\"""')+'\n"""'}var p="\n",f={OperationDefinition(t){var n="";
1t.description&&(n+=f.StringValue(t.description)+"\n"),n+=t.operation,t.name&&(n+=" "+t.name.value),t.variableDefinitions&&t.variableDefinitions.length&&(t.name||(n+=" "),n+="("+mapJoin(t.variableDefinitions,", ",f.VariableDefinition)+")"),t.directives&&t.directives.length&&(n+=" "+mapJoin(t.directives," ",f.Directive));var i=f.SelectionSet(t.selectionSet);return"query"!==n?n+" "+i:i},VariableDefinition(t){var n="";return t.description&&(n+=f.StringValue(t.description)+" "),n+=f.Variable(t.variable)+": "+_print(t.type),t.defaultValue&&(n+=" = "+_print(t.defaultValue)),t.directives&&t.directives.length&&(n+=" "+mapJoin(t.directives," ",f.Directive)),n},Field(t){var n=t.alias?t.alias.value+": "+t.name.value:t.name.value;if(t.arguments&&t.arguments.length){var i=mapJoin(t.arguments,", ",f.Argument);n.length+i.length+2>80?n+="("+(p+="  ")+mapJoin(t.arguments,p,f.Argument)+(p=p.slice(0,-2))+")":n+="("+i+")"}return t.directives&&t.directives.length&&(n+=" "+mapJoin(t.directives," ",f.Directive)),t.selectionSet&&t.selectionSet.selections.length&&(n+=" "+f.SelectionSet(t.selectionSet)),n},StringValue:t=>t.block?printBlockString(t.value).replace(/\n/g,p):printString(t.value),BooleanValue:t=>""+t.value,NullValue:t=>"null",IntValue:t=>t.value,FloatValue:t=>t.value,EnumValue:t=>t.value,Name:t=>t.value,Variable:t=>"$"+t.name.value,ListValue:t=>"["+mapJoin(t.values,", ",_print)+"]",ObjectValue:t=>"{"+mapJoin(t.fields,", ",f.ObjectField)+"}",ObjectField:t=>t.name.value+": "+_print(t.value),Document:t=>t.definitions&&t.definitions.length?mapJoin(t.definitions,"\n\n",_print):"",SelectionSet:t=>"{"+(p+="  ")+mapJoin(t.selections,p,_print)+(p=p.slice(0,-2))+"}",Argument:t=>t.name.value+": "+_print(t.value),FragmentSpread(t){var n="..."+t.name.value;return t.directives&&t.directives.length&&(n+=" "+mapJoin(t.directives," ",f.Directive)),n},InlineFragment(t){var n="...";return t.typeCondition&&(n+=" on "+t.typeCondition.name.value),t.directives&&t.directives.length&&(n+=" "+mapJoin(t.directives," ",f.Directive)),n+" "+f.SelectionSet(t.selectionSet)},FragmentDefinition(t){var n="";return t.description&&(n+=f.StringValue(t.description)+"\n"),n+="fragment "+t.name.value+" on "+t.typeCondition.name.value,t.directives&&t.directives.length&&(n+=" "+mapJoin(t.directives," ",f.Directive)),n+" "+f.SelectionSet(t.selectionSet)},Directive(t){var n="@"+t.name.value;return t.arguments&&t.arguments.length&&(n+="("+mapJoin(t.arguments,", ",f.Argument)+")"),n},NamedType:t=>t.name.value,ListType:t=>"["+_print(t.type)+"]",NonNullType:t=>_print(t.type)+"!"},_print=t=>f[t.kind](t);function valueFromASTUntyped(t,n){switch(t.kind){case"NullValue":return null;case"IntValue":return parseInt(t.value,10);case"FloatValue":return parseFloat(t.value);case"StringValue":case"EnumValue":case"BooleanValue":return t.value;case"ListValue":for(var i=[],a=0,s=t.values.length;a<s;a++)i.push(valueFromASTUntyped(t.values[a],n));return i;case"ObjectValue":for(var u=Object.create(null),l=0,d=t.fields.length;l<d;l++){var p=t.fields[l];u[p.name.value]=valueFromASTUntyped(p.value,n)}return u;case"Variable":return n&&n[t.name.value]}}n.BREAK=d,n.GraphQLError=GraphQLError,n.Kind={NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType"},n.OperationTypeNode={QUERY:"query",MUTATION:"mutation",SUBSCRIPTION:"subscription"},n.Source=function(t,n,i){return{body:t,name:n,locationOffset:i||{line:1,column:1}}},n.isSelectionNode=function(t){return"Field"===t.kind||"FragmentSpread"===t.kind||"InlineFragment"===t.kind},n.parse=function(t,n){return(i=t.body?t.body:t,a=0,ignored(),n&&n.noLocation)?{kind:"Document",definitions:definitions()}:{kind:"Document",definitions:definitions(),loc:{start:0,end:i.length,startToken:void 0,endToken:void 0,source:{body:i,name:"graphql.web",locationOffset:{line:1,column:1}}}}},n.parseType=function(t,n){return i=t.body?t.body:t,a=0,type()},n.parseValue=function(t,n){return i=t.body?t.body:t,a=0,ignored(),value(!1)},n.print=function(t){return p="\n",f[t.kind]?f[t.kind](t):""},n.printBlockString=printBlockString,n.printString=printString,n.valueFromASTUntyped=valueFromASTUntyped,n.valueFromTypeNode=function valueFromTypeNode(t,n,i){if("Variable"===t.kind)return i?valueFromTypeNode(i[t.name.value],n,i):void 0;if("NonNullType"===n.kind)return"NullValue"!==t.kind?valueFromTypeNode(t,n,i):void 0;if("NullValue"===t.kind)return null;if("ListType"===n.kind){if("ListValue"===t.kind){for(var a=[],s=0,u=t.values.length;s<u;s++){var l=valueFromTypeNode(t.values[s],n.type,i);if(void 0===l)return;a.push(l)}return a}}else if("NamedType"===n.kind)switch(n.name.value){case"Int":case"Float":case"String":case"Bool":return n.name.value+"Value"===t.kind?valueFromASTUntyped(t,i):void 0;default:return valueFromASTUntyped(t,i)}},n.visit=function(t,n){var i=[],a=[];try{var s=function traverse(t,s,u){var l,p=!1,f=n[t.kind]&&n[t.kind].enter||n[t.kind]||n.enter,h=f&&f.call(n,t,s,u,a,i);if(!1===h)return t;if(null===h)return null;if(h===d)throw d;h&&"string"==typeof h.kind&&(p=h!==t,t=h),u&&i.push(u);var y={...t};for(var m in t){a.push(m);var g=t[m];
1if(Array.isArray(g)){for(var v=[],_=0;_<g.length;_++)null!=g[_]&&"string"==typeof g[_].kind&&((i.push(t),a.push(_),l=traverse(g[_],_,g),a.pop(),i.pop(),null==l)?p=!0:(p=p||l!==g[_],v.push(l)));g=v}else null!=g&&"string"==typeof g.kind&&void 0!==(l=traverse(g,m,t))&&(p=p||g!==l,g=l);a.pop(),p&&(y[m]=g)}u&&i.pop();var w=n[t.kind]&&n[t.kind].leave||n.leave,E=w&&w.call(n,t,s,u,a,i);if(E===d)throw d;return void 0!==E?E:void 0!==h?p?y:h:p?y:t}(t);return void 0!==s&&!1!==s?s:t}catch(n){if(n!==d)throw n;return t}}},14692:function(t,n,i){"use strict";var a,s,u,l,d,p,f,h,y,m,g,v,_,w,E,T,k,x,O,I,R,C,A,j,L,B,z,U,q,D,F,M,N,V,G,H,W,Y,$,J,K,Q,X,Z,ee,et,er,en,eo,__assign=function(){return(__assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},__rest=function(t,n){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>n.indexOf(a)&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)0>n.indexOf(a[s])&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(i[a[s]]=t[a[s]]);return i};function isRel(t){return"object"==typeof t&&!!t&&"id"in t&&"type"in t}function isRelArray(t){return Array.isArray(t)&&t.every(isRel)}function serializeRequestBody(t,n){if("object"!=typeof t||!t)throw Error("Invalid body!");var i=t.id,a=t.type,s=t.meta,u=__rest(t,["id","type","meta"]),l={},d={};return"*"===n.attributes?Object.entries(u).forEach(function(t){var i=t[0],a=t[1];if(n.relationships.includes(i)){if(isRel(a)){var s=a.id,u=a.type;d[i]={data:{id:s,type:u}}}else isRelArray(a)?d[i]={data:a.map(function(t){return{id:t.id,type:t.type}})}:d[i]={data:null}}else l[i]=a}):"*"===n.relationships?Object.entries(u).forEach(function(t){var i=t[0],a=t[1];if(n.attributes.includes(i))l[i]=a;else if(isRel(a)){var s=a.id,u=a.type;d[i]={data:{id:s,type:u}}}else isRelArray(a)?d[i]={data:a.map(function(t){return{id:t.id,type:t.type}})}:d[i]={data:null}}):Object.entries(u).forEach(function(t){var i=t[0],a=t[1];if(n.attributes.includes(i))l[i]=a;else if(n.relationships.includes(i)){if(isRel(a)){var s=a.id,u=a.type;d[i]={data:{id:s,type:u}}}else isRelArray(a)?d[i]={data:a.map(function(t){return{id:t.id,type:t.type}})}:d[i]={data:null}}}),{data:__assign(__assign(__assign(__assign(__assign({},i||n.id?{id:i||n.id}:{}),{type:a||n.type}),Object.keys(l).length>0?{attributes:l}:{}),Object.keys(d).length>0?{relationships:d}:{}),s?{meta:s}:{})}}var deserialize_assign=function(){return(deserialize_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)};function deserializeJsonEntity(t){var n=t.id,i=t.type,a=t.attributes,s=t.relationships,u=t.meta;return deserialize_assign(deserialize_assign(deserialize_assign(deserialize_assign(deserialize_assign({},n?{id:n}:{}),i?{type:i}:{}),a||{}),s?Object.fromEntries(Object.entries(s).map(function(t){var n=t[0],i=t[1];return[n,null==i?void 0:i.data]})):{}),u?{meta:u}:{})}function deserializeResponseBody(t){if(!("object"==typeof t&&t&&"data"in t))throw Error("Invalid body!");return Array.isArray(t.data)?t.data.map(deserializeJsonEntity):deserializeJsonEntity(t.data)}function toId(t){return"string"==typeof t?t:t.id}var esm_BaseResource=function(t){this.client=t},ei=(a=function(t,n){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ea=function(t){function Role(){return null!==t&&t.apply(this,arguments)||this}return ei(Role,t),Role.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then(function(t){return deserializeResponseBody(t)})},Role.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/roles",body:t})},Role.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then(function(t){return deserializeResponseBody(t)})},Role.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/roles/".concat(t),body:n})},Role.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},Role.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},Role.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Role.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/roles/".concat(t)})},Role.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Role.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/roles/".concat(t)})},Role.TYPE="role",Role}
1(esm_BaseResource),es=(s=function(t,n){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),Role_assign=function(){return(Role_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},__generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},__spreadArray=function(t,n,i){if(i||2==arguments.length)for(var a,s=0,u=n.length;s<u;s++)!a&&s in n||(a||(a=Array.prototype.slice.call(n,0,s)),a[s]=n[s]);return t.concat(a||Array.prototype.slice.call(n))};function sameValue(t,n){return null==t&&null==n||t===n}function applyChanges(t,n,i,a){if(!n)return t;var s=n.add,u=n.remove;return __spreadArray(__spreadArray([],u?u.reduce(function(t,n){var s=Role_assign(Role_assign({},n),{environment:i}),u=t.find(function(t){return function(t,n){for(var i in t)if(!sameValue(t[i],n[i]))return!1;for(var i in n)if(!sameValue(t[i],n[i]))return!1;return!0}(t,s)});if(!u)throw Error("Cannot find rule ".concat(JSON.stringify(s)," to remove in ").concat(a,"!"));return t.filter(function(t){return t!==u})},t):t,!0),s?s.map(function(t){return Role_assign({environment:i},t)}):[],!0)}var eu=function(t){function RoleResource(){return null!==t&&t.apply(this,arguments)||this}return es(RoleResource,t),RoleResource.prototype.updateCurrentEnvironmentPermissions=function(t,n){var i,a,s,u;return i=this,a=void 0,s=void 0,u=function(){var i,a,s,u,l,d;return __generator(this,function(p){switch(p.label){case 0:if(a=this.client.config.environment)return[3,2];return[4,this.client.environments.list()];case 1:a=p.sent().find(function(t){return t.meta.primary}).id,p.label=2;case 2:return i=a,[4,this.find(t)];case 3:return s=p.sent(),u=!!(n.positive_item_type_permissions||n.negative_item_type_permissions),l=!!(n.positive_upload_permissions||n.negative_upload_permissions),d=Role_assign(Role_assign({},u?{positive_item_type_permissions:applyChanges(s.positive_item_type_permissions,n.positive_item_type_permissions,i,"positive_item_type_permissions"),negative_item_type_permissions:applyChanges(s.negative_item_type_permissions,n.negative_item_type_permissions,i,"negative_item_type_permissions")}:{}),l?{positive_upload_permissions:applyChanges(s.positive_upload_permissions,n.positive_upload_permissions,i,"positive_upload_permissions"),negative_upload_permissions:applyChanges(s.negative_upload_permissions,n.negative_upload_permissions,i,"negative_upload_permissions")}:{}),[2,this.update(t,d)]}})},new(s||(s=Promise))(function(t,n){function fulfilled(t){try{step(u.next(t))}catch(t){n(t)}}function rejected(t){try{step(u.throw(t))}catch(t){n(t)}}function step(n){var i;n.done?t(n.value):((i=n.value)instanceof s?i:new s(function(t){t(i)})).then(fulfilled,rejected)}step((u=u.apply(i,a||[])).next())})},RoleResource}(ea),el=(u=function(t,n){return(u=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}u(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ec=function(t){function User(){return null!==t&&t.apply(this,arguments)||this}return el(User,t),User.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"user",attributes:["is_active"],relationships:["role"]})).then(function(t){return deserializeResponseBody(t)})},User.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/users/".concat(t),body:n})},User.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},User.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},User.prototype.find=function(t,n){return this.rawFind(toId(t),n).then(function(t){return deserializeResponseBody(t)})},User.prototype.rawFind=function(t,n){return this.client.request({method:"GET",url:"/users/".concat(t),queryParams:n})},User.prototype.findMe=function(t){return this.rawFindMe(t).then(function(t){return deserializeResponseBody(t)})},User.prototype.rawFindMe=function(t){return this.client.request({method:"GET",url:"/users/me",queryParams:t})},User.prototype.destroy=function(t,n){return this.rawDestroy(toId(t),n).then(function(t){return deserializeResponseBody(t)})},User.prototype.rawDestroy=function(t,n){return this.client.request({method:"DELETE",url:"/users/".concat(t),queryParams:n})},User.TYPE="user",User}(esm_BaseResource),ed=(l=function(t,n){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}l(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ep=function(t){function SsoUser(){return null!==t&&t.apply(this,arguments)||this}return ed(SsoUser,t),SsoUser.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},SsoUser.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},SsoUser.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},SsoUser.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/sso-users/".concat(t)})},SsoUser.prototype.copyUsers=function(){return this.rawCopyUsers().then(function(t){return deserializeResponseBody(t)})},SsoUser.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},SsoUser.prototype.destroy=function(t,n){return this.rawDestroy(toId(t),n).then(function(t){return deserializeResponseBody(t)})},SsoUser.prototype.rawDestroy=function(t,n){return this.client.request({method:"DELETE",url:"/sso-users/".concat(t),queryParams:n})},SsoUser.TYPE="sso_user",SsoUser}(esm_BaseResource),ef=(d=function(t,n){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eh=function(t){function AuditLogEvent(){return null!==t&&t.apply(this,arguments)||this}return ef(AuditLogEvent,t),AuditLogEvent.prototype.query=function(t){return this.rawQuery(serializeRequestBody(t,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},AuditLogEvent.prototype.rawQuery=function(t){return this.client.request({method:"POST",url:"/audit-log-events/query",body:t})},AuditLogEvent.TYPE="audit_log_event",AuditLogEvent}
1(esm_BaseResource),ey=(p=function(t,n){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}p(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),em=function(t){function MenuItem(){return null!==t&&t.apply(this,arguments)||this}return ey(MenuItem,t),MenuItem.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(function(t){return deserializeResponseBody(t)})},MenuItem.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/menu-items",body:t})},MenuItem.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(function(t){return deserializeResponseBody(t)})},MenuItem.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/menu-items/".concat(t),body:n})},MenuItem.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},MenuItem.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/menu-items",queryParams:t})},MenuItem.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},MenuItem.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/menu-items/".concat(t)})},MenuItem.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},MenuItem.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/menu-items/".concat(t)})},MenuItem.TYPE="menu_item",MenuItem}(esm_BaseResource),eg=(f=function(t,n){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eb=function(t){function ItemType(){return null!==t&&t.apply(this,arguments)||this}return eg(ItemType,t),ItemType.prototype.create=function(t,n){return this.rawCreate(serializeRequestBody(t,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]}),n).then(function(t){return deserializeResponseBody(t)})},ItemType.prototype.rawCreate=function(t,n){return this.client.request({method:"POST",url:"/item-types",body:t,queryParams:n})},ItemType.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]})).then(function(t){return deserializeResponseBody(t)})},ItemType.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/item-types/".concat(t),body:n})},ItemType.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},ItemType.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},ItemType.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},ItemType.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/item-types/".concat(t)})},ItemType.prototype.duplicate=function(t){return this.rawDuplicate(toId(t)).then(function(t){return deserializeResponseBody(t)})},ItemType.prototype.rawDuplicate=function(t){return this.client.request({method:"POST",url:"/item-types/".concat(t,"/duplicate")})},ItemType.prototype.destroy=function(t,n){return this.rawDestroy(toId(t),n).then(function(t){return deserializeResponseBody(t)})},ItemType.prototype.rawDestroy=function(t,n){return this.client.request({method:"DELETE",url:"/item-types/".concat(t),queryParams:n})},ItemType.TYPE="item_type",ItemType}
1(esm_BaseResource),ev=(h=function(t,n){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}h(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),e_=function(t){function Field(){return null!==t&&t.apply(this,arguments)||this}return ev(Field,t),Field.prototype.create=function(t,n){return this.rawCreate(toId(t),serializeRequestBody(n,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value"],relationships:["fieldset"]})).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawCreate=function(t,n){return this.client.request({method:"POST",url:"/item-types/".concat(t,"/fields"),body:n})},Field.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint"],relationships:["fieldset"]})).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/fields/".concat(t),body:n})},Field.prototype.list=function(t){return this.rawList(toId(t)).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/item-types/".concat(t,"/fields")})},Field.prototype.referencing=function(t){return this.rawReferencing(toId(t)).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawReferencing=function(t){return this.client.request({method:"GET",url:"/item-types/".concat(t,"/fields/referencing")})},Field.prototype.related=function(t){return this.rawRelated(toId(t)).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawRelated=function(t){return this.client.request({method:"GET",url:"/item-types/".concat(t,"/fields/related")})},Field.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/fields/".concat(t)})},Field.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/fields/".concat(t)})},Field.prototype.duplicate=function(t){return this.rawDuplicate(toId(t)).then(function(t){return deserializeResponseBody(t)})},Field.prototype.rawDuplicate=function(t){return this.client.request({method:"POST",url:"/fields/".concat(t,"/duplicate")})},Field.TYPE="field",Field}(esm_BaseResource),ew=(y=function(t,n){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}y(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eE=function(t){function Fieldset(){return null!==t&&t.apply(this,arguments)||this}return ew(Fieldset,t),Fieldset.prototype.create=function(t,n){return this.rawCreate(toId(t),serializeRequestBody(n,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Fieldset.prototype.rawCreate=function(t,n){return this.client.request({method:"POST",url:"/item-types/".concat(t,"/fieldsets"),body:n})},Fieldset.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Fieldset.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/fieldsets/".concat(t),body:n})},Fieldset.prototype.list=function(t){return this.rawList(toId(t)).then(function(t){return deserializeResponseBody(t)})},Fieldset.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/item-types/".concat(t,"/fieldsets")})},Fieldset.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Fieldset.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/fieldsets/".concat(t)})},Fieldset.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Fieldset.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(t)})},Fieldset.TYPE="fieldset",Fieldset}(esm_BaseResource),eS=(m=function(t,n){return(m=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}m(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eT=function(t){function Session(){return null!==t&&t.apply(this,arguments)||this}return eS(Session,t),Session.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Session.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/sessions",body:t})},Session.TYPE="session",Session}(esm_BaseResource),ek=(g=function(t,n){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}g(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eP=function(t){function AccessToken(){return null!==t&&t.apply(this,arguments)||this}return ek(AccessToken,t),AccessToken.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(function(t){return deserializeResponseBody(t)})},AccessToken.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/access_tokens",body:t})},AccessToken.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(function(t){return deserializeResponseBody(t)})},AccessToken.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/access_tokens/".concat(t),body:n})},AccessToken.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},AccessToken.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},AccessToken.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},AccessToken.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/access_tokens/".concat(t)})},AccessToken.prototype.regenerateToken=function(t){return this.rawRegenerateToken(toId(t)).then(function(t){return deserializeResponseBody(t)})},AccessToken.prototype.rawRegenerateToken=function(t){return this.client.request({method:"POST",url:"/access_tokens/".concat(t,"/regenerate_token")})},AccessToken.prototype.destroy=function(t,n){return this.rawDestroy(toId(t),n).then(function(t){return deserializeResponseBody(t)})},AccessToken.prototype.rawDestroy=function(t,n){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(t),queryParams:n})},AccessToken.TYPE="access_token",AccessToken}(esm_BaseResource),ex=(v=function(t,n){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}v(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eO=function(t){function Plugin(){return null!==t&&t.apply(this,arguments)||this}return ex(Plugin,t),Plugin.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Plugin.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/plugins",body:t})},Plugin.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Plugin.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/plugins/".concat(t),body:n})},Plugin.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},Plugin.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},Plugin.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Plugin.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/plugins/".concat(t)})},Plugin.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Plugin.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/plugins/".concat(t)})},Plugin.prototype.fields=function(t){return this.rawFields(toId(t)).then(function(t){return deserializeResponseBody(t)})},Plugin.prototype.rawFields=function(t){return this.client.request({method:"GET",url:"/plugins/".concat(t,"/fields")})},Plugin.TYPE="plugin",Plugin}(esm_BaseResource),eI=(_=function(t,n){return(_=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}_(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eR=function(t){function JobResult(){return null!==t&&t.apply(this,arguments)||this}return eI(JobResult,t),JobResult.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},JobResult.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/job-results/".concat(t)})},JobResult.TYPE="job_result",JobResult}(esm_BaseResource),eC=(w=function(t,n){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}w(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eA=function(t){function SubscriptionLimit(){return null!==t&&t.apply(this,arguments)||this}return eC(SubscriptionLimit,t),SubscriptionLimit.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},SubscriptionLimit.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},SubscriptionLimit.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},SubscriptionLimit.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/subscription-limits/".concat(t)})},SubscriptionLimit.TYPE="subscription_limit",SubscriptionLimit}(esm_BaseResource),ej=(E=function(t,n){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}E(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eL=function(t){function SubscriptionFeature(){return null!==t&&t.apply(this,arguments)||this}return ej(SubscriptionFeature,t),SubscriptionFeature.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},SubscriptionFeature.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},SubscriptionFeature.TYPE="subscription_feature",SubscriptionFeature}(esm_BaseResource),eB=(T=function(t,n){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}T(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ez=function(t){function BuildEvent(){return null!==t&&t.apply(this,arguments)||this}return eB(BuildEvent,t),BuildEvent.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},BuildEvent.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},BuildEvent.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},BuildEvent.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/build-events/".concat(t)})},BuildEvent.TYPE="build_event",BuildEvent}(esm_BaseResource),eU=i(68589),rawPageIterator_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},__await=function(t){return this instanceof __await?(this.v=t,this):new __await(t)},__asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof __await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}};function rawPageIterator(t,n,i){return __asyncGenerator(this,arguments,function(){var a,s,u,l,d,p,f,h,y,m,g,v,_;return rawPageIterator_generator(this,function(w){switch(w.label){case 0:if((a=(null==i?void 0:i.perPage)||t.defaultLimit)>t.maxLimit)throw Error("perPage option cannot exceed maximum value of ".concat(t.maxLimit));if((s=(null==i?void 0:i.concurrency)||1)>10)throw Error("concurrency option cannot exceed maximum value of 10");return[4,__await(n({limit:a,offset:0}))];case 1:u=w.sent(),l=0,d=u.data,w.label=2;case 2:if(!(l<d.length))return[3,6];return[4,__await(d[l])];case 3:return[4,w.sent()];case 4:w.sent(),w.label=5;case 5:return l++,[3,2];case 6:for(p=u.meta.total_count,f=new eU.Scheduler(s),h=[],y=function(t){h.push(f.enqueue(function(){return n({limit:a,offset:t})}))},m=a;m<p;m+=a)y(m);w.label=7;case 7:if(!(h.length>0))return[3,14];return[4,__await(h.shift())];case 8:g=w.sent(),v=0,_=g.data,w.label=9;case 9:if(!(v<_.length))return[3,13];return[4,__await(_[v])];case 10:return[4,w.sent()];case 11:w.sent(),w.label=12;case 12:return v++,[3,9];case 13:return[3,7];case 14:return[2]}})})}
1var eq=(k=function(t,n){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}k(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),Item_assign=function(){return(Item_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},Item_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},__asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},Item_await=function(t){return this instanceof Item_await?(this.v=t,this):new Item_await(t)},Item_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof Item_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},eD=function(t){function Item(){return null!==t&&t.apply(this,arguments)||this}return eq(Item,t),Item.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/items",queryParams:t})},Item.prototype.listPagedIterator=function(t,n){return Item_asyncGenerator(this,arguments,function(){var i,a,s,u;return Item_generator(this,function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),i=__asyncValues(this.rawListPagedIterator(t,n)),l.label=1;case 1:return[4,Item_await(i.next())];case 2:if((a=l.sent()).done)return[3,6];return[4,Item_await(deserializeJsonEntity(a.value))];case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return s={error:l.sent()},[3,13];case 8:if(l.trys.push([8,,11,12]),!(a&&!a.done&&(u=i.return)))return[3,10];return[4,Item_await(u.call(i))];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}})})},Item.prototype.rawListPagedIterator=function(t,n){var i=this;return rawPageIterator({defaultLimit:30,maxLimit:500},function(n){return i.rawList(Item_assign(Item_assign({},t),{page:n}))},n)},Item.prototype.validateExisting=function(t,n){return this.rawValidateExisting(toId(t),serializeRequestBody(n,{id:toId(t),type:"item",attributes:"*",relationships:["item_type","creator"]}))},Item.prototype.rawValidateExisting=function(t,n){return this.client.request({method:"POST",url:"/items/".concat(t,"/validate"),body:n})},Item.prototype.validateNew=function(t){return this.rawValidateNew(serializeRequestBody(t,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},Item.prototype.rawValidateNew=function(t){return this.client.request({method:"POST",url:"/items/validate",body:t})},Item.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/items",body:t})},Item.prototype.duplicate=function(t){return this.rawDuplicate(toId(t)).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawDuplicate=function(t){return this.client.request({method:"POST",url:"/items/".concat(t,"/duplicate")})},Item.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/items/".concat(t),body:n})},Item.prototype.references=function(t,n){return this.rawReferences(toId(t),n).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawReferences=function(t,n){return this.client.request({method:"GET",url:"/items/".concat(t,"/references"),queryParams:n})},Item.prototype.find=function(t,n){return this.rawFind(toId(t),n).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawFind=function(t,n){return this.client.request({method:"GET",url:"/items/".concat(t),queryParams:n})},Item.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/items/".concat(t)})},Item.prototype.batchDestroy=function(t){return this.rawBatchDestroy(t).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBatchDestroy=function(t){return this.client.request({method:"DELETE",url:"/items",queryParams:t})},Item.prototype.batchPublish=function(t){return this.rawBatchPublish(t).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBatchPublish=function(t){return this.client.request({method:"PUT",url:"/items/publish",queryParams:t})},Item.prototype.batchUnpublish=function(t){return this.rawBatchUnpublish(t).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBatchUnpublish=function(t){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:t})},Item.prototype.publish=function(t,n){return this.rawPublish(toId(t),n).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawPublish=function(t,n){return this.client.request({method:"PUT",url:"/items/".concat(t,"/publish"),queryParams:n})},Item.prototype.unpublish=function(t,n){return this.rawUnpublish(toId(t),n).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawUnpublish=function(t,n){return this.client.request({method:"PUT",url:"/items/".concat(t,"/unpublish"),queryParams:n})},Item.prototype.bulkPublish=function(t){return this.rawBulkPublish(serializeRequestBody(t,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBulkPublish=function(t){return this.client.request({method:"POST",url:"/items/bulk/publish",body:t})},Item.prototype.bulkUnpublish=function(t){return this.rawBulkUnpublish(serializeRequestBody(t,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBulkUnpublish=function(t){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:t})},Item.prototype.bulkDestroy=function(t){return this.rawBulkDestroy(serializeRequestBody(t,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBulkDestroy=function(t){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:t})},Item.prototype.bulkMoveToStage=function(t){return this.rawBulkMoveToStage(serializeRequestBody(t,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(function(t){return deserializeResponseBody(t)})},Item.prototype.rawBulkMoveToStage=function(t){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:t})},Item.TYPE="item",Item}
1(esm_BaseResource),eF=(x=function(t,n){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}x(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ItemVersion_assign=function(){return(ItemVersion_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},ItemVersion_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},ItemVersion_asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},ItemVersion_await=function(t){return this instanceof ItemVersion_await?(this.v=t,this):new ItemVersion_await(t)},ItemVersion_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof ItemVersion_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},eM=function(t){function ItemVersion(){return null!==t&&t.apply(this,arguments)||this}return eF(ItemVersion,t),ItemVersion.prototype.restore=function(t){return this.rawRestore(toId(t)).then(function(t){return deserializeResponseBody(t)})},ItemVersion.prototype.rawRestore=function(t){return this.client.request({method:"POST",url:"/versions/".concat(t,"/restore")})},ItemVersion.prototype.list=function(t,n){return this.rawList(toId(t),n).then(function(t){return deserializeResponseBody(t)})},ItemVersion.prototype.rawList=function(t,n){return this.client.request({method:"GET",url:"/items/".concat(t,"/versions"),queryParams:n})},ItemVersion.prototype.listPagedIterator=function(t,n,i){return ItemVersion_asyncGenerator(this,arguments,function(){var a,s,u,l;return ItemVersion_generator(this,function(d){switch(d.label){case 0:d.trys.push([0,7,8,13]),a=ItemVersion_asyncValues(this.rawListPagedIterator(toId(t),n,i)),d.label=1;case 1:return[4,ItemVersion_await(a.next())];case 2:if((s=d.sent()).done)return[3,6];return[4,ItemVersion_await(deserializeJsonEntity(s.value))];case 3:return[4,d.sent()];case 4:d.sent(),d.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return u={error:d.sent()},[3,13];case 8:if(d.trys.push([8,,11,12]),!(s&&!s.done&&(l=a.return)))return[3,10];return[4,ItemVersion_await(l.call(a))];case 9:d.sent(),d.label=10;case 10:return[3,12];case 11:if(u)throw u.error;return[7];
1case 12:return[7];case 13:return[2]}})})},ItemVersion.prototype.rawListPagedIterator=function(t,n,i){var a=this;return rawPageIterator({defaultLimit:15,maxLimit:50},function(i){return a.rawList(t,ItemVersion_assign(ItemVersion_assign({},n),{page:i}))},i)},ItemVersion.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},ItemVersion.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/versions/".concat(t)})},ItemVersion.TYPE="item_version",ItemVersion}(esm_BaseResource),eN=(O=function(t,n){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}O(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),Upload_assign=function(){return(Upload_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},Upload_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},Upload_asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},Upload_await=function(t){return this instanceof Upload_await?(this.v=t,this):new Upload_await(t)},Upload_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof Upload_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},eV=function(t){function Upload(){return null!==t&&t.apply(this,arguments)||this}return eN(Upload,t),Upload.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/uploads",body:t})},Upload.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/uploads",queryParams:t})},Upload.prototype.listPagedIterator=function(t,n){return Upload_asyncGenerator(this,arguments,function(){var i,a,s,u;return Upload_generator(this,function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),i=Upload_asyncValues(this.rawListPagedIterator(t,n)),l.label=1;case 1:return[4,Upload_await(i.next())];case 2:if((a=l.sent()).done)return[3,6];return[4,Upload_await(deserializeJsonEntity(a.value))];case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return s={error:l.sent()},[3,13];case 8:if(l.trys.push([8,,11,12]),!(a&&!a.done&&(u=i.return)))return[3,10];return[4,Upload_await(u.call(i))];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];
1case 12:return[7];case 13:return[2]}})})},Upload.prototype.rawListPagedIterator=function(t,n){var i=this;return rawPageIterator({defaultLimit:30,maxLimit:500},function(n){return i.rawList(Upload_assign(Upload_assign({},t),{page:n}))},n)},Upload.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/uploads/".concat(t)})},Upload.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/uploads/".concat(t)})},Upload.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator"]})).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/uploads/".concat(t),body:n})},Upload.prototype.batchAddTags=function(t,n){return this.rawBatchAddTags(serializeRequestBody(t,{type:"upload",attributes:["tags"],relationships:[]}),n).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawBatchAddTags=function(t,n){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:t,queryParams:n})},Upload.prototype.batchDestroy=function(t){return this.rawBatchDestroy(t).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawBatchDestroy=function(t){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:t})},Upload.prototype.references=function(t,n){return this.rawReferences(toId(t),n).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawReferences=function(t,n){return this.client.request({method:"GET",url:"/uploads/".concat(t,"/references"),queryParams:n})},Upload.prototype.bulkTag=function(t){return this.rawBulkTag(serializeRequestBody(t,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawBulkTag=function(t){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:t})},Upload.prototype.bulkDestroy=function(t){return this.rawBulkDestroy(serializeRequestBody(t,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(function(t){return deserializeResponseBody(t)})},Upload.prototype.rawBulkDestroy=function(t){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:t})},Upload.TYPE="upload",Upload}(esm_BaseResource),eG=(I=function(t,n){return(I=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}I(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eH=function(t){function UploadRequest(){return null!==t&&t.apply(this,arguments)||this}return eG(UploadRequest,t),UploadRequest.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"upload_request",attributes:["filename"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},UploadRequest.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/upload-requests",body:t})},UploadRequest.TYPE="upload_request",UploadRequest}(esm_BaseResource),eW=(R=function(t,n){return(R=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}R(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eY=function(t){function ScheduledPublication(){return null!==t&&t.apply(this,arguments)||this}return eW(ScheduledPublication,t),ScheduledPublication.prototype.create=function(t,n){return this.rawCreate(toId(t),serializeRequestBody(n,{type:"scheduled_publication",attributes:["publication_scheduled_at"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},ScheduledPublication.prototype.rawCreate=function(t,n){return this.client.request({method:"POST",url:"/items/".concat(t,"/scheduled-publication"),body:n})},ScheduledPublication.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},ScheduledPublication.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/items/".concat(t,"/scheduled-publication")})},ScheduledPublication.TYPE="scheduled_publication",ScheduledPublication}
1(esm_BaseResource),e$=(C=function(t,n){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}C(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eJ=function(t){function ScheduledUnpublishing(){return null!==t&&t.apply(this,arguments)||this}return e$(ScheduledUnpublishing,t),ScheduledUnpublishing.prototype.create=function(t,n){return this.rawCreate(toId(t),serializeRequestBody(n,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},ScheduledUnpublishing.prototype.rawCreate=function(t,n){return this.client.request({method:"POST",url:"/items/".concat(t,"/scheduled-unpublishing"),body:n})},ScheduledUnpublishing.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},ScheduledUnpublishing.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/items/".concat(t,"/scheduled-unpublishing")})},ScheduledUnpublishing.TYPE="scheduled_unpublishing",ScheduledUnpublishing}(esm_BaseResource),eK=(A=function(t,n){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}A(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),SearchResult_assign=function(){return(SearchResult_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},SearchResult_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},SearchResult_asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},SearchResult_await=function(t){return this instanceof SearchResult_await?(this.v=t,this):new SearchResult_await(t)},SearchResult_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof SearchResult_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},eQ=function(t){function SearchResult(){return null!==t&&t.apply(this,arguments)||this}return eK(SearchResult,t),SearchResult.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},SearchResult.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/search-results",queryParams:t})},SearchResult.prototype.listPagedIterator=function(t,n){return SearchResult_asyncGenerator(this,arguments,function(){var i,a,s,u;return SearchResult_generator(this,function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),i=SearchResult_asyncValues(this.rawListPagedIterator(t,n)),l.label=1;case 1:return[4,SearchResult_await(i.next())];case 2:if((a=l.sent()).done)return[3,6];return[4,SearchResult_await(deserializeJsonEntity(a.value))];case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return s={error:l.sent()},[3,13];case 8:if(l.trys.push([8,,11,12]),!(a&&!a.done&&(u=i.return)))return[3,10];return[4,SearchResult_await(u.call(i))];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];
1case 12:return[7];case 13:return[2]}})})},SearchResult.prototype.rawListPagedIterator=function(t,n){var i=this;return rawPageIterator({defaultLimit:20,maxLimit:100},function(n){return i.rawList(SearchResult_assign(SearchResult_assign({},t),{page:n}))},n)},SearchResult.TYPE="search_result",SearchResult}(esm_BaseResource),eX=(j=function(t,n){return(j=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}j(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),eZ=function(t){function Environment(){return null!==t&&t.apply(this,arguments)||this}return eX(Environment,t),Environment.prototype.fork=function(t,n,i){return this.rawFork(toId(t),serializeRequestBody(n,{id:toId(t),type:"environment",attributes:[],relationships:[]}),i).then(function(t){return deserializeResponseBody(t)})},Environment.prototype.rawFork=function(t,n,i){return this.client.request({method:"POST",url:"/environments/".concat(t,"/fork"),body:n,queryParams:i})},Environment.prototype.promote=function(t){return this.rawPromote(toId(t)).then(function(t){return deserializeResponseBody(t)})},Environment.prototype.rawPromote=function(t){return this.client.request({method:"PUT",url:"/environments/".concat(t,"/promote")})},Environment.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},Environment.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},Environment.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Environment.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/environments/".concat(t)})},Environment.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Environment.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/environments/".concat(t)})},Environment.TYPE="environment",Environment}(esm_BaseResource),e0=(L=function(t,n){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}L(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),e1=function(t){function MaintenanceMode(){return null!==t&&t.apply(this,arguments)||this}return e0(MaintenanceMode,t),MaintenanceMode.prototype.find=function(){return this.rawFind().then(function(t){return deserializeResponseBody(t)})},MaintenanceMode.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},MaintenanceMode.prototype.activate=function(t){return this.rawActivate(t).then(function(t){return deserializeResponseBody(t)})},MaintenanceMode.prototype.rawActivate=function(t){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:t})},MaintenanceMode.prototype.deactivate=function(){return this.rawDeactivate().then(function(t){return deserializeResponseBody(t)})},MaintenanceMode.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},MaintenanceMode.TYPE="maintenance_mode",MaintenanceMode}(esm_BaseResource),e2=(B=function(t,n){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}B(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),e3=function(t){function Webhook(){return null!==t&&t.apply(this,arguments)||this}return e2(Webhook,t),Webhook.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Webhook.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/webhooks",body:t})},Webhook.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Webhook.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/webhooks/".concat(t),body:n})},Webhook.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},Webhook.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},Webhook.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Webhook.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/webhooks/".concat(t)})},Webhook.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},Webhook.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/webhooks/".concat(t)})},Webhook.TYPE="webhook",Webhook}(esm_BaseResource),e5=(z=function(t,n){return(z=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}z(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),WebhookCall_assign=function(){return(WebhookCall_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},WebhookCall_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},WebhookCall_asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},WebhookCall_await=function(t){return this instanceof WebhookCall_await?(this.v=t,this):new WebhookCall_await(t)},WebhookCall_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof WebhookCall_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},e6=function(t){function WebhookCall(){return null!==t&&t.apply(this,arguments)||this}return e5(WebhookCall,t),WebhookCall.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},WebhookCall.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:t})},WebhookCall.prototype.listPagedIterator=function(t,n){return WebhookCall_asyncGenerator(this,arguments,function(){var i,a,s,u;return WebhookCall_generator(this,function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),i=WebhookCall_asyncValues(this.rawListPagedIterator(t,n)),l.label=1;case 1:return[4,WebhookCall_await(i.next())];case 2:if((a=l.sent()).done)return[3,6];return[4,WebhookCall_await(deserializeJsonEntity(a.value))];case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return s={error:l.sent()},[3,13];case 8:if(l.trys.push([8,,11,12]),!(a&&!a.done&&(u=i.return)))return[3,10];return[4,WebhookCall_await(u.call(i))];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];
1case 12:return[7];case 13:return[2]}})})},WebhookCall.prototype.rawListPagedIterator=function(t,n){var i=this;return rawPageIterator({defaultLimit:30,maxLimit:500},function(n){return i.rawList(WebhookCall_assign(WebhookCall_assign({},t),{page:n}))},n)},WebhookCall.prototype.resendWebhook=function(t){return this.rawResendWebhook(toId(t))},WebhookCall.prototype.rawResendWebhook=function(t){return this.client.request({method:"POST",url:"/webhook_calls/".concat(t,"/resend_webhook")})},WebhookCall.TYPE="webhook_call",WebhookCall}(esm_BaseResource),e4=(U=function(t,n){return(U=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}U(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),e8=function(t){function BuildTrigger(){return null!==t&&t.apply(this,arguments)||this}return e4(BuildTrigger,t),BuildTrigger.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},BuildTrigger.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},BuildTrigger.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},BuildTrigger.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/build-triggers/".concat(t)})},BuildTrigger.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},BuildTrigger.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/build-triggers",body:t})},BuildTrigger.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},BuildTrigger.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/build-triggers/".concat(t),body:n})},BuildTrigger.prototype.trigger=function(t){return this.rawTrigger(toId(t))},BuildTrigger.prototype.rawTrigger=function(t){return this.client.request({method:"POST",url:"/build-triggers/".concat(t,"/trigger")})},BuildTrigger.prototype.abort=function(t){return this.rawAbort(toId(t))},BuildTrigger.prototype.rawAbort=function(t){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(t,"/abort")})},BuildTrigger.prototype.abortIndexing=function(t){return this.rawAbortIndexing(toId(t))},BuildTrigger.prototype.rawAbortIndexing=function(t){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(t,"/abort_indexing")})},BuildTrigger.prototype.reindex=function(t){return this.rawReindex(toId(t))},BuildTrigger.prototype.rawReindex=function(t){return this.client.request({method:"PUT",url:"/build-triggers/".concat(t,"/reindex")})},BuildTrigger.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},BuildTrigger.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(t)})},BuildTrigger.TYPE="build_trigger",BuildTrigger}(esm_BaseResource),e7=(q=function(t,n){return(q=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}q(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),e9=function(t){function ItemTypeFilter(){return null!==t&&t.apply(this,arguments)||this}return e7(ItemTypeFilter,t),ItemTypeFilter.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(function(t){return deserializeResponseBody(t)})},ItemTypeFilter.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/item-type-filters",body:t})},ItemTypeFilter.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(function(t){return deserializeResponseBody(t)})},ItemTypeFilter.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(t),body:n})},ItemTypeFilter.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},ItemTypeFilter.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},ItemTypeFilter.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},ItemTypeFilter.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/item-type-filters/".concat(t)})},ItemTypeFilter.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},ItemTypeFilter.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(t)})},ItemTypeFilter.TYPE="item_type_filter",ItemTypeFilter}
1(esm_BaseResource),te=(D=function(t,n){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}D(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tt=function(t){function UploadFilter(){return null!==t&&t.apply(this,arguments)||this}return te(UploadFilter,t),UploadFilter.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},UploadFilter.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/upload-filters",body:t})},UploadFilter.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},UploadFilter.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/upload-filters/".concat(t),body:n})},UploadFilter.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},UploadFilter.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},UploadFilter.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},UploadFilter.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/upload-filters/".concat(t)})},UploadFilter.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},UploadFilter.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(t)})},UploadFilter.TYPE="upload_filter",UploadFilter}(esm_BaseResource),tr=(F=function(t,n){return(F=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}F(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tn=function(t){function SiteInvitation(){return null!==t&&t.apply(this,arguments)||this}return tr(SiteInvitation,t),SiteInvitation.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(function(t){return deserializeResponseBody(t)})},SiteInvitation.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/site-invitations",body:t})},SiteInvitation.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"site_invitation",attributes:[],relationships:["role"]})).then(function(t){return deserializeResponseBody(t)})},SiteInvitation.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/site-invitations/".concat(t),body:n})},SiteInvitation.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},SiteInvitation.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},SiteInvitation.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},SiteInvitation.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/site-invitations/".concat(t)})},SiteInvitation.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},SiteInvitation.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(t)})},SiteInvitation.prototype.resend=function(t){return this.rawResend(toId(t))},SiteInvitation.prototype.rawResend=function(t){return this.client.request({method:"POST",url:"/site-invitations/".concat(t,"/resend")})},SiteInvitation.TYPE="site_invitation",SiteInvitation}
1(esm_BaseResource),to=(M=function(t,n){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}M(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ti=function(t){function EditingSession(){return null!==t&&t.apply(this,arguments)||this}return to(EditingSession,t),EditingSession.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},EditingSession.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},EditingSession.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(t),body:n})},EditingSession.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},EditingSession.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(t)})},EditingSession.TYPE="editing_session",EditingSession}(esm_BaseResource),ta=(N=function(t,n){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}N(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ts=function(t){function SsoGroup(){return null!==t&&t.apply(this,arguments)||this}return ta(SsoGroup,t),SsoGroup.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},SsoGroup.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},SsoGroup.prototype.copyRoles=function(t){return this.rawCopyRoles(toId(t)).then(function(t){return deserializeResponseBody(t)})},SsoGroup.prototype.rawCopyRoles=function(t){return this.client.request({method:"POST",url:"/sso-groups/".concat(t,"/copy-roles")})},SsoGroup.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(function(t){return deserializeResponseBody(t)})},SsoGroup.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/sso-groups/".concat(t),body:n})},SsoGroup.prototype.destroy=function(t){return this.rawDestroy(toId(t)).then(function(t){return deserializeResponseBody(t)})},SsoGroup.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(t)})},SsoGroup.TYPE="sso_group",SsoGroup}(esm_BaseResource),tu=(V=function(t,n){return(V=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}V(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tl=function(t){function SsoSettings(){return null!==t&&t.apply(this,arguments)||this}return tu(SsoSettings,t),SsoSettings.prototype.find=function(){return this.rawFind().then(function(t){return deserializeResponseBody(t)})},SsoSettings.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},SsoSettings.prototype.generateToken=function(){return this.rawGenerateToken().then(function(t){return deserializeResponseBody(t)})},SsoSettings.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},SsoSettings.prototype.update=function(t){return this.rawUpdate(serializeRequestBody(t,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(function(t){return deserializeResponseBody(t)})},SsoSettings.prototype.rawUpdate=function(t){return this.client.request({method:"PUT",url:"/sso-settings",body:t})}
1,SsoSettings.TYPE="sso_settings",SsoSettings}(esm_BaseResource),tc=(G=function(t,n){return(G=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}G(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),td=function(t){function WhiteLabelSettings(){return null!==t&&t.apply(this,arguments)||this}return tc(WhiteLabelSettings,t),WhiteLabelSettings.prototype.find=function(){return this.rawFind().then(function(t){return deserializeResponseBody(t)})},WhiteLabelSettings.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},WhiteLabelSettings.prototype.update=function(t){return this.rawUpdate(serializeRequestBody(t,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},WhiteLabelSettings.prototype.rawUpdate=function(t){return this.client.request({method:"PUT",url:"/white-label-settings",body:t})},WhiteLabelSettings.TYPE="white_label_settings",WhiteLabelSettings}(esm_BaseResource),tp=(H=function(t,n){return(H=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}H(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tf=function(t){function PublicInfo(){return null!==t&&t.apply(this,arguments)||this}return tp(PublicInfo,t),PublicInfo.prototype.find=function(){return this.rawFind().then(function(t){return deserializeResponseBody(t)})},PublicInfo.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},PublicInfo.TYPE="public_info",PublicInfo}(esm_BaseResource),th=(W=function(t,n){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}W(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),ty=function(t){function DailyUsage(){return null!==t&&t.apply(this,arguments)||this}return th(DailyUsage,t),DailyUsage.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},DailyUsage.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},DailyUsage.TYPE="daily_usage",DailyUsage}(esm_BaseResource),tm=(Y=function(t,n){return(Y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}Y(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tg=function(t){function UsageCounter(){return null!==t&&t.apply(this,arguments)||this}return tm(UsageCounter,t),UsageCounter.prototype.find=function(t,n){return this.rawFind(toId(t),n).then(function(t){return deserializeResponseBody(t)})},UsageCounter.prototype.rawFind=function(t,n){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(t),queryParams:n})},UsageCounter.TYPE="usage_counter",UsageCounter}(esm_BaseResource),tb=($=function(t,n){return($=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}$(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),UploadTag_assign=function(){return(UploadTag_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},UploadTag_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},UploadTag_asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},UploadTag_await=function(t){return this instanceof UploadTag_await?(this.v=t,this):new UploadTag_await(t)},UploadTag_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof UploadTag_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},tv=function(t){function UploadTag(){return null!==t&&t.apply(this,arguments)||this}return tb(UploadTag,t),UploadTag.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},UploadTag.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/upload-tags",queryParams:t})},UploadTag.prototype.listPagedIterator=function(t,n){return UploadTag_asyncGenerator(this,arguments,function(){var i,a,s,u;return UploadTag_generator(this,function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),i=UploadTag_asyncValues(this.rawListPagedIterator(t,n)),l.label=1;case 1:return[4,UploadTag_await(i.next())];case 2:if((a=l.sent()).done)return[3,6];return[4,UploadTag_await(deserializeJsonEntity(a.value))];case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return s={error:l.sent()},[3,13];case 8:if(l.trys.push([8,,11,12]),!(a&&!a.done&&(u=i.return)))return[3,10];return[4,UploadTag_await(u.call(i))];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];
1case 12:return[7];case 13:return[2]}})})},UploadTag.prototype.rawListPagedIterator=function(t,n){var i=this;return rawPageIterator({defaultLimit:50,maxLimit:500},function(n){return i.rawList(UploadTag_assign(UploadTag_assign({},t),{page:n}))},n)},UploadTag.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"upload_tag",attributes:["name"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},UploadTag.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/upload-tags",body:t})},UploadTag.TYPE="upload_tag",UploadTag}(esm_BaseResource),t_=(J=function(t,n){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}J(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),UploadSmartTag_assign=function(){return(UploadSmartTag_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},UploadSmartTag_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},UploadSmartTag_asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(a,s){!function(t,n,i,a){Promise.resolve(a).then(function(n){t({value:n,done:i})},n)}(a,s,(n=t[i](n)).done,n.value)})}}},UploadSmartTag_await=function(t){return this instanceof UploadSmartTag_await?(this.v=t,this):new UploadSmartTag_await(t)},UploadSmartTag_asyncGenerator=function(t,n,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=i.apply(t,n||[]),u=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(t){s[t]&&(a[t]=function(n){return new Promise(function(i,a){u.push([t,n,i,a])>1||resume(t,n)})})}function resume(t,n){try{var i;(i=s[t](n)).value instanceof UploadSmartTag_await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}},tw=function(t){function UploadSmartTag(){return null!==t&&t.apply(this,arguments)||this}return t_(UploadSmartTag,t),UploadSmartTag.prototype.list=function(t){return this.rawList(t).then(function(t){return deserializeResponseBody(t)})},UploadSmartTag.prototype.rawList=function(t){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:t})},UploadSmartTag.prototype.listPagedIterator=function(t,n){return UploadSmartTag_asyncGenerator(this,arguments,function(){var i,a,s,u;return UploadSmartTag_generator(this,function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),i=UploadSmartTag_asyncValues(this.rawListPagedIterator(t,n)),l.label=1;case 1:return[4,UploadSmartTag_await(i.next())];case 2:if((a=l.sent()).done)return[3,6];return[4,UploadSmartTag_await(deserializeJsonEntity(a.value))];case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return s={error:l.sent()},[3,13];case 8:if(l.trys.push([8,,11,12]),!(a&&!a.done&&(u=i.return)))return[3,10];return[4,UploadSmartTag_await(u.call(i))];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];
1case 12:return[7];case 13:return[2]}})})},UploadSmartTag.prototype.rawListPagedIterator=function(t,n){var i=this;return rawPageIterator({defaultLimit:50,maxLimit:500},function(n){return i.rawList(UploadSmartTag_assign(UploadSmartTag_assign({},t),{page:n}))},n)},UploadSmartTag.TYPE="upload_smart_tag",UploadSmartTag}(esm_BaseResource),tE=(K=function(t,n){return(K=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}K(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tS=function(t){function Site(){return null!==t&&t.apply(this,arguments)||this}return tE(Site,t),Site.prototype.find=function(t){return this.rawFind(t).then(function(t){return deserializeResponseBody(t)})},Site.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/site",queryParams:t})},Site.prototype.update=function(t){return this.rawUpdate(serializeRequestBody(t,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled"],relationships:["sso_default_role"]})).then(function(t){return deserializeResponseBody(t)})},Site.prototype.rawUpdate=function(t){return this.client.request({method:"PUT",url:"/site",body:t})},Site.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then(function(t){return deserializeResponseBody(t)})},Site.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},Site.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then(function(t){return deserializeResponseBody(t)})},Site.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},Site.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then(function(t){return deserializeResponseBody(t)})},Site.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},Site.TYPE="site",Site}(esm_BaseResource),tT=(Q=function(t,n){return(Q=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}Q(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tk=function(t){function Workflow(){return null!==t&&t.apply(this,arguments)||this}return tT(Workflow,t),Workflow.prototype.create=function(t){return this.rawCreate(serializeRequestBody(t,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Workflow.prototype.rawCreate=function(t){return this.client.request({method:"POST",url:"/workflows",body:t})},Workflow.prototype.update=function(t,n){return this.rawUpdate(toId(t),serializeRequestBody(n,{id:toId(t),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(function(t){return deserializeResponseBody(t)})},Workflow.prototype.rawUpdate=function(t,n){return this.client.request({method:"PUT",url:"/workflows/".concat(t),body:n})},Workflow.prototype.list=function(){return this.rawList().then(function(t){return deserializeResponseBody(t)})},Workflow.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},Workflow.prototype.find=function(t){return this.rawFind(toId(t)).then(function(t){return deserializeResponseBody(t)})},Workflow.prototype.rawFind=function(t){return this.client.request({method:"GET",url:"/workflows/".concat(t)})},Workflow.prototype.destroy=function(t){return this.rawDestroy(toId(t))},Workflow.prototype.rawDestroy=function(t){return this.client.request({method:"DELETE",url:"/workflows/".concat(t)})},Workflow.TYPE="workflow",Workflow}(esm_BaseResource),buildNormalizedParams_spreadArray=function(t,n,i){if(i||2==arguments.length)for(var a,s=0,u=n.length;s<u;s++)!a&&s in n||(a||(a=Array.prototype.slice.call(n,0,s)),a[s]=n[s]);return t.concat(a||Array.prototype.slice.call(n))};function buildKey(t){return t.reduce(function(t,n,i){return 0===i?n:"".concat(t,"[").concat(n,"]")},"")}
1var tP=i(91754),tx=(X=function(t,n){return(X=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}X(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tO={BATCH_DATA_VALIDATION_IN_PROGRESS:"The schema of this model changed, we're re-running validations over every record in background. Please retry with this operation in a few seconds!",INSUFFICIENT_PERMISSIONS:"Your role does not permit this action",MAINTENANCE_MODE:"The project is currently in maintenance mode!",DELETE_RESTRICTION:"Sorry, but you cannot delete this resource, as it's currently used/referenced elsewhere!",INVALID_CREDENTIALS:"Credentials are incorrect!",INVALID_EMAIL:"Email address is incorrect!",INVALID_FORMAT:"The format of the parameters passed is incorrect, take a look at the details of the error to know what's wrong!",ITEM_LOCKED:"The operation cannot be completed as some other user is currently editing this record!",LINKED_FROM_PUBLISHED_ITEMS:"Couldn't unpublish the record, as some published records are linked to it!",PLAN_UPGRADE_REQUIRED:"Cannot proceed, please upgrade plan!",PUBLISHED_CHILDREN:"Couldn't unpublish the record, some children records are still published!",REQUIRED_2FA_SETUP:"This project requires every user to turn on 2-factor authentication! Please go to your Dashboard and activate it! (https://dashboard.datocms.com/account/setup-2fa)",REQUIRED_BY_ASSOCIATION:"Cannot delete the record, as it's required by other records:",STALE_ITEM_VERSION:"Someone else made a change while you were editing this record, please refresh the page!",TITLE_ALREADY_PRESENT:"There can only be one Title field per model",UNPUBLISHED_LINK:"Couldn't publish the record, as it links some unpublished records!",UNPUBLISHED_PARENT:"Couldn't publish the record, as the parent record is not published!",UPLOAD_IS_CURRENTLY_IN_USE:"Couldn't delete this asset, as it's currently used by some records!",UPLOAD_NOT_PASSING_FIELD_VALIDATIONS:"Couldn't update this asset since some records are failing to pass the validations!"},tI={build_triggers:"You've reached the maximum number of build triggers your plan allows",sandbox_environments:"You've reached the maximum number of environments your plan allows",item_types:"You've reached the maximum number of models your plan allows to create",items:"You've reached the maximum number of records your plan allows to create",locales:"You've reached the maximum number of locales your plan allows",mux_encoding_seconds:"You've reached the maximum video encoding limits of your plan",otp:"Two-factor authentication cannot be on the current plan",plugins:"You've reached the maximum number of plugins your plan allows",roles:"You've reached the maximum number of roles your plan allows to create",uploadable_bytes:"You've reached the file storage limits of your plan",users:"You've reached the maximum number of collaborators your plan allows to invite to the project",access_tokens:"You've reached the maximum number of API tokens your plan allows to create"},tR=function(t){function TimeoutError(n){var i=this.constructor,a=t.call(this,"API Error!")||this;return Object.setPrototypeOf(a,i.prototype),"captureStackTrace"in Error?Error.captureStackTrace(a,tC):a.stack=Error().stack,a.request=n.request,a.preCallStack=n.preCallStack,a.message="".concat(n.request.method," ").concat(n.request.url,": Timeout error"),a.preCallStack&&(a.stack+="\nCaused By:\n".concat(a.preCallStack)),a}return tx(TimeoutError,t),TimeoutError}(Error),tC=function(t){function ApiError(n){var i=this.constructor,a=t.call(this,"API Error!")||this;Object.setPrototypeOf(a,i.prototype),"captureStackTrace"in Error?Error.captureStackTrace(a,ApiError):a.stack=Error().stack,a.request=n.request,a.response=n.response,a.preCallStack=n.preCallStack;var s="".concat(n.request.method," ").concat(n.request.url,": ").concat(a.response.status," ").concat(a.response.statusText);return a.errors.length>0&&(s+="\n\n".concat(JSON.stringify(a.errors,null,2))),a.message=s,a.preCallStack&&(a.stack+="\nCaused By:\n".concat(a.preCallStack)),a}return tx(ApiError,t),Object.defineProperty(ApiError.prototype,"errors",{get:function(){return!function(t){if("object"!=typeof t||null===t||!("data"in t)||!Array.isArray(t.data)||0===t.data.length)return!1;var n=t.data[0];return"object"==typeof n&&null!==n&&"id"in n&&"type"in n&&"attributes"in n&&"api_error"===n.type}(this.response.body)?[]:this.response.body.data}
1,enumerable:!1,configurable:!0}),ApiError.prototype.findError=function(t,n){var i=Array.isArray(t)?t:[t];return this.errors.find(function(t){return i.includes(t.attributes.code)&&(!n||("function"==typeof n?n(t.attributes.details):Object.entries(n).every(function(n){var i=n[0],a=n[1];return t.attributes.details[i]===a})))})},Object.defineProperty(ApiError.prototype,"humanMessage",{get:function(){var t=this,n=this.findError("PLAN_UPGRADE_REQUIRED");if(n){var i=n.attributes.details.limit;return"".concat(tI[i],". Please head over to your account dashboard (https://dashboard.datocms.com/) to upgrade the plan or, if no publicly available plan suits your needs, contact our Sales team (https://www.datocms.com/contact) to get a custom quote!")}var a=Object.keys(tO).filter(function(n){return t.findError(n)}).map(function(t){return tO[t]});return 0===a.length?null:a.join("\n")},enumerable:!1,configurable:!0}),ApiError}(Error);function wait(t){return new Promise(function(n){setTimeout(n,t)})}var tA=(Z=function(t,n){return(Z=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}Z(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),tj=function(t){function CanceledPromiseError(){var n=this.constructor,i=t.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(i,n.prototype),i}return tA(CanceledPromiseError,t),CanceledPromiseError}(Error);function makeCancelablePromise(t,n){var i=null,a=new Promise(function(a,s){i=function(){try{n&&n(),s(new tj)}catch(t){s(t)}},("function"==typeof t?t():t).then(a,s)});return i&&(a.cancel=i),a}var request_assign=function(){return(request_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},request_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},tL="undefined"!=typeof window&&void 0!==window.document;function buildApiErrorInitObject(t,n,i,a,s,u,l){var d,p;return{request:{url:n,method:t,headers:i,body:a},response:{status:s.status,statusText:s.statusText,headers:(d=s.headers,p={},d.forEach(function(t,n){p[n]=t}),p),body:u},preCallStack:l}}(ee=eo||(eo={}))[ee.NONE=0]="NONE",ee[ee.BASIC=1]="BASIC",ee[ee.BODY=2]="BODY",ee[ee.BODY_AND_HEADERS=3]="BODY_AND_HEADERS";var tB=1,pollJobResult_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},Client_assign=function(){return(Client_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},Client_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},tz=function(){function Client(t){this.config=t,this.roles=new eu(this),this.users=new ec(this),this.ssoUsers=new ep(this),this.auditLogEvents=new eh(this),this.menuItems=new em(this),this.itemTypes=new eb(this),this.fields=new e_(this),this.fieldsets=new eE(this),this.session=new eT(this),this.accessTokens=new eP(this),this.plugins=new eO(this),this.jobResults=new eR(this),this.subscriptionLimits=new eA(this),this.subscriptionFeatures=new eL(this),this.buildEvents=new ez(this),this.items=new eD(this),this.itemVersions=new eM(this),this.uploads=new eV(this),this.uploadRequest=new eH(this),this.scheduledPublication=new eY(this),this.scheduledUnpublishing=new eJ(this),this.searchResults=new eQ(this),this.environments=new eZ(this),this.maintenanceMode=new e1(this),this.webhooks=new e3(this),this.webhookCalls=new e6(this),this.buildTriggers=new e8(this),this.itemTypeFilters=new e9(this),this.uploadFilters=new tt(this),this.siteInvitations=new tn(this),this.editingSessions=new ti(this),this.ssoGroups=new ts(this),this.ssoSettings=new tl(this),this.whiteLabelSettings=new td(this),this.publicInfo=new tf(this),this.dailyUsages=new ty(this),this.usageCounters=new tg(this),this.uploadTags=new tv(this),this.uploadSmartTags=new tw(this),this.site=new tS(this),this.workflows=new tk(this)}return Object.defineProperty(Client.prototype,"baseUrl",{get:function(){return this.config.baseUrl||Client.defaultBaseUrl}
1,enumerable:!1,configurable:!0}),Client.prototype.request=function(t){var n=this;return function request(t){var n,i,a,s;return n=this,i=void 0,a=void 0,s=function(){var n,i,a,s,u,l,d,p,f,h,y,m,g,v,_,w,E,T,k,x,O,I,R,C,A,j,L,B;return request_generator(this,function(z){var U,q,D,F,M,N;switch(z.label){case 0:if(n=tB,tB+=1,i=t.preCallStack,a=t.userAgent||"@datocms/rest-client-utils",s=t.retryCount||1,u=t.logLevel||eo.NONE,l=!("autoRetry"in t)||t.autoRetry,d=t.logFn||function(){return!0},p=request_assign({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(t.apiToken),"user-agent":a},t.extraHeaders?Object.fromEntries(Object.entries(t.extraHeaders).map(function(t){var n=t[0],i=t[1];return[n.toLowerCase(),i]})):{}),tL&&delete p["user-agent"],f=t.baseUrl.replace(/\/$/,""),h=t.body?JSON.stringify(t.body,null,2):void 0,y=t.queryParams&&Object.keys(t.queryParams).length>0?"?".concat(new URLSearchParams(function buildNormalizedParams(t,n){void 0===n&&(n=[]);for(var i=[],a=0,s=Object.entries(t);a<s.length;a++){var u=s[a],l=u[0],d=u[1];if("number"==typeof d||"string"==typeof d)i.push([buildKey(buildNormalizedParams_spreadArray(buildNormalizedParams_spreadArray([],n,!0),[l],!1)),d.toString()]);else if(!0===d)i.push([buildKey(buildNormalizedParams_spreadArray(buildNormalizedParams_spreadArray([],n,!0),[l],!1)),"true"]);else if(!1===d)i.push([buildKey(buildNormalizedParams_spreadArray(buildNormalizedParams_spreadArray([],n,!0),[l],!1)),"false"]);else if("object"==typeof d){if(Array.isArray(d))for(var p=0;p<d.length;p++){var f=d[p];i.push(["".concat(buildKey(buildNormalizedParams_spreadArray(buildNormalizedParams_spreadArray([],n,!0),[l],!1)),"[]"),f.toString()])}else if(d)for(var h=0,y=buildNormalizedParams(d,buildNormalizedParams_spreadArray(buildNormalizedParams_spreadArray([],n,!0),[l],!1));h<y.length;h++){var m=y[h];i.push(m)}}}return i}(t.queryParams)).toString()):"",m="".concat(f).concat(t.url).concat(y),u>=eo.BASIC){if(d("[".concat(n,"] ").concat(t.method," ").concat(m)),u>=eo.BODY_AND_HEADERS)for(g=0,v=Object.entries(p||{});g<v.length;g++)w=(_=v[g])[0],E=_[1],d("[".concat(n,"] ").concat(w,": ").concat(E));u>=eo.BODY&&h&&d("[".concat(n,"] ").concat(h))}z.label=1;case 1:return z.trys.push([1,12,,16]),T=makeCancelablePromise((0,tP.he)(m,{method:t.method,headers:p,body:h})),k=setTimeout(function(){T.cancel()},t.requestTimeout||3e4),[4,T];case 2:if(x=z.sent(),clearTimeout(k),I=(O=x.headers.get("Content-Type"))&&!O.includes("application/json"),!(429===x.status||I))return[3,4];if(!l||I&&"GET"!==t.method)throw new tC(buildApiErrorInitObject(t.method,m,p,t.body,x,void 0,i));return R=x.headers.has("X-RateLimit-Reset")?parseInt(x.headers.get("X-RateLimit-Reset"),10):s,u>=eo.BASIC&&(429===x.status?d("[".concat(n,"] Rate limit exceeded, wait ").concat(R," seconds then retry...")):d("[".concat(n,'] Invalid response content type "').concat(O,'" (status ').concat(x.status,"). Wait ").concat(R," seconds then retry..."))),[4,wait(1e3*R)];case 3:return z.sent(),[2,request(request_assign(request_assign({},t),{retryCount:s+1}))];case 4:if(u>=eo.BASIC&&(d("[".concat(n,"] Status: ").concat(x.status," (").concat(x.statusText,")")),u>=eo.BODY_AND_HEADERS&&["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"].forEach(function(t){var i=x.headers.get(t);i&&d("[".concat(n,"] ").concat(t,": ").concat(i))})),204!==x.status)return[3,5];return A=void 0,[3,7];case 5:return[4,x.json()];case 6:A=z.sent(),z.label=7;case 7:if(C=A,u>=eo.BODY&&C&&d("[".concat(n,"] ").concat(JSON.stringify(C,null,2))),202!==x.status)return[3,9];return[4,t.fetchJobResult(C.data.id)];case 8:if((j=z.sent()).status<200||j.status>=300)throw new tC((U=t.method,q=m,D=p,F=t.body,{request:{url:q,method:U,headers:D,body:F},response:{status:j.status,statusText:"N/A",headers:{},body:j.payload},preCallStack:i}));C=j.payload,z.label=9;case 9:if(x.status>=200&&x.status<300)return[2,C];if(L=new tC(buildApiErrorInitObject(t.method,m,p,t.body,x,C,i)),!(l&&L.findError("BATCH_DATA_VALIDATION_IN_PROGRESS")))return[3,11];return u>=eo.BASIC&&d("[".concat(n,"] Data validation in progress, wait ").concat(s," seconds then retry...")),[4,wait(1e3*s)];case 10:case 13:return z.sent(),[2,request(request_assign(request_assign({},t),{retryCount:s+1}))];case 11:throw L;case 12:if(!((B=z.sent())instanceof tj||"object"==typeof(M=B)&&M&&"code"in M&&B.code.includes("ETIMEDOUT")))return[3,15];if(!(l&&s<5))return[3,14];return u>=eo.BASIC&&d("[".concat(n,"] Timeout error, wait ").concat(s," seconds then retry...")),[4,wait(1e3*s)];case 14:throw new tR((N=t.method,{request:{url:m,method:N,headers:p,body:t.body},preCallStack:i}));case 15:throw B;case 16:return[2]}})},new(a||(a=Promise))(function(t,u){function fulfilled(t){try{step(s.next(t))}catch(t){u(t)}}function rejected(t){try{step(s.throw(t))}catch(t){u(t)}}function step(n){var i;n.done?t(n.value):((i=n.value)instanceof a?i:new a(function(t){t(i)})).then(fulfilled,rejected)}step((s=s.apply(n,i||[])).next())})}(Client_assign(Client_assign(Client_assign({},this.config),t),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v1.3.5",baseUrl:this.baseUrl,preCallStack:Error().stack,extraHeaders:Client_assign(Client_assign(Client_assign({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(t){return n.jobResultsFetcher?n.jobResultsFetcher(t):function(t){var n,i,a,s;return n=this,i=void 0,a=void 0,s=function(){var n,i,a;return pollJobResult_generator(this,function(s){switch(s.label){case 0:i=0,s.label=1;case 1:return s.trys.push([1,4,,5]),[4,wait(1e3*(i+=1))];case 2:return s.sent(),[4,t()];case 3:return n=s.sent(),[3,5];case 4:if(!((a=s.sent())instanceof tC)||404!==a.response.status)throw a;return[3,5];case 5:if(!n)return[3,1];s.label=6;case 6:return[2,n]}})},new(a||(a=Promise))(function(t,u){function fulfilled(t){try{step(s.next(t))}catch(t){u(t)}}function rejected(t){try{step(s.throw(t))}catch(t){u(t)}}function step(n){var i;n.done?t(n.value):((i=n.value)instanceof a?i:new a(function(t){t(i)})).then(fulfilled,rejected)}step((s=s.apply(n,i||[])).next())})}(function(){return n.jobResults.find(t)})}}))}
1,Client.prototype.eventsChannelName=function(){var t,n,i,a;return t=this,n=void 0,i=void 0,a=function(){var t;return Client_generator(this,function(n){switch(n.label){case 0:if(this.cachedEventsChannelName)return[2,this.cachedEventsChannelName];return[4,this.site.rawFind()];case 1:return t=n.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(t.id,"-environment-").concat(this.config.environment):"private-site-".concat(t.id),[2,this.cachedEventsChannelName]}})},new(i||(i=Promise))(function(s,u){function fulfilled(t){try{step(a.next(t))}catch(t){u(t)}}function rejected(t){try{step(a.throw(t))}catch(t){u(t)}}function step(t){var n;t.done?s(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})},Client.defaultBaseUrl="https://site-api.datocms.com",Client}(),uploadFileOrBlobAndReturnPath_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},tU=(et=function(t,n){return(et=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}et(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),resources_Upload_assign=function(){return(resources_Upload_assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},resources_Upload_generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},Upload_rest=function(t,n){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>n.indexOf(a)&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)0>n.indexOf(a[s])&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(i[a[s]]=t[a[s]]);return i},tq=function(t){function Upload(){return null!==t&&t.apply(this,arguments)||this}return tU(Upload,t),Upload.prototype.createFromFileOrBlob=function(t){var n,i=this,a=!1;return makeCancelablePromise(function(){var s,u,l;return s=void 0,u=void 0,l=function(){var i,s,u,l,d;return resources_Upload_generator(this,function(p){switch(p.label){case 0:if(a)throw new tj;return i=t.fileOrBlob,s=t.filename,u=t.onProgress,l=Upload_rest(t,["fileOrBlob","filename","onProgress"]),[4,n=function(t,n,i){var a=this;if(void 0===i&&(i={}),!(i.filename&&"name"in n))throw Error("Missing filename, please provide it as an option!");var s=i.filename||n.name,u=!1,l=void 0;return makeCancelablePromise(function(){var d,p,f;return d=void 0,p=void 0,f=function(){var a,d,p;return uploadFileOrBlobAndReturnPath_generator(this,function(f){switch(f.label){case 0:return i.onProgress&&(null==i||i.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:s}}
1)),[4,t.uploadRequest.create({filename:s})];case 1:var h,y,m;if(d=(a=f.sent()).id,p=a.url,u)throw new tj;return i.onProgress&&i.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),y=(void 0===(h=i)?{}:h).onProgress,m=new XMLHttpRequest,[4,l=makeCancelablePromise(new Promise(function(t,i){y&&m.upload&&(m.upload.onprogress=function(t){t.lengthComputable&&y({type:"UPLOADING_FILE",payload:{progress:Math.round(t.loaded/t.total*100)}})}),m.onreadystatechange=function(){4===m.readyState&&(200===m.status?t():i(Error("Status ".concat(m.status))))},m.addEventListener("error",i,!1),m.open("PUT",p,!0),m.send(n)}),function(){m.onreadystatechange=null,m.abort()})];case 2:return f.sent(),[2,d]}})},new(p||(p=Promise))(function(t,n){function fulfilled(t){try{step(f.next(t))}catch(t){n(t)}}function rejected(t){try{step(f.throw(t))}catch(t){n(t)}}function step(n){var i;n.done?t(n.value):((i=n.value)instanceof p?i:new p(function(t){t(i)})).then(fulfilled,rejected)}step((f=f.apply(a,d||[])).next())})},function(){l?l.cancel():u=!0})}(this.client,i,{filename:s,onProgress:u})];case 1:return d=p.sent(),u&&u({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(resources_Upload_assign(resources_Upload_assign({},l),{path:d}))]}})},new(u||(u=Promise))(function(t,n){function fulfilled(t){try{step(l.next(t))}catch(t){n(t)}}function rejected(t){try{step(l.throw(t))}catch(t){n(t)}}function step(n){var i;n.done?t(n.value):((i=n.value)instanceof u?i:new u(function(t){t(i)})).then(fulfilled,rejected)}step((l=l.apply(i,s||[])).next())})},function(){n?n.cancel():a=!0})},Upload}(eV);(er=function(t,n){return(er=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}er(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)})(function(t){var n=en.call(this,t)||this;return n.uploads=new tq(n),n},en=tz)},51243:function(t,n,i){"use strict";i.d(n,{Gj:function(){return SplideTrack},jw:function(){return SplideSlide},tv:function(){return tt}});var a=i(75271);function _defineProperties(t,n){for(var i=0;i<n.length;i++){var a=n[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var s="(prefers-reduced-motion: reduce)";function empty(t){t.length=0}function slice(t,n,i){return Array.prototype.slice.call(t,n,i)}function apply(t){return t.bind.apply(t,[null].concat(slice(arguments,1)))}var u=setTimeout,noop=function(){};function raf(t){return requestAnimationFrame(t)}function typeOf(t,n){return typeof n===t}function isObject(t){return null!==t&&typeOf("object",t)}var l=Array.isArray,d=apply(typeOf,"function"),p=apply(typeOf,"string"),f=apply(typeOf,"undefined");function isHTMLElement(t){return t instanceof HTMLElement}function toArray(t){return l(t)?t:[t]}function forEach(t,n){toArray(t).forEach(n)}function includes(t,n){return t.indexOf(n)>-1}function push(t,n){return t.push.apply(t,toArray(n)),t}function toggleClass(t,n,i){t&&forEach(n,function(n){n&&t.classList[i?"add":"remove"](n)})}function addClass(t,n){toggleClass(t,p(n)?n.split(" "):n,!0)}function append(t,n){forEach(n,t.appendChild.bind(t))}function before(t,n){forEach(t,function(t){var i=(n||t).parentNode;i&&i.insertBefore(t,n)})}
1function matches(t,n){return isHTMLElement(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function children(t,n){var i=t?slice(t.children):[];return n?i.filter(function(t){return matches(t,n)}):i}function child(t,n){return n?children(t,n)[0]:t.firstElementChild}var h=Object.keys;function forOwn(t,n,i){return t&&(i?h(t).reverse():h(t)).forEach(function(i){"__proto__"!==i&&n(t[i],i)}),t}function assign(t){return slice(arguments,1).forEach(function(n){forOwn(n,function(i,a){t[a]=n[a]})}),t}function merge(t){return slice(arguments,1).forEach(function(n){forOwn(n,function(n,i){l(n)?t[i]=n.slice():isObject(n)?t[i]=merge({},isObject(t[i])?t[i]:{},n):t[i]=n})}),t}function omit(t,n){forEach(n||h(t),function(n){delete t[n]})}function removeAttribute(t,n){forEach(t,function(t){forEach(n,function(n){t&&t.removeAttribute(n)})})}function setAttribute(t,n,i){isObject(n)?forOwn(n,function(n,i){setAttribute(t,i,n)}):forEach(t,function(t){null===i||""===i?removeAttribute(t,n):t.setAttribute(n,String(i))})}function create(t,n,i){var a=document.createElement(t);return n&&(p(n)?addClass(a,n):setAttribute(a,n)),i&&append(i,a),a}function style(t,n,i){if(f(i))return getComputedStyle(t)[n];null!==i&&(t.style[n]=""+i)}function display(t,n){style(t,"display",n)}function focus(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function getAttribute(t,n){return t.getAttribute(n)}function hasClass(t,n){return t&&t.classList.contains(n)}function rect(t){return t.getBoundingClientRect()}function remove(t){forEach(t,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function parseHtml(t){return child(new DOMParser().parseFromString(t,"text/html").body)}function prevent(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function query(t,n){return t&&t.querySelector(n)}function queryAll(t,n){return n?slice(t.querySelectorAll(n)):[]}function removeClass(t,n){toggleClass(t,n,!1)}function timeOf(t){return t.timeStamp}function unit(t){return p(t)?t:t?t+"px":""}var y="splide",m="data-"+y;function assert(t,n){if(!t)throw Error("["+y+"] "+(n||""))}var g=Math.min,v=Math.max,_=Math.floor,w=Math.ceil,E=Math.abs;function between(t,n,i,a){var s=g(n,i),u=v(n,i);return a?s<t&&t<u:s<=t&&t<=u}function clamp(t,n,i){var a=g(n,i),s=v(n,i);return g(v(a,t),s)}function sign(t){return+(t>0)-+(t<0)}function format(t,n){return forEach(n,function(n){t=t.replace("%s",""+n)}),t}function pad(t){return t<10?"0"+t:""+t}var T={};function EventBinder(){var t=[];function forEachEvent(t,n,i){forEach(t,function(t){t&&forEach(n,function(n){n.split(" ").forEach(function(n){var a=n.split(".");i(t,a[0],a[1])})})})}return{bind:function(n,i,a,s){forEachEvent(n,i,function(n,i,u){var l="addEventListener"in n,d=l?n.removeEventListener.bind(n,i,a,s):n.removeListener.bind(n,a);l?n.addEventListener(i,a,s):n.addListener(a),t.push([n,i,u,a,d])})},unbind:function(n,i,a){forEachEvent(n,i,function(n,i,s){t=t.filter(function(t){return t[0]!==n||t[1]!==i||t[2]!==s||!!a&&t[3]!==a||(t[4](),!1)})})},dispatch:function(t,n,i){var a;return"function"==typeof CustomEvent?a=new CustomEvent(n,{bubbles:!0,detail:i}):(a=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!1,i),t.dispatchEvent(a),a},destroy:function(){t.forEach(function(t){t[4]()}),empty(t)}}}var k="arrows:",x="pagination:",O="autoplay:",I="mounted",R="ready",C="move",A="moved",j="click",L="active",B="inactive",z="visible",U="hidden",q="refresh",D="updated",F="resize",M="resized",N="drag",V="dragging",G="dragged",H="scroll",W="scrolled",Y="destroy",$=k+"mounted",J=k+"updated",K=x+"mounted",Q=x+"updated",X="navigation:mounted",Z=O+"play",ee=O+"playing",et=O+"pause",er="lazyload:loaded";function EventInterface(t){var n=t?t.event.bus:document.createDocumentFragment(),i=EventBinder();return t&&t.event.on(Y,i.destroy),assign(i,{bus:n,on:function(t,a){i.bind(n,toArray(t).join(" "),function(t){a.apply(a,l(t.detail)?t.detail:[])})},off:apply(i.unbind,n),emit:function(t){i.dispatch(n,t,slice(arguments,1))}})}function RequestInterval(t,n,i,a){var s,u,l=Date.now,d=0,p=!0,f=0;function update(){if(!p){if(d=t?g((l()-s)/t,1):1,i&&i(d),d>=1&&(n(),s=l(),a&&++f>=a))return pause();u=raf(update)}}function pause(){p=!0}function cancel(){u&&cancelAnimationFrame(u),d=0,u=0,p=!0}return{start:function(n){n||cancel(),s=l()-(n?d*t:0),p=!1,u=raf(update)},rewind:function(){s=l(),d=0,i&&i(d)},pause,cancel,set:function(n){t=n},isPaused:function(){return p}}}var en="Arrow",eo=en+"Left",ei=en+"Right",ea=en+"Up",es=en+"Down",eu={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[ea,ei],ArrowRight:[es,eo]},el="role",ec="tabindex",ed="aria-",ep=ed+"controls",ef=ed+"current",eh=ed+"selected",ey=ed+"label",em=ed+"labelledby",eg=ed+"hidden",eb=ed+"orientation",ev=ed+"roledescription",e_=ed+"live",ew=ed+"busy",eE=ed+"atomic",eS=[el,ec,"disabled",ep,ef,ey,em,eg,eb,ev],eT=y+"__",ek=eT+"track",eP=eT+"list",ex=eT+"slide",eO=ex+"--clone",eI=ex+"__container",eR=eT+"arrows",eC=eT+"arrow",eA=eC+"--prev",ej=eC+"--next",eL=eT+"pagination",eB=eL+"__page",ez=eT+"progress__bar",eU=eT+"toggle",eq=eT+"sr",eD="is-active",eF="is-prev",eM="is-next",eN="is-visible",eV="is-loading",eG="is-focus-in",eH="is-overflow",eW=[eD,eN,eF,eM,eV,eG,eH],eY="touchstart mousedown",e$="touchmove mousemove",eJ="touchend touchcancel mouseup click",eK="slide",eQ="loop",eX="fade",eZ=m+"-interval",e0={passive:!1,capture:!0},e1={Spacebar:" ",Right:ei,Left:eo,Up:ea,Down:es};function normalizeKey(t){return e1[t=p(t)?t:t.key]||t}
1var e2="keydown",e3=m+"-lazy",e5=e3+"-srcset",e6="["+e3+"], ["+e5+"]",e4=[" ","Enter"],e8=Object.freeze({__proto__:null,Media:function(t,n,i){var a=t.state,u=i.breakpoints||{},l=i.reducedMotion||{},d=EventBinder(),p=[];function destroy(t){t&&d.destroy()}function register(t,n){var i=matchMedia(n);d.bind(i,"change",update),p.push([t,i])}function update(){var n=a.is(7),s=i.direction,u=p.reduce(function(t,n){return merge(t,n[1].matches?n[0]:{})},{});omit(i),set(u),i.destroy?t.destroy("completely"===i.destroy):n?(destroy(!0),t.mount()):s!==i.direction&&t.refresh()}function set(n,s,u){merge(i,n),s&&merge(Object.getPrototypeOf(i),n),(u||!a.is(1))&&t.emit(D,i)}return{setup:function(){var t="min"===i.mediaQuery;h(u).sort(function(n,i){return t?+n-+i:+i-+n}).forEach(function(n){register(u[n],"("+(t?"min":"max")+"-width:"+n+"px)")}),register(l,s),update()},destroy,reduce:function(t){matchMedia(s).matches&&(t?merge(i,l):omit(i,h(l)))},set}},Direction:function(t,n,i){return{resolve:function(t,n,a){var s="rtl"!==(a=a||i.direction)||n?"ttb"===a?0:-1:1;return eu[t]&&eu[t][s]||t.replace(/width|left|right/i,function(t,n){var i=eu[t.toLowerCase()][s]||t;return n>0?i.charAt(0).toUpperCase()+i.slice(1):i})},orient:function(t){return t*("rtl"===i.direction?1:-1)}}},Elements:function(t,n,i){var a,s,u,l=EventInterface(t),p=l.on,f=l.bind,h=t.root,m=i.i18n,g={},v=[],_=[],w=[];function setup(){var t,n;s=child(a=find("."+ek),"."+eP),assert(a&&s,"A track/list element is missing."),push(v,children(s,"."+ex+":not(."+eO+")")),forOwn({arrows:eR,pagination:eL,prev:eA,next:ej,bar:ez,toggle:eU},function(t,n){g[n]=find("."+t)}),assign(g,{root:h,track:a,list:s,slides:v}),t=h.id||""+y+pad(T[y]=(T[y]||0)+1),n=i.role,h.id=t,a.id=a.id||t+"-track",s.id=s.id||t+"-list",!getAttribute(h,el)&&"SECTION"!==h.tagName&&n&&setAttribute(h,el,n),setAttribute(h,ev,m.carousel),setAttribute(s,el,"presentation"),update()}function destroy(t){var n=eS.concat("style");empty(v),removeClass(h,_),removeClass(a,w),removeAttribute([a,s],n),removeAttribute(h,t?n:["style",ev])}function update(){removeClass(h,_),removeClass(a,w),_=getClasses(y),w=getClasses(ek),addClass(h,_),addClass(a,w),setAttribute(h,ey,i.label),setAttribute(h,em,i.labelledby)}function find(t){var n=query(h,t);return n&&function(t,n){if(d(t.closest))return t.closest(n);for(var i=t;i&&1===i.nodeType&&!matches(i,n);)i=i.parentElement;return i}(n,"."+y)===h?n:void 0}function getClasses(t){return[t+"--"+i.type,t+"--"+i.direction,i.drag&&t+"--draggable",i.isNavigation&&t+"--nav",t===y&&eD]}return assign(g,{setup,mount:function(){p(q,destroy),p(q,setup),p(D,update),f(document,eY+" keydown",function(t){u="keydown"===t.type},{capture:!0}),f(h,"focusin",function(){toggleClass(h,eG,!!u)})},destroy})},Slides:function(t,n,i){var a=EventInterface(t),s=a.on,u=a.emit,l=a.bind,f=n.Elements,h=f.slides,y=f.list,m=[];function init(){h.forEach(function(t,n){register(t,n,-1)})}function destroy(){forEach$1(function(t){t.destroy()}),empty(m)}function register(n,i,a){var s=function(t,n,i,a){var s,u=EventInterface(t),l=u.on,d=u.emit,p=u.bind,f=t.Components,h=t.root,y=t.options,m=y.isNavigation,v=y.updateOnMove,T=y.i18n,k=y.pagination,x=y.slideFocus,O=f.Direction.resolve,I=getAttribute(a,"style"),R=getAttribute(a,ey),q=i>-1,D=child(a,"."+eI);function initNavigation(){var s=t.splides.map(function(t){var i=t.splide.Components.Slides.getAt(n);return i?i.slide.id:""}).join(" ");setAttribute(a,ey,format(T.slideX,(q?i:n)+1)),setAttribute(a,ep,s),setAttribute(a,el,x?"button":""),x&&removeAttribute(a,ev)}function onMove(){s||update()}function update(){if(!s){var i,u=t.index;(i=isActive())!==hasClass(a,eD)&&(toggleClass(a,eD,i),setAttribute(a,ef,m&&i||""),d(i?L:B,F)),function(){var n=function(){if(t.is(eX))return isActive();var n=rect(f.Elements.track),i=rect(a),s=O("left",!0),u=O("right",!0);return _(n[s])<=w(i[s])&&_(i[u])<=w(n[u])}(),i=!n&&(!isActive()||q);if(t.state.is([4,5])||setAttribute(a,eg,i||""),setAttribute(queryAll(a,y.focusableNodes||""),ec,i?-1:""),x&&setAttribute(a,ec,i?-1:0),n!==hasClass(a,eN)&&(toggleClass(a,eN,n),d(n?z:U,F)),!n&&document.activeElement===a){var s=f.Slides.getAt(t.index);s&&focus(s.slide)}}(),toggleClass(a,eF,n===u-1),toggleClass(a,eM,n===u+1)}}function isActive(){var a=t.index;return a===n||y.cloneStatus&&a===i}var F={index:n,slideIndex:i,slide:a,container:D,isClone:q,mount:function(){q||(a.id=h.id+"-slide"+pad(n+1),setAttribute(a,el,k?"tabpanel":"group"),setAttribute(a,ev,T.slide),setAttribute(a,ey,R||format(T.slideLabel,[n+1,t.length]))),p(a,"click",apply(d,j,F)),p(a,"keydown",apply(d,"sk",F)),l([A,"sh",W],update),l(X,initNavigation),v&&l(C,onMove)},destroy:function(){s=!0,u.destroy(),removeClass(a,eW),removeAttribute(a,eS),setAttribute(a,"style",I),setAttribute(a,ey,R||"")},update,style:function(t,n,i){style(i&&D||a,t,n)},isWithin:function(i,a){var s=E(i-n);return!q&&(y.rewind||t.is(eQ))&&(s=g(s,t.length-s)),s<=a}};return F}(t,i,a,n);s.mount(),m.push(s),m.sort(function(t,n){return t.index-n.index})}function get(t){return t?filter(function(t){return!t.isClone}):m}
1function forEach$1(t,n){get(n).forEach(t)}function filter(t){return m.filter(d(t)?t:function(n){return p(t)?matches(n.slide,t):includes(toArray(t),n.index)})}return{mount:function(){init(),s(q,destroy),s(q,init)},destroy,update:function(){forEach$1(function(t){t.update()})},register,get,getIn:function(t){var a=n.Controller,s=a.toIndex(t),u=a.hasFocus()?1:i.perPage;return filter(function(t){return between(t.index,s,s+u-1)})},getAt:function(t){return filter(t)[0]},add:function(t,n){forEach(t,function(t){if(p(t)&&(t=parseHtml(t)),isHTMLElement(t)){var a,s,d,f,m=h[n];m?before(t,m):append(y,t),addClass(t,i.classes.slide),a=t,s=apply(u,F),(f=(d=queryAll(a,"img")).length)?d.forEach(function(t){l(t,"load error",function(){--f||s()})}):s()}}),u(q)},remove:function(t){remove(filter(t).map(function(t){return t.slide})),u(q)},forEach:forEach$1,filter,style:function(t,n,i){forEach$1(function(a){a.style(t,n,i)})},getLength:function(t){return t?h.length:m.length},isEnough:function(){return m.length>i.perPage}}},Layout:function(t,n,i){var a,s,u,l=EventInterface(t),d=l.on,p=l.bind,f=l.emit,h=n.Slides,y=n.Direction.resolve,m=n.Elements,g=m.root,v=m.track,_=m.list,w=h.getAt,T=h.style;function init(){a="ttb"===i.direction,style(g,"maxWidth",unit(i.width)),style(v,y("paddingLeft"),cssPadding(!1)),style(v,y("paddingRight"),cssPadding(!0)),resize(!0)}function resize(t){var n,l=rect(g);(t||s.width!==l.width||s.height!==l.height)&&(style(v,"height",(n="",a&&(assert(n=cssHeight(),"height or heightRatio is missing."),n="calc("+n+" - "+cssPadding(!1)+" - "+cssPadding(!0)+")"),n)),T(y("marginRight"),unit(i.gap)),T("width",i.autoWidth?null:unit(i.fixedWidth)||(a?"":cssSlideSize())),T("height",unit(i.fixedHeight)||(a?i.autoHeight?null:cssSlideSize():cssHeight()),!0),s=l,f(M),u!==(u=isOverflow())&&(toggleClass(g,eH,u),f("overflow",u)))}function cssPadding(t){var n=i.padding,a=y(t?"right":"left");return n&&unit(n[a]||(isObject(n)?0:n))||"0px"}function cssHeight(){return unit(i.height||rect(_).width*i.heightRatio)}function cssSlideSize(){var t=unit(i.gap);return"calc((100%"+(t&&" + "+t)+")/"+(i.perPage||1)+(t&&" - "+t)+")"}function listSize(){return rect(_)[y("width")]}function slideSize(t,n){var i=w(t||0);return i?rect(i.slide)[y("width")]+(n?0:getGap()):0}function totalSize(t,n){var i=w(t);return i?E(rect(i.slide)[y("right")]-rect(_)[y("left")])+(n?0:getGap()):0}function sliderSize(n){return totalSize(t.length-1)-totalSize(0)+slideSize(0,n)}function getGap(){var t=w(0);return t&&parseFloat(style(t.slide,y("marginRight")))||0}function isOverflow(){return t.is(eX)||sliderSize(!0)>listSize()}return{mount:function(){var t;init(),p(window,"resize load",(t=RequestInterval(0,apply(f,F),null,1),function(){t.isPaused()&&t.start()})),d([D,q],init),d(F,resize)},resize,listSize,slideSize,sliderSize,totalSize,getPadding:function(t){return parseFloat(style(v,y("padding"+(t?"Right":"Left"))))||0},isOverflow}},Clones:function(t,n,i){var a,s=EventInterface(t),u=s.on,l=n.Elements,d=n.Slides,p=n.Direction.resolve,h=[];function mount(){u(q,remount),u([D,F],observe),(a=computeCloneCount())&&(function(n){var a=d.get().slice(),s=a.length;if(s){for(;a.length<n;)push(a,a);push(a.slice(-n),a.slice(0,n)).forEach(function(u,p){var f,y=p<n,m=(addClass(f=u.slide.cloneNode(!0),i.classes.clone),f.id=t.root.id+"-clone"+pad(p+1),f);y?before(m,a[0].slide):append(l.list,m),push(h,m),d.register(m,p-n+(y?0:s),u.index)})}}(a),n.Layout.resize(!0))}function remount(){destroy(),mount()}function destroy(){remove(h),empty(h),s.destroy()}function observe(){var t=computeCloneCount();a!==t&&(a<t||!t)&&s.emit(q)}function computeCloneCount(){var a=i.clones;if(t.is(eQ)){if(f(a)){var s=i[p("fixedWidth")]&&n.Layout.slideSize(0);a=s&&w(rect(l.track)[p("width")]/s)||i[p("autoWidth")]&&t.length||2*i.perPage}}else a=0;return a}return{mount,destroy}},Move:function(t,n,i){var a,s=EventInterface(t),u=s.on,l=s.emit,d=t.state.set,p=n.Layout,h=p.slideSize,y=p.getPadding,m=p.totalSize,g=p.listSize,v=p.sliderSize,_=n.Direction,T=_.resolve,k=_.orient,x=n.Elements,O=x.list,R=x.track;function reposition(){n.Controller.isBusy()||(n.Scroll.cancel(),jump(t.index),n.Slides.update())}function jump(t){translate(toPosition(t,!0))}
1function translate(i,a){if(!t.is(eX)){var s=a?i:function(i){if(t.is(eQ)){var a=toIndex(i),s=a>n.Controller.getEnd();(a<0||s)&&(i=shift(i,s))}return i}(i);style(O,"transform","translate"+T("X")+"("+s+"px)"),i!==s&&l("sh")}}function shift(t,n){var i=t-getLimit(n),a=v();return t-k(a*(w(E(i)/a)||1))*(n?1:-1)}function cancel(){translate(getPosition(),!0),a.cancel()}function toIndex(t){for(var i=n.Slides.get(),a=0,s=1/0,u=0;u<i.length;u++){var l=i[u].index,d=E(toPosition(l,!0)-t);if(d<=s)s=d,a=l;else break}return a}function toPosition(n,a){var s,u,l=k(m(n-1)-("center"===(s=i.focus)?(g()-h(n,!0))/2:+s*h(n)||0));return a?(u=l,i.trimSpace&&t.is(eK)&&(u=clamp(u,0,k(v(!0)-g()))),u):l}function getPosition(){var t=T("left");return rect(O)[t]-rect(R)[t]+k(y(!1))}function getLimit(t){return toPosition(t?n.Controller.getEnd():0,!!i.trimSpace)}return{mount:function(){a=n.Transition,u([I,M,D,q],reposition)},move:function(t,n,i,s){var u,p;t!==n&&(u=t>i,p=k(shift(getPosition(),u)),u?p>=0:p<=O[T("scrollWidth")]-rect(R)[T("width")])&&(cancel(),translate(shift(getPosition(),t>i),!0)),d(4),l(C,n,i,t),a.start(n,function(){d(3),l(A,n,i,t),s&&s()})},jump,translate,shift,cancel,toIndex,toPosition,getPosition,getLimit,exceededLimit:function(t,n){n=f(n)?getPosition():n;var i=!0!==t&&k(n)<k(getLimit(!1)),a=!1!==t&&k(n)>k(getLimit(!0));return i||a},reposition}},Controller:function(t,n,i){var a,s,u,l,d=EventInterface(t),h=d.on,y=d.emit,m=n.Move,v=m.getPosition,w=m.getLimit,T=m.toPosition,k=n.Slides,x=k.isEnough,O=k.getLength,I=i.omitEnd,R=t.is(eQ),C=t.is(eK),A=apply(getAdjacent,!1),j=apply(getAdjacent,!0),L=i.start||0,B=L;function init(){s=O(!0),u=i.perMove,l=i.perPage,a=getEnd();var t=clamp(L,0,I?a:s-1);t!==L&&(L=t,m.reposition())}function onResized(){a!==getEnd()&&y("ei")}function getAdjacent(t,n){var i=u||(hasFocus()?1:l),s=computeDestIndex(L+i*(t?-1:1),L,!(u||hasFocus()));return -1===s&&C&&!(1>E(v()-w(!t)))?t?0:a:n?s:loop(s)}function computeDestIndex(n,d,p){if(x()||hasFocus()){var f=function(n){if(C&&"move"===i.trimSpace&&n!==L)for(var a=v();a===T(n,!0)&&between(n,0,t.length-1,!i.rewind);)n<L?--n:++n;return n}(n);f!==n&&(d=n,n=f,p=!1),n<0||n>a?n=!u&&(between(0,n,d,!0)||between(a,d,n,!0))?toIndex(toPage(n)):R?p?n<0?-(s%l||l):s:n:i.rewind?n<0?a:0:-1:p&&n!==d&&(n=toIndex(toPage(d)+(n<d?-1:1)))}else n=-1;return n}function loop(t){return R?(t+s)%s||0:t}function getEnd(){for(var t=s-(hasFocus()||R&&u?1:l);I&&t-- >0;)if(T(s-1,!0)!==T(t,!0)){t++;break}return clamp(t,0,s-1)}function toIndex(t){return clamp(hasFocus()?t:l*t,0,a)}function toPage(t){return hasFocus()?g(t,a):_((t>=a?s-1:t)/l)}function setIndex(t){t!==L&&(B=L,L=t)}function hasFocus(){return!f(i.focus)||i.isNavigation}function isBusy(){return t.state.is([4,5])&&!!i.waitForTransition}return{mount:function(){init(),h([D,q,"ei"],init),h(M,onResized)},go:function(t,n,i){if(!isBusy()){var s=function(t){var n=L;
1if(p(t)){var i=t.match(/([+\-<>])(\d+)?/)||[],s=i[1],u=i[2];"+"===s||"-"===s?n=computeDestIndex(L+ +(""+s+(+u||1)),L):">"===s?n=u?toIndex(+u):A(!0):"<"===s&&(n=j(!0))}else n=R?t:clamp(t,0,a);return n}(t),u=loop(s);u>-1&&(n||u!==L)&&(setIndex(u),m.move(s,u,B,i))}},scroll:function(t,i,s,u){n.Scroll.scroll(t,i,s,function(){var t=loop(m.toIndex(v()));setIndex(I?g(t,a):t),u&&u()})},getNext:A,getPrev:j,getAdjacent,getEnd,setIndex,getIndex:function(t){return t?B:L},toIndex,toPage,toDest:function(t){var n=m.toIndex(t);return C?clamp(n,0,a):n},hasFocus,isBusy}},Arrows:function(t,n,i){var a,s,u=EventInterface(t),l=u.on,d=u.bind,p=u.emit,f=i.classes,h=i.i18n,y=n.Elements,m=n.Controller,g=y.arrows,v=y.track,_=g,w=y.prev,E=y.next,T={};function mount(){var t;(t=i.arrows)&&!(w&&E)&&(_=g||create("div",f.arrows),w=createArrow(!0),E=createArrow(!1),a=!0,append(_,[w,E]),g||before(_,v)),w&&E&&(assign(T,{prev:w,next:E}),display(_,t?"":"none"),addClass(_,s=eR+"--"+i.direction),t&&(l([I,A,q,W,"ei"],update),d(E,"click",apply(go,">")),d(w,"click",apply(go,"<")),update(),setAttribute([w,E],ep,v.id),p($,w,E))),l(D,remount)}function remount(){destroy(),mount()}function destroy(){u.destroy(),removeClass(_,s),a?(remove(g?[w,E]:_),w=E=null):removeAttribute([w,E],eS)}function go(t){m.go(t,!0)}function createArrow(t){return parseHtml('<button class="'+f.arrow+" "+(t?f.prev:f.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function update(){if(w&&E){var n=t.index,i=m.getPrev(),a=m.getNext(),s=i>-1&&n<i?h.last:h.prev,u=a>-1&&n>a?h.first:h.next;w.disabled=i<0,E.disabled=a<0,setAttribute(w,ey,s),setAttribute(E,ey,u),p(J,w,E,i,a)}}return{arrows:T,mount,destroy,update}},Autoplay:function(t,n,i){var a,s,u=EventInterface(t),l=u.on,d=u.bind,p=u.emit,f=RequestInterval(i.interval,t.go.bind(t,">"),function(t){var n=y.bar;n&&style(n,"width",100*t+"%"),p(ee,t)}
1),h=f.isPaused,y=n.Elements,m=n.Elements,g=m.root,v=m.toggle,_=i.autoplay,w="pause"===_;function play(){h()&&n.Slides.isEnough()&&(f.start(!i.resetProgress),s=a=w=!1,update(),p(Z))}function pause(t){void 0===t&&(t=!0),w=!!t,update(),h()||(f.pause(),p(et))}function autoToggle(){w||(a||s?pause(!1):play())}function update(){v&&(toggleClass(v,eD,!w),setAttribute(v,ey,i.i18n[w?"play":"pause"]))}function onMove(t){var a=n.Slides.getAt(t);f.set(a&&+getAttribute(a.slide,eZ)||i.interval)}return{mount:function(){_&&(i.pauseOnHover&&d(g,"mouseenter mouseleave",function(t){a="mouseenter"===t.type,autoToggle()}),i.pauseOnFocus&&d(g,"focusin focusout",function(t){s="focusin"===t.type,autoToggle()}),v&&d(v,"click",function(){w?play():pause(!0)}),l([C,H,q],f.rewind),l(C,onMove),v&&setAttribute(v,ep,y.track.id),w||play(),update())},destroy:f.cancel,play,pause,isPaused:h}},Cover:function(t,n,i){var a=EventInterface(t).on;function cover(t){n.Slides.forEach(function(n){var i=child(n.container||n.slide,"img");i&&i.src&&toggle(t,i,n)})}function toggle(t,n,i){i.style("background",t?'center/cover no-repeat url("'+n.src+'")':"",!0),display(n,t?"none":"")}return{mount:function(){i.cover&&(a(er,apply(toggle,!0)),a([I,D,q],apply(cover,!0)))},destroy:apply(cover,!1)}},Scroll:function(t,n,i){var a,s,u=EventInterface(t),l=u.on,d=u.emit,p=t.state.set,f=n.Move,h=f.getPosition,y=f.getLimit,m=f.exceededLimit,g=f.translate,w=t.is(eK),T=1;function scroll(t,i,u,l,y){var g=h();if(clear(),u&&(!w||!m())){var k=n.Layout.sliderSize(),x=sign(t)*k*_(E(t)/k)||0;t=f.toPosition(n.Controller.toDest(t%k))+x}var O=1>E(g-t);T=1,i=O?0:i||v(E(t-g)/1.5,800),s=l,a=RequestInterval(i,onEnd,apply(update,g,t,y),1),p(5),d(H),a.start()}function onEnd(){p(3),s&&s(),d(W)}function update(t,n,a,u){var l,d=h(),p=(t+(n-t)*((l=i.easingFunc)?l(u):1-Math.pow(1-u,4))-d)*T;g(d+p),w&&!a&&m()&&(T*=.6,10>E(p)&&scroll(y(m(!0)),600,!1,s,!0))}function clear(){a&&a.cancel()}function cancel(){a&&!a.isPaused()&&(clear(),onEnd())}return{mount:function(){l(C,clear),l([D,q],cancel)},destroy:clear,scroll,cancel}},Drag:function(t,n,i){var a,s,u,l,d,p,f,h,y=EventInterface(t),m=y.on,v=y.emit,_=y.bind,w=y.unbind,T=t.state,k=n.Move,x=n.Scroll,O=n.Controller,R=n.Elements.track,C=n.Media.reduce,A=n.Direction,j=A.resolve,L=A.orient,B=k.getPosition,z=k.exceededLimit,U=!1;function init(){var t=i.drag;f=!t,l="free"===t}function onPointerDown(t){if(p=!1,!f){var n,a,s=isTouchEvent(t);n=t.target,a=i.noDrag,matches(n,"."+eB+", ."+eC)||a&&matches(n,a)||!s&&t.button||(O.isBusy()?prevent(t,!0):(h=s?R:window,d=T.is([4,5]),u=null,_(h,e$,onPointerMove,e0),_(h,eJ,onPointerUp,e0),k.cancel(),x.cancel(),save(t)))}}function onPointerMove(n){if(T.is(6)||(T.set(6),v(N)),n.cancelable){if(d){k.translate(a+diffCoord(n)/(U&&t.is(eK)?5:1));var s,u,l,f,h=diffTime(n)>200,y=U!==(U=z());(h||y)&&save(n),p=!0,v(V),prevent(n)}else E(diffCoord(n))>E(diffCoord(n,!0))&&(l=(u=isObject(s=i.dragMinThreshold))&&s.mouse||0,f=(u?s.touch:+s)||10,d=E(diffCoord(n))>(isTouchEvent(n)?f:l),prevent(n))}}function onPointerUp(a){var s,u,p,f;T.is(6)&&(T.set(3),v(G)),d&&(s=u=function(n){if(t.is(eQ)||!U){var i=diffTime(n);if(i&&i<200)return diffCoord(n)/i}return 0}(a),p=B()+sign(s)*g(E(s)*(i.flickPower||600),l?1/0:n.Layout.listSize()*(i.flickMaxPages||1)),f=i.rewind&&i.rewindByDrag,C(!1),l?O.scroll(p,0,i.snap):t.is(eX)?O.go(0>L(sign(u))?f?"<":"-":f?">":"+"):t.is(eK)&&U&&f?O.go(z(!0)?">":"<"):O.go(O.toDest(p),!0),C(!0),prevent(a)),w(h,e$,onPointerMove),w(h,eJ,onPointerUp),d=!1}function onClick(t){!f&&p&&prevent(t,!0)}function save(t){u=s,s=t,a=B()}function diffCoord(t,n){return coordOf(t,n)-coordOf(s===t&&u||s,n)}function diffTime(t){return timeOf(t)-timeOf(s===t&&u||s)}function coordOf(t,n){return(isTouchEvent(t)?t.changedTouches[0]:t)["page"+j(n?"Y":"X")]}function isTouchEvent(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}return{mount:function(){_(R,e$,noop,e0),_(R,eJ,noop,e0),_(R,eY,onPointerDown,e0),_(R,"click",onClick,{capture:!0}),_(R,"dragstart",prevent),m([I,D],init)},disable:function(t){f=t},isDragging:function(){return d}}},Keyboard:function(t,n,i){var a,s,l=EventInterface(t),d=l.on,p=l.bind,f=l.unbind,h=t.root,y=n.Direction.resolve;
1function init(){var t=i.keyboard;t&&p(a="global"===t?window:h,e2,onKeydown)}function destroy(){f(a,e2)}function onMove(){var t=s;s=!0,u(function(){s=t})}function onKeydown(n){if(!s){var i=normalizeKey(n);i===y(eo)?t.go("<"):i===y(ei)&&t.go(">")}}return{mount:function(){init(),d(D,destroy),d(D,init),d(C,onMove)},destroy,disable:function(t){s=t}}},LazyLoad:function(t,n,i){var a=EventInterface(t),s=a.on,u=a.off,l=a.bind,d=a.emit,p="sequential"===i.lazyLoad,f=[A,W],h=[];function init(){empty(h),n.Slides.forEach(function(t){queryAll(t.slide,e6).forEach(function(n){var a=getAttribute(n,e3),s=getAttribute(n,e5);if(a!==n.src||s!==n.srcset){var u=i.classes.spinner,l=n.parentElement,d=child(l,"."+u)||create("span",u,l);h.push([n,t,d]),n.src||display(n,"none")}})}),p?loadNext():(u(f),s(f,check),check())}function check(){(h=h.filter(function(n){var a=i.perPage*((i.preloadPages||1)+1)-1;return!n[1].isWithin(t.index,a)||load(n)})).length||u(f)}function load(t){var n=t[0];addClass(t[1].slide,eV),l(n,"load error",apply(onLoad,t)),setAttribute(n,"src",getAttribute(n,e3)),setAttribute(n,"srcset",getAttribute(n,e5)),removeAttribute(n,e3),removeAttribute(n,e5)}function onLoad(t,n){var i=t[0],a=t[1];removeClass(a.slide,eV),"error"!==n.type&&(remove(t[2]),display(i,""),d(er,i,a),d(F)),p&&loadNext()}function loadNext(){h.length&&load(h.shift())}return{mount:function(){i.lazyLoad&&(init(),s(q,init))},destroy:apply(empty,h),check}},Pagination:function(t,n,i){var a,s,u=EventInterface(t),l=u.on,d=u.emit,p=u.bind,f=n.Slides,h=n.Elements,y=n.Controller,m=y.hasFocus,g=y.getIndex,v=y.go,_=n.Direction.resolve,E=h.pagination,T=[];function destroy(){a&&(remove(E?slice(a.children):a),removeClass(a,s),empty(T),a=null),u.destroy()}function onClick(t){v(">"+t,!0)}function onKeydown(t,n){var i=T.length,a=normalizeKey(n),s=getDirection(),u=-1;a===_(ei,!1,s)?u=++t%i:a===_(eo,!1,s)?u=(--t+i)%i:"Home"===a?u=0:"End"===a&&(u=i-1);var l=T[u];l&&(focus(l.button),v(">"+u),prevent(n,!0))}function getDirection(){return i.paginationDirection||i.direction}function getAt(t){return T[y.toPage(t)]}function update(){var t=getAt(g(!0)),n=getAt(g());if(t){var i=t.button;removeClass(i,eD),removeAttribute(i,eh),setAttribute(i,ec,-1)}if(n){var s=n.button;addClass(s,eD),setAttribute(s,eh,!0),setAttribute(s,ec,"")}d(Q,{list:a,items:T},t,n)}return{items:T,mount:function mount(){destroy(),l([D,q,"ei"],mount);var n=i.pagination;E&&display(E,n?"":"none"),n&&(l([C,H,W],update),function(){var n=t.length,u=i.classes,l=i.i18n,d=i.perPage,g=m()?y.getEnd()+1:w(n/d);addClass(a=E||create("ul",u.pagination,h.track.parentElement),s=eL+"--"+getDirection()),setAttribute(a,el,"tablist"),setAttribute(a,ey,l.select),setAttribute(a,eb,"ttb"===getDirection()?"vertical":"");for(var v=0;v<g;v++){var _=create("li",null,a),k=create("button",{class:u.page,type:"button"},_),x=f.getIn(v).map(function(t){return t.slide.id}),O=!m()&&d>1?l.pageX:l.slideX;p(k,"click",apply(onClick,v)),i.paginationKeyboard&&p(k,"keydown",apply(onKeydown,v)),setAttribute(_,el,"presentation"),setAttribute(k,el,"tab"),setAttribute(k,ep,x.join(" ")),setAttribute(k,ey,format(O,v+1)),setAttribute(k,ec,-1),T.push({li:_,button:k,page:v})}}(),update(),d(K,{list:a,items:T},getAt(t.index)))},destroy,getAt,update}},Sync:function(t,n,i){var a=i.isNavigation,s=i.slideFocus,u=[];function mount(){var n,i;t.splides.forEach(function(n){n.isParent||(sync(t,n.splide),sync(n.splide,t))}),a&&((i=(n=EventInterface(t)).on)(j,onClick),i("sk",onKeydown),i([I,D],update),u.push(n),n.emit(X,t.splides))}function destroy(){u.forEach(function(t){t.destroy()}),empty(u)}function sync(t,n){var i=EventInterface(t);i.on(C,function(t,i,a){n.go(n.is(eQ)?a:t)}),u.push(i)}function update(){setAttribute(n.Elements.list,eb,"ttb"===i.direction?"vertical":"")}function onClick(n){t.go(n.index)}function onKeydown(t,n){includes(e4,normalizeKey(n))&&(onClick(t),prevent(n))}return{setup:apply(n.Media.set,{slideFocus:f(s)?a:s},!0),mount,destroy,remount:function(){destroy(),mount()}}},Wheel:function(t,n,i){var a=EventInterface(t).bind,s=0;function onWheel(a){if(a.cancelable){var u=a.deltaY,l=u<0,d=timeOf(a),p=i.wheelMinThreshold||0,f=i.wheelSleep||0;E(u)>p&&d-s>f&&(t.go(l?"<":">"),s=d),(!i.releaseWheel||t.state.is(4)||-1!==n.Controller.getAdjacent(l))&&prevent(a)}}return{mount:function(){i.wheel&&a(n.Elements.track,"wheel",onWheel,e0)}}},Live:function(t,n,i){var a=EventInterface(t).on,s=n.Elements.track,u=i.live&&!i.isNavigation,l=create("span",eq),d=RequestInterval(90,apply(toggle,!1));function toggle(t){setAttribute(s,ew,t),t?(append(s,l),d.start()):(remove(l),d.cancel())}function disable(t){u&&setAttribute(s,e_,t?"off":"polite")}return{mount:function(){u&&(disable(!n.Autoplay.isPaused()),setAttribute(s,eE,!0),l.textContent="…",a(Z,apply(disable,!0)),a(et,apply(disable,!1)),a([A,W],apply(toggle,!0)))}
1,disable,destroy:function(){removeAttribute(s,[e_,eE,ew]),remove(l)}}}}),e7={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:{slide:ex,clone:eO,arrows:eR,arrow:eC,prev:eA,next:ej,pagination:eL,page:eB,spinner:eT+"spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Fade(t,n,i){var a=n.Slides;function init(){a.forEach(function(t){t.style("transform","translateX(-"+100*t.index+"%)")})}return{mount:function(){EventInterface(t).on([I,q],init)},start:function(t,n){a.style("transition","opacity "+i.speed+"ms "+i.easing),u(n)},cancel:noop}}function Slide(t,n,i){var a,s=n.Move,u=n.Controller,l=n.Scroll,d=n.Elements.list,p=apply(style,d,"transition");function cancel(){p(""),l.cancel()}return{mount:function(){EventInterface(t).bind(d,"transitionend",function(t){t.target===d&&a&&(cancel(),a())})},start:function(n,d){var f=s.toPosition(n,!0),h=s.getPosition(),y=function(n){var a=i.rewindSpeed;if(t.is(eK)&&a){var s=u.getIndex(!0),l=u.getEnd();if(0===s&&n>=l||s>=l&&0===n)return a}return i.speed}(n);E(f-h)>=1&&y>=1?i.useScroll?l.scroll(f,y,!1,d):(p("transform "+y+"ms "+i.easing),s.translate(f,!0),a=d):(s.jump(n),d())},cancel}}var e9=function(){function _Splide2(t,n){this.event=EventInterface(),this.Components={},this.state=(i=1,{set:function(t){i=t},is:function(t){return includes(toArray(t),i)}}),this.splides=[],this._o={},this._E={};var i,a=p(t)?query(document,t):t;assert(a,a+" is invalid."),this.root=a,n=merge({label:getAttribute(a,ey)||"",labelledby:getAttribute(a,em)||""},e7,_Splide2.defaults,n||{});try{merge(n,JSON.parse(getAttribute(a,m)))}catch(t){assert(!1,"Invalid JSON")}this._o=Object.create(merge({},n))}var t,n,i=_Splide2.prototype;return i.mount=function(t,n){var i=this,a=this.state,s=this.Components;return assert(a.is([1,7]),"Already mounted!"),a.set(1),this._C=s,this._T=n||this._T||(this.is(eX)?Fade:Slide),this._E=t||this._E,forOwn(assign({},e8,this._E,{Transition:this._T}),function(t,n){var a=t(i,s,i._o);s[n]=a,a.setup&&a.setup()}),forOwn(s,function(t){t.mount&&t.mount()}),this.emit(I),addClass(this.root,"is-initialized"),a.set(3),this.emit(R),this},i.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},i.go=function(t){return this._C.Controller.go(t),this},i.on=function(t,n){return this.event.on(t,n),this},i.off=function(t){return this.event.off(t),this},i.emit=function(t){var n;return(n=this.event).emit.apply(n,[t].concat(slice(arguments,1))),this},i.add=function(t,n){return this._C.Slides.add(t,n),this},i.remove=function(t){return this._C.Slides.remove(t),this},i.is=function(t){return this._o.type===t},i.refresh=function(){return this.emit(q),this},i.destroy=function(t){void 0===t&&(t=!0);var n=this.event,i=this.state;return i.is(1)?EventInterface(this).on(R,this.destroy.bind(this,t)):(forOwn(this._C,function(n){n.destroy&&n.destroy(t)},!0),n.emit(Y),n.destroy(),t&&empty(this.splides),i.set(7)),this},t=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}],_defineProperties(_Splide2.prototype,t),n&&_defineProperties(_Splide2,n),Object.defineProperty(_Splide2,"prototype",{writable:!1}),_Splide2}();e9.defaults={},e9.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};var te=[[I,"onMounted"],[R,"onReady"],[C,"onMove"],[A,"onMoved"],[j,"onClick"],[L,"onActive"],[B,"onInactive"],[z,"onVisible"],[U,"onHidden"],[q,"onRefresh"],[D,"onUpdated"],[F,"onResize"],[M,"onResized"],[N,"onDrag"],[V,"onDragging"],[G,"onDragged"],[H,"onScroll"],[W,"onScrolled"],[Y,"onDestroy"],[$,"onArrowsMounted"],[J,"onArrowsUpdated"],[K,"onPaginationMounted"],[Q,"onPaginationUpdated"],[X,"onNavigationMounted"],[Z,"onAutoplayPlay"],[ee,"onAutoplayPlaying"],[et,"onAutoplayPause"],[er,"onLazyLoadLoaded"]];function classNames(...t){return t.filter(Boolean).join(" ")}function isObject2(t){return null!==t&&"object"==typeof t}function merge2(t,n){return!function(t,n){if(t){let i=Object.keys(t);for(let a=0;a<i.length;a++){let s=i[a];if("__proto__"!==s&&!1===n(t[s],s))break}}}(n,(n,i)=>
1{Array.isArray(n)?t[i]=n.slice():isObject2(n)?t[i]=merge2(isObject2(t[i])?t[i]:{},n):t[i]=n}),t}var SplideTrack=({children:t,className:n,...i})=>a.createElement("div",{className:classNames("splide__track",n),...i},a.createElement("ul",{className:"splide__list"},t)),tt=class extends a.Component{constructor(){super(...arguments),this.splideRef=a.createRef(),this.slides=[]}componentDidMount(){let{options:t,extensions:n,transition:i}=this.props,{current:a}=this.splideRef;a&&(this.splide=new e9(a,t),this.bind(this.splide),this.splide.mount(n,i),this.options=merge2({},t||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){var t;if(!this.splide)return;let{options:n}=this.props;n&&!function isEqualDeep(t,n){if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&!t.some((t,i)=>!isEqualDeep(t,n[i]));if(isObject2(t)&&isObject2(n)){let i=Object.keys(t),a=Object.keys(n);return i.length===a.length&&!i.some(i=>!Object.prototype.hasOwnProperty.call(n,i)||!isEqualDeep(t[i],n[i]))}return t===n}(this.options,n)&&(this.splide.options=n,this.options=merge2({},n));let i=this.getSlides();((t=this.slides).length!==i.length||t.some((t,n)=>t!==i[n]))&&(this.splide.refresh(),this.slides=i)}sync(t){var n;null==(n=this.splide)||n.sync(t)}go(t){var n;null==(n=this.splide)||n.go(t)}getSlides(){var t;if(this.splide){let n=null==(t=this.splide.Components.Elements)?void 0:t.list.children;return n&&Array.prototype.slice.call(n)||[]}return[]}bind(t){te.forEach(([n,i])=>{let a=this.props[i];"function"==typeof a&&t.on(n,(...n)=>{a(t,...n)})})}omit(t,n){return n.forEach(n=>{Object.prototype.hasOwnProperty.call(t,n)&&delete t[n]}),t}render(){let{className:t,tag:n="div",hasTrack:i=!0,children:s,...u}=this.props;return a.createElement(n,{className:classNames("splide",t),ref:this.splideRef,...this.omit(u,["options",...te.map(t=>t[1])])},i?a.createElement(SplideTrack,null,s):s)}},SplideSlide=({children:t,className:n,...i})=>a.createElement("li",{className:classNames("splide__slide",n),...i},t);/*!
2 * Splide.js
3 * Version  : 4.1.0
4 * License  : MIT
5 * Copyright: 2022 Naotoshi Fujita
6 */},48186:function(t,n,i){let a=i(18519),s=i(39532),u=i(60816),l=i(85404),[d,{lineHeight:p}]=u.fontSize.base,{spacing:f,borderWidth:h,borderRadius:y}=u;function resolveColor(t,n){return t.replace("<alpha-value>",`var(${n}, 1)`)}let m=s.withOptions(function(t={strategy:void 0}){return function({addBase:n,addComponents:i,theme:s}){var u;let m;let g=void 0===t.strategy?["base","class"]:[t.strategy],v=[{base:["input:where([type='text'])","input:where(:not([type]))","input:where([type='email'])","input:where([type='url'])","input:where([type='password'])","input:where([type='number'])","input:where([type='date'])","input:where([type='datetime-local'])","input:where([type='month'])","input:where([type='search'])","input:where([type='tel'])","input:where([type='time'])","input:where([type='week'])","select:where([multiple])","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":resolveColor(s("colors.gray.500",l.gray[500]),"--tw-border-opacity"),"border-width":h.DEFAULT,"border-radius":y.none,"padding-top":f[2],"padding-right":f[3],"padding-bottom":f[2],"padding-left":f[3],"font-size":d,"line-height":p,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":resolveColor(s("colors.blue.600",l.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
6dow)","border-color":resolveColor(s("colors.blue.600",l.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:resolveColor(s("colors.gray.500",l.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${a(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${(u=l.gray[500],!(m=s("colors.gray.500"))||m.includes("var(")?u:m.replace("<alpha-value>","1"))}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>`)}")`,"background-position":`right ${f[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":f[10],"print-color-adjust":"exact"}},{base:["select:where([multiple])",'select:where([size]:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":f[3],"print-color-adjust":"unset"}},{base:["input:where([type='checkbox'])","input:where([type='radio'])"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:f[4],width:f[4],color:resolveColor(s("colors.blue.600",l.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":resolveColor(s("colors.gray.500",l.gray[500]),"--tw-border-opacity"),"border-width":h.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["input:where([type='checkbox'])"],class:[".form-checkbox"],styles:{"border-radius":y.none}},{base:["input:where([type='radio'])"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["input:where([type='checkbox']):focus","input:where([type='radio']):focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":resolveColor(s("colors.blue.600",l.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
6dow)"}},{base:["input:where([type='checkbox']):checked","input:where([type='radio']):checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["input:where([type='checkbox']):checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${a('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["input:where([type='radio']):checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${a('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["input:where([type='checkbox']):checked:hover","input:where([type='checkbox']):checked:focus","input:where([type='radio']):checked:hover","input:where([type='radio']):checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["input:where([type='checkbox']):indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${a('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8h8"/></svg>')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["input:where([type='checkbox']):indeterminate:hover","input:where([type='checkbox']):indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["input:where([type='file'])"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["input:where([type='file']):focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],getStrategyRules=t=>v.map(n=>null===n[t]?null:{[n[t]]:n.styles}).filter(Boolean);g.includes("base")&&n(getStrategyRules("base")),g.includes("class")&&i(getStrategyRules("class"))}});t.exports=m},91754:function(t){t.exports.he=globalThis.fetch},79766:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=class{constructor(t,n){this._meta=void 0,this._task=t,this._scheduler=n}withDescriptor(t){return this._descriptor=t,this}withMutex(t){return this._mutex=t,this}withMeta(t){return this._meta=t,this}runBeforeExecuting(t){return this._onPreExecute=t,this}handleCollisions(t){return this._onTaskCollision=t,this}execute(t){return this._scheduler.enqueue({priority:t,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}},10365:function(t,n){"use strict";var i;Object.defineProperty(n,"__esModule",{value:!0}),n.TaskCollisionStrategy=void 0,(i=n.TaskCollisionStrategy||(n.TaskCollisionStrategy={}))[i.DEFAULT=0]="DEFAULT",i[i.KEEP_THIS=1]="KEEP_THIS",i[i.KEEP_OTHER=2]="KEEP_OTHER",i[i.KEEP_BOTH=3]="KEEP_BOTH",i[i.RESOLVE_THIS=4]="RESOLVE_THIS",i[i.RESOLVE_OTHER=5]="RESOLVE_OTHER"},71457:function(t,n,i){"use strict";var a,s,u=this&&this.__awaiter||function(t,n,i,a){return new(i||(i=Promise))(function(s,u){function fulfilled(t){try{step(a.next(t))}catch(t){u(t)}}function rejected(t){try{step(a.throw(t))}catch(t){u(t)}}function step(t){var n;t.done?s(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});let d=i(10365),p=l(i(68452)),f=i(95564),h=l(i(79766));function rejectTask(t,n){for(let i of t.listeners)i.reject(n)}(a=s||(s={}
6))[a.PENDING=0]="PENDING",a[a.EXECUTING=1]="EXECUTING",a[a.TERMINATED=2]="TERMINATED",n.default=class{constructor(t,n={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=t,this._samePriorityMutex=!!n.samePriorityMutex,this._mutexStrategy=n.mutexStrategy||f.mutexEquality,n.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(t){return new Promise((n,i)=>{"function"==typeof t&&(t={priority:0,execute:t});let a=this._checkMutexes(t,n,i);a.task?this._addTask(a.task):a.canceled&&i(this.createCanceledError())})}prepare(t){return new h.default(t,this)}_addTask(t){this._queue.push(t),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((t,n)=>n.state===s.EXECUTING?t+1:t,0)}createCanceledError(){return new p.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(t=>t.state===s.PENDING)}_isIdle(){return 0===this._queue.length||!this._queue.find(t=>t.state!==s.TERMINATED)}_removeTaskAt(t){this._queue.splice(t,1)}_executeTask(t){return u(this,void 0,void 0,function*(){try{return t.task.onPreExecute&&t.task.onPreExecute(),yield t.task.execute()}catch(t){throw t}finally{t.state=s.TERMINATED;let n=this._queue.indexOf(t);this._removeTaskAt(n),this._executeNextTasks()}})}_executeNextTasks(){let t=this.executingTasks;if(t>=this._maxConcurrentTasks)return;let n=this._maxConcurrentTasks-t;for(let t=0;t<n;t++){let t=this._findFirstPendingTask();if(!t){this._isIdle()&&this._switchToIdle();return}t.state=s.EXECUTING,this._executeTask(t).then(n=>{for(let{resolve:i}of t.listeners)try{i(n)}catch(t){this._errorLog("An error occurred while resolving listener",t)}}).catch(n=>{for(let{reject:i}of t.listeners)try{i(n)}catch(t){this._errorLog("An error occurred while rejecting listener",t)}})}}_switchToIdle(){this._isExecuting=!1;let t=this._idleListeners;for(let{resolve:n}of(this._idleListeners=[],t))try{n()}catch(t){}}waitForIdle(){return this._isExecuting?new Promise((t,n)=>{this._idleListeners.push({resolve:t,reject:n})}):Promise.resolve()}_applyPriorities(){this._queue.sort((t,n)=>n.task.priority-t.task.priority)}_checkMutexes(t,n,i){for(let a=0;a<this._queue.length;a++){let u,l,p=this._queue[a];if(p.state!==s.TERMINATED&&(!this._samePriorityMutex||p.task.priority==t.priority)&&p.task.mutex&&t.mutex&&this._mutexStrategy(p.task.mutex,t.mutex)){if(p.task.onTaskCollision){if((u=p.task.onTaskCollision(t))===d.TaskCollisionStrategy.KEEP_OTHER&&p.state!==s.EXECUTING){this._removeTaskAt(a--),rejectTask(p,this.createCanceledError());continue}if(u===d.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(u===d.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(a--),{canceled:!1,task:{task:t,state:s.PENDING,listeners:[{resolve:n,reject:i},...p.listeners]}};if(u===d.TaskCollisionStrategy.RESOLVE_THIS)return p.listeners=[...p.listeners,{resolve:n,reject:i}],{canceled:!1}}if(t.onTaskCollision){if((l=t.onTaskCollision(p.task))===d.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(l===d.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(a--),rejectTask(p,this.createCanceledError());continue}if(l===d.TaskCollisionStrategy.RESOLVE_OTHER)return p.listeners=[...p.listeners,{resolve:n,reject:i}],{canceled:!1};if(l===d.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(a--),{canceled:!1,task:{task:t,state:s.PENDING,listeners:[{resolve:n,reject:i},...p.listeners]}}}if(u!==d.TaskCollisionStrategy.KEEP_BOTH||l!==d.TaskCollisionStrategy.KEEP_BOTH)return{canceled:!0}}}return{canceled:!1,task:{task:t,state:s.PENDING,listeners:[{resolve:n,reject:i}]}}}}},68452:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=class{constructor(t,n){this._code=t,this._message=n}get code(){return this._code}get message(){return this._message}}},95564:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mutexEquality=n.mutexBitwiseAnd=void 0,n.mutexBitwiseAnd=function(t,n){return(t&n)!=0},n.mutexEquality=function(t,n){return t===n}},68589:function(t,n,i){"use strict";var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.mutexEquality=n.mutexBitwiseAnd=n.SchedulerError=n.TaskCollisionStrategy=n.Scheduler
6=void 0;let s=a(i(71457));n.Scheduler=s.default;let u=i(10365);Object.defineProperty(n,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});let l=a(i(68452));n.SchedulerError=l.default;let d=i(95564);Object.defineProperty(n,"mutexBitwiseAnd",{enumerable:!0,get:function(){return d.mutexBitwiseAnd}}),Object.defineProperty(n,"mutexEquality",{enumerable:!0,get:function(){return d.mutexEquality}})},22481:function(t,n,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(t,n,i,a){void 0===a&&(a=i);var s=Object.getOwnPropertyDescriptor(n,i);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,a,s)}:function(t,n,i,a){void 0===a&&(a=i),t[a]=n[i]}),s=this&&this.__exportStar||function(t,n){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(n,i)||a(n,t,i)};n.__esModule=!0,s(i(99529),n)},99529:function(t,n,i){"use strict";var a,s=this&&this.__extends||(a=function(t,n){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},l=this&&this.__awaiter||function(t,n,i,a){return new(i||(i=Promise))(function(s,u){function fulfilled(t){try{step(a.next(t))}catch(t){u(t)}}function rejected(t){try{step(a.throw(t))}catch(t){u(t)}}function step(t){var n;t.done?s(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(fulfilled,rejected)}step((a=a.apply(t,n||[])).next())})},d=this&&this.__generator||function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}};n.__esModule=!0,n.subscribeToQuery=n.InvalidResponseError=n.Response400Error=n.Response500Error=void 0;var p=i(62771),f="undefined"!=typeof MessageEvent?MessageEvent:function(t,n){this.type=t,this.data=null==n?void 0:n.data},h=function(t){function Response500Error(n,i){var a=t.call(this,n)||this;return Object.setPrototypeOf(a,Response500Error.prototype),a.response=i,a}return s(Response500Error,t),Response500Error}(Error);n.Response500Error=h;var y=function(t){function Response400Error(n,i){var a=t.call(this,n)||this;return Object.setPrototypeOf(a,Response400Error.prototype),a.response=i,a}return s(Response400Error,t),Response400Error}(Error);n.Response400Error=y;var m=function(t){function InvalidResponseError(n,i){var a=t.call(this,n)||this;return Object.setPrototypeOf(a,InvalidResponseError.prototype),a.response=i,a}return s(InvalidResponseError,t),InvalidResponseError}(Error);n.InvalidResponseError=m,n.subscribeToQuery=function subscribeToQuery(t){return l(this,void 0,void 0,function(){var n,i,a,s,g,v,_,w,E,T,k,x,O,I,R,C,A,
6j,L,B,z,U,q,D,F,M,N=this;return d(this,function(V){switch(V.label){case 0:n=t.query,i=t.token,a=t.variables,s=t.preview,g=t.includeDrafts,v=t.excludeInvalid,_=t.environment,w=t.fetcher,E=t.eventSourceClass,T=t.onStatusChange,k=t.onUpdate,x=t.onChannelError,O=t.onError,I=t.onEvent,R=t.reconnectionPeriod,C=t.baseUrl,A=w||window.fetch,j=E||window.EventSource,L=Math.min(R||1e3,2e4),B=C||"https://graphql-listen.datocms.com",z=function(){return l(N,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,new Promise(function(t){return setTimeout(t,L)})];case 1:return n.sent(),[2,subscribeToQuery(u(u({},t),{reconnectionPeriod:2*L*(1+(.2*Math.random()-.1))}))]}})})},T&&T("connecting"),V.label=1;case 1:return V.trys.push([1,4,,5]),q="string"==typeof n?n:(0,p.print)(n),[4,A(B,{headers:u(u(u({Authorization:"Bearer ".concat(i),Accept:"application/json"},_?{"X-Environment":_}:{}),g||s?{"X-Include-Drafts":"true"}:{}),v?{"X-Exclude-Invalid":"true"}:{}),method:"POST",body:JSON.stringify({query:q,variables:a})})];case 2:if((D=V.sent()).status>=300&&D.status<500)throw new y("Invalid status code: ".concat(D.status," ").concat(D.statusText),D);if(D.status>=500)throw new h("Invalid status code: ".concat(D.status," ").concat(D.statusText),D);if("application/json"!==D.headers.get("Content-Type"))throw new m("Invalid content type: ".concat(D.headers.get("Content-Type")),D);return[4,D.json()];case 3:return U=V.sent().url,I&&I({status:"connecting",channelUrl:U,message:"Received channel URL",response:D}),[3,5];case 4:if(F=V.sent(),O&&(M=new f("FetchError",{data:F}),O(M)),F instanceof y)throw F;return T&&T("closed"),[2,z()];case 5:return[2,new Promise(function(t){var n=new j(U),i=!1,unsubscribe=function(){2!==n.readyState&&(i=!0,n.close())};n.addEventListener("open",function(){T&&T("connected"),t(unsubscribe)});var a=setInterval(function(){2!==n.readyState||(clearInterval(a),T&&T("closed"),i||z())},300);n.addEventListener("update",function(t){var n=JSON.parse(t.data);k(n)}),n.addEventListener("channelError",function(t){var a=JSON.parse(t.data);a.fatal&&(i=!0),x&&x(a),n.close()}),n.addEventListener("onerror",function(t){O&&O(t),n.close()})})]}})})}},82091:function(t,n,i){"use strict";i.d(n,{o:function(){return Pivot}});var a=i(75271);let Burger=({color:t="currentColor",direction:n="left",distance:i="md",duration:s=.4,easing:u="cubic-bezier(0, 0, 0, 1)",hideOutline:l=!0,label:d,lines:p=3,onToggle:f,render:h,rounded:y=!1,size:m=32,toggle:g,toggled:v})=>{let[_,w]=(0,a.useState)(!1),E=Math.max(12,Math.min(48,m)),T=Math.round((48-E)/2),k=E/12,x=Math.round(k),O=E/(p*(("lg"===i?.25:"sm"===i?.75:.5)+(3===p?1:1.25))),I=Math.round(O),R=x*p+I*(p-1),C=(k-x+(O-I))/(3===p?1:2),A=parseFloat((E/(3===p?"lg"===i?4.0425:"sm"===i?5.1625:4.6325:"lg"===i?6.7875:"sm"===i?8.4875:7.6675)-C/(4/3)).toFixed(2)),j=Math.max(0,s),L={cursor:"pointer",height:"48px",position:"relative",transition:`${j}s ${u}`,userSelect:"none",width:"48px"},B={background:t,height:`${x}px`,left:`${T}px`,position:"absolute"};l&&(L.outline="none"),y&&(B.borderRadius="9em");let z=g||w,U=void 0!==v?v:_;return h({barHeight:x,barStyles:B,burgerStyles:L,easing:u,handler:()=>{z(!U),"function"==typeof f&&f(!U)},isLeft:"left"===n,isToggled:U,label:d,margin:I,move:A,time:j,topOffset:Math.round((48-R)/2),width:E})};function _extends(){return(_extends=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t}).apply(this,arguments)}let Pivot=t=>a.createElement(Burger,_extends({},t,{lines:2,render:t=>a.createElement("div",{className:"hamburger-react","aria-label":t.label,"aria-expanded":t.isToggled,onClick:t.handler,onKeyUp:n=>"Enter"===n.key&&t.handler(),role:"button",style:{...t.burgerStyles,transform:`${t.isToggled?`rotate(${90*(t.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},a.createElement("div",{style:{transition:`${t.time/2}s ${t.easing} ${t.isToggled?"0s":`${t.time/2}s`}`,transform:`${t.isToggled?`translateY(${t.barHeight/2+t.margin/2}px)`:"none"}`}},a.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset}px`,transition:`${t.time/2}s ${t.easing} ${t.isToggled?`${t.time/2}s`:"0s"}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?1:-1)}deg)`:"none"}`}})),a.createElement("div",{style:{transition:`${t.time/2}s ${t.easing} ${t.isToggled?"0s":`${t.time/2}s`}`,transform:`${t.isToggled?`translateY(-${t.barHeight/2+t.margin/2}px)`:"none"}`}},a.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+t.barHeight+t.margin}px`,transition:`${t.time/2}s ${t.easing} ${t.isToggled?`${t.time/2}s`:"0s"}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?-1:1)}deg)`:"none"}`}})))}))},18519:function(t,n,i){var a=i(82955);function specialHexEncode(t){switch(t){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return t.toLowerCase()}}function svgToTinyDataUri(t){var n;if("string"!=typeof t)throw TypeError("Expected a string, but received "+typeof t);return 65279===t.charCodeAt(0)&&(t=t.slice(1)),"data:image/svg+xml,"+encodeURIComponent((n=t.trim().replace(/\s+/g," "),Object.keys(a).forEac
6h(function(t){a[t].test(n)&&(n=n.replace(a[t],t))}),n).replace(/"/g,"'")).replace(/%[\dA-F]{2}/g,specialHexEncode)}svgToTinyDataUri.toSrcset=function(t){return svgToTinyDataUri(t).replace(/ /g,"%20")},t.exports=svgToTinyDataUri},82955:function(t){t.exports={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi}},37069:function(t,n,i){"use strict";function clientHookInServerComponentError(t){}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),i(81351),i(75271),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},8782:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{ReadonlyURLSearchParams:function(){return ReadonlyURLSearchParams},useSearchParams:function(){return useSearchParams},usePathname:function(){return usePathname},ServerInsertedHTMLContext:function(){return p.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return p.useServerInsertedHTML},useRouter:function(){return useRouter},useParams:function(){return useParams},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},redirect:function(){return f.redirect},permanentRedirect:function(){return f.permanentRedirect},RedirectType:function(){return f.RedirectType},notFound:function(){return h.notFound}});let a=i(75271),s=i(81341),u=i(18140),l=i(37069),d=i(25118),p=i(11070),f=i(71084),h=i(16986),y=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}let ReadonlyURLSearchParams=class ReadonlyURLSearchParams{[Symbol.iterator](){return this[y][Symbol.iterator]()}append(){throw readonlyURLSearchParamsError()}delete(){throw readonlyURLSearchParamsError()}set(){throw readonlyURLSearchParamsError()}sort(){throw readonlyURLSearchParamsError()}constructor(t){this[y]=t,this.entries=t.entries.bind(t),this.forEach=t.forEach.bind(t),this.get=t.get.bind(t),this.getAll=t.getAll.bind(t),this.has=t.has.bind(t),this.keys=t.keys.bind(t),this.values=t.values.bind(t),this.toString=t.toString.bind(t),this.size=t.size}};function useSearchParams(){(0,l.clientHookInServerComponentError)("use
6SearchParams");let t=(0,a.useContext)(u.SearchParamsContext),n=(0,a.useMemo)(()=>t?new ReadonlyURLSearchParams(t):null,[t]);return n}function usePathname(){return(0,l.clientHookInServerComponentError)("usePathname"),(0,a.useContext)(u.PathnameContext)}function useRouter(){(0,l.clientHookInServerComponentError)("useRouter");let t=(0,a.useContext)(s.AppRouterContext);if(null===t)throw Error("invariant expected app router to be mounted");return t}function useParams(){(0,l.clientHookInServerComponentError)("useParams");let t=(0,a.useContext)(s.GlobalLayoutRouterContext),n=(0,a.useContext)(u.PathParamsContext);return(0,a.useMemo)(()=>(null==t?void 0:t.tree)?function getSelectedParams(t,n){void 0===n&&(n={});let i=t[1];for(let t of Object.values(i)){let i=t[0],a=Array.isArray(i),s=a?i[1]:i;if(!s||s.startsWith("__PAGE__"))continue;let u=a&&("c"===i[2]||"oc"===i[2]);u?n[i[0]]=i[1].split("/"):a&&(n[i[0]]=i[1]),n=getSelectedParams(t,n)}return n}(t.tree):n,[null==t?void 0:t.tree,n])}function useSelectedLayoutSegments(t){void 0===t&&(t="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:n}=(0,a.useContext)(s.LayoutRouterContext);return function getSelectedLayoutSegmentPath(t,n,i,a){let s;if(void 0===i&&(i=!0),void 0===a&&(a=[]),i)s=t[1][n];else{var u;let n=t[1];s=null!=(u=n.children)?u:Object.values(n)[0]}if(!s)return a;let l=s[0],p=(0,d.getSegmentValue)(l);return!p||p.startsWith("__PAGE__")?a:(a.push(p),getSelectedLayoutSegmentPath(s,n,!1,a))}(n,t)}function useSelectedLayoutSegment(t){void 0===t&&(t="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegment");let n=useSelectedLayoutSegments(t);return 0===n.length?null:n[0]}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},16986:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{notFound:function(){return notFound},isNotFoundError:function(){return isNotFoundError}});let i="NEXT_NOT_FOUND";function notFound(){let t=Error(i);throw t.digest=i,t}function isNotFoundError(t){return(null==t?void 0:t.digest)===i}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},71084:function(t,n,i){"use strict";var a,s;Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{RedirectType:function(){return a},getRedirectError:function(){return getRedirectError},redirect:function(){return redirect},permanentRedirect:function(){return permanentRedirect},isRedirectError:function(){return isRedirectError},getURLFromRedirectError:function(){return getURLFromRedirectError},getRedirectTypeFromError:function(){return getRedirectTypeFromError}});let u=i(54829),l="NEXT_REDIRECT";function getRedirectError(t,n,i){void 0===i&&(i=!1);let a=Error(l);a.digest=l+";"+n+";"+t+";"+i;let s=u.requestAsyncStorage.getStore();return s&&(a.mutableCookies=s.mutableCookies),a}function redirect(t,n){throw void 0===n&&(n="replace"),getRedirectError(t,n,!1)}function permanentRedirect(t,n){throw void 0===n&&(n="replace"),getRedirectError(t,n,!0)}function isRedirectError(t){if("string"!=typeof(null==t?void 0:t.digest))return!1;let[n,i,a,s]=t.digest.split(";",4);return n===l&&("replace"===i||"push"===i)&&"string"==typeof a&&("true"===s||"false"===s)}function getURLFromRedirectError(t){return isRedirectError(t)?t.digest.split(";",3)[2]:null}function getRedirectTypeFromError(t){if(!isRedirectError(t))throw Error("Not a redirect error");return t.digest.split(";",3)[1]}(s=a||(a={})).push="push",s.replace="replace",("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},25118:function(t,n){"use strict";function getSegmentValue(t){return Array.isArray(t)?t[1]:t}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getSegmentValue",{enumerable:!0,get:function(){return getSegmentValue}}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
6dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},56620:function(t,n){"use strict";var i,a;Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{PrefetchKind:function(){return i},ACTION_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return d},ACTION_PREFETCH:function(){return p},ACTION_FAST_REFRESH:function(){return f},ACTION_SERVER_ACTION:function(){return h}});let s="refresh",u="navigate",l="restore",d="server-patch",p="prefetch",f="fast-refresh",h="server-action";(a=i||(i={})).AUTO="auto",a.FULL="full",a.TEMPORARY="temporary",("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},93225:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}});let a=i(48937);function getDomainLocale(t,n,s,u){{let l=i(47968).normalizeLocalePath,d=i(4034).detectDomainLocale,p=n||l(t,s).detectedLocale,f=d(u,void 0,p);if(f){let n="http"+(f.http?"":"s")+"://",i=p===f.defaultLocale?"":"/"+p;return""+n+f.domain+(0,a.normalizePathTrailingSlash)(""+i+t)}return!1}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},74514:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return _}});let a=i(81351),s=i(35815),u=s._(i(75271)),l=a._(i(30967)),d=a._(i(63637)),p=i(13330),f=i(28875),h=i(14214);i(33986);let y=i(86978),m=a._(i(41755)),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function handleLoading(t,n,i,a,s,u){let l=null==t?void 0:t.src;if(!t||t["data-loaded-src"]===l)return;t["data-loaded-src"]=l;let d="decode"in t?t.decode():Promise.resolve();d.catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==n&&s(!0),null==i?void 0:i.current){let n=new Event("load");Object.defineProperty(n,"target",{writable:!1,value:t});let a=!1,s=!1;i.current({...n,nativeEvent:n,currentTarget:t,target:t,isDefaultPrevented:()=>a,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{a=!0,n.preventDefault()},stopPropagation:()=>{s=!0,n.stopPropagation()}})}(null==a?void 0:a.current)&&a.current(t)}})}function getDynamicProps(t){let[n,i]=u.version.split("."),a=parseInt(n,10),s=parseInt(i,10);return a>18||18===a&&s>=3?{fetchPriority:t}:{fetchpriority:t}}let v=(0,u.forwardRef)((t,n)=>{let{src:i,srcSet:a,sizes:s,height:l,width:d,decoding:p,className:f,style:h,fetchPriority:y,placeholder:m,loading:g,unoptimized:v,fill:_,onLoadRef:w,onLoadingCompleteRef:E,setBlurComplete:T,setShowAltText:k,onLoad:x,onError:O,...I}=t;return u.default.createElement("img",{...I,...getDynamicProps(y),loading:g,width:d,height:l,decoding:p,"data-nimg":_?"fill":"1",className:f,style:h,sizes:s,srcSet:a,src:i,ref:(0,u.useCallback)(t=>{n&&("function"==typeof n?n(t):"object"==typeof n&&(n.current=t)),t&&(O&&(t.src=t.src),t.complete&&handleLoading(t,m,w,E,T,v))},[i,m,w,E,T,O,v,n]),onLoad:t=>{let n=t.currentTarget;handleLoading(n,m,w,E,T,v)},onError:t=>{k(!0),"empty"!==m&&T(!0),O&&O(t)}})});function ImagePreload(t){let{isAppRouter:n,imgAttributes:i}=t,a={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...getDynamicProps(i.fetchPriority)};return n&&l.default.preload?(l.default.preload(i.src,a),null):u.default.createElement(d.default,null,u.default.createElement("link",{key:"__nimg-"+i.src+i.srcSet+i.sizes,rel:"preload",href:i.srcSet?void 0:i.src,...a}))}let _=(0,u.forwardRef)((t,n)=>{let i=(0,u.useContext)(y.RouterContext),a=(0,u.useContext)(h.ImageConfigContext),s=(0,u.useMemo)(()=>{let t=g||a||f.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((t,n)=>t-n),i=t.deviceSizes.sort((t,n)=>t-n);return{...t,allSizes:n,deviceSizes:i}},[a]),{onLoad:l,onLoadingComplete:d}=t,_=(0,u.useRef)(l);(0,u.useEffect)(()=>{_.current=l},[l]);let w=(0,u.useRef)(d);(0,u.useEffect)(()=>{w.current=d},[d]);let[E,T]=(0,u.useState)(!1),[k,x]=(0,u.useState)(!1),{props:O,meta:I}=(0,p.getImgProps)(t,{defaultLoader:m.default,imgConf:s,blurComplete:E,showAltText:k});return u.default.createElement(u.default.Fragment,null,u.default.createElement(v,{...O,unoptimized:I.unoptimized,placeholder:I.placeholder,fill:I.fill,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:T,setShowAltText:x,ref:n}),I.priority?u.default.createElement(ImagePreload,{isAppRouter:!i,imgAttributes:O}):null)});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
6dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},7859:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return T}});let a=i(81351),s=a._(i(75271)),u=i(6816),l=i(17272),d=i(3136),p=i(8896),f=i(12609),h=i(86978),y=i(81341),m=i(29382),g=i(93225),v=i(47706),_=i(56620),w=new Set;function prefetch(t,n,i,a,s,u){if(!u&&!(0,l.isLocalURL)(n))return;if(!a.bypassPrefetchedCheck){let s=void 0!==a.locale?a.locale:"locale"in t?t.locale:void 0,u=n+"%"+i+"%"+s;if(w.has(u))return;w.add(u)}let d=u?t.prefetch(n,s):t.prefetch(n,i,a);Promise.resolve(d).catch(t=>{})}function formatStringOrUrl(t){return"string"==typeof t?t:(0,d.formatUrl)(t)}let E=s.default.forwardRef(function(t,n){let i,a;let{href:d,as:w,children:E,prefetch:T=null,passHref:k,replace:x,shallow:O,scroll:I,locale:R,onClick:C,onMouseEnter:A,onTouchStart:j,legacyBehavior:L=!1,...B}=t;i=E,L&&("string"==typeof i||"number"==typeof i)&&(i=s.default.createElement("a",null,i));let z=s.default.useContext(h.RouterContext),U=s.default.useContext(y.AppRouterContext),q=null!=z?z:U,D=!z,F=!1!==T,M=null===T?_.PrefetchKind.AUTO:_.PrefetchKind.FULL,{href:N,as:V}=s.default.useMemo(()=>{if(!z){let t=formatStringOrUrl(d);return{href:t,as:w?formatStringOrUrl(w):t}}let[t,n]=(0,u.resolveHref)(z,d,!0);return{href:t,as:w?(0,u.resolveHref)(z,w):n||t}},[z,d,w]),G=s.default.useRef(N),H=s.default.useRef(V);L&&(a=s.default.Children.only(i));let W=L?a&&"object"==typeof a&&a.ref:n,[Y,$,J]=(0,m.useIntersection)({rootMargin:"200px"}),K=s.default.useCallback(t=>{(H.current!==V||G.current!==N)&&(J(),H.current=V,G.current=N),Y(t),W&&("function"==typeof W?W(t):"object"==typeof W&&(W.current=t))},[V,W,N,J,Y]);s.default.useEffect(()=>{q&&$&&F&&prefetch(q,N,V,{locale:R},{kind:M},D)},[V,N,$,R,F,null==z?void 0:z.locale,q,D,M]);let Q={ref:K,onClick(t){L||"function"!=typeof C||C(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),q&&!t.defaultPrevented&&function(t,n,i,a,u,d,p,f,h,y){let{nodeName:m}=t.currentTarget,g="A"===m.toUpperCase();if(g&&(function(t){let n=t.currentTarget,i=n.getAttribute("target");return i&&"_self"!==i||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,l.isLocalURL)(i)))return;t.preventDefault();let navigate=()=>{let t=null==p||p;"beforePopState"in n?n[u?"replace":"push"](i,a,{shallow:d,locale:f,scroll:t}):n[u?"replace":"push"](a||i,{forceOptimisticNavigation:!y,scroll:t})};h?s.default.startTransition(navigate):navigate()}(t,q,N,V,x,O,I,R,D,F)},onMouseEnter(t){L||"function"!=typeof A||A(t),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(t),q&&(F||!D)&&prefetch(q,N,V,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:M},D)},onTouchStart(t){L||"function"!=typeof j||j(t),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(t),q&&(F||!D)&&prefetch(q,N,V,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:M},D)}};if((0,p.isAbsoluteUrl)(V))Q.href=V;else if(!L||k||"a"===a.type&&!("href"in a.props)){let t=void 0!==R?R:null==z?void 0:z.locale,n=(null==z?void 0:z.isLocaleDomain)&&(0,g.getDomainLocale)(V,t,null==z?void 0:z.locales,null==z?void 0:z.domainLocales);Q.href=n||(0,v.addBasePath)((0,f.addLocale)(V,t,null==z?void 0:z.defaultLocale))}return L?s.default.cloneElement(a,Q):s.default.createElement("a",{...B,...Q},i)}),T=E;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},47968:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizeLocalePath",{enumerable:!0,get:function(){return normalizeLocalePath}});let normalizeLocalePath=(t,n)=>i(37667).normalizeLocalePath(t,n);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},29382:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let a=i(75271),s=i(298),u="function"==typeof IntersectionObserver,l=new Map,d=[];function useIntersection(t){let{rootRef:n,rootMargin:i,disabled:p}=t,f=p||!u,[h,y]=(0,a.useState)(!1),m=(0,a.useRef)(null),g=(0,a.useCallback)(t=>{m.current=t},[]);(0,a.useEffect)(()=>
6{if(u){if(f||h)return;let t=m.current;if(t&&t.tagName){let a=function(t,n,i){let{id:a,observer:s,elements:u}=function(t){let n;let i={root:t.root||null,margin:t.rootMargin||""},a=d.find(t=>t.root===i.root&&t.margin===i.margin);if(a&&(n=l.get(a)))return n;let s=new Map,u=new IntersectionObserver(t=>{t.forEach(t=>{let n=s.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;n&&i&&n(i)})},t);return n={id:i,observer:u,elements:s},d.push(i),l.set(i,n),n}(i);return u.set(t,n),s.observe(t),function(){if(u.delete(t),s.unobserve(t),0===u.size){s.disconnect(),l.delete(a);let t=d.findIndex(t=>t.root===a.root&&t.margin===a.margin);t>-1&&d.splice(t,1)}}}(t,t=>t&&y(t),{root:null==n?void 0:n.current,rootMargin:i});return a}}else if(!h){let t=(0,s.requestIdleCallback)(()=>y(!0));return()=>(0,s.cancelIdleCallback)(t)}},[f,i,n,h,m.current]);let v=(0,a.useCallback)(()=>{y(!1)},[]);return[g,h,v]}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},13330:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),i(33986);let a=i(24735),s=i(28875);function isStaticRequire(t){return void 0!==t.default}function getInt(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function getImgProps(t,n){var i;let u,l,d,{src:p,sizes:f,unoptimized:h=!1,priority:y=!1,loading:m,className:g,quality:v,width:_,height:w,fill:E=!1,style:T,onLoad:k,onLoadingComplete:x,placeholder:O="empty",blurDataURL:I,fetchPriority:R,layout:C,objectFit:A,objectPosition:j,lazyBoundary:L,lazyRoot:B,...z}=t,{imgConf:U,showAltText:q,blurComplete:D,defaultLoader:F}=n,M=U||s.imageConfigDefault;if("allSizes"in M)u=M;else{let t=[...M.deviceSizes,...M.imageSizes].sort((t,n)=>t-n),n=M.deviceSizes.sort((t,n)=>t-n);u={...M,allSizes:t,deviceSizes:n}}let N=z.loader||F;delete z.loader,delete z.srcSet;let V="__next_img_default"in N;if(V){if("custom"===u.loader)throw Error('Image with src "'+p+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=N;N=n=>{let{config:i,...a}=n;return t(a)}}if(C){"fill"===C&&(E=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];t&&(T={...T,...t});let n={responsive:"100vw",fill:"100vw"}[C];n&&!f&&(f=n)}let G="",H=getInt(_),W=getInt(w);if("object"==typeof(i=p)&&(isStaticRequire(i)||void 0!==i.src)){let t=isStaticRequire(p)?p.default:p;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(l=t.blurWidth,d=t.blurHeight,I=I||t.blurDataURL,G=t.src,!E){if(H||W){if(H&&!W){let n=H/t.width;W=Math.round(t.height*n)}else if(!H&&W){let n=W/t.height;H=Math.round(t.width*n)}}else H=t.width,W=t.height}}let Y=!y&&("lazy"===m||void 0===m);(!(p="string"==typeof p?p:G)||p.startsWith("data:")||p.startsWith("blob:"))&&(h=!0,Y=!1),u.unoptimized&&(h=!0),V&&p.endsWith(".svg")&&!u.dangerouslyAllowSVG&&(h=!0),y&&(R="high");let $=getInt(v),J=Object.assign(E?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:j}:{},q?{}:{color:"transparent"},T),K=D||"empty"===O?null:"blur"===O?'url("data:image/svg+xml;charset=utf-8,'+(0,a.getImageBlurSvg)({widthInt:H,heightInt:W,blurWidth:l,blurHeight:d,blurDataURL:I||"",objectFit:J.objectFit})+'")':'url("'+O+'")',Q=K?{backgroundSize:J.objectFit||"cover",backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},X=function(t){let{config:n,src:i,unoptimized:a,width:s,quality:u,sizes:l,loader:d}=t;if(a)return{src:i,srcSet:void 0,sizes:void 0};let{widths:p,kind:f}=function(t,n,i){let{deviceSizes:a,allSizes:s}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,n=[];for(let a;a=t.exec(i);a)n.push(parseInt(a[2]));if(n.length){let t=.01*Math.min(...n);return{widths:s.filter(n=>n>=a[0]*t),kind:"w"}}return{widths:s,kind:"w"}}if("number"!=typeof n)return{widths:a,kind:"w"};let u=[...new Set([n,2*n].map(t=>s.find(n=>n>=t)||s[s.length-1]))];return{widths:u,kind:"x"}}(n,s,l),h=p.length-1;return{sizes:l||"w"!==f?l:"100vw",srcSet:p.map((t,a)=>d({config:n,src:i,quality:u,width:t})+" "+("w"===f?t:a+1)+f).join(", "),src:d({config:n,src:i,quality:u,width:p[h]})}}({config:u,src:p,unoptimized:h,width:H,quality:$,sizes:f,loader:N}),Z={...z,loading:Y?"lazy":m,fetchPriority:R,width:H,height:W,decoding:"async",className:g,style:{...J,...Q},sizes:X.sizes,srcSet:X.srcSet,src:X.src},ee={unoptimized:h,priority:y,placeholder:O,fill:E};return{props:Z,meta:ee}}},24735:function(t,n){"use strict";function getImageBlurSvg(t){let{widthInt:n,heightInt:i,blurWidth:a,blurHeight:s,blurDataURL:u,objectFit:l}=t,d=a?40*a:n,p=s?40*s:i,f=d&&p?"viewBox='0 0 "+d+" "+p+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+f+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
6ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(f?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+u+"'/%3E%3C/svg%3E"}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},78903:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return p}});let a=i(81351),s=i(13330),u=i(33986),l=i(74514),d=a._(i(41755)),unstable_getImgProps=t=>{(0,u.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:n}=(0,s.getImgProps)(t,{defaultLoader:d.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(n))void 0===i&&delete n[t];return{props:n}},p=l.Image},41755:function(t,n){"use strict";function defaultLoader(t){let{config:n,src:i,width:a,quality:s}=t;return n.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(s||75)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}}),defaultLoader.__next_img_default=!0;let i=defaultLoader},11070:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{ServerInsertedHTMLContext:function(){return u},useServerInsertedHTML:function(){return useServerInsertedHTML}});let a=i(35815),s=a._(i(75271)),u=s.default.createContext(null);function useServerInsertedHTML(t){let n=(0,s.useContext)(u);n&&n(t)}},43461:function(){},43285:function(t,n,i){t.exports=i(78903)},69395:function(t,n,i){t.exports=i(7859)},65105:function(t,n,i){t.exports=i(8782)},94942:function(t){var n=String,create=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=create(),t.exports.createColors=create},82413:function(t,n,i){"use strict";i.d(n,{E:function(){return g}});var a=i(75271);function _extends(){return(_extends=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t}).apply(this,arguments)}function _setPrototypeOf(t,n){return(_setPrototypeOf=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}var s=new Map,u=new WeakMap,l=0,d=void 0;function observe(t,n,i,a){if(void 0===i&&(i={}),void 0===a&&(a=d),void 0===window.IntersectionObserver&&void 0!==a){var p=t.getBoundingClientRect();return n(a,{isIntersecting:a,target:t,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:p,intersectionRect:p,rootBounds:p}),function(){}}var f=function(t){var n=Object.keys(t).sort().filter(function(n){return void 0!==t[n]}).map(function(n){var i;return n+"_"+("root"===n?(i=t.root)?(u.has(i)||(l+=1,u.set(i,l.toString())),u.get(i)):"0":t[n])}).toString(),i=s.get(n);if(!i){var a,d=new Map,p=new IntersectionObserver(function(n){n.forEach(function(n){var i,s=n.isIntersecting&&a.some(function(t){return n.intersectionRatio>=t});t.trackVisibility&&void 0===n.isVisible&&(n.isVisible=s),null==(i=d.get(n.target))||i.forEac
6h(function(t){t(s,n)})})},t);a=p.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:n,observer:p,elements:d},s.set(n,i)}return i}(i),h=f.id,y=f.observer,m=f.elements,g=m.get(t)||[];return m.has(t)||m.set(t,g),g.push(n),y.observe(t),function(){g.splice(g.indexOf(n),1),0===g.length&&(m.delete(t),y.unobserve(t)),0===m.size&&(y.disconnect(),s.delete(h))}}var p=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(t){return"function"!=typeof t.children}var f=function(t){function InView(n){var i;return(i=t.call(this,n)||this).node=null,i._unobserveCb=null,i.handleNode=function(t){!i.node||(i.unobserve(),t||i.props.triggerOnce||i.props.skip||i.setState({inView:!!i.props.initialInView,entry:void 0})),i.node=t||null,i.observeNode()},i.handleChange=function(t,n){t&&i.props.triggerOnce&&i.unobserve(),isPlainChildren(i.props)||i.setState({inView:t,entry:n}),i.props.onChange&&i.props.onChange(t,n)},i.state={inView:!!n.initialInView,entry:void 0},i}InView.prototype=Object.create(t.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,t);var n=InView.prototype;return n.componentDidUpdate=function(t){(t.rootMargin!==this.props.rootMargin||t.root!==this.props.root||t.threshold!==this.props.threshold||t.skip!==this.props.skip||t.trackVisibility!==this.props.trackVisibility||t.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},n.componentWillUnmount=function(){this.unobserve(),this.node=null},n.observeNode=function(){if(this.node&&!this.props.skip){var t=this.props,n=t.threshold,i=t.root,a=t.rootMargin,s=t.trackVisibility,u=t.delay,l=t.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:n,root:i,rootMargin:a,trackVisibility:s,delay:u},l)}},n.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},n.render=function(){if(!isPlainChildren(this.props)){var t=this.state,n=t.inView,i=t.entry;return this.props.children({inView:n,entry:i,ref:this.handleNode})}var s=this.props,u=s.children,l=s.as,d=function(t,n){if(null==t)return{};var i,a,s={},u=Object.keys(t);for(a=0;a<u.length;a++)i=u[a],n.indexOf(i)>=0||(s[i]=t[i]);return s}(s,p);return a.createElement(l||"div",_extends({ref:this.handleNode},d),u)},InView}(a.Component);f.displayName="InView",f.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var h=i(76328),__assign=function(){return(__assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},y="undefined"==typeof window,m=!y&&!!window.IntersectionObserver,imageAddStrategy=function(t){var n=t.lazyLoad,i=t.inView,a=t.loaded;return!n||!y&&(!m||i||a)},imageShowStrategy=function(t){var n=t.lazyLoad,i=t.loaded;return!n||!y&&(!m||i)},g=(0,a.forwardRef)(function(t,n){var i,s,u,l,d,p,f,y,m,g,v,_,w,E,T,k,x,O,I,R,C,A,j,L,B=t.className,z=t.fadeInDuration,U=void 0===z?500:z,q=t.intersectionTreshold,D=t.intersectionThreshold,F=t.intersectionMargin,M=t.pictureClassName,N=t.lazyLoad,V=void 0===N||N,G=t.style,H=t.pictureStyle,W=t.layout,Y=void 0===W?"intrinsic":W,$=t.objectFit,J=t.objectPosition,K=t.data,Q=t.onLoad,X=t.usePlaceholder,Z=(0,a.useState)(!1),ee=Z[0],et=Z[1],er=(s=(i={threshold:D||q||0,rootMargin:F||"0px 0px 0px 0px",triggerOnce:!0,fallbackInView:!0}).threshold,u=i.delay,l=i.trackVisibility,d=i.rootMargin,p=i.root,f=i.triggerOnce,y=i.skip,m=i.initialInView,g=i.fallbackInView,v=a.useRef(),w=(_=a.useState({inView:!!m}))[0],E=_[1],T=a.useCallback(function(t){void 0!==v.current&&(v.current(),v.current=void 0),!y&&t&&(v.current=observe(t,function(t,n){E({inView:t,entry:n}),n.isIntersecting&&f&&v.current&&(v.current(),v.current=void 0)},{root:p,rootMargin:d,threshold:s,trackVisibility:l,delay:u},g))},[Array.isArray(s)?s.toString():s,p,d,f,y,l,g,u]),(0,a.useEffect)(function(){v.current||!w.entry||f||y||E({inView:!!m})}),(k=[T,w.inView,w.entry]).ref=k[0],k.inView=k[1],k.entry=k[2],k),en=er[0],eo=er[1],ei=(0,a.useCallback)(function(t){en(t),n&&(n.current=t)},[en]),ea={position:"absolute",left:0,top:0,width:"100%",height:"100%"},es=imageAddStrategy({lazyLoad:V,inView:eo,loaded:ee}),eu=imageShowStrategy({lazyLoad:V,inView:eo,loaded:ee}),el=K.webpSrcSet&&a.createElement("source",{srcSet:K.webpSrcSet,sizes:null!==(x=K.sizes)&&void 0!==x?x:void 0,type:"image/webp"}),ec=K.srcSet&&a.createElement("source",{srcSet:K.srcSet,sizes:null!==(O=K.sizes)&&void 0!==O?O:void 0}),ed=U>0?"opacity ".concat(U,"ms"):void 0,ep=void 0===X||X?a.createElement("img",{role:"presentation","aria-hidden":"true",alt:"",src:null!==(I=K.base64)&&void 0!==I?I:void 0,style:{backgroundColor:null!==(R=K.bgColor)&&void 0!==R?R:void 0,opacity:eu?0:1,transition:ed,objectFit:$,objectPosition:J,position:"absolute",left:0,top:0,width:"100%"}}):null,ef=K.width,eh=K.aspectRatio,ey=K.height||ef/eh,em='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(ef,'" height="').concat(ey,'"></svg>'),eg="fill"!==Y?a.createElement("img",{className:M,style:{display:"block",width:"100%"},src:"data:image/svg+xml;base64,".concat((0,h.cv)(em)),"aria-hidden":"true",alt:""}):null;return a.createElement("div",{ref:ei,className:B,style:__assign(__assign({overflow:"hidden"},"fill"===Y?ea:"intrinsic"===Y?{position:"relative",width:"100%",maxWidth:ef}:"fixed"===Y?{position:"relative",width:ef}:{position:"relative",width:"100%"}),G)},eg,ep,es&&a.createElement("picture",null,el,ec,K.src&&a.createElement("img",{src:K.src,alt:null!==(C=K.alt)&&void 0!==C?C:"",title:null!==(A=K.title)&&void 0!==A?A:void 0,onLoad:function(){null==Q||Q(),et(!0)},className:M,style:__assign(__assign(__assign({opacity:eu?1:0,transition:ed},ea),{objectFit:$,objectPosition:J}),H)})),a.createElement("noscript",null,a.createElement("picture",null,el,ec,K.src&&a.createElement("img",{src:K.src,alt:null!==(j=K.alt)&&void 0!==j?j:"",title:null!==(L=K.title)&&void 0!==L?L:void 0,className:M,style:__assign(__assign({},ea),H),loading:"lazy"}))))})},55124:function(t,n,i){"use strict";i.d(n,{y:function(){return renderMetaTags}});var a=i(75271),__assign=function(){return(__assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)};function renderMetaTags(t){return t.map(function(t){var n=t.tag,i=t.attributes,s=t.content,u=[n];return i&&"property"in i&&u.push(i.property),i&&"name"in i&&u.push(i.name),i&&"rel"in i&&u.push(i.rel),i&&"sizes"in i&&u.push(i.sizes),a.createElement(n,__assign({key:u.join("-")},i),s)})}},86585:function(t,n,i){"use strict";i.d(n,{rZ:function(){return StructuredText}});var a,s,u,l="blockquote",d="block",p="code",f="heading",h="inlineItem",y="itemLink",m="link",g="listItem",v="list",_="paragraph",w="root",E="span",T="thematicBreak";function isHeading(t){return t.type===f}function isSpan(t){return t.type===E}function isRoot(t){return t.type===w}function isParagraph(t){return t.type===_}function isList(t){return t.type===v}function isListItem(t){return t.type===g}function isBlockquote(t){return t.type===l}function isBlock(t){return t.type===d}function isCode(t){return t.type===p}function isLink(t){return t.type===m}function isItemLink(t){return t.type===y}function isInlineItem(t){return t.type===h}function isThematicBreak(t){return t.type===T}function isStructuredText(t){return t&&"value"in t&&isDocument(t.value)}function isDocument(t){return t&&"schema"in t&&"document"in t}(s={})[l]=[_],s[d]=[],s[p]=[],s[f]="inlineNodes",s[h]=[],s[y]="inlineNodes",s[m]="inlineNodes",s[g]=[_,v],s[v]=[g],s[_]="inlineNodes",s[w]=[l,p,v,_,f,d,T],s[E]=[],s[T]=[],(u={})[l]=["children","attribution"],u[d]=["item"],u[p]=["language","highlight","code"],u[f]=["level","children","style"],u[h]=["item"],u[y]=["item","children","meta"],u[m]=["url","children","meta"],u[g]=["children"],u[v]=["style","children"],u[_]=["children","style"],u[w]=["children"],u[E]=["value","marks"],u[T]=[];
6var k=(a=function(t,n){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){function __(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),__spreadArrays=function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;for(var a=Array(t),s=0,n=0;n<i;n++)for(var u=arguments[n],l=0,d=u.length;l<d;l++,s++)a[s]=u[l];return a},x=function(t){function RenderError(n,i){var a=t.call(this,n)||this;return a.node=i,Object.setPrototypeOf(a,RenderError.prototype),a}return k(RenderError,t),RenderError}(Error),renderRule=function(t,n){return{appliable:t,apply:function(t){return n(t)}}},__assign=function(){return(__assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},esm_spreadArrays=function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;for(var a=Array(t),s=0,n=0;n<i;n++)for(var u=arguments[n],l=0,d=u.length;l<d;l++,s++)a[s]=u[l];return a},defaultMetaTransformer=function(t){var n=t.meta,i={};return n.forEach(function(t){["target","title","rel"].includes(t.id)&&(i[t.id]=t.value)}),i},O=i(75271),__spreadArray=function(t,n,i){if(i||2==arguments.length)for(var a,s=0,u=n.length;s<u;s++)!a&&s in n||(a||(a=Array.prototype.slice.call(n,0,s)),a[s]=n[s]);return t.concat(a||Array.prototype.slice.call(n))},I={renderNode:O.createElement,renderFragment:function(t,n){return O.createElement(O.Fragment,{key:n},t)},renderText:function(t,n){return t}};function appendKeyToValidElement(t,n){return(0,O.isValidElement)(t)&&null===t.key?(0,O.cloneElement)(t,{key:n}):t}function StructuredText(t){var n,i,a,s,u,l,d=t.data,p=t.renderInlineRecord,f=t.renderLinkToRecord,h=t.renderBlock,y=t.renderText,m=t.renderNode,g=t.renderFragment,v=t.customMarkRules,_=t.customRules,w=t.customNodeRules,E=t.metaTransformer,T=(n=d,l=(i={adapter:{renderText:y||I.renderText,renderNode:m||I.renderNode,renderFragment:g||I.renderFragment},metaTransformer:E,customMarkRules:v,customNodeRules:__spreadArray([renderRule(isInlineItem,function(t){var n=t.node,i=t.key;if(!p)throw new x("The Structured Text document contains an 'inlineItem' node, but no 'renderInlineRecord' prop is specified!",n);if(!isStructuredText(d)||!d.links)throw new x("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",n);var a=d.links.find(function(t){return t.id===n.item});if(!a)throw new x("The Structured Text document contains an 'inlineItem' node, but cannot find a record with ID ".concat(n.item," inside data.links!"),n);return appendKeyToValidElement(p({record:a}),i)}),renderRule(isItemLink,function(t){var n=t.node,i=t.key,a=t.children;if(!f)throw new x("The Structured Text document contains an 'itemLink' node, but no 'renderLinkToRecord' prop is specified!",n);if(!isStructuredText(d)||!d.links)throw new x("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",n);var s=d.links.find(function(t){return t.id===n.item});if(!s)throw new x("The Structured Text document contains an 'itemLink' node, but cannot find a record with ID ".concat(n.item," inside data.links!"),n);return appendKeyToValidElement(f({record:s,children:a,transformedMeta:n.meta?(E||defaultMetaTransformer)({node:n,meta:n.meta}):null}),i)}),renderRule(isBlock,function(t){var n=t.node,i=t.key;if(!h)throw new x("The Structured Text document contains a 'block' node, but no 'renderBlock' prop is specified!",n);if(!isStructuredText(d)||!d.blocks)throw new x("The document contains an 'block' node, but the passed data prop is not a Structured Text GraphQL response, or data.blocks is not present!",n);var a=d.blocks.find(function(t){return t.id===n.item});if(!a)throw new x("The Structured Text document contains a 'block' node, but cannot find a record with ID ".concat(n.item," inside data.blocks!"),n);return appendKeyToValidElement(h({record:a}),i)})],w||_||[],!0)}).metaTransformer||defaultMetaTransformer,s=i.adapter,u=esm_spreadArrays(i.customNodeRules||[],[renderRule(isRoot,function(t){var n=t.adapter.renderFragment,i=t.key;return n(t.children,i)}),renderRule(isParagraph,function(t){return(0,t.adapter.renderNode)("p",{key:t.key},t.children)}),renderRule(isList,function(t){var n=t.adapter.renderNode,i=t.node,a=t.key,s=t.children;return n("bulleted"===i.style?"ul":"ol",{key:a},s)}),renderRule(isListItem,function(t){return(0,t.adapter.renderNode)("li",{key:t.key},t.children)}),renderRule(isBlockquote,function(t){var n=t.adapter.renderNode,i=t.key,a=t.node,s=t.children,u=a.attribution?esm_spreadArrays(s||[],[n("footer",{key:"footer"},a.attribution)]):s;return n("blockquote",{key:i},u)}),renderRule(isCode,function(t){var n=t.adapter,i=n.renderNode,a=n.renderText,s=t.key,u=t.node;return i("pre",{key:s,"data-language":u.language},i("code",null,a(u.code)))}),renderRule(isLink,function(t){var n=t.adapter.renderNode,i=t.key,a=t.children,s=t.node,u=s.meta?l({node:s,meta:s.meta}):{};return n("a",__assign(__assign({},u||{}),{key:i,href:s.url}),a)}),renderRule(isThematicBreak,function(t){return(0,t.adapter.renderNode)("hr",{key:t.key})}),renderRule(isHeading,function(t){var n=t.node,i=t.adapter.renderNode,a=t.children,s=t.key;return i("h"+n.level,{key:s},a)}),(a=({customMarkRules:i.customMarkRules||[]}).customMarkRules,renderRule(isSpan,function(t){var n,i,s,u,l,d,p,f=t.adapter,h=t.key;return(t.node.marks||[]).reduce(function(t,n){if(t){var i=a.find(function(t){return t.appliable(n)});return i?i.apply({adapter:f,key:h,mark:n,children:t}):f.renderNode(function(t){switch(t){case"emphasis":return"em";case"underline":return"u";case"strikethrough":return"del";case"highlight":return"mark";default:return t}}(n),{key:h},t)}},(n=t.node,i=t.key,u=(s=t.adapter).renderNode,l=s.renderText,d=s.renderFragment,0===(p=n.value.split(/\n/)).length?l(n.value,i):d(p.slice(1).reduce(function(t,n,a){return t.concat([u("br",{key:i+"-br-"+a}),l(n,i+"-line-"+a)])},[l(p[0],i+"-line-first")]),i)))}))]),n?function transformNode(t,n,i,a,s){var u,l="children"in n?(function $flatten(t,n){for(var i=0;i<t.length;i++){var a=t[i];Array.isArray(a)?$flatten(a,n):n.push(a)}}(n.children.map(function(i,u){return transformNode(t,i,"t-"+u,__spreadArrays([n],a),s)}).filter(function(t){return!!t}),u=[]),u):void 0,d=s.find(function(t){return t.appliable(n)});if(d)return d.apply({adapter:t,node:n,children:l,key:i,ancestors:a});throw new x("Don't know how to render a node with type \""+n.type+'". Please specify a custom renderRule for it!',n)}
6(s,isStructuredText(n)?n.value.document:isDocument(n)?n.document:n,"t-0",[],u):null);return"string"==typeof T?O.createElement(O.Fragment,null,T):T||null}},83654:function(t,n,i){"use strict";i.d(n,{L:function(){return useQuerySubscription}});var a=i(75271),s=i(22481),u=Object.prototype.hasOwnProperty;function find(t,n,i){for(i of t.keys())if(dequal(i,n))return i}function dequal(t,n){var i,a,s;if(t===n)return!0;if(t&&n&&(i=t.constructor)===n.constructor){if(i===Date)return t.getTime()===n.getTime();if(i===RegExp)return t.toString()===n.toString();if(i===Array){if((a=t.length)===n.length)for(;a--&&dequal(t[a],n[a]););return -1===a}if(i===Set){if(t.size!==n.size)return!1;for(a of t)if((s=a)&&"object"==typeof s&&!(s=find(n,s))||!n.has(s))return!1;return!0}if(i===Map){if(t.size!==n.size)return!1;for(a of t)if((s=a[0])&&"object"==typeof s&&!(s=find(n,s))||!dequal(a[1],n.get(s)))return!1;return!0}if(i===ArrayBuffer)t=new Uint8Array(t),n=new Uint8Array(n);else if(i===DataView){if((a=t.byteLength)===n.byteLength)for(;a--&&t.getInt8(a)===n.getInt8(a););return -1===a}if(ArrayBuffer.isView(t)){if((a=t.byteLength)===n.byteLength)for(;a--&&t[a]===n[a];);return -1===a}if(!i||"object"==typeof t){for(i in a=0,t)if(u.call(t,i)&&++a&&!u.call(n,i)||!(i in n)||!dequal(t[i],n[i]))return!1;return Object.keys(n).length===a}}return t!=t&&n!=n}var __assign=function(){return(__assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)},__generator=function(t,n){var i,a,s,u,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(d){return function(u){if(i)throw TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&u[0]?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(s=(s=l.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){l.label=u[1];break}if(6===u[0]&&l.label<s[1]){l.label=s[1],s=u;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(u);break}s[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(t){u=[6,t],a=0}finally{i=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,d])}}},__rest=function(t,n){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>n.indexOf(a)&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)0>n.indexOf(a[s])&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(i[a[s]]=t[a[s]]);return i};function useQuerySubscription(t){var n,i,u,l=t.enabled,d=t.initialData,p=__rest(t,["enabled","initialData"]),f=(0,a.useState)(null),h=f[0],y=f[1],m=(0,a.useState)(null),g=m[0],v=m[1],_=(0,a.useState)(l?"connecting":"closed"),w=_[0],E=_[1];return n=[p],a.useEffect(function(){var t;return!1===l?(E("closed"),function(){}):(function(){var n,i,a,u;n=this,i=void 0,a=void 0,u=function(){return __generator(this,function(n){switch(n.label){case 0:return[4,(0,s.subscribeToQuery)(__assign(__assign({},p),{onStatusChange:function(t){E(t)},onUpdate:function(t){y(null),v(t.response.data)},onChannelError:function(t){v(null),y(t)}}))];case 1:return t=n.sent(),[2]}})},new(a||(a=Promise))(function(t,s){function fulfilled(t){try{step(u.next(t))}catch(t){s(t)}}function rejected(t){try{step(u.throw(t))}catch(t){s(t)}}function step(n){var i;n.done?t(n.value):((i=n.value)instanceof a?i:new a(function(t){t(i)})).then(fulfilled,rejected)}step((u=u.apply(n,i||[])).next())})}(),function(){t&&t()})},(i=a.useRef(n),u=a.useRef(0),dequal(n,i.current)||(i.current=n,u.current+=1),a.useMemo(function(){return i.current},[u.current]))),{error:h,status:w,data:g||d}}},85404:function(t,n,i){let a=i(56623);t.exports=(a.__esModule?a:{default:a}).default},60816:function(t,n,i){let a=i(90413);t.exports=(a.__esModule?a:{default:a}).default},56623:function(t,n,i){"use strict";var a;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let s=(a=i(72884))&&a.__esModule?a:{default:a};function warn({version:t,from:n,to:i}){s.default.warn(`${n}-color-renamed`,[`As of Tailwind CSS ${t}, \`${n}\` has been renamed to \`${i}\`.`,"Update your configuration file to silence this warning."])}let u={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return warn({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return warn({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return warn({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return warn({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return warn({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},19202:function(t,n,i){"use strict";var a;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let s=(a=i(44690))&&a.__esModule?a:{default:a},u=s.default},90413:function(t,n,i){"use strict";var a;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let s=i(36585),u=(a=i(10997))&&a.__esModule?a:{default:a},l=(0,s.cloneDeep)(u.default.theme)},36585:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"cloneDeep",{enumerable:!0,get:function(){return function cloneDeep(t){return Array.isArray(t)?t.map(t=>cloneDeep(t)):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(([t,n])=>[t,cloneDeep(n)])):t}}})},44690:function(t,n){"use strict";function createPlugin(t,n){return{handler:t,config:n}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}}),createPlugin.withOptions=function(t,n=()=>({})){let optionsFunction=function(i){return{__options:i,handler:t(i),config:n(i)}};return optionsFunction.__isOptionsFunction=!0,optionsFunction.__pluginFunction=t,optionsFunction.__configFunction=n,optionsFunction};let i=createPlugin},72884:function(t,n,i){"use strict";var a,s=i(62239);Object.defineProperty(n,"__esModule",{value:!0}),function(t,n){for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}(n,{dim:function(){return dim},default:function(){return d}});let u=(a=i(94942))&&a.__esModule?a:{default:a},l=new Set;function log(t,n,i){(void 0===s||!s.env.JEST_WORKER_ID)&&(i&&l.has(i)||(i&&l.add(i),console.warn(""),n.forEac
6h(n=>console.warn(t,"-",n))))}function dim(t){return u.default.dim(t)}let d={info(t,n){log(u.default.bold(u.default.cyan("info")),...Array.isArray(t)?[t]:[n,t])},warn(t,n){log(u.default.bold(u.default.yellow("warn")),...Array.isArray(t)?[t]:[n,t])},risk(t,n){log(u.default.bold(u.default.magenta("risk")),...Array.isArray(t)?[t]:[n,t])}}},39532:function(t,n,i){let a=i(19202);t.exports=(a.__esModule?a:{default:a}).default},10997:function(t){t.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:t})=>({...t("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:t})=>t("blur"),backdropBrightness:({theme:t})=>t("brightness"),backdropContrast:({theme:t})=>t("contrast"),backdropGrayscale:({theme:t})=>t("grayscale"),backdropHueRotate:({theme:t})=>t("hueRotate"),backdropInvert:({theme:t})=>t("invert"),backdropOpacity:({theme:t})=>t("opacity"),backdropSaturate:({theme:t})=>t("saturate"),backdropSepia:({theme:t})=>t("sepia"),backgroundColor:({theme:t})=>t("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:t})=>t("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:t})=>({...t("colors"),DEFAULT:t("colors.gray.200","currentColor")}),borderOpacity:({theme:t})=>t("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:t})=>({...t("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:t})=>t("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:t})=>t("colors"),colors:({colors:t})=>({inherit:t.inherit,current:t.current,transparent:t.transparent,black:t.black,white:t.white,slate:t.slate,gray:t.gray,zinc:t.zinc,neutral:t.neutral,stone:t.stone,red:t.red,orange:t.orange,amber:t.amber,yellow:t.yellow,lime:t.lime,green:t.green,emerald:t.emerald,teal:t.teal,cyan:t.cyan,sky:t.sky,blue:t.blue,indigo:t.indigo,violet:t.violet,purple:t.purple,fuchsia:t.fuchsia,pink:t.pink,rose:t.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"al
6ias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:t})=>t("borderColor"),divideOpacity:({theme:t})=>t("borderOpacity"),divideWidth:({theme:t})=>t("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:t})=>({none:"none",...t("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:t})=>t("spacing"),gradientColorStops:({theme:t})=>t("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:t})=>({...t("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:t,breakpoints:n})=>({...t("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...n(t("screens"))}),minHeight:({theme:t})=>({...t("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:t})=>({...t("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:t})=>t("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:t})=>t("spacing"),placeholderColor:({theme:t})=>t("colors"),placeholderOpacity:({theme:t})=>t("opacity"),ringColor:({theme:t})=>({DEFAULT:t("colors.blue.500","#3b82f6"),...t("colors")}),ringOffsetColor:({theme:t})=>t("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:t})=>({DEFAULT:"0.5",...t("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:t})=>({...t("spacing")}),scrollPadding:({theme:t})=>t("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:t})=>({...t("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:t})=>({none:"none",...t("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:t})=>t("colors"),textDecorationColor:({theme:t})=>t("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:t})=>({...t("spacing")}),textOpacity:({theme:t})=>t("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:t})=>({...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:t})=>({auto:"auto",...t("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}},76328:function(t,n){"use strict";function percentToByte(t){return String.fromCharCode(parseInt(t.slice(1),16))}n.cv=function(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,percentToByte))}},48125:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});let i=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");let FakeAsyncLocalStorage=class FakeAsyncLocalStorage{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}};let a=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return a?new a:new FakeAsyncLocalStorage}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
6dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},54829:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"requestAsyncStorage",{enumerable:!0,get:function(){return s}});let a=i(48125),s=(0,a.createAsyncLocalStorage)();("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},34853:function(t,n,i){"use strict";let a,s;i.d(n,{V:function(){return em}});var u,l,d,p,f,h,y=i(75271),m=i.t(y,2),g=i(82229),v=i(99140),_=i(40121);function use_event_listener_E(t,n,i,a){let s=(0,_.E)(i);(0,y.useEffect)(()=>{function r(t){s.current(t)}return(t=null!=t?t:window).addEventListener(n,r,a),()=>t.removeEventListener(n,r,a)},[t,n,a])}var w=i(88656),E=i(60616);function c(t){let n=(0,v.z)(t),i=(0,y.useRef)(!1);(0,y.useEffect)(()=>(i.current=!1,()=>{i.current=!0,(0,E.Y)(()=>{i.current&&n()})}),[n])}var T=i(24832);function use_owner_n(...t){return(0,y.useMemo)(()=>(0,T.r)(...t),[...t])}var k=i(21963),x=i(43142),O=i(93440),I=((u=I||{})[u.Forwards=0]="Forwards",u[u.Backwards=1]="Backwards",u);function use_watch_m(t,n){let i=(0,y.useRef)([]),a=(0,v.z)(t);(0,y.useEffect)(()=>{let t=[...i.current];for(let[s,u]of n.entries())if(i.current[s]!==u){let s=a(n,t);return i.current=n,s}},[a,...n])}var R=i(14538);let C=[];!function(t){function e(){"loading"!==document.readyState&&(t(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&C[0]!==t.target&&(C.unshift(t.target),(C=C.filter(t=>null!=t&&t.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var A=i(54830),j=i(62549),L=i(22184);function P(t){if(!t)return new Set;if("function"==typeof t)return new Set(t());let n=new Set;for(let i of t.current)i.current instanceof HTMLElement&&n.add(i.current);return n}var B=((l=B||{})[l.None=1]="None",l[l.InitialFocus=2]="InitialFocus",l[l.TabLock=4]="TabLock",l[l.FocusLock=8]="FocusLock",l[l.RestoreFocus=16]="RestoreFocus",l[l.All=30]="All",l);let z=Object.assign((0,L.yV)(function(t,n){let i,a=(0,y.useRef)(null),s=(0,x.T)(a,n),{initialFocus:u,containers:l,features:d=30,...p}=t;(0,k.H)()||(d=1);let f=use_owner_n(a);!function({ownerDocument:t},n){let i=function(t=!0){let n=(0,y.useRef)(C.slice());return use_watch_m(([t],[i])=>{!0===i&&!1===t&&(0,E.Y)(()=>{n.current.splice(0)}),!1===i&&!0===t&&(n.current=C.slice())},[t,C,n]),(0,v.z)(()=>{var t;return null!=(t=n.current.find(t=>null!=t&&t.isConnected))?t:null})}(n);use_watch_m(()=>{n||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&(0,A.C5)(i())},[n]),c(()=>{n&&(0,A.C5)(i())})}({ownerDocument:f},!!(16&d));let h=function({ownerDocument:t,container:n,initialFocus:i},a){let s=(0,y.useRef)(null),u=(0,w.t)();return use_watch_m(()=>{if(!a)return;let l=n.current;l&&(0,E.Y)(()=>{if(!u.current)return;let n=null==t?void 0:t.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===n){s.current=n;return}}else if(l.contains(n)){s.current=n;return}null!=i&&i.current?(0,A.C5)(i.current):(0,A.jA)(l,A.TO.First)===A.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.current=null==t?void 0:t.activeElement})},[a]),s}({ownerDocument:f,container:a,initialFocus:u},!!(2&d));!function({ownerDocument:t,container:n,containers:i,previousActiveElement:a},s){let u=(0,w.t)();use_event_listener_E(null==t?void 0:t.defaultView,"focus",t=>{if(!s||!u.current)return;let l=P(i);n.current instanceof HTMLElement&&l.add(n.current);let d=a.current;if(!d)return;let p=t.target;p&&p instanceof HTMLElement?S(l,p)?(a.current=p,(0,A.C5)(p)):(t.preventDefault(),t.stopPropagation(),(0,A.C5)(d)):(0,A.C5)(a.current)},!0)}({ownerDocument:f,container:a,containers:l,previousActiveElement:h},!!(8&d));let m=(i=(0,y.useRef)(0),(0,O.s)("keydown",t=>{"Tab"===t.key&&(i.current=t.shiftKey?1:0)},!0),i),_=(0,v.z)(t=>{let n=a.current;n&&(0,j.E)(m.current,{[I.Forwards]:()=>{(0,A.jA)(n,A.TO.First,{skipElements:[t.relatedTarget]})},[I.Backwards]:()=>{(0,A.jA)(n,A.TO.Last,{skipElements:[t.relatedTarget]})}})}),T=(0,g.G)(),B=(0,y.useRef)(!1);return y.createElement(y.Fragment,null,!!(4&d)&&y.createElement(R._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:_,features:R.A.Focusable}),(0,L.sY)({ourProps:{ref:s,onKeyDown(t){"Tab"==t.key&&(B.current=!0,T.requestAnimationFrame(()=>{B.current=!1}))},onBlur(t){let n=P(l);a.current instanceof HTMLElement&&n.add(a.current);let i=t.relatedTarget;i instanceof HTMLElement&&"true"!==i.dataset.headlessuiFocusGuard&&(S(n,i)||(B.current?(0,A.jA)(a.current,(0,j.E)(m.current,{[I.Forwards]:()=>A.TO.Next,[I.Backwards]:()=>A.TO.Previous})|A.TO.WrapAround,{relativeTo:t.target}):t.target instanceof HTMLElement&&(0,A.C5)(t.target)))}},theirProps:p,defaultTag:"div",name:"FocusTrap"}),!!(4&d)&&y.createElement(R._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:_,features:R.A.Focusable}))}),{features:B});function S(t,n){for(let i of t)if(i.contains(n))return!0;return!1}var U=i(30967),q=i(90093);let D=(0,y.createContext)(!1);function portal_force_root_l(t){return y.createElement(D.Provider,{value:t.force},t.children)}var F=i(65350);let M=y.Fragment,N=y.Fragment,V=(0,y.createContext)(null),G=(0,y.createContext)(null),H=Object.assign((0,L.yV)(function(t,n){let i=(0,y.useRef)(null),a=(0,x.T)((0,x.h)(t=>{i.current=t}),n),s=use_owner_n(i),u=function(t){let n=(0,y.useContext)(D),i=(0,y.useContext)(V),a=use_owner_n(t),[s,u]=(0,y.useState)(()=>
6{if(!n&&null!==i||F.O.isServer)return null;let t=null==a?void 0:a.getElementById("headlessui-portal-root");if(t)return t;if(null===a)return null;let s=a.createElement("div");return s.setAttribute("id","headlessui-portal-root"),a.body.appendChild(s)});return(0,y.useEffect)(()=>{null!==s&&(null!=a&&a.body.contains(s)||null==a||a.body.appendChild(s))},[s,a]),(0,y.useEffect)(()=>{n||null!==i&&u(i.current)},[i,u,n]),s}(i),[l]=(0,y.useState)(()=>{var t;return F.O.isServer?null:null!=(t=null==s?void 0:s.createElement("div"))?t:null}),d=(0,y.useContext)(G),p=(0,k.H)();return(0,q.e)(()=>{!u||!l||u.contains(l)||(l.setAttribute("data-headlessui-portal",""),u.appendChild(l))},[u,l]),(0,q.e)(()=>{if(l&&d)return d.register(l)},[d,l]),c(()=>{var t;u&&l&&(l instanceof Node&&u.contains(l)&&u.removeChild(l),u.childNodes.length<=0&&(null==(t=u.parentElement)||t.removeChild(u)))}),p&&u&&l?(0,U.createPortal)((0,L.sY)({ourProps:{ref:a},theirProps:t,defaultTag:M,name:"Portal"}),l):null}),{Group:(0,L.yV)(function(t,n){let{target:i,...a}=t,s={ref:(0,x.T)(n)};return y.createElement(V.Provider,{value:i},(0,L.sY)({ourProps:s,theirProps:a,defaultTag:N,name:"Popover.Group"}))})}),{useState:W,useEffect:Y,useLayoutEffect:$,useDebugValue:J}=m;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let K=m.useSyncExternalStore;var Q=i(93465),X=i(89928);let Z=(d={PUSH(t,n){var i;let a=null!=(i=this.get(t))?i:{doc:t,count:0,d:(0,Q.k)(),meta:new Set};return a.count++,a.meta.add(n),this.set(t,a),this},POP(t,n){let i=this.get(t);return i&&(i.count--,i.meta.delete(n)),this},SCROLL_PREVENT({doc:t,d:n,meta:i}){let a;let s={doc:t,d:n,meta:function(t){let n={};for(let i of t)Object.assign(n,i(n));return n}(i)},u=[(0,X.gn)()?{before({doc:t,d:n,meta:i}){function o(t){return i.containers.flatMap(t=>t()).some(n=>n.contains(t))}n.microTask(()=>{var i;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let i=(0,Q.k)();i.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>i.dispose()))}let a=null!=(i=window.scrollY)?i:window.pageYOffset,s=null;n.addEventListener(t,"click",n=>{if(n.target instanceof HTMLElement)try{let i=n.target.closest("a");if(!i)return;let{hash:a}=new URL(i.href),u=t.querySelector(a);u&&!o(u)&&(s=u)}catch{}},!0),n.addEventListener(t,"touchstart",t=>{if(t.target instanceof HTMLElement){if(o(t.target)){let i=t.target;for(;i.parentElement&&o(i.parentElement);)i=i.parentElement;n.style(i,"overscrollBehavior","contain")}else n.style(t.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",t=>{if(t.target instanceof HTMLElement){if(o(t.target)){let n=t.target;for(;n.parentElement&&""!==n.dataset.headlessuiPortal&&!(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth);)n=n.parentElement;""===n.dataset.headlessuiPortal&&t.preventDefault()}else t.preventDefault()}},{passive:!1}),n.add(()=>{var t;a!==(null!=(t=window.scrollY)?t:window.pageYOffset)&&window.scrollTo(0,a),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{},{before({doc:t}){var n;let i=t.documentElement;a=(null!=(n=t.defaultView)?n:window).innerWidth-i.clientWidth},after({doc:t,d:n}){let i=t.documentElement,s=i.clientWidth-i.offsetWidth,u=a-s;n.style(i,"paddingRight",`${u}px`)}},{before({doc:t,d:n}){n.style(t.documentElement,"overflow","hidden")}}];u.forEach(({before:t})=>null==t?void 0:t(s)),u.forEach(({after:t})=>null==t?void 0:t(s))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}},a=new Map,s=new Set,{getSnapshot:()=>a,subscribe:t=>(s.add(t),()=>s.delete(t)),dispatch(t,...n){let i=d[t].call(a,...n);i&&(a=i,s.forEach(t=>t()))}});Z.subscribe(()=>{let t=Z.getSnapshot(),n=new Map;for(let[i]of t)n.set(i,i.documentElement.style.overflow);for(let i of t.values()){let t="hidden"===n.get(i.doc),a=0!==i.count;(a&&!t||!a&&t)&&Z.dispatch(i.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",i),0===i.count&&Z.dispatch("TEARDOWN",i)}});var ee=i(32410);let et=new Map,er=new Map;function b(t,n=!0){(0,q.e)(()=>{var i;if(!n)return;let a="function"==typeof t?t():t.current;if(!a)return;let s=null!=(i=er.get(a))?i:0;return er.set(a,s+1),0!==s||(et.set(a,{"aria-hidden":a.getAttribute("aria-hidden"),inert:a.inert}),a.setAttribute("aria-hidden","true"),a.inert=!0),function(){var t;if(!a)return;let n=null!=(t=er.get(a))?t:1;if(1===n?er.delete(a):er.set(a,n-1),1!==n)return;let i=et.get(a);i&&(null===i["aria-hidden"]?a.removeAttribute("aria-hidden"):a.setAttribute("aria-hidden",i["aria-hidden"]),a.inert=i.inert,et.delete(a))}},[t,n])}var en=i(34607),eo=i(27912);let ei=(0,y.createContext)(()=>{});ei.displayName="StackContext";var ea=((p=ea||{})[p.Add=0]="Add",p[p.Remove=1]="Remove",p);function stack_context_b({children:t,onUpdate:n,type:i,element:a,enabled:s}){let u=(0,y.useContext)(ei),l=(0,v.z)((...t)=>{null==n||n(...t),u(...t)});return(0,q.e)(()=>{let t=void 0===s||!0===s;return t&&l(0,i,a),()=>{t&&l(1,i,a)}},[l,i,a,s]),y.createElement(ei.Provider,{value:l},t)}var es=i(66215);let eu=(0,y.createContext)(null),el=Object.assign((0,L.yV)(function(t,n){let i=(0,ee.M)(),{id:a=`headlessui-description-${i}`,...s}=t,u=function description_f(){let t=(0,y.useContext)(eu);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,description_f),t}return t}(),l=(0,x.T)(n);(0,q.e)(()=>u.register(a),[a,u.register]);let d={ref:l,...u.props,id:a};return(0,L.sY)({ourProps:d,theirProps:s,slot:u.slot||{},defaultTag:"p",name:u.name||"Description"})}),{});var ec=i(64327),ed=((f=ed||{})[f.Open=0]="Open",f[f.Closed=1]="Closed",f),ep=((h=ep||{})[h.SetTitleId=0]="SetTitleId",h);let ef={0:(t,n)=>t.titleId===n.id?t:{...t,titleId:n.id}},eh=(0,y.createContext)(null);function dialog_b(t){let n=(0,y.useContext)(eh);if(null===n){let n=Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dialog_b),n}return n}function Ge(t,n){return(0,j.E)(n.type,ef,t,n)}eh.displayName="DialogContext";let ey=L.AN.RenderStrategy|L.AN.Static,em=Object.assign((0,L.yV)(function(t,n){let i,a,s,u,l,d=(0,ee.M)(),{id:p=`headlessui-dialog-${d}`,open:f,onClose:h,initialFocus:m,role:g="dialog",__demoMode:_=!1,...w}
6=t,[E,T]=(0,y.useState)(0),O=(0,y.useRef)(!1);g="dialog"===g||"alertdialog"===g?g:(O.current||(O.current=!0,console.warn(`Invalid role [${g}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let I=(0,eo.oJ)();void 0===f&&null!==I&&(f=(I&eo.ZM.Open)===eo.ZM.Open);let C=(0,y.useRef)(null),A=(0,x.T)(C,n),B=use_owner_n(C),U=t.hasOwnProperty("open")||null!==I,D=t.hasOwnProperty("onClose");if(!U&&!D)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!U)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!D)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof f)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${f}`);if("function"!=typeof h)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${h}`);let F=f?0:1,[M,N]=(0,y.useReducer)(Ge,{titleId:null,descriptionId:null,panelRef:(0,y.createRef)()}),V=(0,v.z)(()=>h(!1)),W=(0,v.z)(t=>N({type:0,id:t})),Y=!!(0,k.H)()&&!_&&0===F,$=E>1,J=null!==(0,y.useContext)(eh),[Q,X]=(i=(0,y.useContext)(G),a=(0,y.useRef)([]),s=(0,v.z)(t=>(a.current.push(t),i&&i.register(t),()=>u(t))),u=(0,v.z)(t=>{let n=a.current.indexOf(t);-1!==n&&a.current.splice(n,1),i&&i.unregister(t)}),l=(0,y.useMemo)(()=>({register:s,unregister:u,portals:a}),[s,u,a]),[a,(0,y.useMemo)(()=>function({children:t}){return y.createElement(G.Provider,{value:l},t)},[l])]),{resolveContainers:et,mainTreeNodeRef:er,MainTreeNode:ei}=function({defaultContainers:t=[],portals:n,mainTreeNodeRef:i}={}){var a;let s=(0,y.useRef)(null!=(a=null==i?void 0:i.current)?a:null),u=use_owner_n(s),l=(0,v.z)(()=>{var i,a,l;let d=[];for(let n of t)null!==n&&(n instanceof HTMLElement?d.push(n):"current"in n&&n.current instanceof HTMLElement&&d.push(n.current));if(null!=n&&n.current)for(let t of n.current)d.push(t);for(let t of null!=(i=null==u?void 0:u.querySelectorAll("html > *, body > *"))?i:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(s.current)||t.contains(null==(l=null==(a=s.current)?void 0:a.getRootNode())?void 0:l.host)||d.some(n=>t.contains(n))||d.push(t));return d});
6return{resolveContainers:l,contains:(0,v.z)(t=>l().some(n=>n.contains(t))),mainTreeNodeRef:s,MainTreeNode:(0,y.useMemo)(()=>function(){return null!=i?null:y.createElement(R._,{features:R.A.Hidden,ref:s})},[s,i])}}({portals:Q,defaultContainers:[{get current(){var es;return null!=(es=M.panelRef.current)?es:C.current}}]}),el=$?"parent":"leaf",ed=null!==I&&(I&eo.ZM.Closing)===eo.ZM.Closing,ep=!J&&!ed&&Y;b((0,y.useCallback)(()=>{var t,n;return null!=(n=Array.from(null!=(t=null==B?void 0:B.querySelectorAll("body > *"))?t:[]).find(t=>"headlessui-portal-root"!==t.id&&t.contains(er.current)&&t instanceof HTMLElement))?n:null},[er]),ep);let ef=!!$||Y;b((0,y.useCallback)(()=>{var t,n;return null!=(n=Array.from(null!=(t=null==B?void 0:B.querySelectorAll("[data-headlessui-portal]"))?t:[]).find(t=>t.contains(er.current)&&t instanceof HTMLElement))?n:null},[er]),ef);let em=!(!Y||$);(0,en.O)(et,t=>{t.preventDefault(),V()},em);let eg=!($||0!==F);use_event_listener_E(null==B?void 0:B.defaultView,"keydown",t=>{eg&&(t.defaultPrevented||t.key===ec.R.Escape&&(t.preventDefault(),t.stopPropagation(),V()))}),function(t,n,i=()=>[document.body]){var a;let s,u;a=t=>{var n;return{containers:[...null!=(n=t.containers)?n:[],i]}},s=K(Z.subscribe,Z.getSnapshot,Z.getSnapshot),(u=t?s.get(t):void 0)&&u.count,(0,q.e)(()=>{if(!(!t||!n))return Z.dispatch("PUSH",t,a),()=>Z.dispatch("POP",t,a)},[n,t])}(B,!(ed||0!==F||J),et),(0,y.useEffect)(()=>{if(0!==F||!C.current)return;let t=new ResizeObserver(t=>{for(let n of t){let t=n.target.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&V()}});return t.observe(C.current),()=>t.disconnect()},[F,C,V]);let[eb,ev]=function(){let[t,n]=(0,y.useState)([]);return[t.length>0?t.join(" "):void 0,(0,y.useMemo)(()=>function(t){let i=(0,v.z)(t=>(n(n=>[...n,t]),()=>n(n=>{let i=n.slice(),a=i.indexOf(t);return -1!==a&&i.splice(a,1),i}))),a=(0,y.useMemo)(()=>({register:i,slot:t.slot,name:t.name,props:t.props}),[i,t.slot,t.name,t.props]);return y.createElement(eu.Provider,{value:a},t.children)},[n])]}(),e_=(0,y.useMemo)(()=>[{dialogState:F,close:V,setTitleId:W},M],[F,M,V,W]),ew=(0,y.useMemo)(()=>({open:0===F}),[F]),eE={ref:A,id:p,role:g,"aria-modal":0===F||void 0,"aria-labelledby":M.titleId,"aria-describedby":eb};return y.createElement(stack_context_b,{type:"Dialog",enabled:0===F,element:C,onUpdate:(0,v.z)((t,n)=>{"Dialog"===n&&(0,j.E)(t,{[ea.Add]:()=>T(t=>t+1),[ea.Remove]:()=>T(t=>t-1)})})},y.createElement(portal_force_root_l,{force:!0},y.createElement(H,null,y.createElement(eh.Provider,{value:e_},y.createElement(H.Group,{target:C},y.createElement(portal_force_root_l,{force:!1},y.createElement(ev,{slot:ew,name:"Dialog.Description"},y.createElement(z,{initialFocus:m,containers:et,features:Y?(0,j.E)(el,{parent:z.features.RestoreFocus,leaf:z.features.All&~z.features.FocusLock}):z.features.None},y.createElement(X,null,(0,L.sY)({ourProps:eE,theirProps:w,slot:ew,defaultTag:"div",features:ey,visible:0===F,name:"Dialog"}))))))))),y.createElement(ei,null))}),{Backdrop:(0,L.yV)(function(t,n){let i=(0,ee.M)(),{id:a=`headlessui-dialog-backdrop-${i}`,...s}=t,[{dialogState:u},l]=dialog_b("Dialog.Backdrop"),d=(0,x.T)(n);(0,y.useEffect)(()=>{if(null===l.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let p=(0,y.useMemo)(()=>({open:0===u}),[u]);return y.createElement(portal_force_root_l,{force:!0},y.createElement(H,null,(0,L.sY)({ourProps:{ref:d,id:a,"aria-hidden":!0},theirProps:s,slot:p,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,L.yV)(function(t,n){let i=(0,ee.M)(),{id:a=`headlessui-dialog-panel-${i}`,...s}=t,[{dialogState:u},l]=dialog_b("Dialog.Panel"),d=(0,x.T)(n,l.panelRef),p=(0,y.useMemo)(()=>({open:0===u}),[u]),f=(0,v.z)(t=>{t.stopPropagation()});return(0,L.sY)({ourProps:{ref:d,id:a,onClick:f},theirProps:s,slot:p,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,L.yV)(function(t,n){let i=(0,ee.M)(),{id:a=`headlessui-dialog-overlay-${i}`,...s}=t,[{dialogState:u,close:l}]=dialog_b("Dialog.Overlay"),d=(0,x.T)(n),p=(0,v.z)(t=>{if(t.target===t.currentTarget){if((0,es.P)(t.currentTarget))return t.preventDefault();t.preventDefault(),t.stopPropagation(),l()}}),f=(0,y.useMemo)(()=>({open:0===u}),[u]);return(0,L.sY)({ourProps:{ref:d,id:a,"aria-hidden":!0,onClick:p},theirProps:s,slot:f,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,L.yV)(function(t,n){let i=(0,ee.M)(),{id:a=`headlessui-dialog-title-${i}`,...s}=t,[{dialogState:u,setTitleId:l}]=dialog_b("Dialog.Title"),d=(0,x.T)(n);(0,y.useEffect)(()=>(l(a),()=>l(null)),[a,l]);let p=(0,y.useMemo)(()=>({open:0===u}),[u]);return(0,L.sY)({ourProps:{ref:d,id:a},theirProps:s,slot:p,defaultTag:"h2",name:"Dialog.Title"})}),Description:el})},23532:function(t,n,i){"use strict";i.d(n,{f:function(){return m}});var a=i(75271),s=i.t(a,2);i(30967);var u=i(19331),l=i(52676),d=Symbol.for("react.lazy"),p=s[" use ".trim().toString()];function isLazyComponent(t){var n;return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===d&&"_payload"in t&&"object"==typeof(n=t._payload)&&null!==n&&"then"in n}var f=Symbol("radix.slottable");function isSlottable(t){return a.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===f}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>
6{let i=function(t){let n=function(t){let n=a.forwardRef((t,n)=>{let{children:i,...s}=t;if(isLazyComponent(i)&&"function"==typeof p&&(i=p(i._payload)),a.isValidElement(i)){var l;let t,d;let p=(l=i,(t=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.ref:(t=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.props.ref:l.props.ref||l.ref),f=function(t,n){let i={...n};for(let a in n){let s=t[a],u=n[a],l=/^on[A-Z]/.test(a);l?s&&u?i[a]=(...t)=>{let n=u(...t);return s(...t),n}:s&&(i[a]=s):"style"===a?i[a]={...s,...u}:"className"===a&&(i[a]=[s,u].filter(Boolean).join(" "))}return{...t,...i}}(s,i.props);return i.type!==a.Fragment&&(f.ref=n?(0,u.F)(n,p):p),a.cloneElement(i,f)}return a.Children.count(i)>1?a.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}(t),i=a.forwardRef((t,i)=>{let{children:s,...u}=t;isLazyComponent(s)&&"function"==typeof p&&(s=p(s._payload));let d=a.Children.toArray(s),f=d.find(isSlottable);if(f){let t=f.props.children,s=d.map(n=>n!==f?n:a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null);return(0,l.jsx)(n,{...u,ref:i,children:a.isValidElement(t)?a.cloneElement(t,void 0,s):null})}return(0,l.jsx)(n,{...u,ref:i,children:s})});return i.displayName=`${t}.Slot`,i}(`Primitive.${n}`),s=a.forwardRef((t,a)=>{let{asChild:s,...u}=t,d=s?i:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(d,{...u,ref:a})});return s.displayName=`Primitive.${n}`,{...t,[n]:s}},{}),y=a.forwardRef((t,n)=>{let{ratio:i=1,style:a,...s}=t;return(0,l.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/i}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,l.jsx)(h.div,{...s,ref:n,style:{...a,position:"absolute",top:0,right:0,bottom:0,left:0}})})});y.displayName="AspectRatio";var m=y}}]);

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.