datocms-plugin-asset-optimization 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/assetReplacer-I8NsIZnm.js +1 -0
- package/dist/assets/{index-CFTYESMw.css → index-QKXhJ4Sk.css} +1 -1
- package/dist/assets/index-ZNVa5Sti.js +22 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/dist/assets/assetReplacer-DS1p55So.js +0 -1
- package/dist/assets/index-CqRkSJk3.js +0 -22
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function c_(i,n){for(var l=0;l<n.length;l++){const u=n[l];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in i)){const f=Object.getOwnPropertyDescriptor(u,s);f&&Object.defineProperty(i,s,f.get?f:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(s){if(s.ep)return;s.ep=!0;const f=l(s);fetch(s.href,f)}})();var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qu(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var yc={exports:{}},jr={};var Ep;function f_(){if(Ep)return jr;Ep=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(u,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var v in s)v!=="key"&&(f[v]=s[v])}else f=s;return s=f.ref,{$$typeof:i,type:u,key:d,ref:s!==void 0?s:null,props:f}}return jr.Fragment=n,jr.jsx=l,jr.jsxs=l,jr}var wp;function d_(){return wp||(wp=1,yc.exports=f_()),yc.exports}var O=d_(),mu={exports:{}},lt={},Tp;function sf(){if(Tp)return lt;Tp=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.DATA_CLONE_ERROR=lt.MESSAGE=lt.REJECTED=lt.FULFILLED=lt.REPLY=lt.CALL=lt.HANDSHAKE_REPLY=lt.HANDSHAKE=void 0;const i="handshake";lt.HANDSHAKE=i;const n="handshake-reply";lt.HANDSHAKE_REPLY=n;const l="call";lt.CALL=l;const u="reply";lt.REPLY=u;const s="fulfilled";lt.FULFILLED=s;const f="rejected";lt.REJECTED=f;const d="message";lt.MESSAGE=d;const v="DataCloneError";return lt.DATA_CLONE_ERROR=v,lt}var nn={},Op;function Yv(){if(Op)return nn;Op=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.ERR_NO_IFRAME_SRC=nn.ERR_NOT_IN_IFRAME=nn.ERR_CONNECTION_TIMEOUT=nn.ERR_CONNECTION_DESTROYED=void 0;const i="ConnectionDestroyed";nn.ERR_CONNECTION_DESTROYED=i;const n="ConnectionTimeout";nn.ERR_CONNECTION_TIMEOUT=n;const l="NotInIframe";nn.ERR_NOT_IN_IFRAME=l;const u="NoIframeSrc";return nn.ERR_NO_IFRAME_SRC=u,nn}var pu={exports:{}},xp;function h_(){return xp||(xp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=()=>{const u=[];let s=!1;return{destroy(){s=!0,u.forEach(f=>{f()})},onDestroy(f){s?f():u.push(f)}}};n.default=l,i.exports=n.default})(pu,pu.exports)),pu.exports}var vu={exports:{}},ja={},Cp;function $v(){if(Cp)return ja;Cp=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.deserializeError=ja.serializeError=void 0;const i=l=>{let u=l.name,s=l.message,f=l.stack;return{name:u,message:s,stack:f}};ja.serializeError=i;const n=l=>{const u=new Error;return Object.keys(l).forEach(s=>u[s]=l[s]),u};return ja.deserializeError=n,ja}var Ap;function m_(){return Ap||(Ap=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=sf(),u=$v(),s=(f,d,v)=>{const h=f.localName,m=f.local,g=f.remote,y=f.originForSending,b=f.originForReceiving;let S=!1;v(`${h}: Connecting call receiver`);const E=T=>{if(T.source!==g||T.data.penpal!==l.CALL)return;if(T.origin!==b){v(`${h} received message from origin ${T.origin} which did not match expected origin ${b}`);return}const R=T.data,L=R.methodName,X=R.args,$=R.id;v(`${h}: Received ${L}() call`);const Z=M=>G=>{if(v(`${h}: Sending ${L}() reply`),S){v(`${h}: Unable to send ${L}() reply due to destroyed connection`);return}const U={penpal:l.REPLY,id:$,resolution:M,returnValue:G};M===l.REJECTED&&G instanceof Error&&(U.returnValue=(0,u.serializeError)(G),U.returnValueIsError=!0);try{g.postMessage(U,y)}catch(W){throw W.name===l.DATA_CLONE_ERROR&&g.postMessage({penpal:l.REPLY,id:$,resolution:l.REJECTED,returnValue:(0,u.serializeError)(W),returnValueIsError:!0},y),W}};new Promise(M=>M(d[L].apply(d,X))).then(Z(l.FULFILLED),Z(l.REJECTED))};return m.addEventListener(l.MESSAGE,E),()=>{S=!0,m.removeEventListener(l.MESSAGE,E)}};n.default=s,i.exports=n.default})(vu,vu.exports)),vu.exports}var gu={exports:{}},yu={exports:{}},zp;function p_(){return zp||(zp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let l=0;var u=()=>++l;n.default=u,i.exports=n.default})(yu,yu.exports)),yu.exports}var Mp;function v_(){return Mp||(Mp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=sf(),u=Yv(),s=d(p_()),f=$v();function d(h){return h&&h.__esModule?h:{default:h}}var v=(h,m,g,y,b)=>{const S=m.localName,E=m.local,T=m.remote,R=m.originForSending,L=m.originForReceiving;let X=!1;b(`${S}: Connecting call sender`);const $=Z=>function(){for(var M=arguments.length,G=new Array(M),U=0;U<M;U++)G[U]=arguments[U];b(`${S}: Sending ${Z}() call`);let W;try{T.closed&&(W=!0)}catch{W=!0}if(W&&y(),X){const fe=new Error(`Unable to send ${Z}() call due to destroyed connection`);throw fe.code=u.ERR_CONNECTION_DESTROYED,fe}return new Promise((fe,De)=>{const Ee=(0,s.default)(),ee=ne=>{if(ne.source!==T||ne.data.penpal!==l.REPLY||ne.data.id!==Ee)return;if(ne.origin!==L){b(`${S} received message from origin ${ne.origin} which did not match expected origin ${L}`);return}b(`${S}: Received ${Z}() reply`),E.removeEventListener(l.MESSAGE,ee);let de=ne.data.returnValue;ne.data.returnValueIsError&&(de=(0,f.deserializeError)(de)),(ne.data.resolution===l.FULFILLED?fe:De)(de)};E.addEventListener(l.MESSAGE,ee),T.postMessage({penpal:l.CALL,id:Ee,methodName:Z,args:G},R)})};return g.reduce((Z,M)=>(Z[M]=$(M),Z),h),()=>{X=!0}};n.default=v,i.exports=n.default})(gu,gu.exports)),gu.exports}var bu={exports:{}},Dp;function g_(){return Dp||(Dp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=u=>function(){if(u){for(var s=arguments.length,f=new Array(s),d=0;d<s;d++)f[d]=arguments[d];console.log("[Penpal]",...f)}};n.default=l,i.exports=n.default})(bu,bu.exports)),bu.exports}var Rp;function y_(){return Rp||(Rp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=sf(),u=Yv(),s=h(h_()),f=h(m_()),d=h(v_()),v=h(g_());function h(g){return g&&g.__esModule?g:{default:g}}var m=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=y.parentOrigin,S=b===void 0?"*":b,E=y.methods,T=E===void 0?{}:E,R=y.timeout,L=y.debug;const X=(0,v.default)(L);if(window===window.top){const fe=new Error("connectToParent() must be called within an iframe");throw fe.code=u.ERR_NOT_IN_IFRAME,fe}const $=(0,s.default)(),Z=$.destroy,M=$.onDestroy,G=window,U=G.parent;return{promise:new Promise((fe,De)=>{let Ee;R!==void 0&&(Ee=setTimeout(()=>{const ne=new Error(`Connection to parent timed out after ${R}ms`);ne.code=u.ERR_CONNECTION_TIMEOUT,De(ne),Z()},R));const ee=ne=>{try{clearTimeout()}catch{return}if(ne.source!==U||ne.data.penpal!==l.HANDSHAKE_REPLY)return;if(S!=="*"&&S!==ne.origin){X(`Child received handshake reply from origin ${ne.origin} which did not match expected origin ${S}`);return}X("Child: Received handshake reply"),G.removeEventListener(l.MESSAGE,ee);const de={localName:"Child",local:G,remote:U,originForSending:ne.origin==="null"?"*":ne.origin,originForReceiving:ne.origin},ve={},D=(0,f.default)(de,T,X);M(D);const Q=(0,d.default)(ve,de,ne.data.methodNames,Z,X);M(Q),clearTimeout(Ee),fe(ve)};G.addEventListener(l.MESSAGE,ee),M(()=>{G.removeEventListener(l.MESSAGE,ee);const ne=new Error("Connection destroyed");ne.code=u.ERR_CONNECTION_DESTROYED,De(ne)}),X("Child: Sending handshake"),U.postMessage({penpal:l.HANDSHAKE,methodNames:Object.keys(T)},S)}),destroy:Z}};n.default=m,i.exports=n.default})(mu,mu.exports)),mu.exports}var b_=y_();const __=Qu(b_);var dn=function(){return dn=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},dn.apply(this,arguments)};function jp(i,n){for(var l=dn({},i),u=0,s=n;u<s.length;u++){var f=s[u];delete l[f]}return l}function bc(i){return function(n,l){if(i){for(var u={},s=0,f=n;s<f.length;s++){var d=f[s],v=l.itemTypes[d.relationships.item_type.data.id];u[d.id]=i(d,dn(dn({},l),{itemType:v}))}return u}}}function Un(i,n){var l=function(u,s,f){if(f.mode===i){var d=E_(s),v=function(h){n(u,dn(dn(dn({},s),h),d))};return v(f),v}};return l.mode=i,l}function kr(i,n){var l=function(u,s,f){if(f.mode===i){var d=function(v){n(u,dn(dn({},s),v))};return d(f),d}};return l.mode=i,l}function S_(){for(var i=document.querySelectorAll("body *"),n=0,l=0;l<i.length;l++)n=Math.max(i[l].getBoundingClientRect().bottom,n);return n}var E_=function(i){var n=null,l=function(m){var g=m===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,S_()):m;g!==n&&(i.setHeight(g),n=g)},u=null,s=null,f=function(){return l()},d=function(){l(),u||(u=new ResizeObserver(f),u.observe(document.documentElement)),s||(s=new MutationObserver(f),s.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},v=function(){u&&(u.disconnect(),u=null),s&&(s.disconnect(),s=null)},h=function(){return!!u};return{updateHeight:l,startAutoResizer:d,stopAutoResizer:v,isAutoResizerActive:h}},w_=Un("renderAssetSource",function(i,n){i.renderAssetSource&&i.renderAssetSource(n.assetSourceId,n)}),T_=Un("renderConfigScreen",function(i,n){i.renderConfigScreen&&i.renderConfigScreen(n)}),O_=Un("renderFieldExtension",function(i,n){i.renderFieldExtension&&i.renderFieldExtension(n.fieldExtensionId,n)}),x_=kr("renderInspector",function(i,n){i.renderInspector&&i.renderInspector(n.inspectorId,n)}),C_=kr("renderInspectorPanel",function(i,n){i.renderInspectorPanel&&i.renderInspectorPanel(n.panelId,n)}),A_=Un("renderItemCollectionOutlet",function(i,n){i.renderItemCollectionOutlet&&i.renderItemCollectionOutlet(n.itemCollectionOutletId,n)}),z_=Un("renderItemFormOutlet",function(i,n){i.renderItemFormOutlet&&i.renderItemFormOutlet(n.itemFormOutletId,n)}),M_=kr("renderItemFormSidebar",function(i,n){i.renderItemFormSidebar&&i.renderItemFormSidebar(n.sidebarId,n)}),D_=Un("renderItemFormSidebarPanel",function(i,n){i.renderItemFormSidebarPanel&&i.renderItemFormSidebarPanel(n.sidebarPaneId,n)}),R_=Un("renderManualFieldExtensionConfigScreen",function(i,n){i.renderManualFieldExtensionConfigScreen&&i.renderManualFieldExtensionConfigScreen(n.fieldExtensionId,n)}),j_=Un("renderModal",function(i,n){i.renderModal&&i.renderModal(n.modalId,n)}),L_=kr("renderPage",function(i,n){i.renderPage&&i.renderPage(n.pageId,n)}),N_=kr("renderUploadSidebar",function(i,n){i.renderUploadSidebar&&i.renderUploadSidebar(n.sidebarId,n)}),q_=Un("renderUploadSidebarPanel",function(i,n){i.renderUploadSidebarPanel&&i.renderUploadSidebarPanel(n.sidebarPaneId,n)}),Zt=function(){return Zt=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Zt.apply(this,arguments)},U_=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})},V_=function(i,n){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,s,f,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=v(0),d.throw=v(1),d.return=v(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(m){return function(g){return h([m,g])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(l=0)),l;)try{if(u=1,s&&(f=m[0]&2?s.return:m[0]?s.throw||((f=s.return)&&f.call(s),0):s.next)&&!(f=f.call(s,m[1])).done)return f;switch(s=0,f&&(m=[m[0]&2,f.value]),m[0]){case 0:case 1:f=m;break;case 4:return l.label++,{value:m[1],done:!1};case 5:l.label++,s=m[1],m=[0];continue;case 7:m=l.ops.pop(),l.trys.pop();continue;default:if(f=l.trys,!(f=f.length>0&&f[f.length-1])&&(m[0]===6||m[0]===2)){l=0;continue}if(m[0]===3&&(!f||m[1]>f[0]&&m[1]<f[3])){l.label=m[1];break}if(m[0]===6&&l.label<f[1]){l.label=f[1],f=m;break}if(f&&l.label<f[2]){l.label=f[2],l.ops.push(m);break}f[2]&&l.ops.pop(),l.trys.pop();continue}m=n.call(i,l)}catch(g){m=[6,g],s=0}finally{u=f=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},Lp=function(i,n,l){if(l||arguments.length===2)for(var u=0,s=n.length,f;u<s;u++)(f||!(u in n))&&(f||(f=Array.prototype.slice.call(n,0,u)),f[u]=n[u]);return i.concat(f||Array.prototype.slice.call(n))};function H_(){return U_(this,arguments,void 0,function(i){var n,l,u,s,f,d,v,h,m,g,y,b;return i===void 0&&(i={}),V_(this,function(S){switch(S.label){case 0:return n=null,l=null,u=Zt(Zt({},i),{overrideFieldExtensions:bc(i.overrideFieldExtensions),customMarksForStructuredTextField:bc(i.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:bc(i.customBlockStylesForStructuredTextField)}),s=__({methods:Zt(Zt({sdkVersion:function(){return"0.3.0"},implementedHooks:function(){return Object.fromEntries(Object.keys(i).map(function(E){return[E,!0]}))}},Object.fromEntries(Object.entries(u).filter(function(E){var T=E[0];return!T.startsWith("render")}))),{onChange:function(E){n&&n(E)},callMethodMergingBootCtx:function(E,T,R,L,X){return l?l(E,T,R,L,X):null}})}),[4,s.promise];case 1:return f=S.sent(),[4,f.getSettings()];case 2:for(d=S.sent(),d.mode==="onBoot"&&(v=d,n=function(E){v=E},l=function(E,T,R,L,X){var $;if(E in u)return($=u)[E].apply($,Lp(Lp([],T,!1),[Zt(Zt(Zt(Zt({},jp(f,["getSettings","setHeight"])),jp(v,["mode","bodyPadding"])),Object.fromEntries(L.map(function(Z){return[Z,function(){for(var G=[],U=0;U<arguments.length;U++)G[U]=arguments[U];return f.callAdditionalCtxMethod(X,Z,G)}]}))),R)],!1))},u.onBoot&&u.onBoot(Zt(Zt({},f),v))),h={renderAssetSource:w_,renderConfigScreen:T_,renderFieldExtension:O_,renderItemCollectionOutlet:A_,renderItemFormOutlet:z_,renderItemFormSidebar:M_,renderItemFormSidebarPanel:D_,renderManualFieldExtensionConfigScreen:R_,renderModal:j_,renderPage:L_,renderInspector:x_,renderInspectorPanel:C_,renderUploadSidebar:N_,renderUploadSidebarPanel:q_},m=0,g=Object.values(h);m<g.length;m++)if(y=g[m],b=y(u,f,d),b){n=b;break}return[2]}})})}var _c={exports:{}};var Np;function B_(){return Np||(Np=1,(function(i){(function(){var n={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var v=arguments[d];v&&(f=s(f,u(v)))}return f}function u(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var v in f)n.call(f,v)&&f[v]&&(d=s(d,v));return d}function s(f,d){return d?f?f+" "+d:f+d:f}i.exports?(l.default=l,i.exports=l):window.classNames=l})()})(_c)),_c.exports}var G_=B_();const mn=Qu(G_);var Sc={exports:{}},_e={};var qp;function I_(){if(qp)return _e;qp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function S(x){return x===null||typeof x!="object"?null:(x=b&&x[b]||x["@@iterator"],typeof x=="function"?x:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function L(x,H,K){this.props=x,this.context=H,this.refs=R,this.updater=K||E}L.prototype.isReactComponent={},L.prototype.setState=function(x,H){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,H,"setState")},L.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function X(){}X.prototype=L.prototype;function $(x,H,K){this.props=x,this.context=H,this.refs=R,this.updater=K||E}var Z=$.prototype=new X;Z.constructor=$,T(Z,L.prototype),Z.isPureReactComponent=!0;var M=Array.isArray;function G(){}var U={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function fe(x,H,K){var te=K.ref;return{$$typeof:i,type:x,key:H,ref:te!==void 0?te:null,props:K}}function De(x,H){return fe(x.type,H,x.props)}function Ee(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function ee(x){var H={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(K){return H[K]})}var ne=/\/+/g;function de(x,H){return typeof x=="object"&&x!==null&&x.key!=null?ee(""+x.key):H.toString(36)}function ve(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(G,G):(x.status="pending",x.then(function(H){x.status==="pending"&&(x.status="fulfilled",x.value=H)},function(H){x.status==="pending"&&(x.status="rejected",x.reason=H)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function D(x,H,K,te,ue){var se=typeof x;(se==="undefined"||se==="boolean")&&(x=null);var re=!1;if(x===null)re=!0;else switch(se){case"bigint":case"string":case"number":re=!0;break;case"object":switch(x.$$typeof){case i:case n:re=!0;break;case g:return re=x._init,D(re(x._payload),H,K,te,ue)}}if(re)return ue=ue(x),re=te===""?"."+de(x,0):te,M(ue)?(K="",re!=null&&(K=re.replace(ne,"$&/")+"/"),D(ue,H,K,"",function(Vt){return Vt})):ue!=null&&(Ee(ue)&&(ue=De(ue,K+(ue.key==null||x&&x.key===ue.key?"":(""+ue.key).replace(ne,"$&/")+"/")+re)),H.push(ue)),1;re=0;var xe=te===""?".":te+":";if(M(x))for(var Se=0;Se<x.length;Se++)te=x[Se],se=xe+de(te,Se),re+=D(te,H,K,se,ue);else if(Se=S(x),typeof Se=="function")for(x=Se.call(x),Se=0;!(te=x.next()).done;)te=te.value,se=xe+de(te,Se++),re+=D(te,H,K,se,ue);else if(se==="object"){if(typeof x.then=="function")return D(ve(x),H,K,te,ue);throw H=String(x),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return re}function Q(x,H,K){if(x==null)return x;var te=[],ue=0;return D(x,te,"","",function(se){return H.call(K,se,ue++)}),te}function J(x){if(x._status===-1){var H=x._result;H=H(),H.then(function(K){(x._status===0||x._status===-1)&&(x._status=1,x._result=K)},function(K){(x._status===0||x._status===-1)&&(x._status=2,x._result=K)}),x._status===-1&&(x._status=0,x._result=H)}if(x._status===1)return x._result.default;throw x._result}var ge=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},be={map:Q,forEach:function(x,H,K){Q(x,function(){H.apply(this,arguments)},K)},count:function(x){var H=0;return Q(x,function(){H++}),H},toArray:function(x){return Q(x,function(H){return H})||[]},only:function(x){if(!Ee(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return _e.Activity=y,_e.Children=be,_e.Component=L,_e.Fragment=l,_e.Profiler=s,_e.PureComponent=$,_e.StrictMode=u,_e.Suspense=h,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,_e.__COMPILER_RUNTIME={__proto__:null,c:function(x){return U.H.useMemoCache(x)}},_e.cache=function(x){return function(){return x.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(x,H,K){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var te=T({},x.props),ue=x.key;if(H!=null)for(se in H.key!==void 0&&(ue=""+H.key),H)!W.call(H,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&H.ref===void 0||(te[se]=H[se]);var se=arguments.length-2;if(se===1)te.children=K;else if(1<se){for(var re=Array(se),xe=0;xe<se;xe++)re[xe]=arguments[xe+2];te.children=re}return fe(x.type,ue,te)},_e.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},_e.createElement=function(x,H,K){var te,ue={},se=null;if(H!=null)for(te in H.key!==void 0&&(se=""+H.key),H)W.call(H,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ue[te]=H[te]);var re=arguments.length-2;if(re===1)ue.children=K;else if(1<re){for(var xe=Array(re),Se=0;Se<re;Se++)xe[Se]=arguments[Se+2];ue.children=xe}if(x&&x.defaultProps)for(te in re=x.defaultProps,re)ue[te]===void 0&&(ue[te]=re[te]);return fe(x,se,ue)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(x){return{$$typeof:v,render:x}},_e.isValidElement=Ee,_e.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:J}},_e.memo=function(x,H){return{$$typeof:m,type:x,compare:H===void 0?null:H}},_e.startTransition=function(x){var H=U.T,K={};U.T=K;try{var te=x(),ue=U.S;ue!==null&&ue(K,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(G,ge)}catch(se){ge(se)}finally{H!==null&&K.types!==null&&(H.types=K.types),U.T=H}},_e.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},_e.use=function(x){return U.H.use(x)},_e.useActionState=function(x,H,K){return U.H.useActionState(x,H,K)},_e.useCallback=function(x,H){return U.H.useCallback(x,H)},_e.useContext=function(x){return U.H.useContext(x)},_e.useDebugValue=function(){},_e.useDeferredValue=function(x,H){return U.H.useDeferredValue(x,H)},_e.useEffect=function(x,H){return U.H.useEffect(x,H)},_e.useEffectEvent=function(x){return U.H.useEffectEvent(x)},_e.useId=function(){return U.H.useId()},_e.useImperativeHandle=function(x,H,K){return U.H.useImperativeHandle(x,H,K)},_e.useInsertionEffect=function(x,H){return U.H.useInsertionEffect(x,H)},_e.useLayoutEffect=function(x,H){return U.H.useLayoutEffect(x,H)},_e.useMemo=function(x,H){return U.H.useMemo(x,H)},_e.useOptimistic=function(x,H){return U.H.useOptimistic(x,H)},_e.useReducer=function(x,H,K){return U.H.useReducer(x,H,K)},_e.useRef=function(x){return U.H.useRef(x)},_e.useState=function(x){return U.H.useState(x)},_e.useSyncExternalStore=function(x,H,K){return U.H.useSyncExternalStore(x,H,K)},_e.useTransition=function(){return U.H.useTransition()},_e.version="19.2.4",_e}var Up;function of(){return Up||(Up=1,Sc.exports=I_()),Sc.exports}var k=of();const Te=Qu(k),Vp=c_({__proto__:null,default:Te},[k]),Y_="_button_474wk_1",$_="_disabled_474wk_30",P_="_fullWidth_474wk_118",F_="_button__leftIcon_474wk_124",k_="_button__rightIcon_474wk_125",La={button:Y_,disabled:$_,"buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113",fullWidth:P_,button__leftIcon:F_,button__rightIcon:k_};function ha(i){var n,l=i.children,u=i.className,s=i.disabled,f=i.buttonType,d=f===void 0?"muted":f,v=i.buttonSize,h=v===void 0?"m":v,m=i.fullWidth,g=i.onClick,y=i.style,b=i.leftIcon,S=i.rightIcon,E=i.type,T=E===void 0?"button":E;return Te.createElement("button",{type:T,className:mn(La.button,La["buttonType-".concat(d)],La["buttonSize-".concat(h)],(n={},n[La.disabled]=s,n[La.fullWidth]=m,n),u),disabled:s,onClick:g,style:y},b&&Te.createElement("span",{className:La.button__leftIcon},b),l&&Te.createElement("span",null,l),S&&Te.createElement("span",{className:La.button__rightIcon},S))}var Gc=function(){return Gc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Gc.apply(this,arguments)};function Hp(i){return i===i.toLowerCase()?i:i.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())})}function X_(i,n){return n===void 0&&(n=!1),Gc({padding:n?void 0:i.bodyPadding.map(function(l){return"".concat(l,"px")}).join(" ")},Object.fromEntries(Object.entries(i.theme).flatMap(function(l){var u,s=l[0],f=l[1];return[["--".concat(Hp(s)),f],["--".concat(Hp("".concat(s,"RgbComponents"))),((u=f.match(/rgb\((\d+, \d+, \d+)\)/))===null||u===void 0?void 0:u[1])||void 0]]})))}const Q_="_themeVariables_2dr1w_1",Z_="_canvas_2dr1w_70",Bp={themeVariables:Q_,canvas:Z_};var K_=k.createContext(null);function Pv(i){var n=i.ctx,l=i.children,u=i.noAutoResizer,s=n.mode;return k.useEffect(function(){if(!u&&"startAutoResizer"in n){var f=n;return f.startAutoResizer(),function(){f.stopAutoResizer()}}},[s,u]),Te.createElement(K_.Provider,{value:n},Te.createElement("div",{className:mn(Bp.themeVariables,Bp.canvas),style:X_(n)},l))}var Ec={exports:{}},vt={};var Gp;function J_(){if(Gp)return vt;Gp=1;var i=of();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var u={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(h,m,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:h,containerInfo:m,implementation:g}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return f(h,m,null,g)},vt.flushSync=function(h){var m=d.T,g=u.p;try{if(d.T=null,u.p=2,h)return h()}finally{d.T=m,u.p=g,u.d.f()}},vt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(h,m))},vt.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},vt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,y=v(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?u.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):g==="script"&&u.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=v(m.as,m.crossOrigin);u.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(h)},vt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,y=v(g,m.crossOrigin);u.d.L(h,g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},vt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=v(m.as,m.crossOrigin);u.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(h)},vt.requestFormReset=function(h){u.d.r(h)},vt.unstable_batchedUpdates=function(h,m){return h(m)},vt.useFormState=function(h,m,g){return d.H.useFormState(h,m,g)},vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var Ip;function Fv(){if(Ip)return Ec.exports;Ip=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Ec.exports=J_(),Ec.exports}var W_=Fv();const eS="_fieldError_qi0xk_1",tS={fieldError:eS};function kv(i){var n=i.children;return Te.createElement("div",{className:tS.fieldError},n)}const nS="_FieldGroup_uz9ju_1",aS="_FieldGroup__item_uz9ju_5",Yp={FieldGroup:nS,FieldGroup__item:aS};var Ic=function(){return Ic=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Ic.apply(this,arguments)},iS=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function Lr(i){var n=i.children,l=i.className,u=iS(i,["children","className"]),s=mn(Yp.FieldGroup,l);return Te.createElement("div",Ic({},u,{className:s}),Te.Children.map(n,function(f){return f&&Te.createElement("div",{className:Yp.FieldGroup__item},f)}))}const rS="_fieldHint_1avon_1",lS={fieldHint:rS};function Xv(i){var n=i.children;return Te.createElement("div",{className:lS.fieldHint},n)}var Yc=function(){return Yc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Yc.apply(this,arguments)};function Qv(i){var n=i.id,l=i.label,u=i.hint,s=i.error,f=i.required,d=i.formLabelProps,v=i.children;return Te.createElement(Te.Fragment,null,Te.createElement(Zv,Yc({},d,{htmlFor:n,required:f,error:!!s}),l),v,s&&Te.createElement(kv,null,s),u&&Te.createElement(Xv,null,u))}const uS="_Form_5qspp_1",sS="_Form__item_5qspp_5",wc={Form:uS,Form__item:sS,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var $c=function(){return $c=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},$c.apply(this,arguments)},oS=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},cS=function(i){var n=i.children,l=i.className,u=i.onSubmit,s=i.spacing,f=s===void 0?"default":s,d=oS(i,["children","className","onSubmit","spacing"]),v=mn(wc.Form,l),h=mn(wc.Form__item,wc["Form__item--".concat(f)]),m=k.useCallback(function(g){g.preventDefault(),u&&u(g)},[u]);return Te.createElement("form",$c({className:v,onSubmit:m},d),k.Children.map(n,function(g){return g?Te.createElement("div",{className:h},g):null}))};const fS="_formLabel_tcjrv_1",dS="_formLabel__code_tcjrv_8",hS="_formLabel__label_tcjrv_18",mS="_formLabel__required_tcjrv_30",Nr={formLabel:fS,formLabel__code:dS,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:hS,formLabel__required:mS};var Pc=function(){return Pc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Pc.apply(this,arguments)},pS=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},Zv=function(i){var n,l=i.children,u=i.className,s=i.htmlFor,f=i.code,d=i.required,v=d===void 0?!1:d,h=i.error,m=h===void 0?!1:h,g=pS(i,["children","className","htmlFor","code","required","error"]),y=mn(Nr.formLabel,u,(n={},n[Nr["formLabel--error"]]=m,n));return Te.createElement("label",Pc({className:y,htmlFor:s},g),Te.createElement("span",{className:Nr.formLabel__label},l,v&&Te.createElement("span",{className:Nr.formLabel__required},"*")),f&&Te.createElement("span",{className:Nr.formLabel__code},f))},Fc=function(){return Fc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Fc.apply(this,arguments)};function vS(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.placeholder,h=i.formLabelProps,m=i.value,g=i.onChange,y=i.selectInputProps;return Te.createElement(Qv,{formLabelProps:h,id:n,required:d,error:f,hint:s,label:u},Te.createElement(dT,Fc({},y,{id:n,name:l,value:m,placeholder:v,onChange:g,error:!!f})))}function Ba(i){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ba(i)}function gS(i,n){if(Ba(i)!="object"||!i)return i;var l=i[Symbol.toPrimitive];if(l!==void 0){var u=l.call(i,n);if(Ba(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function Kv(i){var n=gS(i,"string");return Ba(n)=="symbol"?n:n+""}function Br(i,n,l){return(n=Kv(n))in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}function $p(i,n){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);n&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),l.push.apply(l,u)}return l}function he(i){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?$p(Object(l),!0).forEach(function(u){Br(i,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):$p(Object(l)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(l,u))})}return i}function yS(i){if(Array.isArray(i))return i}function bS(i,n){var l=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(l!=null){var u,s,f,d,v=[],h=!0,m=!1;try{if(f=(l=l.call(i)).next,n===0){if(Object(l)!==l)return;h=!1}else for(;!(h=(u=f.call(l)).done)&&(v.push(u.value),v.length!==n);h=!0);}catch(g){m=!0,s=g}finally{try{if(!h&&l.return!=null&&(d=l.return(),Object(d)!==d))return}finally{if(m)throw s}}return v}}function kc(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,u=Array(n);l<n;l++)u[l]=i[l];return u}function Jv(i,n){if(i){if(typeof i=="string")return kc(i,n);var l={}.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(i):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?kc(i,n):void 0}}function _S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nn(i,n){return yS(i)||bS(i,n)||Jv(i,n)||_S()}function SS(i,n){if(i==null)return{};var l={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(n.indexOf(u)!==-1)continue;l[u]=i[u]}return l}function Vn(i,n){if(i==null)return{};var l,u,s=SS(i,n);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(u=0;u<f.length;u++)l=f[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(i,l)&&(s[l]=i[l])}return s}var ES=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wS(i){var n=i.defaultInputValue,l=n===void 0?"":n,u=i.defaultMenuIsOpen,s=u===void 0?!1:u,f=i.defaultValue,d=f===void 0?null:f,v=i.inputValue,h=i.menuIsOpen,m=i.onChange,g=i.onInputChange,y=i.onMenuClose,b=i.onMenuOpen,S=i.value,E=Vn(i,ES),T=k.useState(v!==void 0?v:l),R=Nn(T,2),L=R[0],X=R[1],$=k.useState(h!==void 0?h:s),Z=Nn($,2),M=Z[0],G=Z[1],U=k.useState(S!==void 0?S:d),W=Nn(U,2),fe=W[0],De=W[1],Ee=k.useCallback(function(J,ge){typeof m=="function"&&m(J,ge),De(J)},[m]),ee=k.useCallback(function(J,ge){var be;typeof g=="function"&&(be=g(J,ge)),X(be!==void 0?be:J)},[g]),ne=k.useCallback(function(){typeof b=="function"&&b(),G(!0)},[b]),de=k.useCallback(function(){typeof y=="function"&&y(),G(!1)},[y]),ve=v!==void 0?v:L,D=h!==void 0?h:M,Q=S!==void 0?S:fe;return he(he({},E),{},{inputValue:ve,menuIsOpen:D,onChange:Ee,onInputChange:ee,onMenuClose:de,onMenuOpen:ne,value:Q})}function pe(){return pe=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},pe.apply(null,arguments)}function TS(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Pp(i,n){for(var l=0;l<n.length;l++){var u=n[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,Kv(u.key),u)}}function OS(i,n,l){return n&&Pp(i.prototype,n),l&&Pp(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i}function Xc(i,n){return Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},Xc(i,n)}function xS(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),n&&Xc(i,n)}function Hu(i){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hu(i)}function Wv(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wv=function(){return!!i})()}function CS(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function AS(i,n){if(n&&(Ba(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CS(i)}function zS(i){var n=Wv();return function(){var l,u=Hu(i);if(n){var s=Hu(this).constructor;l=Reflect.construct(u,arguments,s)}else l=u.apply(this,arguments);return AS(this,l)}}function MS(i){if(Array.isArray(i))return kc(i)}function DS(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function RS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cf(i){return MS(i)||DS(i)||Jv(i)||RS()}function jS(i){if(i.sheet)return i.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===i)return document.styleSheets[n]}function LS(i){var n=document.createElement("style");return n.setAttribute("data-emotion",i.key),i.nonce!==void 0&&n.setAttribute("nonce",i.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var NS=(function(){function i(l){var u=this;this._insertTag=function(s){var f;u.tags.length===0?u.insertionPoint?f=u.insertionPoint.nextSibling:u.prepend?f=u.container.firstChild:f=u.before:f=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(s,f),u.tags.push(s)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var n=i.prototype;return n.hydrate=function(u){u.forEach(this._insertTag)},n.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(LS(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var f=jS(s);try{f.insertRule(u,f.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(u));this.ctr++},n.flush=function(){this.tags.forEach(function(u){var s;return(s=u.parentNode)==null?void 0:s.removeChild(u)}),this.tags=[],this.ctr=0},i})(),gt="-ms-",Bu="-moz-",qe="-webkit-",eg="comm",ff="rule",df="decl",qS="@import",tg="@keyframes",US="@layer",VS=Math.abs,Zu=String.fromCharCode,HS=Object.assign;function BS(i,n){return pt(i,0)^45?(((n<<2^pt(i,0))<<2^pt(i,1))<<2^pt(i,2))<<2^pt(i,3):0}function ng(i){return i.trim()}function GS(i,n){return(i=n.exec(i))?i[0]:i}function Ue(i,n,l){return i.replace(n,l)}function Qc(i,n){return i.indexOf(n)}function pt(i,n){return i.charCodeAt(n)|0}function Ir(i,n,l){return i.slice(n,l)}function cn(i){return i.length}function hf(i){return i.length}function _u(i,n){return n.push(i),i}function IS(i,n){return i.map(n).join("")}var Ku=1,Vi=1,ag=0,xt=0,it=0,Hi="";function Ju(i,n,l,u,s,f,d){return{value:i,root:n,parent:l,type:u,props:s,children:f,line:Ku,column:Vi,length:d,return:""}}function qr(i,n){return HS(Ju("",null,null,"",null,null,0),i,{length:-i.length},n)}function YS(){return it}function $S(){return it=xt>0?pt(Hi,--xt):0,Vi--,it===10&&(Vi=1,Ku--),it}function Ut(){return it=xt<ag?pt(Hi,xt++):0,Vi++,it===10&&(Vi=1,Ku++),it}function hn(){return pt(Hi,xt)}function Ru(){return xt}function Xr(i,n){return Ir(Hi,i,n)}function Yr(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ig(i){return Ku=Vi=1,ag=cn(Hi=i),xt=0,[]}function rg(i){return Hi="",i}function ju(i){return ng(Xr(xt-1,Zc(i===91?i+2:i===40?i+1:i)))}function PS(i){for(;(it=hn())&&it<33;)Ut();return Yr(i)>2||Yr(it)>3?"":" "}function FS(i,n){for(;--n&&Ut()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Xr(i,Ru()+(n<6&&hn()==32&&Ut()==32))}function Zc(i){for(;Ut();)switch(it){case i:return xt;case 34:case 39:i!==34&&i!==39&&Zc(it);break;case 40:i===41&&Zc(i);break;case 92:Ut();break}return xt}function kS(i,n){for(;Ut()&&i+it!==57;)if(i+it===84&&hn()===47)break;return"/*"+Xr(n,xt-1)+"*"+Zu(i===47?i:Ut())}function XS(i){for(;!Yr(hn());)Ut();return Xr(i,xt)}function QS(i){return rg(Lu("",null,null,null,[""],i=ig(i),0,[0],i))}function Lu(i,n,l,u,s,f,d,v,h){for(var m=0,g=0,y=d,b=0,S=0,E=0,T=1,R=1,L=1,X=0,$="",Z=s,M=f,G=u,U=$;R;)switch(E=X,X=Ut()){case 40:if(E!=108&&pt(U,y-1)==58){Qc(U+=Ue(ju(X),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:U+=ju(X);break;case 9:case 10:case 13:case 32:U+=PS(E);break;case 92:U+=FS(Ru()-1,7);continue;case 47:switch(hn()){case 42:case 47:_u(ZS(kS(Ut(),Ru()),n,l),h);break;default:U+="/"}break;case 123*T:v[m++]=cn(U)*L;case 125*T:case 59:case 0:switch(X){case 0:case 125:R=0;case 59+g:L==-1&&(U=Ue(U,/\f/g,"")),S>0&&cn(U)-y&&_u(S>32?kp(U+";",u,l,y-1):kp(Ue(U," ","")+";",u,l,y-2),h);break;case 59:U+=";";default:if(_u(G=Fp(U,n,l,m,g,s,v,$,Z=[],M=[],y),f),X===123)if(g===0)Lu(U,n,G,G,Z,f,y,v,M);else switch(b===99&&pt(U,3)===110?100:b){case 100:case 108:case 109:case 115:Lu(i,G,G,u&&_u(Fp(i,G,G,0,0,s,v,$,s,Z=[],y),M),s,M,y,v,u?Z:M);break;default:Lu(U,G,G,G,[""],M,0,v,M)}}m=g=S=0,T=L=1,$=U="",y=d;break;case 58:y=1+cn(U),S=E;default:if(T<1){if(X==123)--T;else if(X==125&&T++==0&&$S()==125)continue}switch(U+=Zu(X),X*T){case 38:L=g>0?1:(U+="\f",-1);break;case 44:v[m++]=(cn(U)-1)*L,L=1;break;case 64:hn()===45&&(U+=ju(Ut())),b=hn(),g=y=cn($=U+=XS(Ru())),X++;break;case 45:E===45&&cn(U)==2&&(T=0)}}return f}function Fp(i,n,l,u,s,f,d,v,h,m,g){for(var y=s-1,b=s===0?f:[""],S=hf(b),E=0,T=0,R=0;E<u;++E)for(var L=0,X=Ir(i,y+1,y=VS(T=d[E])),$=i;L<S;++L)($=ng(T>0?b[L]+" "+X:Ue(X,/&\f/g,b[L])))&&(h[R++]=$);return Ju(i,n,l,s===0?ff:v,h,m,g)}function ZS(i,n,l){return Ju(i,n,l,eg,Zu(YS()),Ir(i,2,-2),0)}function kp(i,n,l,u){return Ju(i,n,l,df,Ir(i,0,u),Ir(i,u+1,-1),u)}function Ai(i,n){for(var l="",u=hf(i),s=0;s<u;s++)l+=n(i[s],s,i,n)||"";return l}function KS(i,n,l,u){switch(i.type){case US:if(i.children.length)break;case qS:case df:return i.return=i.return||i.value;case eg:return"";case tg:return i.return=i.value+"{"+Ai(i.children,u)+"}";case ff:i.value=i.props.join(",")}return cn(l=Ai(i.children,u))?i.return=i.value+"{"+l+"}":""}function JS(i){var n=hf(i);return function(l,u,s,f){for(var d="",v=0;v<n;v++)d+=i[v](l,u,s,f)||"";return d}}function WS(i){return function(n){n.root||(n=n.return)&&i(n)}}function e1(i){var n=Object.create(null);return function(l){return n[l]===void 0&&(n[l]=i(l)),n[l]}}var t1=function(n,l,u){for(var s=0,f=0;s=f,f=hn(),s===38&&f===12&&(l[u]=1),!Yr(f);)Ut();return Xr(n,xt)},n1=function(n,l){var u=-1,s=44;do switch(Yr(s)){case 0:s===38&&hn()===12&&(l[u]=1),n[u]+=t1(xt-1,l,u);break;case 2:n[u]+=ju(s);break;case 4:if(s===44){n[++u]=hn()===58?"&\f":"",l[u]=n[u].length;break}default:n[u]+=Zu(s)}while(s=Ut());return n},a1=function(n,l){return rg(n1(ig(n),l))},Xp=new WeakMap,i1=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var l=n.value,u=n.parent,s=n.column===u.column&&n.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(n.props.length===1&&l.charCodeAt(0)!==58&&!Xp.get(u))&&!s){Xp.set(n,!0);for(var f=[],d=a1(l,f),v=u.props,h=0,m=0;h<d.length;h++)for(var g=0;g<v.length;g++,m++)n.props[m]=f[h]?d[h].replace(/&\f/g,v[g]):v[g]+" "+d[h]}}},r1=function(n){if(n.type==="decl"){var l=n.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(n.return="",n.value="")}};function lg(i,n){switch(BS(i,n)){case 5103:return qe+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qe+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+i+Bu+i+gt+i+i;case 6828:case 4268:return qe+i+gt+i+i;case 6165:return qe+i+gt+"flex-"+i+i;case 5187:return qe+i+Ue(i,/(\w+).+(:[^]+)/,qe+"box-$1$2"+gt+"flex-$1$2")+i;case 5443:return qe+i+gt+"flex-item-"+Ue(i,/flex-|-self/,"")+i;case 4675:return qe+i+gt+"flex-line-pack"+Ue(i,/align-content|flex-|-self/,"")+i;case 5548:return qe+i+gt+Ue(i,"shrink","negative")+i;case 5292:return qe+i+gt+Ue(i,"basis","preferred-size")+i;case 6060:return qe+"box-"+Ue(i,"-grow","")+qe+i+gt+Ue(i,"grow","positive")+i;case 4554:return qe+Ue(i,/([^-])(transform)/g,"$1"+qe+"$2")+i;case 6187:return Ue(Ue(Ue(i,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),i,"")+i;case 5495:case 3959:return Ue(i,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Ue(Ue(i,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+i+i;case 4095:case 3583:case 4068:case 2532:return Ue(i,/(.+)-inline(.+)/,qe+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cn(i)-1-n>6)switch(pt(i,n+1)){case 109:if(pt(i,n+4)!==45)break;case 102:return Ue(i,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+Bu+(pt(i,n+3)==108?"$3":"$2-$3"))+i;case 115:return~Qc(i,"stretch")?lg(Ue(i,"stretch","fill-available"),n)+i:i}break;case 4949:if(pt(i,n+1)!==115)break;case 6444:switch(pt(i,cn(i)-3-(~Qc(i,"!important")&&10))){case 107:return Ue(i,":",":"+qe)+i;case 101:return Ue(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(pt(i,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+gt+"$2box$3")+i}break;case 5936:switch(pt(i,n+11)){case 114:return qe+i+gt+Ue(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return qe+i+gt+Ue(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return qe+i+gt+Ue(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return qe+i+gt+i+i}return i}var l1=function(n,l,u,s){if(n.length>-1&&!n.return)switch(n.type){case df:n.return=lg(n.value,n.length);break;case tg:return Ai([qr(n,{value:Ue(n.value,"@","@"+qe)})],s);case ff:if(n.length)return IS(n.props,function(f){switch(GS(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([qr(n,{props:[Ue(f,/:(read-\w+)/,":"+Bu+"$1")]})],s);case"::placeholder":return Ai([qr(n,{props:[Ue(f,/:(plac\w+)/,":"+qe+"input-$1")]}),qr(n,{props:[Ue(f,/:(plac\w+)/,":"+Bu+"$1")]}),qr(n,{props:[Ue(f,/:(plac\w+)/,gt+"input-$1")]})],s)}return""})}},u1=[l1],s1=function(n){var l=n.key;if(l==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(T){var R=T.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var s=n.stylisPlugins||u1,f={},d,v=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(T){for(var R=T.getAttribute("data-emotion").split(" "),L=1;L<R.length;L++)f[R[L]]=!0;v.push(T)});var h,m=[i1,r1];{var g,y=[KS,WS(function(T){g.insert(T)})],b=JS(m.concat(s,y)),S=function(R){return Ai(QS(R),b)};h=function(R,L,X,$){g=X,S(R?R+"{"+L.styles+"}":L.styles),$&&(E.inserted[L.name]=!0)}}var E={key:l,sheet:new NS({key:l,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:f,registered:{},insert:h};return E.sheet.hydrate(v),E},Tc={exports:{}},Ve={};var Qp;function o1(){if(Qp)return Ve;Qp=1;var i=typeof Symbol=="function"&&Symbol.for,n=i?Symbol.for("react.element"):60103,l=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,f=i?Symbol.for("react.profiler"):60114,d=i?Symbol.for("react.provider"):60109,v=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,m=i?Symbol.for("react.concurrent_mode"):60111,g=i?Symbol.for("react.forward_ref"):60112,y=i?Symbol.for("react.suspense"):60113,b=i?Symbol.for("react.suspense_list"):60120,S=i?Symbol.for("react.memo"):60115,E=i?Symbol.for("react.lazy"):60116,T=i?Symbol.for("react.block"):60121,R=i?Symbol.for("react.fundamental"):60117,L=i?Symbol.for("react.responder"):60118,X=i?Symbol.for("react.scope"):60119;function $(M){if(typeof M=="object"&&M!==null){var G=M.$$typeof;switch(G){case n:switch(M=M.type,M){case h:case m:case u:case f:case s:case y:return M;default:switch(M=M&&M.$$typeof,M){case v:case g:case E:case S:case d:return M;default:return G}}case l:return G}}}function Z(M){return $(M)===m}return Ve.AsyncMode=h,Ve.ConcurrentMode=m,Ve.ContextConsumer=v,Ve.ContextProvider=d,Ve.Element=n,Ve.ForwardRef=g,Ve.Fragment=u,Ve.Lazy=E,Ve.Memo=S,Ve.Portal=l,Ve.Profiler=f,Ve.StrictMode=s,Ve.Suspense=y,Ve.isAsyncMode=function(M){return Z(M)||$(M)===h},Ve.isConcurrentMode=Z,Ve.isContextConsumer=function(M){return $(M)===v},Ve.isContextProvider=function(M){return $(M)===d},Ve.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===n},Ve.isForwardRef=function(M){return $(M)===g},Ve.isFragment=function(M){return $(M)===u},Ve.isLazy=function(M){return $(M)===E},Ve.isMemo=function(M){return $(M)===S},Ve.isPortal=function(M){return $(M)===l},Ve.isProfiler=function(M){return $(M)===f},Ve.isStrictMode=function(M){return $(M)===s},Ve.isSuspense=function(M){return $(M)===y},Ve.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===u||M===m||M===f||M===s||M===y||M===b||typeof M=="object"&&M!==null&&(M.$$typeof===E||M.$$typeof===S||M.$$typeof===d||M.$$typeof===v||M.$$typeof===g||M.$$typeof===R||M.$$typeof===L||M.$$typeof===X||M.$$typeof===T)},Ve.typeOf=$,Ve}var Zp;function c1(){return Zp||(Zp=1,Tc.exports=o1()),Tc.exports}var Oc,Kp;function f1(){if(Kp)return Oc;Kp=1;var i=c1(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[i.ForwardRef]=u,f[i.Memo]=s;function d(E){return i.isMemo(E)?s:f[E.$$typeof]||n}var v=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function S(E,T,R){if(typeof T!="string"){if(b){var L=y(T);L&&L!==b&&S(E,L,R)}var X=h(T);m&&(X=X.concat(m(T)));for(var $=d(E),Z=d(T),M=0;M<X.length;++M){var G=X[M];if(!l[G]&&!(R&&R[G])&&!(Z&&Z[G])&&!($&&$[G])){var U=g(T,G);try{v(E,G,U)}catch{}}}}return E}return Oc=S,Oc}f1();var d1=!0;function h1(i,n,l){var u="";return l.split(" ").forEach(function(s){i[s]!==void 0?n.push(i[s]+";"):s&&(u+=s+" ")}),u}var ug=function(n,l,u){var s=n.key+"-"+l.name;(u===!1||d1===!1)&&n.registered[s]===void 0&&(n.registered[s]=l.styles)},m1=function(n,l,u){ug(n,l,u);var s=n.key+"-"+l.name;if(n.inserted[l.name]===void 0){var f=l;do n.insert(l===f?"."+s:"",f,n.sheet,!0),f=f.next;while(f!==void 0)}};function p1(i){for(var n=0,l,u=0,s=i.length;s>=4;++u,s-=4)l=i.charCodeAt(u)&255|(i.charCodeAt(++u)&255)<<8|(i.charCodeAt(++u)&255)<<16|(i.charCodeAt(++u)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,n=(l&65535)*1540483477+((l>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(i.charCodeAt(u+2)&255)<<16;case 2:n^=(i.charCodeAt(u+1)&255)<<8;case 1:n^=i.charCodeAt(u)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var v1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},g1=/[A-Z]|^ms/g,y1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sg=function(n){return n.charCodeAt(1)===45},Jp=function(n){return n!=null&&typeof n!="boolean"},xc=e1(function(i){return sg(i)?i:i.replace(g1,"-$&").toLowerCase()}),Wp=function(n,l){switch(n){case"animation":case"animationName":if(typeof l=="string")return l.replace(y1,function(u,s,f){return fn={name:s,styles:f,next:fn},s})}return v1[n]!==1&&!sg(n)&&typeof l=="number"&&l!==0?l+"px":l};function $r(i,n,l){if(l==null)return"";var u=l;if(u.__emotion_styles!==void 0)return u;switch(typeof l){case"boolean":return"";case"object":{var s=l;if(s.anim===1)return fn={name:s.name,styles:s.styles,next:fn},s.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)fn={name:d.name,styles:d.styles,next:fn},d=d.next;var v=f.styles+";";return v}return b1(i,n,l)}case"function":{if(i!==void 0){var h=fn,m=l(i);return fn=h,$r(i,n,m)}break}}var g=l;return g}function b1(i,n,l){var u="";if(Array.isArray(l))for(var s=0;s<l.length;s++)u+=$r(i,n,l[s])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var v=d;Jp(v)&&(u+=xc(f)+":"+Wp(f,v)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&n==null)for(var h=0;h<d.length;h++)Jp(d[h])&&(u+=xc(f)+":"+Wp(f,d[h])+";");else{var m=$r(i,n,d);switch(f){case"animation":case"animationName":{u+=xc(f)+":"+m+";";break}default:u+=f+"{"+m+"}"}}}return u}var ev=/label:\s*([^\s;{]+)\s*(;|$)/g,fn;function og(i,n,l){if(i.length===1&&typeof i[0]=="object"&&i[0]!==null&&i[0].styles!==void 0)return i[0];var u=!0,s="";fn=void 0;var f=i[0];if(f==null||f.raw===void 0)u=!1,s+=$r(l,n,f);else{var d=f;s+=d[0]}for(var v=1;v<i.length;v++)if(s+=$r(l,n,i[v]),u){var h=f;s+=h[v]}ev.lastIndex=0;for(var m="",g;(g=ev.exec(s))!==null;)m+="-"+g[1];var y=p1(s)+m;return{name:y,styles:s,next:fn}}var _1=function(n){return n()},S1=Vp.useInsertionEffect?Vp.useInsertionEffect:!1,E1=S1||_1,cg=k.createContext(typeof HTMLElement<"u"?s1({key:"css"}):null);cg.Provider;var w1=function(n){return k.forwardRef(function(l,u){var s=k.useContext(cg);return n(l,s,u)})},T1=k.createContext({}),mf={}.hasOwnProperty,Kc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O1=function(n,l){var u={};for(var s in l)mf.call(l,s)&&(u[s]=l[s]);return u[Kc]=n,u},x1=function(n){var l=n.cache,u=n.serialized,s=n.isStringTag;return ug(l,u,s),E1(function(){return m1(l,u,s)}),null},C1=w1(function(i,n,l){var u=i.css;typeof u=="string"&&n.registered[u]!==void 0&&(u=n.registered[u]);var s=i[Kc],f=[u],d="";typeof i.className=="string"?d=h1(n.registered,f,i.className):i.className!=null&&(d=i.className+" ");var v=og(f,void 0,k.useContext(T1));d+=n.key+"-"+v.name;var h={};for(var m in i)mf.call(i,m)&&m!=="css"&&m!==Kc&&(h[m]=i[m]);return h.className=d,l&&(h.ref=l),k.createElement(k.Fragment,null,k.createElement(x1,{cache:n,serialized:v,isStringTag:typeof s=="string"}),k.createElement(s,h))}),A1=C1,ce=function(n,l){var u=arguments;if(l==null||!mf.call(l,"css"))return k.createElement.apply(void 0,u);var s=u.length,f=new Array(s);f[0]=A1,f[1]=O1(n,l);for(var d=2;d<s;d++)f[d]=u[d];return k.createElement.apply(null,f)};(function(i){var n;n||(n=i.JSX||(i.JSX={}))})(ce||(ce={}));function pf(){for(var i=arguments.length,n=new Array(i),l=0;l<i;l++)n[l]=arguments[l];return og(n)}function z1(){var i=pf.apply(void 0,arguments),n="animation-"+i.name;return{name:n,styles:"@keyframes "+n+"{"+i.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function M1(i,n){return n||(n=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(n)}}))}const D1=Math.min,R1=Math.max,Gu=Math.round,Su=Math.floor,Iu=i=>({x:i,y:i});function j1(i){const{x:n,y:l,width:u,height:s}=i;return{width:u,height:s,top:l,left:n,right:n+u,bottom:l+s,x:n,y:l}}function Wu(){return typeof window<"u"}function fg(i){return hg(i)?(i.nodeName||"").toLowerCase():"#document"}function qn(i){var n;return(i==null||(n=i.ownerDocument)==null?void 0:n.defaultView)||window}function dg(i){var n;return(n=(hg(i)?i.ownerDocument:i.document)||window.document)==null?void 0:n.documentElement}function hg(i){return Wu()?i instanceof Node||i instanceof qn(i).Node:!1}function L1(i){return Wu()?i instanceof Element||i instanceof qn(i).Element:!1}function vf(i){return Wu()?i instanceof HTMLElement||i instanceof qn(i).HTMLElement:!1}function tv(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qn(i).ShadowRoot}const N1=new Set(["inline","contents"]);function mg(i){const{overflow:n,overflowX:l,overflowY:u,display:s}=gf(i);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&!N1.has(s)}function q1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const U1=new Set(["html","body","#document"]);function V1(i){return U1.has(fg(i))}function gf(i){return qn(i).getComputedStyle(i)}function H1(i){if(fg(i)==="html")return i;const n=i.assignedSlot||i.parentNode||tv(i)&&i.host||dg(i);return tv(n)?n.host:n}function pg(i){const n=H1(i);return V1(n)?i.ownerDocument?i.ownerDocument.body:i.body:vf(n)&&mg(n)?n:pg(n)}function Yu(i,n,l){var u;n===void 0&&(n=[]),l===void 0&&(l=!0);const s=pg(i),f=s===((u=i.ownerDocument)==null?void 0:u.body),d=qn(s);if(f){const v=Jc(d);return n.concat(d,d.visualViewport||[],mg(s)?s:[],v&&l?Yu(v):[])}return n.concat(s,Yu(s,[],l))}function Jc(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function B1(i){const n=gf(i);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const s=vf(i),f=s?i.offsetWidth:l,d=s?i.offsetHeight:u,v=Gu(l)!==f||Gu(u)!==d;return v&&(l=f,u=d),{width:l,height:u,$:v}}function yf(i){return L1(i)?i:i.contextElement}function nv(i){const n=yf(i);if(!vf(n))return Iu(1);const l=n.getBoundingClientRect(),{width:u,height:s,$:f}=B1(n);let d=(f?Gu(l.width):l.width)/u,v=(f?Gu(l.height):l.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!v||!Number.isFinite(v))&&(v=1),{x:d,y:v}}const G1=Iu(0);function I1(i){const n=qn(i);return!q1()||!n.visualViewport?G1:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Y1(i,n,l){return!1}function av(i,n,l,u){n===void 0&&(n=!1);const s=i.getBoundingClientRect(),f=yf(i);let d=Iu(1);n&&(d=nv(i));const v=Y1()?I1(f):Iu(0);let h=(s.left+v.x)/d.x,m=(s.top+v.y)/d.y,g=s.width/d.x,y=s.height/d.y;if(f){const b=qn(f),S=u;let E=b,T=Jc(E);for(;T&&u&&S!==E;){const R=nv(T),L=T.getBoundingClientRect(),X=gf(T),$=L.left+(T.clientLeft+parseFloat(X.paddingLeft))*R.x,Z=L.top+(T.clientTop+parseFloat(X.paddingTop))*R.y;h*=R.x,m*=R.y,g*=R.x,y*=R.y,h+=$,m+=Z,E=qn(T),T=Jc(E)}}return j1({width:g,height:y,x:h,y:m})}function vg(i,n){return i.x===n.x&&i.y===n.y&&i.width===n.width&&i.height===n.height}function $1(i,n){let l=null,u;const s=dg(i);function f(){var v;clearTimeout(u),(v=l)==null||v.disconnect(),l=null}function d(v,h){v===void 0&&(v=!1),h===void 0&&(h=1),f();const m=i.getBoundingClientRect(),{left:g,top:y,width:b,height:S}=m;if(v||n(),!b||!S)return;const E=Su(y),T=Su(s.clientWidth-(g+b)),R=Su(s.clientHeight-(y+S)),L=Su(g),$={rootMargin:-E+"px "+-T+"px "+-R+"px "+-L+"px",threshold:R1(0,D1(1,h))||1};let Z=!0;function M(G){const U=G[0].intersectionRatio;if(U!==h){if(!Z)return d();U?d(!1,U):u=setTimeout(()=>{d(!1,1e-7)},1e3)}U===1&&!vg(m,i.getBoundingClientRect())&&d(),Z=!1}try{l=new IntersectionObserver(M,{...$,root:s.ownerDocument})}catch{l=new IntersectionObserver(M,$)}l.observe(i)}return d(!0),f}function P1(i,n,l,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:h=!1}=u,m=yf(i),g=s||f?[...m?Yu(m):[],...Yu(n)]:[];g.forEach(L=>{s&&L.addEventListener("scroll",l,{passive:!0}),f&&L.addEventListener("resize",l)});const y=m&&v?$1(m,l):null;let b=-1,S=null;d&&(S=new ResizeObserver(L=>{let[X]=L;X&&X.target===m&&S&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var $;($=S)==null||$.observe(n)})),l()}),m&&!h&&S.observe(m),S.observe(n));let E,T=h?av(i):null;h&&R();function R(){const L=av(i);T&&!vg(T,L)&&l(),T=L,E=requestAnimationFrame(R)}return l(),()=>{var L;g.forEach(X=>{s&&X.removeEventListener("scroll",l),f&&X.removeEventListener("resize",l)}),y?.(),(L=S)==null||L.disconnect(),S=null,h&&cancelAnimationFrame(E)}}var Wc=k.useLayoutEffect,F1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$u=function(){};function k1(i,n){return n?n[0]==="-"?i+n:i+"__"+n:i}function X1(i,n){for(var l=arguments.length,u=new Array(l>2?l-2:0),s=2;s<l;s++)u[s-2]=arguments[s];var f=[].concat(u);if(n&&i)for(var d in n)n.hasOwnProperty(d)&&n[d]&&f.push("".concat(k1(i,d)));return f.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var iv=function(n){return aE(n)?n.filter(Boolean):Ba(n)==="object"&&n!==null?[n]:[]},gg=function(n){n.className,n.clearValue,n.cx,n.getStyles,n.getClassNames,n.getValue,n.hasValue,n.isMulti,n.isRtl,n.options,n.selectOption,n.selectProps,n.setValue,n.theme;var l=Vn(n,F1);return he({},l)},Ke=function(n,l,u){var s=n.cx,f=n.getStyles,d=n.getClassNames,v=n.className;return{css:f(l,n),className:s(u??{},d(l,n),v)}};function es(i){return[document.documentElement,document.body,window].indexOf(i)>-1}function Q1(i){return es(i)?window.innerHeight:i.clientHeight}function yg(i){return es(i)?window.pageYOffset:i.scrollTop}function Pu(i,n){if(es(i)){window.scrollTo(0,n);return}i.scrollTop=n}function Z1(i){var n=getComputedStyle(i),l=n.position==="absolute",u=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var s=i;s=s.parentElement;)if(n=getComputedStyle(s),!(l&&n.position==="static")&&u.test(n.overflow+n.overflowY+n.overflowX))return s;return document.documentElement}function K1(i,n,l,u){return l*((i=i/u-1)*i*i+1)+n}function Eu(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$u,s=yg(i),f=n-s,d=10,v=0;function h(){v+=d;var m=K1(v,s,f,l);Pu(i,m),v<l?window.requestAnimationFrame(h):u(i)}h()}function rv(i,n){var l=i.getBoundingClientRect(),u=n.getBoundingClientRect(),s=n.offsetHeight/3;u.bottom+s>l.bottom?Pu(i,Math.min(n.offsetTop+n.clientHeight-i.offsetHeight+s,i.scrollHeight)):u.top-s<l.top&&Pu(i,Math.max(n.offsetTop-s,0))}function J1(i){var n=i.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function lv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function W1(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var bg=!1,eE={get passive(){return bg=!0}},wu=typeof window<"u"?window:{};wu.addEventListener&&wu.removeEventListener&&(wu.addEventListener("p",$u,eE),wu.removeEventListener("p",$u,!1));var tE=bg;function nE(i){return i!=null}function aE(i){return Array.isArray(i)}function Tu(i,n,l){return i?n:l}var iE=function(n){for(var l=arguments.length,u=new Array(l>1?l-1:0),s=1;s<l;s++)u[s-1]=arguments[s];var f=Object.entries(n).filter(function(d){var v=Nn(d,1),h=v[0];return!u.includes(h)});return f.reduce(function(d,v){var h=Nn(v,2),m=h[0],g=h[1];return d[m]=g,d},{})},rE=["children","innerProps"],lE=["children","innerProps"];function uE(i){var n=i.maxHeight,l=i.menuEl,u=i.minHeight,s=i.placement,f=i.shouldScroll,d=i.isFixedPosition,v=i.controlHeight,h=Z1(l),m={placement:"bottom",maxHeight:n};if(!l||!l.offsetParent)return m;var g=h.getBoundingClientRect(),y=g.height,b=l.getBoundingClientRect(),S=b.bottom,E=b.height,T=b.top,R=l.offsetParent.getBoundingClientRect(),L=R.top,X=d?window.innerHeight:Q1(h),$=yg(h),Z=parseInt(getComputedStyle(l).marginBottom,10),M=parseInt(getComputedStyle(l).marginTop,10),G=L-M,U=X-T,W=G+$,fe=y-$-T,De=S-X+$+Z,Ee=$+T-M,ee=160;switch(s){case"auto":case"bottom":if(U>=E)return{placement:"bottom",maxHeight:n};if(fe>=E&&!d)return f&&Eu(h,De,ee),{placement:"bottom",maxHeight:n};if(!d&&fe>=u||d&&U>=u){f&&Eu(h,De,ee);var ne=d?U-Z:fe-Z;return{placement:"bottom",maxHeight:ne}}if(s==="auto"||d){var de=n,ve=d?G:W;return ve>=u&&(de=Math.min(ve-Z-v,n)),{placement:"top",maxHeight:de}}if(s==="bottom")return f&&Pu(h,De),{placement:"bottom",maxHeight:n};break;case"top":if(G>=E)return{placement:"top",maxHeight:n};if(W>=E&&!d)return f&&Eu(h,Ee,ee),{placement:"top",maxHeight:n};if(!d&&W>=u||d&&G>=u){var D=n;return(!d&&W>=u||d&&G>=u)&&(D=d?G-M:W-M),f&&Eu(h,Ee,ee),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return m}function sE(i){var n={bottom:"top",top:"bottom"};return i?n[i]:"bottom"}var _g=function(n){return n==="auto"?"bottom":n},oE=function(n,l){var u,s=n.placement,f=n.theme,d=f.borderRadius,v=f.spacing,h=f.colors;return he((u={label:"menu"},Br(u,sE(s),"100%"),Br(u,"position","absolute"),Br(u,"width","100%"),Br(u,"zIndex",1),u),l?{}:{backgroundColor:h.neutral0,borderRadius:d,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:v.menuGutter,marginTop:v.menuGutter})},Sg=k.createContext(null),cE=function(n){var l=n.children,u=n.minMenuHeight,s=n.maxMenuHeight,f=n.menuPlacement,d=n.menuPosition,v=n.menuShouldScrollIntoView,h=n.theme,m=k.useContext(Sg)||{},g=m.setPortalPlacement,y=k.useRef(null),b=k.useState(s),S=Nn(b,2),E=S[0],T=S[1],R=k.useState(null),L=Nn(R,2),X=L[0],$=L[1],Z=h.spacing.controlHeight;return Wc(function(){var M=y.current;if(M){var G=d==="fixed",U=v&&!G,W=uE({maxHeight:s,menuEl:M,minHeight:u,placement:f,shouldScroll:U,isFixedPosition:G,controlHeight:Z});T(W.maxHeight),$(W.placement),g?.(W.placement)}},[s,f,d,v,u,g,Z]),l({ref:y,placerProps:he(he({},n),{},{placement:X||_g(f),maxHeight:E})})},fE=function(n){var l=n.children,u=n.innerRef,s=n.innerProps;return ce("div",pe({},Ke(n,"menu",{menu:!0}),{ref:u},s),l)},dE=fE,hE=function(n,l){var u=n.maxHeight,s=n.theme.spacing.baseUnit;return he({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},l?{}:{paddingBottom:s,paddingTop:s})},mE=function(n){var l=n.children,u=n.innerProps,s=n.innerRef,f=n.isMulti;return ce("div",pe({},Ke(n,"menuList",{"menu-list":!0,"menu-list--is-multi":f}),{ref:s},u),l)},Eg=function(n,l){var u=n.theme,s=u.spacing.baseUnit,f=u.colors;return he({textAlign:"center"},l?{}:{color:f.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},pE=Eg,vE=Eg,gE=function(n){var l=n.children,u=l===void 0?"No options":l,s=n.innerProps,f=Vn(n,rE);return ce("div",pe({},Ke(he(he({},f),{},{children:u,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),u)},yE=function(n){var l=n.children,u=l===void 0?"Loading...":l,s=n.innerProps,f=Vn(n,lE);return ce("div",pe({},Ke(he(he({},f),{},{children:u,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),u)},bE=function(n){var l=n.rect,u=n.offset,s=n.position;return{left:l.left,position:s,top:u,width:l.width,zIndex:1}},_E=function(n){var l=n.appendTo,u=n.children,s=n.controlElement,f=n.innerProps,d=n.menuPlacement,v=n.menuPosition,h=k.useRef(null),m=k.useRef(null),g=k.useState(_g(d)),y=Nn(g,2),b=y[0],S=y[1],E=k.useMemo(function(){return{setPortalPlacement:S}},[]),T=k.useState(null),R=Nn(T,2),L=R[0],X=R[1],$=k.useCallback(function(){if(s){var U=J1(s),W=v==="fixed"?0:window.pageYOffset,fe=U[b]+W;(fe!==L?.offset||U.left!==L?.rect.left||U.width!==L?.rect.width)&&X({offset:fe,rect:U})}},[s,v,b,L?.offset,L?.rect.left,L?.rect.width]);Wc(function(){$()},[$]);var Z=k.useCallback(function(){typeof m.current=="function"&&(m.current(),m.current=null),s&&h.current&&(m.current=P1(s,h.current,$,{elementResize:"ResizeObserver"in window}))},[s,$]);Wc(function(){Z()},[Z]);var M=k.useCallback(function(U){h.current=U,Z()},[Z]);if(!l&&v!=="fixed"||!L)return null;var G=ce("div",pe({ref:M},Ke(he(he({},n),{},{offset:L.offset,position:v,rect:L.rect}),"menuPortal",{"menu-portal":!0}),f),u);return ce(Sg.Provider,{value:E},l?W_.createPortal(G,l):G)},SE=function(n){var l=n.isDisabled,u=n.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:l?"none":void 0,position:"relative"}},EE=function(n){var l=n.children,u=n.innerProps,s=n.isDisabled,f=n.isRtl;return ce("div",pe({},Ke(n,"container",{"--is-disabled":s,"--is-rtl":f}),u),l)},wE=function(n,l){var u=n.theme.spacing,s=n.isMulti,f=n.hasValue,d=n.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:s&&f&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},l?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},TE=function(n){var l=n.children,u=n.innerProps,s=n.isMulti,f=n.hasValue;return ce("div",pe({},Ke(n,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":f}),u),l)},OE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},xE=function(n){var l=n.children,u=n.innerProps;return ce("div",pe({},Ke(n,"indicatorsContainer",{indicators:!0}),u),l)},uv,CE=["size"],AE=["innerProps","isRtl","size"],zE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},wg=function(n){var l=n.size,u=Vn(n,CE);return ce("svg",pe({height:l,width:l,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zE},u))},bf=function(n){return ce(wg,pe({size:20},n),ce("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Tg=function(n){return ce(wg,pe({size:20},n),ce("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Og=function(n,l){var u=n.isFocused,s=n.theme,f=s.spacing.baseUnit,d=s.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},l?{}:{color:u?d.neutral60:d.neutral20,padding:f*2,":hover":{color:u?d.neutral80:d.neutral40}})},ME=Og,DE=function(n){var l=n.children,u=n.innerProps;return ce("div",pe({},Ke(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),l||ce(Tg,null))},RE=Og,jE=function(n){var l=n.children,u=n.innerProps;return ce("div",pe({},Ke(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),l||ce(bf,null))},LE=function(n,l){var u=n.isDisabled,s=n.theme,f=s.spacing.baseUnit,d=s.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},l?{}:{backgroundColor:u?d.neutral10:d.neutral20,marginBottom:f*2,marginTop:f*2})},NE=function(n){var l=n.innerProps;return ce("span",pe({},l,Ke(n,"indicatorSeparator",{"indicator-separator":!0})))},qE=z1(uv||(uv=M1([`
|
|
4
|
-
0%, 80%, 100% { opacity: 0; }
|
|
5
|
-
40% { opacity: 1; }
|
|
6
|
-
`]))),UE=function(n,l){var u=n.isFocused,s=n.size,f=n.theme,d=f.colors,v=f.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},l?{}:{color:u?d.neutral60:d.neutral20,padding:v*2})},Cc=function(n){var l=n.delay,u=n.offset;return ce("span",{css:pf({animation:"".concat(qE," 1s ease-in-out ").concat(l,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},VE=function(n){var l=n.innerProps,u=n.isRtl,s=n.size,f=s===void 0?4:s,d=Vn(n,AE);return ce("div",pe({},Ke(he(he({},d),{},{innerProps:l,isRtl:u,size:f}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),l),ce(Cc,{delay:0,offset:u}),ce(Cc,{delay:160,offset:!0}),ce(Cc,{delay:320,offset:!u}))},HE=function(n,l){var u=n.isDisabled,s=n.isFocused,f=n.theme,d=f.colors,v=f.borderRadius,h=f.spacing;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:h.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},l?{}:{backgroundColor:u?d.neutral5:d.neutral0,borderColor:u?d.neutral10:s?d.primary:d.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:s?d.primary:d.neutral30}})},BE=function(n){var l=n.children,u=n.isDisabled,s=n.isFocused,f=n.innerRef,d=n.innerProps,v=n.menuIsOpen;return ce("div",pe({ref:f},Ke(n,"control",{control:!0,"control--is-disabled":u,"control--is-focused":s,"control--menu-is-open":v}),d,{"aria-disabled":u||void 0}),l)},GE=BE,IE=["data"],YE=function(n,l){var u=n.theme.spacing;return l?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},$E=function(n){var l=n.children,u=n.cx,s=n.getStyles,f=n.getClassNames,d=n.Heading,v=n.headingProps,h=n.innerProps,m=n.label,g=n.theme,y=n.selectProps;return ce("div",pe({},Ke(n,"group",{group:!0}),h),ce(d,pe({},v,{selectProps:y,theme:g,getStyles:s,getClassNames:f,cx:u}),m),ce("div",null,l))},PE=function(n,l){var u=n.theme,s=u.colors,f=u.spacing;return he({label:"group",cursor:"default",display:"block"},l?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:f.baseUnit*3,paddingRight:f.baseUnit*3,textTransform:"uppercase"})},FE=function(n){var l=gg(n);l.data;var u=Vn(l,IE);return ce("div",pe({},Ke(n,"groupHeading",{"group-heading":!0}),u))},kE=$E,XE=["innerRef","isDisabled","isHidden","inputClassName"],QE=function(n,l){var u=n.isDisabled,s=n.value,f=n.theme,d=f.spacing,v=f.colors;return he(he({visibility:u?"hidden":"visible",transform:s?"translateZ(0)":""},ZE),l?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:v.neutral80})},xg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ZE={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xg)},KE=function(n){return he({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},xg)},JE=function(n){var l=n.cx,u=n.value,s=gg(n),f=s.innerRef,d=s.isDisabled,v=s.isHidden,h=s.inputClassName,m=Vn(s,XE);return ce("div",pe({},Ke(n,"input",{"input-container":!0}),{"data-value":u||""}),ce("input",pe({className:l({input:!0},h),ref:f,style:KE(v),disabled:d},m)))},WE=JE,ew=function(n,l){var u=n.theme,s=u.spacing,f=u.borderRadius,d=u.colors;return he({label:"multiValue",display:"flex",minWidth:0},l?{}:{backgroundColor:d.neutral10,borderRadius:f/2,margin:s.baseUnit/2})},tw=function(n,l){var u=n.theme,s=u.borderRadius,f=u.colors,d=n.cropWithEllipsis;return he({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},l?{}:{borderRadius:s/2,color:f.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},nw=function(n,l){var u=n.theme,s=u.spacing,f=u.borderRadius,d=u.colors,v=n.isFocused;return he({alignItems:"center",display:"flex"},l?{}:{borderRadius:f/2,backgroundColor:v?d.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},Cg=function(n){var l=n.children,u=n.innerProps;return ce("div",u,l)},aw=Cg,iw=Cg;function rw(i){var n=i.children,l=i.innerProps;return ce("div",pe({role:"button"},l),n||ce(bf,{size:14}))}var lw=function(n){var l=n.children,u=n.components,s=n.data,f=n.innerProps,d=n.isDisabled,v=n.removeProps,h=n.selectProps,m=u.Container,g=u.Label,y=u.Remove;return ce(m,{data:s,innerProps:he(he({},Ke(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),f),selectProps:h},ce(g,{data:s,innerProps:he({},Ke(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:h},l),ce(y,{data:s,innerProps:he(he({},Ke(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(l||"option")},v),selectProps:h}))},uw=lw,sw=function(n,l){var u=n.isDisabled,s=n.isFocused,f=n.isSelected,d=n.theme,v=d.spacing,h=d.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},l?{}:{backgroundColor:f?h.primary:s?h.primary25:"transparent",color:u?h.neutral20:f?h.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:f?h.primary:h.primary50}})},ow=function(n){var l=n.children,u=n.isDisabled,s=n.isFocused,f=n.isSelected,d=n.innerRef,v=n.innerProps;return ce("div",pe({},Ke(n,"option",{option:!0,"option--is-disabled":u,"option--is-focused":s,"option--is-selected":f}),{ref:d,"aria-disabled":u},v),l)},cw=ow,fw=function(n,l){var u=n.theme,s=u.spacing,f=u.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},l?{}:{color:f.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},dw=function(n){var l=n.children,u=n.innerProps;return ce("div",pe({},Ke(n,"placeholder",{placeholder:!0}),u),l)},hw=dw,mw=function(n,l){var u=n.isDisabled,s=n.theme,f=s.spacing,d=s.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l?{}:{color:u?d.neutral40:d.neutral80,marginLeft:f.baseUnit/2,marginRight:f.baseUnit/2})},pw=function(n){var l=n.children,u=n.isDisabled,s=n.innerProps;return ce("div",pe({},Ke(n,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),s),l)},vw=pw,gw={ClearIndicator:jE,Control:GE,DropdownIndicator:DE,DownChevron:Tg,CrossIcon:bf,Group:kE,GroupHeading:FE,IndicatorsContainer:xE,IndicatorSeparator:NE,Input:WE,LoadingIndicator:VE,Menu:dE,MenuList:mE,MenuPortal:_E,LoadingMessage:yE,NoOptionsMessage:gE,MultiValue:uw,MultiValueContainer:aw,MultiValueLabel:iw,MultiValueRemove:rw,Option:cw,Placeholder:hw,SelectContainer:EE,SingleValue:vw,ValueContainer:TE},yw=function(n){return he(he({},gw),n.components)},sv=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function bw(i,n){return!!(i===n||sv(i)&&sv(n))}function _w(i,n){if(i.length!==n.length)return!1;for(var l=0;l<i.length;l++)if(!bw(i[l],n[l]))return!1;return!0}function Sw(i,n){n===void 0&&(n=_w);var l=null;function u(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];if(l&&l.lastThis===this&&n(s,l.lastArgs))return l.lastResult;var d=i.apply(this,s);return l={lastResult:d,lastArgs:s,lastThis:this},d}return u.clear=function(){l=null},u}var Ew={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ww=function(n){return ce("span",pe({css:Ew},n))},ov=ww,Tw={guidance:function(n){var l=n.isSearchable,u=n.isMulti,s=n.tabSelectsValue,f=n.context,d=n.isInitialFocus;switch(f){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(n["aria-label"]||"Select"," is focused ").concat(l?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(n){var l=n.action,u=n.label,s=u===void 0?"":u,f=n.labels,d=n.isDisabled;switch(l){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(f.length>1?"s":""," ").concat(f.join(","),", selected.");case"select-option":return d?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(n){var l=n.context,u=n.focused,s=n.options,f=n.label,d=f===void 0?"":f,v=n.selectValue,h=n.isDisabled,m=n.isSelected,g=n.isAppleDevice,y=function(T,R){return T&&T.length?"".concat(T.indexOf(R)+1," of ").concat(T.length):""};if(l==="value"&&v)return"value ".concat(d," focused, ").concat(y(v,u),".");if(l==="menu"&&g){var b=h?" disabled":"",S="".concat(m?" selected":"").concat(b);return"".concat(d).concat(S,", ").concat(y(s,u),".")}return""},onFilter:function(n){var l=n.inputValue,u=n.resultsMessage;return"".concat(u).concat(l?" for search term "+l:"",".")}},Ow=function(n){var l=n.ariaSelection,u=n.focusedOption,s=n.focusedValue,f=n.focusableOptions,d=n.isFocused,v=n.selectValue,h=n.selectProps,m=n.id,g=n.isAppleDevice,y=h.ariaLiveMessages,b=h.getOptionLabel,S=h.inputValue,E=h.isMulti,T=h.isOptionDisabled,R=h.isSearchable,L=h.menuIsOpen,X=h.options,$=h.screenReaderStatus,Z=h.tabSelectsValue,M=h.isLoading,G=h["aria-label"],U=h["aria-live"],W=k.useMemo(function(){return he(he({},Tw),y||{})},[y]),fe=k.useMemo(function(){var ve="";if(l&&W.onChange){var D=l.option,Q=l.options,J=l.removedValue,ge=l.removedValues,be=l.value,x=function(xe){return Array.isArray(xe)?null:xe},H=J||D||x(be),K=H?b(H):"",te=Q||ge||void 0,ue=te?te.map(b):[],se=he({isDisabled:H&&T(H,v),label:K,labels:ue},l);ve=W.onChange(se)}return ve},[l,W,T,v,b]),De=k.useMemo(function(){var ve="",D=u||s,Q=!!(u&&v&&v.includes(u));if(D&&W.onFocus){var J={focused:D,label:b(D),isDisabled:T(D,v),isSelected:Q,options:f,context:D===u?"menu":"value",selectValue:v,isAppleDevice:g};ve=W.onFocus(J)}return ve},[u,s,b,T,W,f,v,g]),Ee=k.useMemo(function(){var ve="";if(L&&X.length&&!M&&W.onFilter){var D=$({count:f.length});ve=W.onFilter({inputValue:S,resultsMessage:D})}return ve},[f,S,L,W,X,$,M]),ee=l?.action==="initial-input-focus",ne=k.useMemo(function(){var ve="";if(W.guidance){var D=s?"value":L?"menu":"input";ve=W.guidance({"aria-label":G,context:D,isDisabled:u&&T(u,v),isMulti:E,isSearchable:R,tabSelectsValue:Z,isInitialFocus:ee})}return ve},[G,u,s,E,T,R,L,W,v,Z,ee]),de=ce(k.Fragment,null,ce("span",{id:"aria-selection"},fe),ce("span",{id:"aria-focused"},De),ce("span",{id:"aria-results"},Ee),ce("span",{id:"aria-guidance"},ne));return ce(k.Fragment,null,ce(ov,{id:m},ee&&de),ce(ov,{"aria-live":U,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!ee&&de))},xw=Ow,ef=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Cw=new RegExp("["+ef.map(function(i){return i.letters}).join("")+"]","g"),Ag={};for(var Ac=0;Ac<ef.length;Ac++)for(var zc=ef[Ac],Mc=0;Mc<zc.letters.length;Mc++)Ag[zc.letters[Mc]]=zc.base;var zg=function(n){return n.replace(Cw,function(l){return Ag[l]})},Aw=Sw(zg),cv=function(n){return n.replace(/^\s+|\s+$/g,"")},zw=function(n){return"".concat(n.label," ").concat(n.value)},Mw=function(n){return function(l,u){if(l.data.__isNew__)return!0;var s=he({ignoreCase:!0,ignoreAccents:!0,stringify:zw,trim:!0,matchFrom:"any"},n),f=s.ignoreCase,d=s.ignoreAccents,v=s.stringify,h=s.trim,m=s.matchFrom,g=h?cv(u):u,y=h?cv(v(l)):v(l);return f&&(g=g.toLowerCase(),y=y.toLowerCase()),d&&(g=Aw(g),y=zg(y)),m==="start"?y.substr(0,g.length)===g:y.indexOf(g)>-1}},Dw=["innerRef"];function Rw(i){var n=i.innerRef,l=Vn(i,Dw),u=iE(l,"onExited","in","enter","exit","appear");return ce("input",pe({ref:n},u,{css:pf({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var jw=function(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function Lw(i){var n=i.isEnabled,l=i.onBottomArrive,u=i.onBottomLeave,s=i.onTopArrive,f=i.onTopLeave,d=k.useRef(!1),v=k.useRef(!1),h=k.useRef(0),m=k.useRef(null),g=k.useCallback(function(R,L){if(m.current!==null){var X=m.current,$=X.scrollTop,Z=X.scrollHeight,M=X.clientHeight,G=m.current,U=L>0,W=Z-M-$,fe=!1;W>L&&d.current&&(u&&u(R),d.current=!1),U&&v.current&&(f&&f(R),v.current=!1),U&&L>W?(l&&!d.current&&l(R),G.scrollTop=Z,fe=!0,d.current=!0):!U&&-L>$&&(s&&!v.current&&s(R),G.scrollTop=0,fe=!0,v.current=!0),fe&&jw(R)}},[l,u,s,f]),y=k.useCallback(function(R){g(R,R.deltaY)},[g]),b=k.useCallback(function(R){h.current=R.changedTouches[0].clientY},[]),S=k.useCallback(function(R){var L=h.current-R.changedTouches[0].clientY;g(R,L)},[g]),E=k.useCallback(function(R){if(R){var L=tE?{passive:!1}:!1;R.addEventListener("wheel",y,L),R.addEventListener("touchstart",b,L),R.addEventListener("touchmove",S,L)}},[S,b,y]),T=k.useCallback(function(R){R&&(R.removeEventListener("wheel",y,!1),R.removeEventListener("touchstart",b,!1),R.removeEventListener("touchmove",S,!1))},[S,b,y]);return k.useEffect(function(){if(n){var R=m.current;return E(R),function(){T(R)}}},[n,E,T]),function(R){m.current=R}}var fv=["boxSizing","height","overflow","paddingRight","position"],dv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hv(i){i.cancelable&&i.preventDefault()}function mv(i){i.stopPropagation()}function pv(){var i=this.scrollTop,n=this.scrollHeight,l=i+this.offsetHeight;i===0?this.scrollTop=1:l===n&&(this.scrollTop=i-1)}function vv(){return"ontouchstart"in window||navigator.maxTouchPoints}var gv=!!(typeof window<"u"&&window.document&&window.document.createElement),Ur=0,xi={capture:!1,passive:!1};function Nw(i){var n=i.isEnabled,l=i.accountForScrollbars,u=l===void 0?!0:l,s=k.useRef({}),f=k.useRef(null),d=k.useCallback(function(h){if(gv){var m=document.body,g=m&&m.style;if(u&&fv.forEach(function(E){var T=g&&g[E];s.current[E]=T}),u&&Ur<1){var y=parseInt(s.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+y||0;Object.keys(dv).forEach(function(E){var T=dv[E];g&&(g[E]=T)}),g&&(g.paddingRight="".concat(S,"px"))}m&&vv()&&(m.addEventListener("touchmove",hv,xi),h&&(h.addEventListener("touchstart",pv,xi),h.addEventListener("touchmove",mv,xi))),Ur+=1}},[u]),v=k.useCallback(function(h){if(gv){var m=document.body,g=m&&m.style;Ur=Math.max(Ur-1,0),u&&Ur<1&&fv.forEach(function(y){var b=s.current[y];g&&(g[y]=b)}),m&&vv()&&(m.removeEventListener("touchmove",hv,xi),h&&(h.removeEventListener("touchstart",pv,xi),h.removeEventListener("touchmove",mv,xi)))}},[u]);return k.useEffect(function(){if(n){var h=f.current;return d(h),function(){v(h)}}},[n,d,v]),function(h){f.current=h}}var qw=function(n){var l=n.target;return l.ownerDocument.activeElement&&l.ownerDocument.activeElement.blur()},Uw={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Vw(i){var n=i.children,l=i.lockEnabled,u=i.captureEnabled,s=u===void 0?!0:u,f=i.onBottomArrive,d=i.onBottomLeave,v=i.onTopArrive,h=i.onTopLeave,m=Lw({isEnabled:s,onBottomArrive:f,onBottomLeave:d,onTopArrive:v,onTopLeave:h}),g=Nw({isEnabled:l}),y=function(S){m(S),g(S)};return ce(k.Fragment,null,l&&ce("div",{onClick:qw,css:Uw}),n(y))}var Hw={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Bw=function(n){var l=n.name,u=n.onFocus;return ce("input",{required:!0,name:l,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:Hw,value:"",onChange:function(){}})},Gw=Bw;function _f(i){var n;return typeof window<"u"&&window.navigator!=null?i.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function Iw(){return _f(/^iPhone/i)}function Mg(){return _f(/^Mac/i)}function Yw(){return _f(/^iPad/i)||Mg()&&navigator.maxTouchPoints>1}function $w(){return Iw()||Yw()}function Pw(){return Mg()||$w()}var Fw=function(n){return n.label},kw=function(n){return n.label},Xw=function(n){return n.value},Qw=function(n){return!!n.isDisabled},Zw={clearIndicator:RE,container:SE,control:HE,dropdownIndicator:ME,group:YE,groupHeading:PE,indicatorsContainer:OE,indicatorSeparator:LE,input:QE,loadingIndicator:UE,loadingMessage:vE,menu:oE,menuList:hE,menuPortal:bE,multiValue:ew,multiValueLabel:tw,multiValueRemove:nw,noOptionsMessage:pE,option:sw,placeholder:fw,singleValue:mw,valueContainer:wE},Kw={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Jw=4,Dg=4,Ww=38,eT=Dg*2,tT={baseUnit:Dg,controlHeight:Ww,menuGutter:eT},Dc={borderRadius:Jw,colors:Kw,spacing:tT},nT={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:lv(),captureMenuScroll:!lv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Mw(),formatGroupLabel:Fw,getOptionLabel:kw,getOptionValue:Xw,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Qw,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!W1(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(n){var l=n.count;return"".concat(l," result").concat(l!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function yv(i,n,l,u){var s=Lg(i,n,l),f=Ng(i,n,l),d=jg(i,n),v=Fu(i,n);return{type:"option",data:n,isDisabled:s,isSelected:f,label:d,value:v,index:u}}function Nu(i,n){return i.options.map(function(l,u){if("options"in l){var s=l.options.map(function(d,v){return yv(i,d,n,v)}).filter(function(d){return _v(i,d)});return s.length>0?{type:"group",data:l,options:s,index:u}:void 0}var f=yv(i,l,n,u);return _v(i,f)?f:void 0}).filter(nE)}function Rg(i){return i.reduce(function(n,l){return l.type==="group"?n.push.apply(n,cf(l.options.map(function(u){return u.data}))):n.push(l.data),n},[])}function bv(i,n){return i.reduce(function(l,u){return u.type==="group"?l.push.apply(l,cf(u.options.map(function(s){return{data:s.data,id:"".concat(n,"-").concat(u.index,"-").concat(s.index)}}))):l.push({data:u.data,id:"".concat(n,"-").concat(u.index)}),l},[])}function aT(i,n){return Rg(Nu(i,n))}function _v(i,n){var l=i.inputValue,u=l===void 0?"":l,s=n.data,f=n.isSelected,d=n.label,v=n.value;return(!Ug(i)||!f)&&qg(i,{label:d,value:v,data:s},u)}function iT(i,n){var l=i.focusedValue,u=i.selectValue,s=u.indexOf(l);if(s>-1){var f=n.indexOf(l);if(f>-1)return l;if(s<n.length)return n[s]}return null}function rT(i,n){var l=i.focusedOption;return l&&n.indexOf(l)>-1?l:n[0]}var Rc=function(n,l){var u,s=(u=n.find(function(f){return f.data===l}))===null||u===void 0?void 0:u.id;return s||null},jg=function(n,l){return n.getOptionLabel(l)},Fu=function(n,l){return n.getOptionValue(l)};function Lg(i,n,l){return typeof i.isOptionDisabled=="function"?i.isOptionDisabled(n,l):!1}function Ng(i,n,l){if(l.indexOf(n)>-1)return!0;if(typeof i.isOptionSelected=="function")return i.isOptionSelected(n,l);var u=Fu(i,n);return l.some(function(s){return Fu(i,s)===u})}function qg(i,n,l){return i.filterOption?i.filterOption(n,l):!0}var Ug=function(n){var l=n.hideSelectedOptions,u=n.isMulti;return l===void 0?u:l},lT=1,Vg=(function(i){xS(l,i);var n=zS(l);function l(u){var s;if(TS(this,l),s=n.call(this,u),s.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(h){s.controlRef=h},s.focusedOptionRef=null,s.getFocusedOptionRef=function(h){s.focusedOptionRef=h},s.menuListRef=null,s.getMenuListRef=function(h){s.menuListRef=h},s.inputRef=null,s.getInputRef=function(h){s.inputRef=h},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(h,m){var g=s.props,y=g.onChange,b=g.name;m.name=b,s.ariaOnChange(h,m),y(h,m)},s.setValue=function(h,m,g){var y=s.props,b=y.closeMenuOnSelect,S=y.isMulti,E=y.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:E}),b&&(s.setState({inputIsHiddenAfterUpdate:!S}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(h,{action:m,option:g})},s.selectOption=function(h){var m=s.props,g=m.blurInputOnSelect,y=m.isMulti,b=m.name,S=s.state.selectValue,E=y&&s.isOptionSelected(h,S),T=s.isOptionDisabled(h,S);if(E){var R=s.getOptionValue(h);s.setValue(S.filter(function(L){return s.getOptionValue(L)!==R}),"deselect-option",h)}else if(!T)y?s.setValue([].concat(cf(S),[h]),"select-option",h):s.setValue(h,"select-option");else{s.ariaOnChange(h,{action:"select-option",option:h,name:b});return}g&&s.blurInput()},s.removeValue=function(h){var m=s.props.isMulti,g=s.state.selectValue,y=s.getOptionValue(h),b=g.filter(function(E){return s.getOptionValue(E)!==y}),S=Tu(m,b,b[0]||null);s.onChange(S,{action:"remove-value",removedValue:h}),s.focusInput()},s.clearValue=function(){var h=s.state.selectValue;s.onChange(Tu(s.props.isMulti,[],null),{action:"clear",removedValues:h})},s.popValue=function(){var h=s.props.isMulti,m=s.state.selectValue,g=m[m.length-1],y=m.slice(0,m.length-1),b=Tu(h,y,y[0]||null);g&&s.onChange(b,{action:"pop-value",removedValue:g})},s.getFocusedOptionId=function(h){return Rc(s.state.focusableOptionsWithIds,h)},s.getFocusableOptionsWithIds=function(){return bv(Nu(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return X1.apply(void 0,[s.props.classNamePrefix].concat(m))},s.getOptionLabel=function(h){return jg(s.props,h)},s.getOptionValue=function(h){return Fu(s.props,h)},s.getStyles=function(h,m){var g=s.props.unstyled,y=Zw[h](m,g);y.boxSizing="border-box";var b=s.props.styles[h];return b?b(y,m):y},s.getClassNames=function(h,m){var g,y;return(g=(y=s.props.classNames)[h])===null||g===void 0?void 0:g.call(y,m)},s.getElementId=function(h){return"".concat(s.state.instancePrefix,"-").concat(h)},s.getComponents=function(){return yw(s.props)},s.buildCategorizedOptions=function(){return Nu(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return Rg(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(h,m){s.setState({ariaSelection:he({value:h},m)})},s.onMenuMouseDown=function(h){h.button===0&&(h.stopPropagation(),h.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(h){s.blockOptionHover=!1},s.onControlMouseDown=function(h){if(!h.defaultPrevented){var m=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&s.onMenuClose():m&&s.openMenu("first"):(m&&(s.openAfterFocus=!0),s.focusInput()),h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&h.preventDefault()}},s.onDropdownIndicatorMouseDown=function(h){if(!(h&&h.type==="mousedown"&&h.button!==0)&&!s.props.isDisabled){var m=s.props,g=m.isMulti,y=m.menuIsOpen;s.focusInput(),y?(s.setState({inputIsHiddenAfterUpdate:!g}),s.onMenuClose()):s.openMenu("first"),h.preventDefault()}},s.onClearIndicatorMouseDown=function(h){h&&h.type==="mousedown"&&h.button!==0||(s.clearValue(),h.preventDefault(),s.openAfterFocus=!1,h.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(h){typeof s.props.closeMenuOnScroll=="boolean"?h.target instanceof HTMLElement&&es(h.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(h)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(h){var m=h.touches,g=m&&m.item(0);g&&(s.initialTouchX=g.clientX,s.initialTouchY=g.clientY,s.userIsDragging=!1)},s.onTouchMove=function(h){var m=h.touches,g=m&&m.item(0);if(g){var y=Math.abs(g.clientX-s.initialTouchX),b=Math.abs(g.clientY-s.initialTouchY),S=5;s.userIsDragging=y>S||b>S}},s.onTouchEnd=function(h){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(h.target)&&s.menuListRef&&!s.menuListRef.contains(h.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(h){s.userIsDragging||s.onControlMouseDown(h)},s.onClearIndicatorTouchEnd=function(h){s.userIsDragging||s.onClearIndicatorMouseDown(h)},s.onDropdownIndicatorTouchEnd=function(h){s.userIsDragging||s.onDropdownIndicatorMouseDown(h)},s.handleInputChange=function(h){var m=s.props.inputValue,g=h.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(g,{action:"input-change",prevInputValue:m}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(h){s.props.onFocus&&s.props.onFocus(h),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(h){var m=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(h),s.onInputChange("",{action:"input-blur",prevInputValue:m}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(h){if(!(s.blockOptionHover||s.state.focusedOption===h)){var m=s.getFocusableOptions(),g=m.indexOf(h);s.setState({focusedOption:h,focusedOptionId:g>-1?s.getFocusedOptionId(h):null})}},s.shouldHideSelectedOptions=function(){return Ug(s.props)},s.onValueInputFocus=function(h){h.preventDefault(),h.stopPropagation(),s.focus()},s.onKeyDown=function(h){var m=s.props,g=m.isMulti,y=m.backspaceRemovesValue,b=m.escapeClearsValue,S=m.inputValue,E=m.isClearable,T=m.isDisabled,R=m.menuIsOpen,L=m.onKeyDown,X=m.tabSelectsValue,$=m.openMenuOnFocus,Z=s.state,M=Z.focusedOption,G=Z.focusedValue,U=Z.selectValue;if(!T&&!(typeof L=="function"&&(L(h),h.defaultPrevented))){switch(s.blockOptionHover=!0,h.key){case"ArrowLeft":if(!g||S)return;s.focusValue("previous");break;case"ArrowRight":if(!g||S)return;s.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(G)s.removeValue(G);else{if(!y)return;g?s.popValue():E&&s.clearValue()}break;case"Tab":if(s.isComposing||h.shiftKey||!R||!X||!M||$&&s.isOptionSelected(M,U))return;s.selectOption(M);break;case"Enter":if(h.keyCode===229)break;if(R){if(!M||s.isComposing)return;s.selectOption(M);break}return;case"Escape":R?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:S}),s.onMenuClose()):E&&b&&s.clearValue();break;case" ":if(S)return;if(!R){s.openMenu("first");break}if(!M)return;s.selectOption(M);break;case"ArrowUp":R?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":R?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!R)return;s.focusOption("pageup");break;case"PageDown":if(!R)return;s.focusOption("pagedown");break;case"Home":if(!R)return;s.focusOption("first");break;case"End":if(!R)return;s.focusOption("last");break;default:return}h.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++lT),s.state.selectValue=iv(u.value),u.menuIsOpen&&s.state.selectValue.length){var f=s.getFocusableOptionsWithIds(),d=s.buildFocusableOptions(),v=d.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=f,s.state.focusedOption=d[v],s.state.focusedOptionId=Rc(f,d[v])}return s}return OS(l,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rv(this.menuListRef,this.focusedOptionRef),Pw()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var f=this.props,d=f.isDisabled,v=f.menuIsOpen,h=this.state.isFocused;(h&&!d&&s.isDisabled||h&&v&&!s.menuIsOpen)&&this.focusInput(),h&&d&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!h&&!d&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(rv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,f){this.props.onInputChange(s,f)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var f=this,d=this.state,v=d.selectValue,h=d.isFocused,m=this.buildFocusableOptions(),g=s==="first"?0:m.length-1;if(!this.props.isMulti){var y=m.indexOf(v[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(h&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:m[g],focusedOptionId:this.getFocusedOptionId(m[g])},function(){return f.onMenuOpen()})}},{key:"focusValue",value:function(s){var f=this.state,d=f.selectValue,v=f.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var h=d.indexOf(v);v||(h=-1);var m=d.length-1,g=-1;if(d.length){switch(s){case"previous":h===0?g=0:h===-1?g=m:g=h-1;break;case"next":h>-1&&h<m&&(g=h+1);break}this.setState({inputIsHidden:g!==-1,focusedValue:d[g]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",f=this.props.pageSize,d=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var h=0,m=v.indexOf(d);d||(m=-1),s==="up"?h=m>0?m-1:v.length-1:s==="down"?h=(m+1)%v.length:s==="pageup"?(h=m-f,h<0&&(h=0)):s==="pagedown"?(h=m+f,h>v.length-1&&(h=v.length-1)):s==="last"&&(h=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[h],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[h])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Dc):he(he({},Dc),this.props.theme):Dc})},{key:"getCommonProps",value:function(){var s=this.clearValue,f=this.cx,d=this.getStyles,v=this.getClassNames,h=this.getValue,m=this.selectOption,g=this.setValue,y=this.props,b=y.isMulti,S=y.isRtl,E=y.options,T=this.hasValue();return{clearValue:s,cx:f,getStyles:d,getClassNames:v,getValue:h,hasValue:T,isMulti:b,isRtl:S,options:E,selectOption:m,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,f=s.isClearable,d=s.isMulti;return f===void 0?d:f}},{key:"isOptionDisabled",value:function(s,f){return Lg(this.props,s,f)}},{key:"isOptionSelected",value:function(s,f){return Ng(this.props,s,f)}},{key:"filterOption",value:function(s,f){return qg(this.props,s,f)}},{key:"formatOptionLabel",value:function(s,f){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(s,{context:f,inputValue:d,selectValue:v})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var s=this.props,f=s.isDisabled,d=s.isSearchable,v=s.inputId,h=s.inputValue,m=s.tabIndex,g=s.form,y=s.menuIsOpen,b=s.required,S=this.getComponents(),E=S.Input,T=this.state,R=T.inputIsHidden,L=T.ariaSelection,X=this.commonProps,$=v||this.getElementId("input"),Z=he(he(he({"aria-autocomplete":"list","aria-expanded":y,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},y&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?L?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?k.createElement(E,pe({},X,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:$,innerRef:this.getInputRef,isDisabled:f,isHidden:R,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:m,form:g,type:"text",value:h},Z)):k.createElement(Rw,pe({id:$,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$u,onFocus:this.onInputFocus,disabled:f,tabIndex:m,inputMode:"none",form:g,value:""},Z))})},{key:"renderPlaceholderOrValue",value:function(){var s=this,f=this.getComponents(),d=f.MultiValue,v=f.MultiValueContainer,h=f.MultiValueLabel,m=f.MultiValueRemove,g=f.SingleValue,y=f.Placeholder,b=this.commonProps,S=this.props,E=S.controlShouldRenderValue,T=S.isDisabled,R=S.isMulti,L=S.inputValue,X=S.placeholder,$=this.state,Z=$.selectValue,M=$.focusedValue,G=$.isFocused;if(!this.hasValue()||!E)return L?null:k.createElement(y,pe({},b,{key:"placeholder",isDisabled:T,isFocused:G,innerProps:{id:this.getElementId("placeholder")}}),X);if(R)return Z.map(function(W,fe){var De=W===M,Ee="".concat(s.getOptionLabel(W),"-").concat(s.getOptionValue(W));return k.createElement(d,pe({},b,{components:{Container:v,Label:h,Remove:m},isFocused:De,isDisabled:T,key:Ee,index:fe,removeProps:{onClick:function(){return s.removeValue(W)},onTouchEnd:function(){return s.removeValue(W)},onMouseDown:function(ne){ne.preventDefault()}},data:W}),s.formatOptionLabel(W,"value"))});if(L)return null;var U=Z[0];return k.createElement(g,pe({},b,{data:U,isDisabled:T}),this.formatOptionLabel(U,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),f=s.ClearIndicator,d=this.commonProps,v=this.props,h=v.isDisabled,m=v.isLoading,g=this.state.isFocused;if(!this.isClearable()||!f||h||!this.hasValue()||m)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(f,pe({},d,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),f=s.LoadingIndicator,d=this.commonProps,v=this.props,h=v.isDisabled,m=v.isLoading,g=this.state.isFocused;if(!f||!m)return null;var y={"aria-hidden":"true"};return k.createElement(f,pe({},d,{innerProps:y,isDisabled:h,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),f=s.DropdownIndicator,d=s.IndicatorSeparator;if(!f||!d)return null;var v=this.commonProps,h=this.props.isDisabled,m=this.state.isFocused;return k.createElement(d,pe({},v,{isDisabled:h,isFocused:m}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),f=s.DropdownIndicator;if(!f)return null;var d=this.commonProps,v=this.props.isDisabled,h=this.state.isFocused,m={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(f,pe({},d,{innerProps:m,isDisabled:v,isFocused:h}))}},{key:"renderMenu",value:function(){var s=this,f=this.getComponents(),d=f.Group,v=f.GroupHeading,h=f.Menu,m=f.MenuList,g=f.MenuPortal,y=f.LoadingMessage,b=f.NoOptionsMessage,S=f.Option,E=this.commonProps,T=this.state.focusedOption,R=this.props,L=R.captureMenuScroll,X=R.inputValue,$=R.isLoading,Z=R.loadingMessage,M=R.minMenuHeight,G=R.maxMenuHeight,U=R.menuIsOpen,W=R.menuPlacement,fe=R.menuPosition,De=R.menuPortalTarget,Ee=R.menuShouldBlockScroll,ee=R.menuShouldScrollIntoView,ne=R.noOptionsMessage,de=R.onMenuScrollToTop,ve=R.onMenuScrollToBottom;if(!U)return null;var D=function(K,te){var ue=K.type,se=K.data,re=K.isDisabled,xe=K.isSelected,Se=K.label,Vt=K.value,ot=T===se,Ga=re?void 0:function(){return s.onOptionHover(se)},Qr=re?void 0:function(){return s.selectOption(se)},rn="".concat(s.getElementId("option"),"-").concat(te),Bi={id:rn,onClick:Qr,onMouseMove:Ga,onMouseOver:Ga,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:xe};return k.createElement(S,pe({},E,{innerProps:Bi,data:se,isDisabled:re,isSelected:xe,key:rn,label:Se,type:ue,value:Vt,isFocused:ot,innerRef:ot?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(K.data,"menu"))},Q;if(this.hasOptions())Q=this.getCategorizedOptions().map(function(H){if(H.type==="group"){var K=H.data,te=H.options,ue=H.index,se="".concat(s.getElementId("group"),"-").concat(ue),re="".concat(se,"-heading");return k.createElement(d,pe({},E,{key:se,data:K,options:te,Heading:v,headingProps:{id:re,data:H.data},label:s.formatGroupLabel(H.data)}),H.options.map(function(xe){return D(xe,"".concat(ue,"-").concat(xe.index))}))}else if(H.type==="option")return D(H,"".concat(H.index))});else if($){var J=Z({inputValue:X});if(J===null)return null;Q=k.createElement(y,E,J)}else{var ge=ne({inputValue:X});if(ge===null)return null;Q=k.createElement(b,E,ge)}var be={minMenuHeight:M,maxMenuHeight:G,menuPlacement:W,menuPosition:fe,menuShouldScrollIntoView:ee},x=k.createElement(cE,pe({},E,be),function(H){var K=H.ref,te=H.placerProps,ue=te.placement,se=te.maxHeight;return k.createElement(h,pe({},E,be,{innerRef:K,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:$,placement:ue}),k.createElement(Vw,{captureEnabled:L,onTopArrive:de,onBottomArrive:ve,lockEnabled:Ee},function(re){return k.createElement(m,pe({},E,{innerRef:function(Se){s.getMenuListRef(Se),re(Se)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:s.getElementId("listbox")},isLoading:$,maxHeight:se,focusedOption:T}),Q)}))});return De||fe==="fixed"?k.createElement(g,pe({},E,{appendTo:De,controlElement:this.controlRef,menuPlacement:W,menuPosition:fe}),x):x}},{key:"renderFormField",value:function(){var s=this,f=this.props,d=f.delimiter,v=f.isDisabled,h=f.isMulti,m=f.name,g=f.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!v)return k.createElement(Gw,{name:m,onFocus:this.onValueInputFocus});if(!(!m||v))if(h)if(d){var b=y.map(function(T){return s.getOptionValue(T)}).join(d);return k.createElement("input",{name:m,type:"hidden",value:b})}else{var S=y.length>0?y.map(function(T,R){return k.createElement("input",{key:"i-".concat(R),name:m,type:"hidden",value:s.getOptionValue(T)})}):k.createElement("input",{name:m,type:"hidden",value:""});return k.createElement("div",null,S)}else{var E=y[0]?this.getOptionValue(y[0]):"";return k.createElement("input",{name:m,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,f=this.state,d=f.ariaSelection,v=f.focusedOption,h=f.focusedValue,m=f.isFocused,g=f.selectValue,y=this.getFocusableOptions();return k.createElement(xw,pe({},s,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:v,focusedValue:h,isFocused:m,selectValue:g,focusableOptions:y,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),f=s.Control,d=s.IndicatorsContainer,v=s.SelectContainer,h=s.ValueContainer,m=this.props,g=m.className,y=m.id,b=m.isDisabled,S=m.menuIsOpen,E=this.state.isFocused,T=this.commonProps=this.getCommonProps();return k.createElement(v,pe({},T,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:E}),this.renderLiveRegion(),k.createElement(f,pe({},T,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:E,menuIsOpen:S}),k.createElement(h,pe({},T,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(d,pe({},T,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,f){var d=f.prevProps,v=f.clearFocusValueOnUpdate,h=f.inputIsHiddenAfterUpdate,m=f.ariaSelection,g=f.isFocused,y=f.prevWasFocused,b=f.instancePrefix,S=s.options,E=s.value,T=s.menuIsOpen,R=s.inputValue,L=s.isMulti,X=iv(E),$={};if(d&&(E!==d.value||S!==d.options||T!==d.menuIsOpen||R!==d.inputValue)){var Z=T?aT(s,X):[],M=T?bv(Nu(s,X),"".concat(b,"-option")):[],G=v?iT(f,X):null,U=rT(f,Z),W=Rc(M,U);$={selectValue:X,focusedOption:U,focusedOptionId:W,focusableOptionsWithIds:M,focusedValue:G,clearFocusValueOnUpdate:!1}}var fe=h!=null&&s!==d?{inputIsHidden:h,inputIsHiddenAfterUpdate:void 0}:{},De=m,Ee=g&&y;return g&&!Ee&&(De={value:Tu(L,X,X[0]||null),options:X,action:"initial-input-focus"},Ee=!y),m?.action==="initial-input-focus"&&(De=null),he(he(he({},$),fe),{},{prevProps:s,ariaSelection:De,prevWasFocused:Ee})}}]),l})(k.Component);Vg.defaultProps=nT;var uT=k.forwardRef(function(i,n){var l=wS(i);return k.createElement(Vg,pe({ref:n},l))}),sT=uT,Pe=function(){return Pe=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Pe.apply(this,arguments)},oT=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},cT=function(i){return Pe(Pe({},i),{borderRadius:0,colors:Pe(Pe({},i.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},fT=function(i,n){return k.useMemo(function(){return{placeholder:function(l){return Pe(Pe({},l),{color:"var(--placeholder-body-color)"})},container:function(l){return Pe(Pe({},l),{fontSize:"inherit"})},control:function(l,u){var s=u.isFocused,f=l;return f=Pe(Pe({},f),{minHeight:40}),s?Pe(Pe({},f),{borderColor:n?"var(--alert-color)":"var(--accent-color)",backgroundColor:i?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(n?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:n?"var(--alert-color)":"var(--accent-color)"}}):Pe(Pe({},f),{borderColor:n?"var(--alert-color)":"var(--border-color)",backgroundColor:i?"var(--disabled-color)":"white","&:hover":{borderColor:n?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(l){return Pe(Pe({},l),{cursor:"pointer"})},menu:function(l){return Pe(Pe({},l),{zIndex:1e3,minWidth:250})},input:function(l){var u=Pe(Pe({},l),{boxShadow:"none","input:focus":{boxShadow:"none"}});return u},multiValue:function(l){return Pe(Pe({},l),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(l){return Pe(Pe({},l),{fontSize:"inherit",padding:3})}}},[i,n])};function dT(i){var n=i.isDisabled,l=i.error,u=oT(i,["isDisabled","error"]),s=fT(n,l);return Te.createElement(sT,Pe({},u,{isDisabled:n,theme:cT,styles:s}))}const hT="_Spinner__bar_oumod_13",jc={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:hT};var ku=function(){return ku=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},ku.apply(this,arguments)};function mT(i){for(var n,l=i.size,u=l===void 0?32:l,s=i.placement,f=s===void 0?"inline":s,d=i.style,v=d===void 0?{}:d,h=[],m=0;m<12;m+=1){var g={};g.animationDelay="".concat((m-12)/10,"s"),g.transform="rotate(".concat(m*30,"deg) translate(146%)"),h.push(Te.createElement("div",{style:g,className:jc.Spinner__bar,key:m}))}var y={width:u*.5,height:u*.5};return f==="inline"&&(y.marginLeft=u*.5,y.transform="translateY(33%)"),Te.createElement("div",{className:mn((n={},n[jc["Spinner--inline"]]=f==="inline",n[jc["Spinner--centered"]]=f==="centered",n)),style:ku(ku({},v),y)},h)}const pT="_switchField__flex_16z4j_1",vT="_switchField__switchInput_16z4j_6",gT="_switchField__label_16z4j_10",yT="_switchField__below_16z4j_22",Ou={switchField__flex:pT,switchField__switchInput:vT,switchField__label:gT,switchField__below:yT};var Xu=function(){return Xu=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Xu.apply(this,arguments)};function Na(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.formLabelProps,h=i.value,m=i.onChange,g=i.switchInputProps;return Te.createElement(Te.Fragment,null,Te.createElement("div",{className:Ou.switchField__flex},Te.createElement("div",{className:Ou.switchField__switchInput},Te.createElement(TT,Xu({},g,{name:l,value:h,onChange:m}))),Te.createElement(Zv,Xu({},v,{htmlFor:n,required:d,className:mn(Ou.switchField__label,v?.className),error:!!f}),u)),(s||f)&&Te.createElement("div",{className:Ou.switchField__below},f&&Te.createElement(kv,null,f),s&&Te.createElement(Xv,null,s)))}const bT="_switchInput__inner_1knbg_1",_T="_switchInput_1knbg_1",ST="_switchInput__checked_1knbg_47",ET="_switchInput__disabled_1knbg_60",xu={switchInput__inner:bT,switchInput:_T,switchInput__checked:ST,switchInput__disabled:ET};var tf=function(){return tf=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},tf.apply(this,arguments)},wT=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function TT(i){var n,l=i.className,u=i.value,s=i.disabled,f=i.onClick,d=i.onChange,v=i.onKeyDown,h=wT(i,["className","value","disabled","onClick","onChange","onKeyDown"]);function m(S,E){!s&&d&&d(S,E)}function g(S){S.key==="ArrowLeft"?m(!1,S):S.key==="ArrowRight"&&m(!0,S),v?.(S)}function y(S){m(!u,S),f?.(S)}var b=mn(xu.switchInput,l,(n={},n[xu.switchInput__checked]=u,n[xu.switchInput__disabled]=s,n));return Te.createElement("button",tf({},h,{type:"button",role:"switch","aria-checked":u,disabled:s,className:b,onKeyDown:g,onClick:y}),Te.createElement("span",{className:xu.switchInput__inner}))}var nf=function(){return nf=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},nf.apply(this,arguments)};function qa(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.placeholder,h=i.formLabelProps,m=i.value,g=i.onChange,y=i.textInputProps;return Te.createElement(Qv,{formLabelProps:h,id:n,required:d,error:f,hint:s,label:u},Te.createElement(CT,nf({},y,{id:n,name:l,value:m,placeholder:v,onChange:g,error:!!f})))}const OT="_TextInput_x2oj2_1",Cu={TextInput:OT,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};var af=function(){return af=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},af.apply(this,arguments)},xT=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},CT=function(i){var n,l=i.className,u=i.disabled,s=u===void 0?!1:u,f=i.error,d=i.id,v=i.inputRef,h=i.maxLength,m=i.name,g=i.labelText,y=i.onBlur,b=i.onChange,S=i.placeholder,E=i.required,T=E===void 0?!1:E,R=i.type,L=i.value,X=i.monospaced,$=xT(i,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),Z=k.useCallback(function(G){b&&b(G.target.value,G)},[b]),M=mn(Cu.TextInput,l,(n={},n[Cu["TextInput--disabled"]]=s,n[Cu["TextInput--error"]]=f,n[Cu["TextInput--monospaced"]]=X,n));return Te.createElement("input",af({className:M,"aria-label":g,id:d,name:m,required:T,placeholder:S,maxLength:h,disabled:s,onBlur:y,onChange:Z,value:L,type:R,ref:v},$))};function AT({ctx:i}){return O.jsx(Pv,{ctx:i,children:O.jsx(ha,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>i.navigateTo(`/configuration/p/${i.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}const zT="modulepreload",MT=function(i,n){return new URL(i,n).href},Sv={},DT=function(n,l,u){let s=Promise.resolve();if(l&&l.length>0){let m=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const d=document.getElementsByTagName("link"),v=document.querySelector("meta[property=csp-nonce]"),h=v?.nonce||v?.getAttribute("nonce");s=m(l.map(g=>{if(g=MT(g,u),g in Sv)return;Sv[g]=!0;const y=g.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(u)for(let E=d.length-1;E>=0;E--){const T=d[E];if(T.href===g&&(!y||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${g}"]${b}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":zT,y||(S.as="script"),S.crossOrigin="",S.href=g,h&&S.setAttribute("nonce",h),document.head.appendChild(S),y)return new Promise((E,T)=>{S.addEventListener("load",E),S.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(d){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=d,window.dispatchEvent(v),!v.defaultPrevented)throw d}return s.then(d=>{for(const v of d||[])v.status==="rejected"&&f(v.reason);return n().catch(f)})};function Hg(i){return typeof i=="object"&&!!i&&"data"in i}function RT(i){return typeof i=="object"&&!!i&&"included"in i}function an({__itemTypeId:i,id:n,type:l,attributes:u,relationships:s,meta:f}){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i?{__itemTypeId:i}:{}),n?{id:n}:{}),l?{type:l}:{}),u||{}),s?Object.fromEntries(Object.entries(s).map(([d,v])=>[d,v?.data])):{}),f?{meta:f}:{})}function A(i){if(!Hg(i))throw new Error("Invalid body!");return Array.isArray(i.data)?i.data.map(an):an(i.data)}function Bg(i){return!!(i&&typeof i=="object"&&"type"in i&&i.type==="item")}function rf(i){if(Array.isArray(i))return i.map(rf);if(i&&typeof i=="object"){if(Bg(i))return Gr(i);const n={};for(const[l,u]of Object.entries(i))n[l]=rf(u);return n}return i}function Gr(i){if(!Bg(i))return i;const n=i.attributes?rf(i.attributes):i.attributes;return Object.assign(Object.assign({},i),{attributes:n,__itemTypeId:i.relationships.item_type.data.id})}function Jt(i){if(!Hg(i))throw new Error("Invalid body!");let n;Array.isArray(i.data)?n=i.data.map(Gr):n=Gr(i.data);let l;return RT(i)&&(l=i.included.map(Gr)),Object.assign(Object.assign(Object.assign({},i),{data:n}),l?{included:l}:{})}function jT(i){if(typeof i!="object"||i===null||!("data"in i))return!1;const n=i;if(!Array.isArray(n.data))return!1;const l=n;if(l.data.length===0)return!1;const u=l.data[0];return!(typeof u!="object"||u===null||!("id"in u)||!("type"in u)||!("attributes"in u)||u.type!=="api_error")}class LT extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Ha):this.stack=new Error().stack,this.request=n.request,this.preCallStack=n.preCallStack,this.message=`${n.request.method} ${n.request.url}: Timeout error`,this.preCallStack&&(this.stack+=`
|
|
7
|
-
Caused By:
|
|
8
|
-
${this.preCallStack}`)}}class Ha extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Ha):this.stack=new Error().stack,this.request=n.request,this.response=n.response,this.preCallStack=n.preCallStack;let l=`${n.request.method} ${n.request.url}: ${this.response.status} ${this.response.statusText}`;this.errors.length>0&&(l+=`
|
|
9
|
-
|
|
10
|
-
${JSON.stringify(this.errors,null,2)}`),this.message=l,this.preCallStack&&(this.stack+=`
|
|
11
|
-
Caused By:
|
|
12
|
-
${this.preCallStack}`)}get errors(){return jT(this.response.body)?this.response.body.data:[]}findError(n,l){const u=Array.isArray(n)?n:[n];return this.errors.find(s=>u.includes(s.attributes.code)&&(!l||(typeof l=="function"?l(s.attributes.details):Object.entries(l).every(([f,d])=>s.attributes.details[f]===d))))}}class Pr extends Error{constructor(){super("Promise canceled!"),Object.setPrototypeOf(this,new.target.prototype)}}function Fr(i,n){let l=null;const u=new Promise((s,f)=>{l=()=>{try{n&&n(),f(new Pr)}catch(v){f(v)}},(typeof i=="function"?i():i).then(s,f)});return l&&(u.cancel=l),u}function qu(i){return new Promise(n=>{setTimeout(n,i)})}var NT=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};function qT(i){return NT(this,void 0,void 0,function*(){let n,l=0;do try{l+=1,yield qu(l*1e3),n=yield i()}catch(u){if(!(u instanceof Ha)||u.response.status!==404)throw u}while(!n);return n})}var Vr={},da={},Lc={},Ev;function Gg(){return Ev||(Ev=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.TaskCollisionStrategy=void 0,(function(n){n[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"})(i.TaskCollisionStrategy||(i.TaskCollisionStrategy={}))})(Lc)),Lc}var Au={},wv;function Ig(){if(wv)return Au;wv=1,Object.defineProperty(Au,"__esModule",{value:!0});let i=class{constructor(l,u){this._code=l,this._message=u}get code(){return this._code}get message(){return this._message}};return Au.default=i,Au}var Ua={},Tv;function Yg(){if(Tv)return Ua;Tv=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.mutexEquality=Ua.mutexBitwiseAnd=void 0;function i(l,u){return(l&u)!==0}Ua.mutexBitwiseAnd=i;function n(l,u){return l===u}return Ua.mutexEquality=n,Ua}var zu={},Ov;function UT(){if(Ov)return zu;Ov=1,Object.defineProperty(zu,"__esModule",{value:!0});let i=class{constructor(l,u){this._meta=void 0,this._task=l,this._scheduler=u}withDescriptor(l){return this._descriptor=l,this}withMutex(l){return this._mutex=l,this}withMeta(l){return this._meta=l,this}runBeforeExecuting(l){return this._onPreExecute=l,this}handleCollisions(l){return this._onTaskCollision=l,this}execute(l){return this._scheduler.enqueue({priority:l,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}};return zu.default=i,zu}var xv;function VT(){if(xv)return da;xv=1;var i=da&&da.__awaiter||function(m,g,y,b){function S(E){return E instanceof y?E:new y(function(T){T(E)})}return new(y||(y=Promise))(function(E,T){function R($){try{X(b.next($))}catch(Z){T(Z)}}function L($){try{X(b.throw($))}catch(Z){T(Z)}}function X($){$.done?E($.value):S($.value).then(R,L)}X((b=b.apply(m,g||[])).next())})},n=da&&da.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(da,"__esModule",{value:!0});const l=Gg(),u=n(Ig()),s=Yg(),f=n(UT());var d;(function(m){m[m.PENDING=0]="PENDING",m[m.EXECUTING=1]="EXECUTING",m[m.TERMINATED=2]="TERMINATED"})(d||(d={}));function v(m,g){for(let y of m.listeners)y.reject(g)}let h=class{constructor(g,y={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=g,this._samePriorityMutex=!!y.samePriorityMutex,this._mutexStrategy=y.mutexStrategy||s.mutexEquality,y.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(g){return new Promise((y,b)=>{typeof g=="function"&&(g={priority:0,execute:g});const S=this._checkMutexes(g,y,b);S.task?this._addTask(S.task):S.canceled&&b(this.createCanceledError())})}prepare(g){return new f.default(g,this)}_addTask(g){this._queue.push(g),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((g,y)=>y.state===d.EXECUTING?g+1:g,0)}createCanceledError(){return new u.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(g=>g.state===d.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(g=>g.state!==d.TERMINATED)}_removeTaskAt(g){this._queue.splice(g,1)}_executeTask(g){return i(this,void 0,void 0,function*(){try{return g.task.onPreExecute&&g.task.onPreExecute(),yield g.task.execute()}catch(y){throw y}finally{g.state=d.TERMINATED;let y=this._queue.indexOf(g);this._removeTaskAt(y),this._executeNextTasks()}})}_executeNextTasks(){let g=this.executingTasks;if(g>=this._maxConcurrentTasks)return;let y=this._maxConcurrentTasks-g;for(let b=0;b<y;b++){const S=this._findFirstPendingTask();if(!S){this._isIdle()&&this._switchToIdle();return}S.state=d.EXECUTING,this._executeTask(S).then(E=>{for(const{resolve:T}of S.listeners)try{T(E)}catch(R){this._errorLog("An error occurred while resolving listener",R)}}).catch(E=>{for(const{reject:T}of S.listeners)try{T(E)}catch(R){this._errorLog("An error occurred while rejecting listener",R)}})}}_switchToIdle(){this._isExecuting=!1;const g=this._idleListeners;this._idleListeners=[];for(const{resolve:y}of g)try{y()}catch{}}waitForIdle(){return this._isExecuting?new Promise((g,y)=>{this._idleListeners.push({resolve:g,reject:y})}):Promise.resolve()}_applyPriorities(){this._queue.sort((g,y)=>y.task.priority-g.task.priority)}_checkMutexes(g,y,b){for(let S=0;S<this._queue.length;S++){let E=this._queue[S];if(E.state===d.TERMINATED||this._samePriorityMutex&&E.task.priority!=g.priority||!E.task.mutex||!g.mutex||!this._mutexStrategy(E.task.mutex,g.mutex))continue;let T,R;if(E.task.onTaskCollision)if(T=E.task.onTaskCollision(g),T===l.TaskCollisionStrategy.KEEP_OTHER&&E.state!==d.EXECUTING){this._removeTaskAt(S--),v(E,this.createCanceledError());continue}else{if(T===l.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(T===l.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(S--),{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}};if(T===l.TaskCollisionStrategy.RESOLVE_THIS)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1}}if(g.onTaskCollision){if(R=g.onTaskCollision(E.task),R===l.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(R===l.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(S--),v(E,this.createCanceledError());continue}else{if(R===l.TaskCollisionStrategy.RESOLVE_OTHER)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1};if(R===l.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(S--),{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}}}}if(!(T===l.TaskCollisionStrategy.KEEP_BOTH&&R===l.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b}]}}}};return da.default=h,da}var Cv;function HT(){return Cv||(Cv=1,(function(i){var n=Vr&&Vr.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.mutexEquality=i.mutexBitwiseAnd=i.SchedulerError=i.TaskCollisionStrategy=i.Scheduler=void 0;const l=n(VT());i.Scheduler=l.default;const u=Gg();Object.defineProperty(i,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});const s=n(Ig());i.SchedulerError=s.default;const f=Yg();Object.defineProperty(i,"mutexBitwiseAnd",{enumerable:!0,get:function(){return f.mutexBitwiseAnd}}),Object.defineProperty(i,"mutexEquality",{enumerable:!0,get:function(){return f.mutexEquality}})})(Vr)),Vr}var BT=HT(),Va=function(i){return this instanceof Va?(this.v=i,this):new Va(i)},GT=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Va?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};function Hn(i,n,l,u){return GT(this,arguments,function*(){const f=l?.perPage||i.defaultLimit;if(f>i.maxLimit)throw new Error(`perPage option cannot exceed maximum value of ${i.maxLimit}`);const d=l?.concurrency||1;if(d>10)throw new Error("concurrency option cannot exceed maximum value of 10");const v=yield Va(n({limit:f,offset:0}));for(const y of v.data)yield yield Va(y);const h=v.meta.total_count,m=new BT.Scheduler(d),g=[];for(let y=f;y<h;y+=f)g.push(m.enqueue(()=>n({limit:f,offset:y})));for(;g.length>0;){const y=yield Va(g.shift());for(const b of y.data)yield yield Va(u?Gr(b):b)}})}function Bn(i){i&&"page"in i&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}const $g="__ARRAY_INDEX__";function IT(i){return i.reduce((n,l,u)=>u===0?l:l===$g?`${n}[]`:`${n}[${l}]`,"")}function YT(i){if(typeof i=="number"||typeof i=="string")return i.toString();if(i===!0)return"true";if(i===!1)return"false";throw`Don't know how to serialize param value ${JSON.stringify(i)}`}function lf(i,n=[]){const l=[];if(typeof i=="number"||typeof i=="string"||typeof i=="boolean")l.push([IT(n),YT(i)]);else if(typeof i=="object"){if(Array.isArray(i))for(const u of i)for(const s of lf(u,[...n,$g]))l.push(s);else if(i)for(const[u,s]of Object.entries(i))for(const f of lf(s,[...n,u]))l.push(f)}return l}var $T=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};const PT=typeof window<"u"&&typeof window.document<"u",FT=5;var Kt;(function(i){i[i.NONE=0]="NONE",i[i.BASIC=1]="BASIC",i[i.BODY=2]="BODY",i[i.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(Kt||(Kt={}));function kT(i){const n={};return i.forEach((l,u)=>{n[u]=l}),n}function Av(i,n,l,u,s,f,d){return{request:{url:n,method:i,headers:l,body:u},response:{status:s.status,statusText:s.statusText,headers:kT(s.headers),body:f},preCallStack:d}}function XT(i,n,l,u,s){return{request:{url:n,method:i,headers:l,body:u},preCallStack:s}}function QT(i,n,l,u,s,f,d){return{request:{url:n,method:i,headers:l,body:u},response:{status:s,statusText:"N/A",headers:{},body:f},preCallStack:d}}function ZT(i){return typeof i=="object"&&!!i&&"code"in i}function KT(i){return Object.fromEntries(Object.entries(i).map(([n,l])=>[n.toLowerCase(),l]))}let zv=1;function JT(i){const n=i||(typeof fetch>"u"?void 0:fetch)||(typeof globalThis>"u"?void 0:globalThis.fetch);if(typeof n>"u")throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");return n}function Uu(i){var n;return $T(this,void 0,void 0,function*(){const l=zv;zv+=1;const u=JT(i.fetchFn),s=i.preCallStack,f=i.userAgent||"@datocms/rest-client-utils",d=i.retryCount||1,v=i.logLevel||Kt.NONE,h="autoRetry"in i?i.autoRetry:!0,m=i.logFn||(()=>!0),g=Object.assign({"content-type":"application/json",accept:"application/json",authorization:`Bearer ${i.apiToken}`,"user-agent":f},i.extraHeaders?KT(i.extraHeaders):{});PT&&delete g["user-agent"];const y=i.baseUrl.replace(/\/$/,""),b=i.body?JSON.stringify(i.body,null,2):void 0,S=i.queryParams&&Object.keys(i.queryParams).length>0?`?${new URLSearchParams(lf(i.queryParams)).toString()}`:"",E=`${y}${i.url}${S}`;if(v>=Kt.BASIC){if(m(`[${l}] ${i.method} ${E}`),v>=Kt.BODY_AND_HEADERS)for(const[T,R]of Object.entries(g||{}))m(`[${l}] ${T}: ${R}`);v>=Kt.BODY&&b&&m(`[${l}] ${b}`)}try{const T=Fr(u(E,{method:i.method,headers:g,body:b})),R=setTimeout(()=>{T.cancel()},i.requestTimeout||3e4),L=yield T;clearTimeout(R);const X=L.headers.get("Content-Type"),$=X&&!X.includes("application/json");if(L.status===429||$){if(!h||$&&i.method!=="GET")throw new Ha(Av(i.method,E,g,i.body,L,void 0,s));const U=L.headers.has("X-RateLimit-Reset")?Number.parseInt(L.headers.get("X-RateLimit-Reset"),10):d;return v>=Kt.BASIC&&(L.status===429?m(`[${l}] Rate limit exceeded, wait ${U} seconds then retry...`):m(`[${l}] Invalid response content type "${X}" (status ${L.status}). Wait ${U} seconds then retry...`)),yield qu(U*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}))}if(v>=Kt.BASIC&&(m(`[${l}] Status: ${L.status} (${L.statusText})`),v>=Kt.BODY_AND_HEADERS))for(const U of["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"]){const W=L.headers.get(U);W&&m(`[${l}] ${U}: ${W}`)}let Z=L.status===204?void 0:yield L.json();if(v>=Kt.BODY&&Z&&m(`[${l}] ${JSON.stringify(Z,null,2)}`),L.status===202){const U=yield i.fetchJobResult(Z.data.id);if(U.status<200||U.status>=300)throw new Ha(QT(i.method,E,g,i.body,U.status,U.payload,s));Z=U.payload}if(L.status>=200&&L.status<300)return Z;const M=new Ha(Av(i.method,E,g,i.body,L,Z,s)),G=(n=M.errors.find(U=>U.attributes.transient))===null||n===void 0?void 0:n.attributes.code;if(h&&G)return v>=Kt.BASIC&&m(`[${l}] ${G}, wait ${d} seconds then retry...`),yield qu(d*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}));throw M}catch(T){if(T instanceof Pr||ZT(T)&&T.code.includes("ETIMEDOUT")){if(h&&d<FT)return v>=Kt.BASIC&&m(`[${l}] Timeout error, wait ${d} seconds then retry...`),yield qu(d*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}));throw new LT(XT(i.method,E,g,i.body,s))}throw T}})}var Pg=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function Vu(i){return typeof i=="object"&&!!i&&"id"in i&&"type"in i}function Nc(i){return Array.isArray(i)&&i.every(Vu)}function ae(i,n){if(typeof i!="object"||!i)throw new Error("Invalid body!");if(Array.isArray(i))return{data:i.map(m=>{var g;return(g=ae(m,n))===null||g===void 0?void 0:g.data})};const l=i,{id:u,type:s,meta:f}=l,d=Pg(l,["id","type","meta"]),v={},h={};if(n.attributes==="*")for(const[m,g]of Object.entries(d))if(n.relationships.includes(m))if(Vu(g)){const{id:y,type:b}=g;h[m]={data:{id:y,type:b}}}else Nc(g)?h[m]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:h[m]={data:null};else v[m]=g;else if(n.relationships==="*")for(const[m,g]of Object.entries(d))if(n.attributes.includes(m))v[m]=g;else if(Vu(g)){const{id:y,type:b}=g;h[m]={data:{id:y,type:b}}}else Nc(g)?h[m]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:h[m]={data:null};else{for(const[m,g]of Object.entries(d))if(n.attributes.includes(m))v[m]=g;else if(n.relationships.includes(m))if(Vu(g)){const{id:y,type:b}=g;h[m]={data:{id:y,type:b}}}else Nc(g)?h[m]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:h[m]={data:null};n.attributes.includes("type")&&(v.type=s)}return{data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u||n.id?{id:u||n.id}:{}),{type:n.type}),Object.keys(v).length>0?{attributes:v}:{}),Object.keys(h).length>0?{relationships:h}:{}),f?{meta:f}:{})}}function uf(i){if(Array.isArray(i))return i.map(uf);if(i&&typeof i=="object"){const n={};for(const[l,u]of Object.entries(i))l!=="__itemTypeId"&&(n[l]=uf(u));return n}return i}function Mv(i){if(!i||typeof i!="object")return i;const{__itemTypeId:n}=i,l=Pg(i,["__itemTypeId"]),u={};for(const[s,f]of Object.entries(l))u[s]=uf(f);return u}function Mu(i){return!i||!("data"in i)?i:Array.isArray(i.data)?Object.assign(Object.assign({},i),{data:i.data.map(Mv)}):Object.assign(Object.assign({},i),{data:Mv(i.data)})}function B(i){return typeof i=="string"?i:i.id}class ye{constructor(n){this.client=n}}class Fg extends ye{create(n){return this.rawCreate(ae(n,{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_search_indexes","can_manage_upload_collections","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","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/roles",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),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_search_indexes","can_manage_upload_collections","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","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/roles/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/roles"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/roles/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/roles/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/roles/${n}/duplicate`})}}Fg.TYPE="role";var WT=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};function Dv(i,n){return i==null&&n==null?!0:i===n}function eO(i,n){for(const l in i)if(!Dv(i[l],n[l]))return!1;for(const l in n)if(!Dv(i[l],n[l]))return!1;return!0}function Du(i,n,l,u){if(!n)return i;const{add:s,remove:f}=n;return[...f?f.reduce((d,v)=>{const h=Object.assign(Object.assign({},v),{environment:l}),m=d.find(g=>eO(g,h));if(!m)throw new Error(`Cannot find rule ${JSON.stringify(h)} to remove in ${u}!`);return d.filter(g=>g!==m)},i):i,...s?s.map(d=>Object.assign({environment:l},d)):[]]}class tO extends Fg{updateCurrentEnvironmentPermissions(n,l){return WT(this,void 0,void 0,function*(){const u=this.client.config.environment||(yield this.client.environments.list()).find(h=>h.meta.primary).id,s=yield this.find(n),f=!!(l.positive_item_type_permissions||l.negative_item_type_permissions),d=!!(l.positive_upload_permissions||l.negative_upload_permissions),v=Object.assign(Object.assign({},f?{positive_item_type_permissions:Du(s.positive_item_type_permissions,l.positive_item_type_permissions,u,"positive_item_type_permissions"),negative_item_type_permissions:Du(s.negative_item_type_permissions,l.negative_item_type_permissions,u,"negative_item_type_permissions")}:{}),d?{positive_upload_permissions:Du(s.positive_upload_permissions,l.positive_upload_permissions,u,"positive_upload_permissions"),negative_upload_permissions:Du(s.negative_upload_permissions,l.negative_upload_permissions,u,"negative_upload_permissions")}:{});return this.update(n,v)})}}class kg extends ye{update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/users/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/users"})}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/users/${n}`,queryParams:l})}findMe(n){return this.rawFindMe(n).then(l=>A(l))}rawFindMe(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/users/${n}`,queryParams:l})}}kg.TYPE="user";class Xg extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-users"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/sso-users/${n}`})}copyUsers(){return this.rawCopyUsers().then(n=>A(n))}rawCopyUsers(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/sso-users/${n}`,queryParams:l})}}Xg.TYPE="sso_user";class Qg extends ye{query(n){return this.rawQuery(ae(n,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(l=>A(l))}rawQuery(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})}}Qg.TYPE="audit_log_event";class Zg extends ye{create(n){return this.rawCreate(ae(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/menu-items",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/menu-items/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/menu-items/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/menu-items/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})}}Zg.TYPE="menu_item";class Kg extends ye{create(n){return this.rawCreate(ae(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/schema-menu-items/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/schema-menu-items/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/schema-menu-items/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})}}Kg.TYPE="schema_menu_item";class Jg extends ye{create(n){return this.rawCreate(ae(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/upload-collections/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/upload-collections/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-collections/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})}}Jg.TYPE="upload_collection";class Wg extends ye{create(n,l){return this.rawCreate(ae(n,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]}),l).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/item-types/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-types"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/item-types/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/item-types/${n}/duplicate`})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/item-types/${n}`,queryParams:l})}referencing(n){return this.rawReferencing(B(n)).then(l=>A(l))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/referencing`})}rawReorderFieldsAndFieldsets(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/reorder-fields-and-fieldsets`,body:l})}}Wg.TYPE="item_type";class ey extends ye{create(n,l){return this.rawCreate(B(n),ae(l,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/fields`,body:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/fields/${n}`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields`})}referencing(n){return this.rawReferencing(B(n)).then(l=>A(l))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/referencing`})}related(n){return this.rawRelated(B(n)).then(l=>A(l))}rawRelated(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/related`})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/fields/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fields/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/fields/${n}/duplicate`})}}ey.TYPE="field";class ty extends ye{create(n,l){return this.rawCreate(B(n),ae(l,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/fieldsets`,body:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/fieldsets/${n}`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fieldsets`})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/fieldsets/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fieldsets/${n}`})}}ty.TYPE="fieldset";class ny extends ye{create(n){return this.rawCreate(ae(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/sessions",body:n})}}ny.TYPE="session";class ay extends ye{create(n){return this.rawCreate(ae(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/access_tokens/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/access_tokens"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/access_tokens/${n}`})}regenerateToken(n){return this.rawRegenerateToken(B(n)).then(l=>A(l))}rawRegenerateToken(n){return this.client.request({method:"POST",url:`/access_tokens/${n}/regenerate_token`})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/access_tokens/${n}`,queryParams:l})}}ay.TYPE="access_token";class iy extends ye{create(n){return this.rawCreate(ae(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/plugins",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/plugins/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/plugins"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/plugins/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/plugins/${n}`})}fields(n){return this.rawFields(B(n)).then(l=>A(l))}rawFields(n){return this.client.request({method:"GET",url:`/plugins/${n}/fields`})}}iy.TYPE="plugin";class ry extends ye{find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/job-results/${n}`})}}ry.TYPE="job_result";class ly extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-limits"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/subscription-limits/${n}`})}}ly.TYPE="subscription_limit";class uy extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-features"})}}uy.TYPE="subscription_feature";var nO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},zi=function(i){return this instanceof zi?(this.v=i,this):new zi(i)},aO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof zi?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class sy extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/build-events",queryParams:n})}listPagedIterator(n,l){return aO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=nO(this.rawListPagedIterator(n,l)),g;g=yield zi(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield zi(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield zi(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/build-events/${n}`})}}sy.TYPE="build_event";var iO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Mi=function(i){return this instanceof Mi?(this.v=i,this):new Mi(i)},rO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Mi?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class oy extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/search-index-events",queryParams:n})}listPagedIterator(n,l){return rO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=iO(this.rawListPagedIterator(n,l)),g;g=yield Mi(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Mi(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Mi(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/search-index-events/${n}`})}}oy.TYPE="search_index_event";var lO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Di=function(i){return this instanceof Di?(this.v=i,this):new Di(i)},uO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Di?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class cy extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/items",queryParams:n}).then(Jt)}listPagedIterator(n,l){return uO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=lO(this.rawListPagedIterator(n,l)),g;g=yield Di(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Di(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Di(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l,!0)}validateExisting(n,l){return this.rawValidateExisting(B(n),ae(l,{id:B(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateExisting(n,l){return this.client.request({method:"POST",url:`/items/${n}/validate`,body:Mu(l)})}validateNew(n){return this.rawValidateNew(ae(n,{type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateNew(n){return this.client.request({method:"POST",url:"/items/validate",body:Mu(n)})}create(n){return this.rawCreate(ae(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/items",body:Mu(n)}).then(Jt)}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/items/${n}/duplicate`}).then(Jt)}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/items/${n}`,body:Mu(l)}).then(Jt)}references(n,l){return this.rawReferences(B(n),l).then(u=>A(u))}rawReferences(n,l){return this.client.request({method:"GET",url:`/items/${n}/references`,queryParams:l}).then(Jt)}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/items/${n}`,queryParams:l}).then(Jt)}currentVsPublishedState(n){return this.rawCurrentVsPublishedState(B(n)).then(l=>A(l))}rawCurrentVsPublishedState(n){return this.client.request({method:"GET",url:`/items/${n}/current-vs-published-state`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}`}).then(Jt)}publish(n,l,u){return this.rawPublish(B(n),l?ae(l,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,u).then(s=>A(s))}rawPublish(n,l,u){return this.client.request({method:"PUT",url:`/items/${n}/publish`,body:l,queryParams:u}).then(Jt)}unpublish(n,l,u){return this.rawUnpublish(B(n),l?ae(l,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,u).then(s=>A(s))}rawUnpublish(n,l,u){return this.client.request({method:"PUT",url:`/items/${n}/unpublish`,body:l,queryParams:u}).then(Jt)}bulkPublish(n){return this.rawBulkPublish(ae(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkPublish(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})}bulkUnpublish(n){return this.rawBulkUnpublish(ae(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkUnpublish(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ae(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})}bulkMoveToStage(n){return this.rawBulkMoveToStage(ae(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(l=>A(l))}rawBulkMoveToStage(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})}}cy.TYPE="item";var sO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Ri=function(i){return this instanceof Ri?(this.v=i,this):new Ri(i)},oO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ri?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class fy extends ye{restore(n){return this.rawRestore(B(n)).then(l=>A(l))}rawRestore(n){return this.client.request({method:"POST",url:`/versions/${n}/restore`})}list(n,l){return this.rawList(B(n),l).then(u=>A(u))}rawList(n,l){return this.client.request({method:"GET",url:`/items/${n}/versions`,queryParams:l})}listPagedIterator(n,l,u){return oO(this,arguments,function*(){var f,d,v,h;try{for(var m=!0,g=sO(this.rawListPagedIterator(B(n),l,u)),y;y=yield Ri(g.next()),f=y.done,!f;){h=y.value,m=!1;try{yield yield Ri(an(h))}finally{m=!0}}}catch(b){d={error:b}}finally{try{!m&&!f&&(v=g.return)&&(yield Ri(v.call(g)))}finally{if(d)throw d.error}}})}rawListPagedIterator(n,l,u){return Bn(l),Hn({defaultLimit:15,maxLimit:50},s=>this.rawList(n,Object.assign(Object.assign({},l),{page:s})),u)}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/versions/${n}`,queryParams:l})}}fy.TYPE="item_version";var cO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},ji=function(i){return this instanceof ji?(this.v=i,this):new ji(i)},fO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof ji?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};let Sf=class extends ye{create(n){return this.rawCreate(ae(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/uploads",body:n})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})}listPagedIterator(n,l){return fO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=cO(this.rawListPagedIterator(n,l)),g;g=yield ji(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield ji(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield ji(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/uploads/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/uploads/${n}`})}update(n,l,u){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]}),u).then(s=>A(s))}rawUpdate(n,l,u){return this.client.request({method:"PUT",url:`/uploads/${n}`,body:l,queryParams:u})}references(n,l){return this.rawReferences(B(n),l).then(u=>A(u))}rawReferences(n,l){return this.client.request({method:"GET",url:`/uploads/${n}/references`,queryParams:l}).then(Jt)}bulkTag(n){return this.rawBulkTag(ae(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(l=>A(l))}rawBulkTag(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})}bulkSetUploadCollection(n){return this.rawBulkSetUploadCollection(ae(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(l=>A(l))}rawBulkSetUploadCollection(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ae(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(l=>A(l))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})}};Sf.TYPE="upload";class dy extends ye{create(n){return this.rawCreate(ae(n,{type:"upload_request",attributes:["filename"],relationships:["upload_collection"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})}}dy.TYPE="upload_request";class hy extends ye{create(n,l){return this.rawCreate(B(n),ae(l,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/uploads/${n}/tracks`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/uploads/${n}/tracks`})}destroy(n,l){return this.rawDestroy(B(n),B(l)).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/uploads/${n}/tracks/${l}`})}generateSubtitles(n,l){return this.rawGenerateSubtitles(B(n),ae(l,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(u=>A(u))}rawGenerateSubtitles(n,l){return this.client.request({method:"POST",url:`/uploads/${n}/tracks/generate-subtitles`,body:l})}}hy.TYPE="upload_track";class my extends ye{create(n,l){return this.rawCreate(B(n),ae(l,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/items/${n}/scheduled-publication`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-publication`}).then(Jt)}}my.TYPE="scheduled_publication";class py extends ye{create(n,l){return this.rawCreate(B(n),ae(l,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/items/${n}/scheduled-unpublishing`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-unpublishing`}).then(Jt)}}py.TYPE="scheduled_unpublishing";var dO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Li=function(i){return this instanceof Li?(this.v=i,this):new Li(i)},hO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Li?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class vy extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})}listPagedIterator(n,l){return hO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=dO(this.rawListPagedIterator(n,l)),g;g=yield Li(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Li(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Li(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:20,maxLimit:100},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}}vy.TYPE="search_result";class gy extends ye{fork(n,l,u){return this.rawFork(B(n),ae(l,{id:B(n),type:"environment",attributes:[],relationships:[]}),u).then(s=>A(s))}rawFork(n,l,u){return this.client.request({method:"POST",url:`/environments/${n}/fork`,body:l,queryParams:u})}promote(n){return this.rawPromote(B(n)).then(l=>A(l))}rawPromote(n){return this.client.request({method:"PUT",url:`/environments/${n}/promote`})}rename(n,l){return this.rawRename(B(n),ae(l,{id:B(n),type:"environment",attributes:[],relationships:[]})).then(u=>A(u))}rawRename(n,l){return this.client.request({method:"PUT",url:`/environments/${n}/rename`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/environments"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/environments/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/environments/${n}`})}}gy.TYPE="environment";class yy extends ye{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/maintenance-mode"})}activate(n){return this.rawActivate(n).then(l=>A(l))}rawActivate(n){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:n})}deactivate(){return this.rawDeactivate().then(n=>A(n))}rawDeactivate(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})}}yy.TYPE="maintenance_mode";class by extends ye{create(n){return this.rawCreate(ae(n,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/webhooks",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/webhooks/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/webhooks"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/webhooks/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/webhooks/${n}`})}}by.TYPE="webhook";var mO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Ni=function(i){return this instanceof Ni?(this.v=i,this):new Ni(i)},pO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ni?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class _y extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})}listPagedIterator(n,l){return pO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=mO(this.rawListPagedIterator(n,l)),g;g=yield Ni(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Ni(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Ni(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/webhook_calls/${n}`})}resendWebhook(n){return this.rawResendWebhook(B(n))}rawResendWebhook(n){return this.client.request({method:"POST",url:`/webhook_calls/${n}/resend_webhook`})}}_y.TYPE="webhook_call";class Sy extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/build-triggers"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/build-triggers/${n}`})}create(n){return this.rawCreate(ae(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"build_trigger",attributes:["name","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/build-triggers/${n}`,body:l})}trigger(n){return this.rawTrigger(B(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/build-triggers/${n}/trigger`})}abort(n){return this.rawAbort(B(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort`})}abortIndexing(n){return this.rawAbortIndexing(B(n))}rawAbortIndexing(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort_indexing`})}reindex(n){return this.rawReindex(B(n))}rawReindex(n){return this.client.request({method:"PUT",url:`/build-triggers/${n}/reindex`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}`})}}Sy.TYPE="build_trigger";class Ey extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/search-indexes"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/search-indexes/${n}`})}create(n){return this.rawCreate(ae(n,{type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/search-indexes",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/search-indexes/${n}`,body:l})}trigger(n){return this.rawTrigger(B(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/search-indexes/${n}/trigger`})}abort(n){return this.rawAbort(B(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}/abort`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}`})}}Ey.TYPE="search_index";class wy extends ye{create(n){return this.rawCreate(ae(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/item-type-filters/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-type-filters"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/item-type-filters/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/item-type-filters/${n}`})}}wy.TYPE="item_type_filter";class Ty extends ye{create(n){return this.rawCreate(ae(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/upload-filters/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/upload-filters"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/upload-filters/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-filters/${n}`})}}Ty.TYPE="upload_filter";class Oy extends ye{create(n){return this.rawCreate(ae(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/site-invitations/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/site-invitations"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/site-invitations/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/site-invitations/${n}`})}resend(n){return this.rawResend(B(n)).then(l=>A(l))}rawResend(n){return this.client.request({method:"POST",url:`/site-invitations/${n}/resend`})}}Oy.TYPE="site_invitation";class xy extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/editing-sessions"})}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/editing-sessions/${n}`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/editing-sessions/${n}`})}}xy.TYPE="editing_session";class Cy extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-groups"})}copyRoles(n){return this.rawCopyRoles(B(n)).then(l=>A(l))}rawCopyRoles(n){return this.client.request({method:"POST",url:`/sso-groups/${n}/copy-roles`})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/sso-groups/${n}`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/sso-groups/${n}`})}}Cy.TYPE="sso_group";class Ay extends ye{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/sso-settings"})}generateToken(){return this.rawGenerateToken().then(n=>A(n))}rawGenerateToken(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})}update(n){return this.rawUpdate(ae(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})}}Ay.TYPE="sso_settings";class zy extends ye{find(n){return this.rawFind(n).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})}}zy.TYPE="emoji_suggestions";class My extends ye{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/white-label-settings"})}update(n){return this.rawUpdate(ae(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})}}My.TYPE="white_label_settings";class Dy extends ye{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/public-info"})}}Dy.TYPE="public_info";class Ry extends ye{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/daily-site-usages"})}}Ry.TYPE="daily_usage";class jy extends ye{find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/usage-log-counters/${n}`,queryParams:l})}}jy.TYPE="usage_counter";var vO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},qi=function(i){return this instanceof qi?(this.v=i,this):new qi(i)},gO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof qi?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class Ly extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})}listPagedIterator(n,l){return gO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=vO(this.rawListPagedIterator(n,l)),g;g=yield qi(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield qi(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield qi(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}create(n){return this.rawCreate(ae(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})}}Ly.TYPE="upload_tag";var yO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Ui=function(i){return this instanceof Ui?(this.v=i,this):new Ui(i)},bO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,T){f.push([b,S,E,T])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ui?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class Ny extends ye{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})}listPagedIterator(n,l){return bO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=yO(this.rawListPagedIterator(n,l)),g;g=yield Ui(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Ui(an(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Ui(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Bn(n),Hn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}}Ny.TYPE="upload_smart_tag";class qy extends ye{find(n){return this.rawFind(n).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:"/site",queryParams:n})}update(n){return this.rawUpdate(ae(n,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/site",body:n})}activateImprovedTimezoneManagement(){return this.rawActivateImprovedTimezoneManagement().then(n=>A(n))}rawActivateImprovedTimezoneManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})}activateImprovedHexManagement(){return this.rawActivateImprovedHexManagement().then(n=>A(n))}rawActivateImprovedHexManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})}activateImprovedGqlMultilocaleFields(){return this.rawActivateImprovedGqlMultilocaleFields().then(n=>A(n))}rawActivateImprovedGqlMultilocaleFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})}activateImprovedGqlVisibilityControl(){return this.rawActivateImprovedGqlVisibilityControl().then(n=>A(n))}rawActivateImprovedGqlVisibilityControl(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})}activateImprovedBooleanFields(){return this.rawActivateImprovedBooleanFields().then(n=>A(n))}rawActivateImprovedBooleanFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})}activateDraftModeAsDefault(){return this.rawActivateDraftModeAsDefault().then(n=>A(n))}rawActivateDraftModeAsDefault(){return this.client.request({method:"PUT",url:"/site/activate-draft-mode-as-default"})}activateImprovedValidationAtPublishing(){return this.rawActivateImprovedValidationAtPublishing().then(n=>A(n))}rawActivateImprovedValidationAtPublishing(){return this.client.request({method:"PUT",url:"/site/activate-improved-validation-at-publishing"})}activateImprovedExposureOfInlineBlocksInCda(){return this.rawActivateImprovedExposureOfInlineBlocksInCda().then(n=>A(n))}rawActivateImprovedExposureOfInlineBlocksInCda(){return this.client.request({method:"PUT",url:"/site/activate-improved-exposure-of-inline-blocks-in-cda"})}activateImprovedItemsListing(){return this.rawActivateImprovedItemsListing().then(n=>A(n))}rawActivateImprovedItemsListing(){return this.client.request({method:"PUT",url:"/site/activate-improved-items-listing"})}activateMillisecondsInDatetime(){return this.rawActivateMillisecondsInDatetime().then(n=>A(n))}rawActivateMillisecondsInDatetime(){return this.client.request({method:"PUT",url:"/site/activate-milliseconds-in-datetime"})}updateAssetsCdnDefaultSettings(n){return this.rawUpdateAssetsCdnDefaultSettings(ae(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(l=>A(l))}rawUpdateAssetsCdnDefaultSettings(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})}}qy.TYPE="site";class Uy extends ye{create(n){return this.rawCreate(ae(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/workflows",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/workflows/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/workflows"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/workflows/${n}`})}destroy(n){return this.rawDestroy(B(n))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/workflows/${n}`})}}Uy.TYPE="workflow";var _O=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};let Vy=class Hy{constructor(n){this.config=n,this.roles=new tO(this),this.users=new kg(this),this.ssoUsers=new Xg(this),this.auditLogEvents=new Qg(this),this.menuItems=new Zg(this),this.schemaMenuItems=new Kg(this),this.uploadCollections=new Jg(this),this.itemTypes=new Wg(this),this.fields=new ey(this),this.fieldsets=new ty(this),this.session=new ny(this),this.accessTokens=new ay(this),this.plugins=new iy(this),this.jobResults=new ry(this),this.subscriptionLimits=new ly(this),this.subscriptionFeatures=new uy(this),this.buildEvents=new sy(this),this.searchIndexEvents=new oy(this),this.items=new cy(this),this.itemVersions=new fy(this),this.uploads=new Sf(this),this.uploadRequest=new dy(this),this.uploadTracks=new hy(this),this.scheduledPublication=new my(this),this.scheduledUnpublishing=new py(this),this.searchResults=new vy(this),this.environments=new gy(this),this.maintenanceMode=new yy(this),this.webhooks=new by(this),this.webhookCalls=new _y(this),this.buildTriggers=new Sy(this),this.searchIndexes=new Ey(this),this.itemTypeFilters=new wy(this),this.uploadFilters=new Ty(this),this.siteInvitations=new Oy(this),this.editingSessions=new xy(this),this.ssoGroups=new Cy(this),this.ssoSettings=new Ay(this),this.emojiSuggestions=new zy(this),this.whiteLabelSettings=new My(this),this.publicInfo=new Dy(this),this.dailyUsages=new Ry(this),this.usageCounters=new jy(this),this.uploadTags=new Ly(this),this.uploadSmartTags=new Ny(this),this.site=new qy(this),this.workflows=new Uy(this)}get baseUrl(){return this.config.baseUrl||Hy.defaultBaseUrl}request(n){return Uu(Object.assign(Object.assign(Object.assign({},this.config),n),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v5.3.0",baseUrl:this.baseUrl,preCallStack:new Error().stack,extraHeaders:Object.assign(Object.assign(Object.assign({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:l=>this.jobResultsFetcher?this.jobResultsFetcher(l):qT(()=>this.jobResults.find(l))}))}eventsChannelName(){return _O(this,void 0,void 0,function*(){if(this.cachedEventsChannelName)return this.cachedEventsChannelName;const{data:n}=yield this.site.rawFind();return this.cachedEventsChannelName=this.config.environment?`private-site-${n.id}-environment-${this.config.environment}`:`private-site-${n.id}`,this.cachedEventsChannelName})}};Vy.defaultBaseUrl="https://site-api.datocms.com";function SO(i,n,{onProgress:l,additionalHeaders:u}={}){const s=new XMLHttpRequest;return Fr(new Promise((f,d)=>{if(l&&s.upload&&(s.upload.onprogress=v=>{v.lengthComputable&&l({type:"UPLOADING_FILE",payload:{progress:Math.round(v.loaded/v.total*100)}})}),s.onreadystatechange=()=>{s.readyState===4&&(s.status===200?f():d(new Error(`Status ${s.status}`)))},s.addEventListener("error",d,!1),s.open("PUT",n,!0),u)for(const[v,h]of Object.entries(u))s.setRequestHeader(v,h);s.send(i)}),()=>{s.onreadystatechange=null,s.abort()})}var EO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};function Rv(i,n,l={}){const u=l.filename||("name"in n?n.name:void 0);if(!u)throw new Error("Missing filename, please provide it as an option!");let s=!1,f;return Fr(()=>EO(this,void 0,void 0,function*(){l.onProgress&&l?.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:u}});const{id:d,url:v,request_headers:h}=yield i.uploadRequest.create({filename:u});if(s)throw new Pr;return l.onProgress&&l.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),f=SO(n,v,Object.assign(Object.assign({},l),{additionalHeaders:h})),yield f,d}),()=>{f?f.cancel():s=!0})}var jv=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})},Lv=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};class wO extends Sf{createFromFileOrBlob(n){let l=!1,u;return Fr(()=>jv(this,void 0,void 0,function*(){if(l)throw new Pr;const{fileOrBlob:s,filename:f,onProgress:d}=n,v=Lv(n,["fileOrBlob","filename","onProgress"]);u=Rv(this.client,s,{filename:f,onProgress:d});const h=yield u;return d&&d({type:"CREATING_UPLOAD_OBJECT"}),this.create(Object.assign(Object.assign({},v),{path:h}))}),()=>{u?u.cancel():l=!0})}updateFromFileOrBlob(n,l){let u=!1,s;return Fr(()=>jv(this,void 0,void 0,function*(){if(u)throw new Pr;const{fileOrBlob:f,filename:d,onProgress:v}=l,h=Lv(l,["fileOrBlob","filename","onProgress"]);s=Rv(this.client,f,{filename:d,onProgress:v});const m=yield s;return v&&v({type:"CREATING_UPLOAD_OBJECT"}),this.update(n,Object.assign(Object.assign({},h),{path:m}))}),()=>{s?s.cancel():u=!0})}}class TO extends Vy{constructor(n){super(n),this.uploads=new wO(this)}}function Nv(i){return new TO(i)}const OO="_assetListCard_jv9xn_23",xO="_assetListHeader_jv9xn_43",CO="_assetListHeaderTitle_jv9xn_52",AO="_categoryBadge_jv9xn_67",zO="_badgeGreen_jv9xn_81",MO="_badgeRed_jv9xn_85",DO="_badgeGray_jv9xn_89",RO="_badgeBlue_jv9xn_93",jO="_noAssetsMessage_jv9xn_97",LO="_assetList_jv9xn_23",NO="_assetListItem_jv9xn_112",qO="_assetItemContent_jv9xn_126",UO="_assetIcon_jv9xn_132",VO="_fileIconWrapper_jv9xn_136",HO="_assetDetails_jv9xn_149",BO="_assetPath_jv9xn_154",GO="_optimizationStats_jv9xn_161",IO="_sizeInfo_jv9xn_169",YO="_sizeBefore_jv9xn_176",$O="_sizeAfter_jv9xn_176",PO="_sizeLabel_jv9xn_182",FO="_sizeValue_jv9xn_187",kO="_sizeArrow_jv9xn_200",XO="_savingsBadge_jv9xn_205",QO="_assetActions_jv9xn_215",ZO="_container_jv9xn_226",KO="_optimizingContainer_jv9xn_290",JO="_statusText_jv9xn_302",WO="_percentageText_jv9xn_308",e2="_progressBar_jv9xn_315",t2="_progressBarFill_jv9xn_326",n2="_logWrapper_jv9xn_359",a2="_logHeader_jv9xn_369",i2="_logsContainer_jv9xn_381",r2="_logs_jv9xn_381",l2="_logEntry_jv9xn_397",u2="_sizeComparison_jv9xn_410",s2="_originalSize_jv9xn_568",o2="_optimizedSize_jv9xn_578",c2="_sizeSavings_jv9xn_583",f2="_settingsContainer_jv9xn_628",d2="_settingsForm_jv9xn_634",h2="_fieldRow_jv9xn_659",m2="_field_jv9xn_659",p2="_formActionContainer_jv9xn_670",v2="_buttonGroup_jv9xn_674",g2="_resultsContainer_jv9xn_724",y2="_optimizationSummaryTitle_jv9xn_733",b2="_statsCardGrid_jv9xn_741",_2="_statsCard_jv9xn_741",S2="_clickableStatsCard_jv9xn_758",E2="_statsCardTitle_jv9xn_798",w2="_statsCardValue_jv9xn_806",T2="_optimizedValue_jv9xn_812",O2="_skippedValue_jv9xn_816",x2="_failedValue_jv9xn_820",C2="_statsCardLabel_jv9xn_824",A2="_savingsSummary_jv9xn_829",z2="_savingsCard_jv9xn_833",M2="_savingsRow_jv9xn_840",D2="_savingsLabel_jv9xn_852",R2="_savingsValue_jv9xn_857",j2="_actionsContainer_jv9xn_863",L2="_infoText_jv9xn_872",N2="_hintWithDoc_jv9xn_888",q2="_plainHint_jv9xn_902",U2="_docLinkIcon_jv9xn_915",V2="_currentAssetPreview_jv9xn_979",H2="_assetPreviewImage_jv9xn_990",B2="_assetPreviewInfo_jv9xn_1007",G2="_assetPreviewTitle_jv9xn_1012",I2="_assetPreviewMeta_jv9xn_1022",Y2="_advancedOptionsGroup_jv9xn_1031",$2="_optionsGrid_jv9xn_1041",P2="_optionItem_jv9xn_1048",F2="_paramTooltip_jv9xn_1055",k2="_tooltipText_jv9xn_1060",X2="_buttonTooltip_jv9xn_1098",Q2="_previewInfoBox_jv9xn_1141",Y={assetListCard:OO,assetListHeader:xO,assetListHeaderTitle:CO,categoryBadge:AO,badgeGreen:zO,badgeRed:MO,badgeGray:DO,badgeBlue:RO,noAssetsMessage:jO,assetList:LO,assetListItem:NO,assetItemContent:qO,assetIcon:UO,fileIconWrapper:VO,assetDetails:HO,assetPath:BO,optimizationStats:GO,sizeInfo:IO,sizeBefore:YO,sizeAfter:$O,sizeLabel:PO,sizeValue:FO,sizeArrow:kO,savingsBadge:XO,assetActions:QO,container:ZO,optimizingContainer:KO,statusText:JO,percentageText:WO,progressBar:e2,progressBarFill:t2,logWrapper:n2,logHeader:a2,logsContainer:i2,logs:r2,logEntry:l2,sizeComparison:u2,originalSize:s2,optimizedSize:o2,sizeSavings:c2,settingsContainer:f2,settingsForm:d2,fieldRow:h2,field:m2,formActionContainer:p2,buttonGroup:v2,resultsContainer:g2,optimizationSummaryTitle:y2,statsCardGrid:b2,statsCard:_2,clickableStatsCard:S2,statsCardTitle:E2,statsCardValue:w2,optimizedValue:T2,skippedValue:O2,failedValue:x2,statsCardLabel:C2,savingsSummary:A2,savingsCard:z2,savingsRow:M2,savingsLabel:D2,savingsValue:R2,actionsContainer:j2,infoText:L2,hintWithDoc:N2,plainHint:q2,docLinkIcon:U2,currentAssetPreview:V2,assetPreviewImage:H2,assetPreviewInfo:B2,assetPreviewTitle:G2,assetPreviewMeta:I2,advancedOptionsGroup:Y2,optionsGrid:$2,optionItem:P2,paramTooltip:F2,tooltipText:k2,buttonTooltip:X2,previewInfoBox:Q2},By={largeAssetThreshold:3,veryLargeAssetThreshold:8,qualityLarge:85,qualityVeryLarge:80,resizeDimensionLarge:2400,resizeDimensionVeryLarge:2e3,minimumReduction:10,targetFormat:"avif",preserveOriginalFormat:!1,resizeLargeImages:!0,useAutoCompress:!0,useDpr:!0,useLossless:!1,useChromaSubsampling:!1,preserveColorProfile:!0};function Z2(i,n){if(!i.is_image)return null;const l=n.largeAssetThreshold*1024*1024,u=n.veryLargeAssetThreshold*1024*1024,s=i.size>=l,f=i.size>=u;let d="?";if(n.useAutoCompress&&(d+="auto=compress"),f)d+=d.length>1?"&":"",d+=`q=${n.qualityVeryLarge}`;else if(s)d+=d.length>1?"&":"",d+=`q=${n.qualityLarge}`;else return null;if(n.resizeLargeImages&&i.width&&i.height){const v=Math.max(i.width,i.height),h=f?n.resizeDimensionVeryLarge:s?n.resizeDimensionLarge:null;h&&v>h&&(i.width>=i.height?(d+=d.length>1?"&":"",d+=`max-w=${h}`):(d+=d.length>1?"&":"",d+=`h=${h}`))}return n.targetFormat&&!n.preserveOriginalFormat&&(d+=d.length>1?"&":"",d+=`fm=${n.targetFormat}`),f&&n.useDpr&&(d+=d.length>1?"&":"",d+="dpr=2"),n.useLossless&&(d+=d.length>1?"&":"",d+="lossless=1"),n.useChromaSubsampling&&(d+=d.length>1?"&":"",d+="chromasub=444"),n.preserveColorProfile&&(d+=d.length>1?"&":"",d+="cs=origin"),d}var qc,qv;function K2(){if(qv)return qc;qv=1;var i="Expected a function",n=NaN,l="[object Symbol]",u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,v=parseInt,h=typeof hu=="object"&&hu&&hu.Object===Object&&hu,m=typeof self=="object"&&self&&self.Object===Object&&self,g=h||m||Function("return this")(),y=Object.prototype,b=y.toString,S=Math.max,E=Math.min,T=function(){return g.Date.now()};function R(M,G,U){var W,fe,De,Ee,ee,ne,de=0,ve=!1,D=!1,Q=!0;if(typeof M!="function")throw new TypeError(i);G=Z(G)||0,L(U)&&(ve=!!U.leading,D="maxWait"in U,De=D?S(Z(U.maxWait)||0,G):De,Q="trailing"in U?!!U.trailing:Q);function J(re){var xe=W,Se=fe;return W=fe=void 0,de=re,Ee=M.apply(Se,xe),Ee}function ge(re){return de=re,ee=setTimeout(H,G),ve?J(re):Ee}function be(re){var xe=re-ne,Se=re-de,Vt=G-xe;return D?E(Vt,De-Se):Vt}function x(re){var xe=re-ne,Se=re-de;return ne===void 0||xe>=G||xe<0||D&&Se>=De}function H(){var re=T();if(x(re))return K(re);ee=setTimeout(H,be(re))}function K(re){return ee=void 0,Q&&W?J(re):(W=fe=void 0,Ee)}function te(){ee!==void 0&&clearTimeout(ee),de=0,W=ne=fe=ee=void 0}function ue(){return ee===void 0?Ee:K(T())}function se(){var re=T(),xe=x(re);if(W=arguments,fe=this,ne=re,xe){if(ee===void 0)return ge(ne);if(D)return ee=setTimeout(H,G),J(ne)}return ee===void 0&&(ee=setTimeout(H,G)),Ee}return se.cancel=te,se.flush=ue,se}function L(M){var G=typeof M;return!!M&&(G=="object"||G=="function")}function X(M){return!!M&&typeof M=="object"}function $(M){return typeof M=="symbol"||X(M)&&b.call(M)==l}function Z(M){if(typeof M=="number")return M;if($(M))return n;if(L(M)){var G=typeof M.valueOf=="function"?M.valueOf():M;M=L(G)?G+"":G}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var U=f.test(M);return U||d.test(M)?v(M.slice(2),U?2:8):s.test(M)?n:+M}return qc=R,qc}var J2=K2();const W2=Qu(J2),Qt=({children:i,paramName:n,paramValue:l})=>{const s=l==null?`${n}`:typeof l=="boolean"?l?`${n}=1`:"":`${n}=${l}`;return s?O.jsxs("div",{className:Y.paramTooltip,children:[i,O.jsx("span",{className:Y.tooltipText,children:s})]}):O.jsx(O.Fragment,{children:i})},ex=({children:i,tooltip:n})=>n?O.jsxs("div",{className:Y.buttonTooltip,children:[i,O.jsx("span",{className:Y.tooltipText,children:n})]}):O.jsx(O.Fragment,{children:i}),jn=({hint:i,url:n})=>{const l=`Learn more about ${i}`,u=()=>{window.open(n,"_blank","noopener,noreferrer")};return O.jsxs("button",{className:Y.hintWithDoc,onClick:u,type:"button","aria-label":l,children:[O.jsx("span",{children:i}),O.jsx("span",{className:Y.docLinkIcon,children:"ℹ"})]})},Ci=({hint:i})=>O.jsx("div",{className:Y.plainHint,children:O.jsx("span",{children:i})}),Ln={format:"https://docs.imgix.com/apis/rendering/format/fm",auto:"https://docs.imgix.com/apis/rendering/automatic",resize:"https://docs.imgix.com/apis/rendering/size/w",quality:"https://docs.imgix.com/apis/rendering/format/q",dpr:"https://docs.imgix.com/apis/rendering/pixel-density/dpr",lossless:"https://docs.imgix.com/apis/rendering/format/lossless",chroma:"https://docs.imgix.com/apis/rendering/format/chroma-subsampling",colorSpace:"https://docs.imgix.com/apis/rendering/format/color-space"},tx=({settings:i,onSettingsChange:n,onStartOptimization:l,onPreviewOptimization:u,ctx:s})=>{const f=k.useRef(null);k.useEffect(()=>(f.current=W2(async y=>{try{await s.updatePluginParameters({optimization_settings:JSON.stringify(y)}),console.log("Settings saved to plugin parameters:",y)}catch(b){console.error("Error saving settings:",b)}},500),()=>{f.current&&f.current.cancel()}),[s]),k.useEffect(()=>{f.current&&f.current(i)},[i]);const d=y=>b=>{const S=Number.parseFloat(b);if(!Number.isNaN(S)){let E=S;(y==="qualityLarge"||y==="qualityVeryLarge")&&(E=Math.min(Math.max(0,S),100)),y==="minimumReduction"&&(E=Math.min(Math.max(0,S),100)),(y==="largeAssetThreshold"||y==="veryLargeAssetThreshold")&&(E=Math.max(.1,S)),(y==="resizeDimensionLarge"||y==="resizeDimensionVeryLarge")&&(E=Math.max(1,S)),n({...i,[y]:E})}},v=y=>b=>{n({...i,[y]:b})},h=y=>(b,S)=>{b&&typeof b=="object"&&!Array.isArray(b)&&"value"in b&&n({...i,[y]:b.value})},m=[{label:"WebP",value:"webp"},{label:"AVIF",value:"avif"}],g=m.find(y=>y.value===i.targetFormat)||m[0];return O.jsxs(cS,{className:Y.settingsForm,children:[O.jsxs(Lr,{children:[O.jsx("h4",{children:"Size Thresholds"}),O.jsxs("div",{className:Y.fieldRow,children:[O.jsxs("div",{className:Y.field,children:[O.jsx(qa,{id:"largeAssetThreshold",name:"largeAssetThreshold",label:"Large Asset (MB)",value:i.largeAssetThreshold.toString(),onChange:d("largeAssetThreshold")}),O.jsx(Ci,{hint:`Assets above ${i.largeAssetThreshold}MB will be optimized`})]}),O.jsxs("div",{className:Y.field,children:[O.jsx(qa,{id:"veryLargeAssetThreshold",name:"veryLargeAssetThreshold",label:"Very Large Asset (MB)",value:i.veryLargeAssetThreshold.toString(),onChange:d("veryLargeAssetThreshold")}),O.jsx(Ci,{hint:`Assets above ${i.veryLargeAssetThreshold}MB get stronger optimization`})]})]}),O.jsxs("div",{className:Y.field,children:[O.jsx(qa,{id:"minimumReduction",name:"minimumReduction",label:"Minimum Size Reduction (%)",value:i.minimumReduction.toString(),onChange:d("minimumReduction")}),O.jsx(Ci,{hint:"Only replace if reduced by at least this percentage"})]})]}),O.jsxs(Lr,{children:[O.jsx("h4",{children:"Basic Optimization"}),O.jsxs("div",{className:Y.fieldRow,children:[O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"fm",paramValue:i.preserveOriginalFormat?void 0:i.targetFormat,children:O.jsx(Na,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:i.preserveOriginalFormat,onChange:v("preserveOriginalFormat")})}),O.jsx(jn,{hint:"Keep original image format (JPG, PNG, etc.)",url:Ln.format})]}),O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"auto",paramValue:"compress",children:O.jsx(Na,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:i.useAutoCompress,onChange:v("useAutoCompress")})}),O.jsx(jn,{hint:"Use Imgix's auto compression features",url:Ln.auto})]})]}),!i.preserveOriginalFormat&&O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"fm",paramValue:i.targetFormat,children:O.jsx(vS,{id:"targetFormat",name:"targetFormat",label:"Target Format",value:g,onChange:h("targetFormat"),selectInputProps:{options:m}})}),O.jsx(Ci,{hint:"Format to convert images to"})]}),O.jsxs("p",{className:Y.infoText,children:[O.jsx("strong",{children:"Format Settings:"})," ",i.preserveOriginalFormat?"Original image formats will be preserved while optimizing quality and file size.":`Images will be converted to ${i.targetFormat.toUpperCase()} format for better compression.`,i.useAutoCompress&&O.jsx("span",{children:" Auto compression is enabled, letting Imgix automatically optimize each image."})]}),O.jsx("div",{className:Y.fieldRow,children:O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"max-w",paramValue:i.resizeLargeImages?"value":void 0,children:O.jsx(Na,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:i.resizeLargeImages,onChange:v("resizeLargeImages")})}),O.jsx(jn,{hint:"Reduce image dimensions to save space",url:Ln.resize})]})})]}),i.resizeLargeImages&&O.jsxs(Lr,{children:[O.jsx("h4",{children:"Resize Dimensions"}),O.jsxs("div",{className:Y.fieldRow,children:[O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"max-w",paramValue:i.resizeDimensionLarge,children:O.jsx(qa,{id:"resizeDimensionLarge",name:"resizeDimensionLarge",label:"Large Image Max Width (px)",value:i.resizeDimensionLarge.toString(),onChange:d("resizeDimensionLarge")})}),O.jsx(Ci,{hint:"Max dimension for large images"})]}),O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"max-w",paramValue:i.resizeDimensionVeryLarge,children:O.jsx(qa,{id:"resizeDimensionVeryLarge",name:"resizeDimensionVeryLarge",label:"Very Large Image Max Width (px)",value:i.resizeDimensionVeryLarge.toString(),onChange:d("resizeDimensionVeryLarge")})}),O.jsx(Ci,{hint:"Max dimension for very large images"})]})]})]}),O.jsxs(Lr,{children:[O.jsx("h4",{children:"Compression Settings"}),!i.useLossless&&O.jsxs("div",{className:Y.fieldRow,children:[O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"q",paramValue:i.qualityLarge,children:O.jsx(qa,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:i.qualityLarge.toString(),onChange:d("qualityLarge")})}),O.jsx(jn,{hint:"Quality for large images (0-100)",url:Ln.quality})]}),O.jsxs("div",{className:Y.field,children:[O.jsx(Qt,{paramName:"q",paramValue:i.qualityVeryLarge,children:O.jsx(qa,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:i.qualityVeryLarge.toString(),onChange:d("qualityVeryLarge")})}),O.jsx(jn,{hint:"Quality for very large images (0-100)",url:Ln.quality})]})]}),i.useLossless&&O.jsxs("p",{className:Y.infoText,style:{marginBottom:0},children:[O.jsx("strong",{children:"Lossless Mode:"})," Standard quality settings are disabled when using Lossless Mode."]})]}),O.jsxs(Lr,{className:Y.advancedOptionsGroup,children:[O.jsx("h4",{children:"Advanced Options"}),O.jsxs("div",{className:Y.optionsGrid,children:[O.jsxs("div",{className:Y.optionItem,children:[O.jsx(Qt,{paramName:"lossless",paramValue:i.useLossless?1:void 0,children:O.jsx(Na,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:i.useLossless,onChange:v("useLossless")})}),O.jsx(jn,{hint:"Use lossless compression when possible",url:Ln.lossless})]}),O.jsxs("div",{className:Y.optionItem,children:[O.jsx(Qt,{paramName:"dpr",paramValue:i.useDpr?2:void 0,children:O.jsx(Na,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:i.useDpr,onChange:v("useDpr")})}),O.jsx(jn,{hint:"Optimize for high-resolution displays (Retina)",url:Ln.dpr})]}),O.jsxs("div",{className:Y.optionItem,children:[O.jsx(Qt,{paramName:"chromasub",paramValue:i.useChromaSubsampling?444:void 0,children:O.jsx(Na,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:i.useChromaSubsampling,onChange:v("useChromaSubsampling")})}),O.jsx(jn,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:Ln.chroma})]}),O.jsxs("div",{className:Y.optionItem,children:[O.jsx(Qt,{paramName:"cs",paramValue:i.preserveColorProfile?"origin":void 0,children:O.jsx(Na,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:i.preserveColorProfile,onChange:v("preserveColorProfile")})}),O.jsx(jn,{hint:"Maintain accurate colors from original image",url:Ln.colorSpace})]})]})]}),O.jsx("div",{className:Y.formActionContainer,children:O.jsxs("div",{className:Y.buttonGroup,children:[O.jsx(ha,{buttonType:"muted",buttonSize:"l",onClick:()=>n({...By}),children:"Restore Defaults"}),O.jsx(ex,{tooltip:"Calculate potential improvements with current settings without replacing any assets",children:O.jsx(ha,{buttonType:"muted",buttonSize:"l",onClick:u,children:"Preview Optimization"})}),O.jsx(ha,{buttonType:"primary",buttonSize:"l",onClick:l,fullWidth:!0,children:"Start Optimization"})]})})]})};function ma(i){return i<1024?`${i} bytes`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`}const nx=({log:i})=>{if(i.length===0)return null;const n=k.useRef(null);return k.useEffect(()=>{if(n.current){const{scrollHeight:l,clientHeight:u}=n.current;n.current.scrollTop=l-u}},[]),O.jsxs("div",{className:Y.logWrapper,children:[O.jsxs("div",{className:Y.logHeader,children:[O.jsx("h3",{children:"Activity Log"}),O.jsxs("span",{children:[i.length," entries"]})]}),O.jsx("div",{className:Y.logsContainer,ref:n,children:O.jsx("div",{className:Y.logs,children:i.map((l,u)=>O.jsxs("div",{className:Y.logEntry,children:[O.jsx("span",{children:l.text}),l.originalSize&&l.optimizedSize&&O.jsxs("span",{className:Y.sizeComparison,children:[O.jsx("span",{className:Y.originalSize,children:ma(l.originalSize)}),O.jsx("span",{className:Y.sizeArrow,children:"→"}),O.jsx("span",{className:Y.optimizedSize,children:ma(l.optimizedSize)}),O.jsxs("span",{className:Y.sizeSavings,children:["(-",l.savingsPercentage,"%)"]})]})]},`log-${u}-${l.text.substring(0,10)}`))})})]})},ax=({current:i,total:n,isVisible:l,assetSizeCategory:u="large",currentAsset:s,isPreview:f})=>{if(!l)return null;const d=n>0?Math.min(100,Math.max(0,Math.round(i/n*100))):0;return O.jsxs("div",{className:Y.optimizingContainer,children:[f&&O.jsxs("div",{className:Y.previewInfoBox,children:[O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[O.jsx("title",{children:"Information"}),O.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),O.jsxs("p",{children:[O.jsx("strong",{children:"Preview Mode"})," - This will calculate potential savings without modifying any assets."]})]}),s&&O.jsxs("div",{className:Y.currentAssetPreview,children:[O.jsx("div",{className:Y.assetPreviewImage,children:O.jsx("img",{src:`${s.url}?w=120&h=80&fit=crop&auto=format`,alt:s.basename})}),O.jsxs("div",{className:Y.assetPreviewInfo,children:[O.jsx("div",{className:Y.assetPreviewTitle,children:s.basename}),O.jsxs("div",{className:Y.assetPreviewMeta,children:[s.path.split(".").pop()?.toUpperCase()," • ",(s.size/(1024*1024)).toFixed(2)," MB • ",s.width,"×",s.height,"px"]})]})]}),O.jsxs("div",{className:Y.statusText,children:[O.jsx(mT,{size:16})," ",O.jsxs("span",{children:["Processing ",u," assets: ",i," of ",n]})]}),O.jsx("div",{className:Y.percentageText,children:O.jsxs("span",{children:[d,"%"]})}),O.jsx("div",{className:Y.progressBar,children:O.jsx("div",{className:Y.progressBarFill,style:{width:`${d}%`}})})]})},ix=({result:i,setSelectedCategory:n,resetState:l,largeAssetThreshold:u,isPreview:s})=>{if(!i)return null;const{optimized:f,skipped:d,failed:v,totalAssets:h,optimizedAssets:m}=i,g=m.reduce((T,R)=>T+(R.originalSize-R.optimizedSize),0),y=m.length>0?Math.round(m.reduce((T,R)=>T+(R.originalSize-R.optimizedSize)/R.originalSize*100,0)/m.length):0,b=()=>g<1024?`${g} bytes`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:`${(g/(1024*1024)).toFixed(1)} MB`,S=(T,R)=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),n(R))},E=()=>{l?l():n(null)};return O.jsxs("div",{className:Y.resultsContainer,children:[O.jsx("h2",{className:Y.optimizationSummaryTitle,children:s?"Preview Summary":"Optimization Summary"}),s&&O.jsxs("div",{className:Y.previewInfoBox,children:[O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[O.jsx("title",{children:"Information"}),O.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),O.jsxs("p",{children:[O.jsx("strong",{children:"Preview Mode"})," - This is an estimation of potential savings. No assets have been modified."]})]}),h===0&&u&&O.jsx("div",{className:`${Y.infoBox}`,style:{margin:"0 0 16px 0",padding:"16px",backgroundColor:"var(--light-bg-color)",borderRadius:"4px"},children:O.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[O.jsx("div",{style:{marginRight:"8px",color:"var(--accent-color)",display:"flex"},children:O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[O.jsx("title",{children:"Information"}),O.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]})}),O.jsxs("p",{style:{margin:0,color:"var(--base-body-color)"},children:["No images in your project are larger than ",O.jsxs("strong",{children:[u,"MB"]}),". Try lowering the minimum size threshold to optimize more assets."]})]})}),O.jsxs("div",{className:Y.statsCardGrid,children:[O.jsxs("div",{className:Y.statsCard,children:[O.jsx("h3",{className:Y.statsCardTitle,children:"Total Assets"}),O.jsx("div",{className:Y.statsCardValue,children:h}),O.jsx("div",{className:Y.statsCardLabel,children:h>0?"Total":"No assets found"})]}),O.jsxs("div",{className:`${Y.statsCard} ${f>0?Y.clickableStatsCard:""}`,onClick:()=>f>0?n("optimized"):null,onKeyDown:T=>f>0?S(T,"optimized"):null,role:f>0?"button":void 0,tabIndex:f>0?0:void 0,children:[O.jsx("h3",{className:Y.statsCardTitle,children:"Optimized"}),O.jsx("div",{className:`${Y.statsCardValue} ${Y.optimizedValue}`,children:f}),O.jsx("div",{className:Y.statsCardLabel,children:f>0?"Click to view":"No optimized assets"})]}),O.jsxs("div",{className:`${Y.statsCard} ${d>0?Y.clickableStatsCard:""}`,onClick:()=>d>0?n("skipped"):null,onKeyDown:T=>d>0?S(T,"skipped"):null,role:d>0?"button":void 0,tabIndex:d>0?0:void 0,children:[O.jsx("h3",{className:Y.statsCardTitle,children:"Skipped"}),O.jsx("div",{className:`${Y.statsCardValue} ${Y.skippedValue}`,children:d}),O.jsx("div",{className:Y.statsCardLabel,children:d>0?"Click to view":"No skipped assets"})]}),O.jsxs("div",{className:`${Y.statsCard} ${v>0?Y.clickableStatsCard:""}`,onClick:()=>v>0?n("failed"):null,onKeyDown:T=>v>0?S(T,"failed"):null,role:v>0?"button":void 0,tabIndex:v>0?0:void 0,children:[O.jsx("h3",{className:Y.statsCardTitle,children:"Failed"}),O.jsx("div",{className:`${Y.statsCardValue} ${Y.failedValue}`,children:v}),O.jsx("div",{className:Y.statsCardLabel,children:v>0?"Click to view":"No failed assets"})]})]}),O.jsx("div",{className:Y.savingsSummary,children:O.jsxs("div",{className:Y.savingsCard,children:[O.jsxs("div",{className:Y.savingsRow,children:[O.jsx("div",{className:Y.savingsLabel,children:"Total Storage Saved"}),O.jsx("div",{className:Y.savingsValue,children:b()})]}),O.jsxs("div",{className:Y.savingsRow,children:[O.jsx("div",{className:Y.savingsLabel,children:"Average Optimization per Asset"}),O.jsxs("div",{className:Y.savingsValue,children:[y,"%"]})]})]})}),O.jsx("div",{className:Y.actionsContainer,children:O.jsx(ha,{buttonType:"primary",buttonSize:"l",onClick:E,fullWidth:!0,children:s?"New Preview":"New Optimization"})})]})},rx=({assets:i,category:n,onClose:l,ctx:u})=>{const s=()=>{switch(n){case"optimized":return Y.badgeGreen;case"failed":return Y.badgeRed;case"skipped":return Y.badgeGray;default:return Y.badgeBlue}};return O.jsxs("div",{className:Y.assetListCard,children:[O.jsxs("div",{className:Y.assetListHeader,children:[O.jsxs("div",{className:Y.assetListHeaderTitle,children:[O.jsx("div",{className:`${Y.categoryBadge} ${s()}`,children:i.length}),O.jsxs("h3",{children:[n.charAt(0).toUpperCase()+n.slice(1)," Assets"]})]}),l&&O.jsx(ha,{buttonType:"negative",buttonSize:"xs",onClick:l,children:"Close"})]}),i.length===0?O.jsxs("div",{className:Y.noAssetsMessage,children:["No ",n," assets to display."]}):O.jsx("ul",{className:Y.assetList,children:i.map(f=>{const d={id:f.id,path:f.path,url:f.url,size:"size"in f?f.size:"originalSize"in f?f.originalSize:0,basename:"basename"in f?f.basename:"",originalSize:"originalSize"in f?f.originalSize:void 0,optimizedSize:"optimizedSize"in f?f.optimizedSize:void 0},v=d.originalSize&&d.optimizedSize?Math.round((d.originalSize-d.optimizedSize)/d.originalSize*100):null,h=d.path.split(".").pop()||"";return O.jsx("li",{className:Y.assetListItem,children:O.jsxs("div",{className:Y.assetItemContent,children:[O.jsx("div",{className:Y.assetIcon,children:O.jsx("div",{className:Y.fileIconWrapper,children:h.toUpperCase()})}),O.jsxs("div",{className:Y.assetDetails,children:[O.jsx("p",{className:Y.assetPath,children:d.path}),n==="optimized"&&d.originalSize&&d.optimizedSize&&O.jsxs("div",{className:Y.optimizationStats,children:[O.jsxs("div",{className:Y.sizeInfo,children:[O.jsxs("div",{className:Y.sizeBefore,children:[O.jsx("span",{className:Y.sizeLabel,children:"Original:"}),O.jsx("span",{className:Y.sizeValue,children:ma(d.originalSize)})]}),O.jsx("div",{className:Y.sizeArrow,children:"→"}),O.jsxs("div",{className:Y.sizeAfter,children:[O.jsx("span",{className:Y.sizeLabel,children:"Optimized:"}),O.jsx("span",{className:Y.sizeValue,children:ma(d.optimizedSize)})]})]}),v&&O.jsxs("div",{className:`${Y.savingsBadge} ${Y.badgeGreen}`,children:[v,"% savings"]})]})]}),O.jsxs("div",{className:Y.assetActions,children:[O.jsx(ha,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(d.url,"_blank"),children:"View Asset"}),O.jsx(ha,{buttonSize:"xxs",buttonType:"muted",style:{marginLeft:"8px"},onClick:()=>window.open(`https://${u.site.attributes.internal_domain}/environments/${u.environment}/media/assets/${d.id}`,"_blank"),children:"Media Area"})]})]})},d.id)})})]})};function Uv(i){return{id:i.id,is_image:i.is_image||!1,size:i.size||0,url:i.url||"",path:i.path||"",basename:i.basename||"",width:i.width||void 0,height:i.height||void 0,alt:i.default_field_metadata?.en?.alt||void 0,title:i.default_field_metadata?.en?.title||void 0,customData:i.default_field_metadata?.en?.custom_data||{},tags:i.tags||[]}}function Uc(i){return{id:i.id,path:i.path,url:i.url}}function lx(i,n,l){return{id:i.id,path:i.path,url:i.url,originalSize:n,optimizedSize:l}}const ux=i=>new Promise(n=>setTimeout(n,i));async function sx(i,n,l,u,s,f,d){try{l(`Processing asset: ${i.path} (${ma(i.size)})`);const v=Z2(i,n);if(!v)return l(`Skipping asset ${i.path}: No suitable optimization parameters found.`),{status:"skipped",asset:i};const h=`${i.url}${v}`;l(`Optimizing with parameters: ${v}`);const m=await fetch(h);if(!m.ok)throw new Error(`Failed to fetch optimized image: ${m.statusText}`);const g=await m.blob();l(`Optimized image size: ${ma(g.size)}`);const y=i.size*(1-n.minimumReduction/100);if(g.size>y)return l(`Optimization not significant enough for ${i.path}. Skipping.`),{status:"skipped",asset:i};if(s)return u(i.path,i.size,g.size),{status:"optimized",asset:i,optimizedSize:g.size};if(!f)throw new Error("API token is required for asset replacement");l(`Replacing asset ${i.path}...`);const{default:b}=await DT(async()=>{const{default:S}=await import("./assetReplacer-DS1p55So.js");return{default:S}},[],import.meta.url);return await b(i.id,h,f,d||"master",i.basename),u(i.path,i.size,g.size),l(`Successfully replaced asset ${i.path}`),{status:"optimized",asset:i,optimizedSize:g.size}}catch(v){return l(`Error ${s?"optimizing":"replacing"} asset ${i.path}: ${v instanceof Error?v.message:String(v)}`),{status:"failed",asset:i,error:v instanceof Error?v.message:String(v)}}}const ox=({ctx:i})=>{const[n,l]=k.useState(!1),[u,s]=k.useState(!1),[f,d]=k.useState(!1),[v,h]=k.useState(0),[m,g]=k.useState(0),[y,b]=k.useState(null),[S,E]=k.useState([]),[T,R]=k.useState({...By}),[L,X]=k.useState(void 0),[$,Z]=k.useState(null),M=10;k.useEffect(()=>{(async()=>{try{const ne=i.plugin.attributes.parameters;if(ne&&typeof ne.optimization_settings=="string")try{const de=JSON.parse(ne.optimization_settings);R(de),console.log("Loaded settings from plugin parameters:",de)}catch(de){console.error("Error parsing saved settings:",de)}else console.log("No saved settings found, using defaults")}catch(ne){console.error("Error accessing plugin parameters:",ne)}})()},[i]),k.useEffect(()=>{const ee=ne=>{if(n){const de="Optimization is in progress. Leaving the page now may cause you to lose assets! Are you sure you want to leave?";return ne.preventDefault(),ne.returnValue=de,de}};return window.addEventListener("beforeunload",ee),()=>{window.removeEventListener("beforeunload",ee)}},[n]);const G=ee=>{E(ne=>[{text:`[${new Date().toISOString()}] ${ee}`},...ne])},U=(ee,ne,de)=>{const ve=ne-de,D=Math.round(ve/ne*100);E(Q=>[{text:`[${new Date().toISOString()}] Successfully optimized asset: ${ee} `,originalSize:ne,optimizedSize:de,savingsPercentage:D},...Q])},W=async(ee,ne)=>{let de=0,ve=0,D=0,Q=0;const J=[],ge=[],be=[];let x=0,H=0;g(ee.length),h(0);const K=[...ee];let te=0;const ue=ne?void 0:i.currentUserAccessToken,se=()=>{Q++,h(Q)},re=async()=>{const xe=[];for(;K.length>0&&te<M;){const Se=K.shift();if(!Se)continue;te++,x+=Se.size,X(Se);const Vt=(async()=>{try{te>1&&await ux(300);const ot=await sx(Se,T,G,U,ne,ue||void 0,i.environment);ot.status==="optimized"&&ot.optimizedSize?(J.push(lx(Se,Se.size,ot.optimizedSize)),H+=ot.optimizedSize,de++):ot.status==="skipped"?(ge.push(Uc(Se)),ve++):(be.push(Uc(Se)),D++)}catch(ot){G(`Unexpected error processing ${Se.path}: ${ot instanceof Error?ot.message:String(ot)}`),be.push(Uc(Se)),D++}finally{se(),te--}})();xe.push(Vt)}if(await Promise.all(xe),K.length>0)return re()};return await re(),{optimized:de,skipped:ve,failed:D,totalAssets:ee.length,optimizedAssets:J,skippedAssets:ge,failedAssets:be,originalSizeTotal:x,optimizedSizeTotal:H}},fe=async()=>{try{Ee(),s(!0),d(!0),G("Starting asset optimization preview...");const ee=Nv({apiToken:i.currentUserAccessToken??"",environment:i.environment});G("Fetching assets from DatoCMS for preview...");const ne=T.largeAssetThreshold*1024*1024,de=[];let ve=0;for await(const Q of ee.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:ne}}}}))ve++,de.push(Uv(Q));G(`Found ${ve} assets larger than ${T.largeAssetThreshold}MB.`),G(`Found ${de.length} optimizable images.`);const D=await W(de,!0);if(b({optimized:D.optimized,skipped:D.skipped,failed:D.failed,totalAssets:ve,optimizedAssets:D.optimizedAssets,skippedAssets:D.skippedAssets,failedAssets:D.failedAssets}),G(`Optimization preview complete. Optimized: ${D.optimized}, Skipped: ${D.skipped}, Failed: ${D.failed}`),D.optimized>0){const Q=D.originalSizeTotal-D.optimizedSizeTotal,J=Math.round(Q/D.originalSizeTotal*100);G(`Total size savings: ${ma(Q)} (${J}%)`)}G("Asset optimization preview completed!"),i.notice("Asset optimization preview completed!")}catch(ee){G(`Error during optimization preview: ${ee instanceof Error?ee.message:String(ee)}`),i.alert(`Error during optimization preview: ${ee instanceof Error?ee.message:String(ee)}`),s(!1)}finally{d(!1)}},De=async()=>{try{if(await i.openConfirm({title:"Confirm Asset Optimization",content:"WARNING: This is a destructive action that will permanently replace all assets that fall into the optimization thresholds. This action is non-reversible and original assets cannot be recovered once replaced. Are you sure you want to proceed?",choices:[{label:"Proceed to Final Confirmation",value:"confirm",intent:"positive"}],cancel:{label:"Cancel",value:!1}})!=="confirm"||await i.openConfirm({title:"Final Confirmation Required",content:`ARE YOU ABSOLUTELY SURE? This will immediately replace your original assets with optimized versions. Your original assets will be PERMANENTLY DELETED and CANNOT be recovered. This may affect the visual quality of your images if not configured correctly.
|
|
13
|
-
|
|
14
|
-
We STRONGLY RECOMMEND testing this first in a sandbox environment, so you can fine-tune the thresholds and optimization settings to your liking, make sure everything works with your project, and then promote the sandbox environment once you are satisfied with the results.`,choices:[{label:"Yes, Replace My Assets",value:"confirm",intent:"positive"}],cancel:{label:"No, Cancel Operation",value:!1}})!=="confirm")return;Ee(),l(!0),d(!0),G("Starting asset optimization process...");const de=Nv({apiToken:i.currentUserAccessToken??"",environment:i.environment});G("Fetching assets from DatoCMS...");const ve=T.largeAssetThreshold*1024*1024,D=[];let Q=0;for await(const ge of de.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:ve}}}}))Q++,D.push(Uv(ge));G(`Found ${Q} assets larger than ${T.largeAssetThreshold}MB.`),G(`Found ${D.length} optimizable images.`);const J=await W(D,!1);if(b({optimized:J.optimized,skipped:J.skipped,failed:J.failed,totalAssets:Q,optimizedAssets:J.optimizedAssets,skippedAssets:J.skippedAssets,failedAssets:J.failedAssets}),G(`Optimization complete. Optimized: ${J.optimized}, Skipped: ${J.skipped}, Failed: ${J.failed}`),J.optimized>0){const ge=J.originalSizeTotal-J.optimizedSizeTotal,be=Math.round(ge/J.originalSizeTotal*100);G(`Total size savings: ${ma(ge)} (${be}%)`)}G("Asset optimization process completed!"),i.notice("Asset optimization process completed!")}catch(ee){G(`Error during optimization process: ${ee instanceof Error?ee.message:String(ee)}`),i.alert(`Error during optimization process: ${ee instanceof Error?ee.message:String(ee)}`)}finally{l(!1),d(!1)}},Ee=()=>{l(!1),s(!1),d(!1),b(null),E([]),h(0),g(0),X(void 0)};return O.jsx(Pv,{ctx:i,children:O.jsxs("div",{className:Y.container,children:[O.jsx("h1",{className:Y.title,children:"Asset Optimization"}),!f&&!y&&O.jsx("div",{className:Y.settingsContainer,children:O.jsx(tx,{settings:T,onSettingsChange:R,onStartOptimization:De,onPreviewOptimization:fe,ctx:i})}),O.jsx(ax,{current:v,total:m,isVisible:f,assetSizeCategory:T.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:L,isPreview:u}),y&&O.jsxs(O.Fragment,{children:[O.jsx(ix,{result:y,setSelectedCategory:Z,resetState:Ee,largeAssetThreshold:T.largeAssetThreshold,isPreview:u}),$&&O.jsx(rx,{assets:$==="optimized"?y.optimizedAssets:$==="skipped"?y.skippedAssets:y.failedAssets,category:$,onClose:()=>Z(null),ctx:i})]}),O.jsx(nx,{log:S})]})})};var Vc={exports:{}},Hr={},Hc={exports:{}},Bc={};var Vv;function cx(){return Vv||(Vv=1,(function(i){function n(D,Q){var J=D.length;D.push(Q);e:for(;0<J;){var ge=J-1>>>1,be=D[ge];if(0<s(be,Q))D[ge]=Q,D[J]=be,J=ge;else break e}}function l(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var Q=D[0],J=D.pop();if(J!==Q){D[0]=J;e:for(var ge=0,be=D.length,x=be>>>1;ge<x;){var H=2*(ge+1)-1,K=D[H],te=H+1,ue=D[te];if(0>s(K,J))te<be&&0>s(ue,K)?(D[ge]=ue,D[te]=J,ge=te):(D[ge]=K,D[H]=J,ge=H);else if(te<be&&0>s(ue,J))D[ge]=ue,D[te]=J,ge=te;else break e}}return Q}function s(D,Q){var J=D.sortIndex-Q.sortIndex;return J!==0?J:D.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,v=d.now();i.unstable_now=function(){return d.now()-v}}var h=[],m=[],g=1,y=null,b=3,S=!1,E=!1,T=!1,R=!1,L=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function Z(D){for(var Q=l(m);Q!==null;){if(Q.callback===null)u(m);else if(Q.startTime<=D)u(m),Q.sortIndex=Q.expirationTime,n(h,Q);else break;Q=l(m)}}function M(D){if(T=!1,Z(D),!E)if(l(h)!==null)E=!0,G||(G=!0,ee());else{var Q=l(m);Q!==null&&ve(M,Q.startTime-D)}}var G=!1,U=-1,W=5,fe=-1;function De(){return R?!0:!(i.unstable_now()-fe<W)}function Ee(){if(R=!1,G){var D=i.unstable_now();fe=D;var Q=!0;try{e:{E=!1,T&&(T=!1,X(U),U=-1),S=!0;var J=b;try{t:{for(Z(D),y=l(h);y!==null&&!(y.expirationTime>D&&De());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,b=y.priorityLevel;var be=ge(y.expirationTime<=D);if(D=i.unstable_now(),typeof be=="function"){y.callback=be,Z(D),Q=!0;break t}y===l(h)&&u(h),Z(D)}else u(h);y=l(h)}if(y!==null)Q=!0;else{var x=l(m);x!==null&&ve(M,x.startTime-D),Q=!1}}break e}finally{y=null,b=J,S=!1}Q=void 0}}finally{Q?ee():G=!1}}}var ee;if(typeof $=="function")ee=function(){$(Ee)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,de=ne.port2;ne.port1.onmessage=Ee,ee=function(){de.postMessage(null)}}else ee=function(){L(Ee,0)};function ve(D,Q){U=L(function(){D(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(D){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var J=b;b=Q;try{return D()}finally{b=J}},i.unstable_requestPaint=function(){R=!0},i.unstable_runWithPriority=function(D,Q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=b;b=D;try{return Q()}finally{b=J}},i.unstable_scheduleCallback=function(D,Q,J){var ge=i.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ge+J:ge):J=ge,D){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=J+be,D={id:g++,callback:Q,priorityLevel:D,startTime:J,expirationTime:be,sortIndex:-1},J>ge?(D.sortIndex=J,n(m,D),l(h)===null&&D===l(m)&&(T?(X(U),U=-1):T=!0,ve(M,J-ge))):(D.sortIndex=be,n(h,D),E||S||(E=!0,G||(G=!0,ee()))),D},i.unstable_shouldYield=De,i.unstable_wrapCallback=function(D){var Q=b;return function(){var J=b;b=Q;try{return D.apply(this,arguments)}finally{b=J}}}})(Bc)),Bc}var Hv;function fx(){return Hv||(Hv=1,Hc.exports=cx()),Hc.exports}var Bv;function dx(){if(Bv)return Hr;Bv=1;var i=fx(),n=of(),l=Fv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return h(o),e;if(c===r)return h(o),t;c=c.sibling}throw Error(u(188))}if(a.return!==r.return)a=o,r=c;else{for(var p=!1,_=o.child;_;){if(_===a){p=!0,a=o,r=c;break}if(_===r){p=!0,r=o,a=c;break}_=_.sibling}if(!p){for(_=c.child;_;){if(_===a){p=!0,a=c,r=o;break}if(_===r){p=!0,r=c,a=o;break}_=_.sibling}if(!p)throw Error(u(189))}}if(a.alternate!==r)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),$=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case L:return"Profiler";case R:return"StrictMode";case M:return"Suspense";case G:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case $:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var ve=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ge=[],be=-1;function x(e){return{current:e}}function H(e){0>be||(e.current=ge[be],ge[be]=null,be--)}function K(e,t){be++,ge[be]=e.current,e.current=t}var te=x(null),ue=x(null),se=x(null),re=x(null);function xe(e,t){switch(K(se,t),K(ue,e),K(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Pm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Pm(t),e=Fm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(te),K(te,e)}function Se(){H(te),H(ue),H(se)}function Vt(e){e.memoizedState!==null&&K(re,e);var t=te.current,a=Fm(t,e.type);t!==a&&(K(ue,e),K(te,a))}function ot(e){ue.current===e&&(H(te),H(ue)),re.current===e&&(H(re),zr._currentValue=J)}var Ga,Qr;function rn(e){if(Ga===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ga=t&&t[1]||"",Qr=-1<a.stack.indexOf(`
|
|
15
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
16
|
-
`+Ga+e+Qr}var Bi=!1;function ts(e,t){if(!e||Bi)return"";Bi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(V){var q=V}Reflect.construct(e,[],F)}else{try{F.call()}catch(V){q=V}e.call(F.prototype)}}else{try{throw Error()}catch(V){q=V}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(V){if(V&&q&&typeof V.stack=="string")return[V.stack,q.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),p=c[0],_=c[1];if(p&&_){var w=p.split(`
|
|
17
|
-
`),N=_.split(`
|
|
18
|
-
`);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===N.length)for(r=w.length-1,o=N.length-1;1<=r&&0<=o&&w[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==N[o]){var I=`
|
|
19
|
-
`+w[r].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=r&&0<=o);break}}}finally{Bi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?rn(a):""}function Gy(e,t){switch(e.tag){case 26:case 27:case 5:return rn(e.type);case 16:return rn("Lazy");case 13:return e.child!==t&&t!==null?rn("Suspense Fallback"):rn("Suspense");case 19:return rn("SuspenseList");case 0:case 15:return ts(e.type,!1);case 11:return ts(e.type.render,!1);case 1:return ts(e.type,!0);case 31:return rn("Activity");default:return""}}function Ef(e){try{var t="",a=null;do t+=Gy(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
20
|
-
Error generating stack: `+r.message+`
|
|
21
|
-
`+r.stack}}var ns=Object.prototype.hasOwnProperty,as=i.unstable_scheduleCallback,is=i.unstable_cancelCallback,Iy=i.unstable_shouldYield,Yy=i.unstable_requestPaint,Ct=i.unstable_now,$y=i.unstable_getCurrentPriorityLevel,wf=i.unstable_ImmediatePriority,Tf=i.unstable_UserBlockingPriority,Zr=i.unstable_NormalPriority,Py=i.unstable_LowPriority,Of=i.unstable_IdlePriority,Fy=i.log,ky=i.unstable_setDisableYieldValue,Gi=null,At=null;function Gn(e){if(typeof Fy=="function"&&ky(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Gi,e)}catch{}}var zt=Math.clz32?Math.clz32:Zy,Xy=Math.log,Qy=Math.LN2;function Zy(e){return e>>>=0,e===0?32:31-(Xy(e)/Qy|0)|0}var Kr=256,Jr=262144,Wr=4194304;function pa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function el(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var _=r&134217727;return _!==0?(r=_&~c,r!==0?o=pa(r):(p&=_,p!==0?o=pa(p):a||(a=_&~e,a!==0&&(o=pa(a))))):(_=r&~c,_!==0?o=pa(_):p!==0?o=pa(p):a||(a=r&~e,a!==0&&(o=pa(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Ii(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ky(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xf(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function rs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jy(e,t,a,r,o,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,w=e.expirationTimes,N=e.hiddenUpdates;for(a=p&~a;0<a;){var I=31-zt(a),F=1<<I;_[I]=0,w[I]=-1;var q=N[I];if(q!==null)for(N[I]=null,I=0;I<q.length;I++){var V=q[I];V!==null&&(V.lane&=-536870913)}a&=~F}r!==0&&Cf(e,r,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Cf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-zt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Af(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-zt(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function zf(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function us(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mf(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:pp(e.type))}function Df(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var In=Math.random().toString(36).slice(2),ct="__reactFiber$"+In,bt="__reactProps$"+In,Ia="__reactContainer$"+In,ss="__reactEvents$"+In,Wy="__reactListeners$"+In,eb="__reactHandles$"+In,Rf="__reactResources$"+In,$i="__reactMarker$"+In;function os(e){delete e[ct],delete e[bt],delete e[ss],delete e[Wy],delete e[eb]}function Ya(e){var t=e[ct];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ia]||a[ct]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Wm(e);e!==null;){if(a=e[ct])return a;e=Wm(e)}return t}e=a,a=e.parentNode}return null}function $a(e){if(e=e[ct]||e[Ia]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pa(e){var t=e[Rf];return t||(t=e[Rf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[$i]=!0}var jf=new Set,Lf={};function va(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(Lf[e]=t,e=0;e<t.length;e++)jf.add(t[e])}var tb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Nf={},qf={};function nb(e){return ns.call(qf,e)?!0:ns.call(Nf,e)?!1:tb.test(e)?qf[e]=!0:(Nf[e]=!0,!1)}function tl(e,t,a){if(nb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function nl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function pn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ab(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cs(e){if(!e._valueTracker){var t=Uf(e)?"checked":"value";e._valueTracker=ab(e,t,""+e[t])}}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Uf(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function al(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ib=/[\n"\\]/g;function Bt(e){return e.replace(ib,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fs(e,t,a,r,o,c,p,_){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?ds(e,p,Ht(t)):a!=null?ds(e,p,Ht(a)):r!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Ht(_):e.removeAttribute("name")}function Hf(e,t,a,r,o,c,p,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){cs(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=_?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),cs(e)}function ds(e,t,a){t==="number"&&al(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ka(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Ht(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Bf(e,t,a){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ht(a):""}function Gf(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(u(92));if(ve(r)){if(1<r.length)throw Error(u(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),cs(e)}function Xa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var rb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function If(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||rb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Yf(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&If(e,o,r)}else for(var c in t)t.hasOwnProperty(c)&&If(e,c,t[c])}function hs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ub=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function il(e){return ub.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vn(){}var ms=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Za=null;function $f(e){var t=$a(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(fs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[bt]||null;if(!o)throw Error(u(90));fs(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Vf(r)}break e;case"textarea":Bf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ka(e,!!a.multiple,t,!1)}}}var vs=!1;function Pf(e,t,a){if(vs)return e(t,a);vs=!0;try{var r=e(t);return r}finally{if(vs=!1,(Qa!==null||Za!==null)&&(Pl(),Qa&&(t=Qa,e=Za,Za=Qa=null,$f(t),e)))for(t=0;t<e.length;t++)$f(e[t])}}function Fi(e,t){var a=e.stateNode;if(a===null)return null;var r=a[bt]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gs=!1;if(gn)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){gs=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{gs=!1}var Yn=null,ys=null,rl=null;function Ff(){if(rl)return rl;var e,t=ys,a=t.length,r,o="value"in Yn?Yn.value:Yn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(r=1;r<=p&&t[a-r]===o[c-r];r++);return rl=o.slice(e,1<r?1-r:void 0)}function ll(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ul(){return!0}function kf(){return!1}function _t(e){function t(a,r,o,c,p){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ul:kf,this.isPropagationStopped=kf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ul)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ul)},persist:function(){},isPersistent:ul}),t}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sl=_t(ga),Xi=y({},ga,{view:0,detail:0}),sb=_t(Xi),bs,_s,Qi,ol=y({},Xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Es,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qi&&(Qi&&e.type==="mousemove"?(bs=e.screenX-Qi.screenX,_s=e.screenY-Qi.screenY):_s=bs=0,Qi=e),bs)},movementY:function(e){return"movementY"in e?e.movementY:_s}}),Xf=_t(ol),ob=y({},ol,{dataTransfer:0}),cb=_t(ob),fb=y({},Xi,{relatedTarget:0}),Ss=_t(fb),db=y({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),hb=_t(db),mb=y({},ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pb=_t(mb),vb=y({},ga,{data:0}),Qf=_t(vb),gb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},bb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _b(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bb[e])?!!t[e]:!1}function Es(){return _b}var Sb=y({},Xi,{key:function(e){if(e.key){var t=gb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Es,charCode:function(e){return e.type==="keypress"?ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Eb=_t(Sb),wb=y({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=_t(wb),Tb=y({},Xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Es}),Ob=_t(Tb),xb=y({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cb=_t(xb),Ab=y({},ol,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zb=_t(Ab),Mb=y({},ga,{newState:0,oldState:0}),Db=_t(Mb),Rb=[9,13,27,32],ws=gn&&"CompositionEvent"in window,Zi=null;gn&&"documentMode"in document&&(Zi=document.documentMode);var jb=gn&&"TextEvent"in window&&!Zi,Kf=gn&&(!ws||Zi&&8<Zi&&11>=Zi),Jf=" ",Wf=!1;function ed(e,t){switch(e){case"keyup":return Rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function Lb(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Wf=!0,Jf);case"textInput":return e=t.data,e===Jf&&Wf?null:e;default:return null}}function Nb(e,t){if(Ka)return e==="compositionend"||!ws&&ed(e,t)?(e=Ff(),rl=ys=Yn=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kf&&t.locale!=="ko"?null:t.data;default:return null}}var qb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qb[e.type]:t==="textarea"}function ad(e,t,a,r){Qa?Za?Za.push(r):Za=[r]:Qa=r,t=Jl(t,"onChange"),0<t.length&&(a=new sl("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Ki=null,Ji=null;function Ub(e){Hm(e,0)}function cl(e){var t=Pi(e);if(Vf(t))return e}function id(e,t){if(e==="change")return t}var rd=!1;if(gn){var Ts;if(gn){var Os="oninput"in document;if(!Os){var ld=document.createElement("div");ld.setAttribute("oninput","return;"),Os=typeof ld.oninput=="function"}Ts=Os}else Ts=!1;rd=Ts&&(!document.documentMode||9<document.documentMode)}function ud(){Ki&&(Ki.detachEvent("onpropertychange",sd),Ji=Ki=null)}function sd(e){if(e.propertyName==="value"&&cl(Ji)){var t=[];ad(t,Ji,e,ps(e)),Pf(Ub,t)}}function Vb(e,t,a){e==="focusin"?(ud(),Ki=t,Ji=a,Ki.attachEvent("onpropertychange",sd)):e==="focusout"&&ud()}function Hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cl(Ji)}function Bb(e,t){if(e==="click")return cl(t)}function Gb(e,t){if(e==="input"||e==="change")return cl(t)}function Ib(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:Ib;function Wi(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!ns.call(t,o)||!Mt(e[o],t[o]))return!1}return!0}function od(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cd(e,t){var a=od(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=od(a)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=al(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=al(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yb=gn&&"documentMode"in document&&11>=document.documentMode,Ja=null,Cs=null,er=null,As=!1;function hd(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;As||Ja==null||Ja!==al(r)||(r=Ja,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),er&&Wi(er,r)||(er=r,r=Jl(Cs,"onSelect"),0<r.length&&(t=new sl("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ja)))}function ya(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wa={animationend:ya("Animation","AnimationEnd"),animationiteration:ya("Animation","AnimationIteration"),animationstart:ya("Animation","AnimationStart"),transitionrun:ya("Transition","TransitionRun"),transitionstart:ya("Transition","TransitionStart"),transitioncancel:ya("Transition","TransitionCancel"),transitionend:ya("Transition","TransitionEnd")},zs={},md={};gn&&(md=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ba(e){if(zs[e])return zs[e];if(!Wa[e])return e;var t=Wa[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in md)return zs[e]=t[a];return e}var pd=ba("animationend"),vd=ba("animationiteration"),gd=ba("animationstart"),$b=ba("transitionrun"),Pb=ba("transitionstart"),Fb=ba("transitioncancel"),yd=ba("transitionend"),bd=new Map,Ms="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ms.push("scrollEnd");function Wt(e,t){bd.set(e,t),va(t,[e])}var fl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gt=[],ei=0,Ds=0;function dl(){for(var e=ei,t=Ds=ei=0;t<e;){var a=Gt[t];Gt[t++]=null;var r=Gt[t];Gt[t++]=null;var o=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[t++]=null,r!==null&&o!==null){var p=r.pending;p===null?o.next=o:(o.next=p.next,p.next=o),r.pending=o}c!==0&&_d(a,o,c)}}function hl(e,t,a,r){Gt[ei++]=e,Gt[ei++]=t,Gt[ei++]=a,Gt[ei++]=r,Ds|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Rs(e,t,a,r){return hl(e,t,a,r),ml(e)}function _a(e,t){return hl(e,null,null,t),ml(e)}function _d(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-zt(a),e=c.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),c):null}function ml(e){if(50<Er)throw Er=0,Io=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function kb(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,r){return new kb(e,t,a,r)}function js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Sd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pl(e,t,a,r,o,c){var p=0;if(r=e,typeof e=="function")js(e)&&(p=1);else if(typeof e=="string")p=J0(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Dt(31,a,t,o),e.elementType=fe,e.lanes=c,e;case T:return Sa(a.children,o,c,t);case R:p=8,o|=24;break;case L:return e=Dt(12,a,t,o|2),e.elementType=L,e.lanes=c,e;case M:return e=Dt(13,a,t,o),e.elementType=M,e.lanes=c,e;case G:return e=Dt(19,a,t,o),e.elementType=G,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:p=10;break e;case X:p=9;break e;case Z:p=11;break e;case U:p=14;break e;case W:p=16,r=null;break e}p=29,a=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Dt(p,a,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function Sa(e,t,a,r){return e=Dt(7,e,r,t),e.lanes=a,e}function Ls(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function Ed(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Ns(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wd=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var a=wd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ef(t)},wd.set(e,t),t)}return{value:e,source:t,stack:Ef(t)}}var ni=[],ai=0,vl=null,tr=0,Yt=[],$t=0,$n=null,ln=1,un="";function bn(e,t){ni[ai++]=tr,ni[ai++]=vl,vl=e,tr=t}function Td(e,t,a){Yt[$t++]=ln,Yt[$t++]=un,Yt[$t++]=$n,$n=e;var r=ln;e=un;var o=32-zt(r)-1;r&=~(1<<o),a+=1;var c=32-zt(t)+o;if(30<c){var p=o-o%5;c=(r&(1<<p)-1).toString(32),r>>=p,o-=p,ln=1<<32-zt(t)+o|a<<o|r,un=c+e}else ln=1<<c|a<<o|r,un=e}function qs(e){e.return!==null&&(bn(e,1),Td(e,1,0))}function Us(e){for(;e===vl;)vl=ni[--ai],ni[ai]=null,tr=ni[--ai],ni[ai]=null;for(;e===$n;)$n=Yt[--$t],Yt[$t]=null,un=Yt[--$t],Yt[$t]=null,ln=Yt[--$t],Yt[$t]=null}function Od(e,t){Yt[$t++]=ln,Yt[$t++]=un,Yt[$t++]=$n,ln=t.id,un=t.overflow,$n=e}var ft=null,Fe=null,Re=!1,Pn=null,Pt=!1,Vs=Error(u(519));function Fn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nr(It(t,e)),Vs}function xd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ct]=e,t[bt]=r,a){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(a=0;a<Tr.length;a++)Ae(Tr[a],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),Hf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),Gf(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||Ym(t.textContent,a)?(r.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),r.onScroll!=null&&Ae("scroll",t),r.onScrollEnd!=null&&Ae("scrollend",t),r.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||Fn(e,!0)}function Cd(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:ft=ft.return}}function ii(e){if(e!==ft)return!1;if(!Re)return Cd(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ac(e.type,e.memoizedProps)),a=!a),a&&Fe&&Fn(e),Cd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=Jm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=Jm(e)}else t===27?(t=Fe,la(e.type)?(e=sc,sc=null,Fe=e):Fe=t):Fe=ft?kt(e.stateNode.nextSibling):null;return!0}function Ea(){Fe=ft=null,Re=!1}function Hs(){var e=Pn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Pn=null),e}function nr(e){Pn===null?Pn=[e]:Pn.push(e)}var Bs=x(null),wa=null,_n=null;function kn(e,t,a){K(Bs,t._currentValue),t._currentValue=a}function Sn(e){e._currentValue=Bs.current,H(Bs)}function Gs(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Is(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var w=0;w<t.length;w++)if(_.context===t[w]){c.lanes|=a,_=c.alternate,_!==null&&(_.lanes|=a),Gs(c.return,a,e),r||(p=null);break e}c=_.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(u(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),Gs(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function ri(e,t,a,r){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(u(387));if(p=p.memoizedProps,p!==null){var _=o.type;Mt(o.pendingProps.value,p.value)||(e!==null?e.push(_):e=[_])}}else if(o===re.current){if(p=o.alternate,p===null)throw Error(u(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zr):e=[zr])}o=o.return}e!==null&&Is(t,e,a,r),t.flags|=262144}function gl(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){wa=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return Ad(wa,e)}function yl(e,t){return wa===null&&Ta(e),Ad(e,t)}function Ad(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},_n===null){if(e===null)throw Error(u(308));_n=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _n=_n.next=t;return a}var Xb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Qb=i.unstable_scheduleCallback,Zb=i.unstable_NormalPriority,et={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ys(){return{controller:new Xb,data:new Map,refCount:0}}function ar(e){e.refCount--,e.refCount===0&&Qb(Zb,function(){e.controller.abort()})}var ir=null,$s=0,li=0,ui=null;function Kb(e,t){if(ir===null){var a=ir=[];$s=0,li=Xo(),ui={status:"pending",value:void 0,then:function(r){a.push(r)}}}return $s++,t.then(zd,zd),t}function zd(){if(--$s===0&&ir!==null){ui!==null&&(ui.status="fulfilled");var e=ir;ir=null,li=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jb(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Md=D.S;D.S=function(e,t){hm=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kb(e,t),Md!==null&&Md(e,t)};var Oa=x(null);function Ps(){var e=Oa.current;return e!==null?e:$e.pooledCache}function bl(e,t){t===null?K(Oa,Oa.current):K(Oa,t.pool)}function Dd(){var e=Ps();return e===null?null:{parent:et._currentValue,pool:e}}var si=Error(u(460)),Fs=Error(u(474)),_l=Error(u(542)),Sl={then:function(){}};function Rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(vn,vn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e;default:if(typeof t.status=="string")t.then(vn,vn);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e}throw Ca=t,si}}function xa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ca=a,si):a}}var Ca=null;function Ld(){if(Ca===null)throw Error(u(459));var e=Ca;return Ca=null,e}function Nd(e){if(e===si||e===_l)throw Error(u(483))}var oi=null,rr=0;function El(e){var t=rr;return rr+=1,oi===null&&(oi=[]),jd(oi,e,t)}function lr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wl(e,t){throw t.$$typeof===b?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qd(e){function t(z,C){if(e){var j=z.deletions;j===null?(z.deletions=[C],z.flags|=16):j.push(C)}}function a(z,C){if(!e)return null;for(;C!==null;)t(z,C),C=C.sibling;return null}function r(z){for(var C=new Map;z!==null;)z.key!==null?C.set(z.key,z):C.set(z.index,z),z=z.sibling;return C}function o(z,C){return z=yn(z,C),z.index=0,z.sibling=null,z}function c(z,C,j){return z.index=j,e?(j=z.alternate,j!==null?(j=j.index,j<C?(z.flags|=67108866,C):j):(z.flags|=67108866,C)):(z.flags|=1048576,C)}function p(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function _(z,C,j,P){return C===null||C.tag!==6?(C=Ls(j,z.mode,P),C.return=z,C):(C=o(C,j),C.return=z,C)}function w(z,C,j,P){var oe=j.type;return oe===T?I(z,C,j.props.children,P,j.key):C!==null&&(C.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===W&&xa(oe)===C.type)?(C=o(C,j.props),lr(C,j),C.return=z,C):(C=pl(j.type,j.key,j.props,null,z.mode,P),lr(C,j),C.return=z,C)}function N(z,C,j,P){return C===null||C.tag!==4||C.stateNode.containerInfo!==j.containerInfo||C.stateNode.implementation!==j.implementation?(C=Ns(j,z.mode,P),C.return=z,C):(C=o(C,j.children||[]),C.return=z,C)}function I(z,C,j,P,oe){return C===null||C.tag!==7?(C=Sa(j,z.mode,P,oe),C.return=z,C):(C=o(C,j),C.return=z,C)}function F(z,C,j){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ls(""+C,z.mode,j),C.return=z,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return j=pl(C.type,C.key,C.props,null,z.mode,j),lr(j,C),j.return=z,j;case E:return C=Ns(C,z.mode,j),C.return=z,C;case W:return C=xa(C),F(z,C,j)}if(ve(C)||ee(C))return C=Sa(C,z.mode,j,null),C.return=z,C;if(typeof C.then=="function")return F(z,El(C),j);if(C.$$typeof===$)return F(z,yl(z,C),j);wl(z,C)}return null}function q(z,C,j,P){var oe=C!==null?C.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return oe!==null?null:_(z,C,""+j,P);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===oe?w(z,C,j,P):null;case E:return j.key===oe?N(z,C,j,P):null;case W:return j=xa(j),q(z,C,j,P)}if(ve(j)||ee(j))return oe!==null?null:I(z,C,j,P,null);if(typeof j.then=="function")return q(z,C,El(j),P);if(j.$$typeof===$)return q(z,C,yl(z,j),P);wl(z,j)}return null}function V(z,C,j,P,oe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(j)||null,_(C,z,""+P,oe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return z=z.get(P.key===null?j:P.key)||null,w(C,z,P,oe);case E:return z=z.get(P.key===null?j:P.key)||null,N(C,z,P,oe);case W:return P=xa(P),V(z,C,j,P,oe)}if(ve(P)||ee(P))return z=z.get(j)||null,I(C,z,P,oe,null);if(typeof P.then=="function")return V(z,C,j,El(P),oe);if(P.$$typeof===$)return V(z,C,j,yl(C,P),oe);wl(C,P)}return null}function ie(z,C,j,P){for(var oe=null,je=null,le=C,Oe=C=0,Me=null;le!==null&&Oe<j.length;Oe++){le.index>Oe?(Me=le,le=null):Me=le.sibling;var Le=q(z,le,j[Oe],P);if(Le===null){le===null&&(le=Me);break}e&&le&&Le.alternate===null&&t(z,le),C=c(Le,C,Oe),je===null?oe=Le:je.sibling=Le,je=Le,le=Me}if(Oe===j.length)return a(z,le),Re&&bn(z,Oe),oe;if(le===null){for(;Oe<j.length;Oe++)le=F(z,j[Oe],P),le!==null&&(C=c(le,C,Oe),je===null?oe=le:je.sibling=le,je=le);return Re&&bn(z,Oe),oe}for(le=r(le);Oe<j.length;Oe++)Me=V(le,z,Oe,j[Oe],P),Me!==null&&(e&&Me.alternate!==null&&le.delete(Me.key===null?Oe:Me.key),C=c(Me,C,Oe),je===null?oe=Me:je.sibling=Me,je=Me);return e&&le.forEach(function(fa){return t(z,fa)}),Re&&bn(z,Oe),oe}function me(z,C,j,P){if(j==null)throw Error(u(151));for(var oe=null,je=null,le=C,Oe=C=0,Me=null,Le=j.next();le!==null&&!Le.done;Oe++,Le=j.next()){le.index>Oe?(Me=le,le=null):Me=le.sibling;var fa=q(z,le,Le.value,P);if(fa===null){le===null&&(le=Me);break}e&&le&&fa.alternate===null&&t(z,le),C=c(fa,C,Oe),je===null?oe=fa:je.sibling=fa,je=fa,le=Me}if(Le.done)return a(z,le),Re&&bn(z,Oe),oe;if(le===null){for(;!Le.done;Oe++,Le=j.next())Le=F(z,Le.value,P),Le!==null&&(C=c(Le,C,Oe),je===null?oe=Le:je.sibling=Le,je=Le);return Re&&bn(z,Oe),oe}for(le=r(le);!Le.done;Oe++,Le=j.next())Le=V(le,z,Oe,Le.value,P),Le!==null&&(e&&Le.alternate!==null&&le.delete(Le.key===null?Oe:Le.key),C=c(Le,C,Oe),je===null?oe=Le:je.sibling=Le,je=Le);return e&&le.forEach(function(o_){return t(z,o_)}),Re&&bn(z,Oe),oe}function Ye(z,C,j,P){if(typeof j=="object"&&j!==null&&j.type===T&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var oe=j.key;C!==null;){if(C.key===oe){if(oe=j.type,oe===T){if(C.tag===7){a(z,C.sibling),P=o(C,j.props.children),P.return=z,z=P;break e}}else if(C.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===W&&xa(oe)===C.type){a(z,C.sibling),P=o(C,j.props),lr(P,j),P.return=z,z=P;break e}a(z,C);break}else t(z,C);C=C.sibling}j.type===T?(P=Sa(j.props.children,z.mode,P,j.key),P.return=z,z=P):(P=pl(j.type,j.key,j.props,null,z.mode,P),lr(P,j),P.return=z,z=P)}return p(z);case E:e:{for(oe=j.key;C!==null;){if(C.key===oe)if(C.tag===4&&C.stateNode.containerInfo===j.containerInfo&&C.stateNode.implementation===j.implementation){a(z,C.sibling),P=o(C,j.children||[]),P.return=z,z=P;break e}else{a(z,C);break}else t(z,C);C=C.sibling}P=Ns(j,z.mode,P),P.return=z,z=P}return p(z);case W:return j=xa(j),Ye(z,C,j,P)}if(ve(j))return ie(z,C,j,P);if(ee(j)){if(oe=ee(j),typeof oe!="function")throw Error(u(150));return j=oe.call(j),me(z,C,j,P)}if(typeof j.then=="function")return Ye(z,C,El(j),P);if(j.$$typeof===$)return Ye(z,C,yl(z,j),P);wl(z,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,C!==null&&C.tag===6?(a(z,C.sibling),P=o(C,j),P.return=z,z=P):(a(z,C),P=Ls(j,z.mode,P),P.return=z,z=P),p(z)):a(z,C)}return function(z,C,j,P){try{rr=0;var oe=Ye(z,C,j,P);return oi=null,oe}catch(le){if(le===si||le===_l)throw le;var je=Dt(29,le,null,z.mode);return je.lanes=P,je.return=z,je}}}var Aa=qd(!0),Ud=qd(!1),Xn=!1;function ks(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=ml(e),_d(e,null,a),t}return hl(e,r,t,a),ml(e)}function ur(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Af(e,a)}}function Qs(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Zs=!1;function sr(){if(Zs){var e=ui;if(e!==null)throw e}}function or(e,t,a,r){Zs=!1;var o=e.updateQueue;Xn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var w=_,N=w.next;w.next=null,p===null?c=N:p.next=N,p=w;var I=e.alternate;I!==null&&(I=I.updateQueue,_=I.lastBaseUpdate,_!==p&&(_===null?I.firstBaseUpdate=N:_.next=N,I.lastBaseUpdate=w))}if(c!==null){var F=o.baseState;p=0,I=N=w=null,_=c;do{var q=_.lane&-536870913,V=q!==_.lane;if(V?(ze&q)===q:(r&q)===q){q!==0&&q===li&&(Zs=!0),I!==null&&(I=I.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ie=e,me=_;q=t;var Ye=a;switch(me.tag){case 1:if(ie=me.payload,typeof ie=="function"){F=ie.call(Ye,F,q);break e}F=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=me.payload,q=typeof ie=="function"?ie.call(Ye,F,q):ie,q==null)break e;F=y({},F,q);break e;case 2:Xn=!0}}q=_.callback,q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[q]:V.push(q))}else V={lane:q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},I===null?(N=I=V,w=F):I=I.next=V,p|=q;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;V=_,_=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);I===null&&(w=F),o.baseState=w,o.firstBaseUpdate=N,o.lastBaseUpdate=I,c===null&&(o.shared.lanes=0),ta|=p,e.lanes=p,e.memoizedState=F}}function Vd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Hd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Vd(a[e],t)}var ci=x(null),Tl=x(0);function Bd(e,t){e=Mn,K(Tl,e),K(ci,t),Mn=e|t.baseLanes}function Ks(){K(Tl,Mn),K(ci,ci.current)}function Js(){Mn=Tl.current,H(ci),H(Tl)}var Rt=x(null),Ft=null;function Kn(e){var t=e.alternate;K(Je,Je.current&1),K(Rt,e),Ft===null&&(t===null||ci.current!==null||t.memoizedState!==null)&&(Ft=e)}function Ws(e){K(Je,Je.current),K(Rt,e),Ft===null&&(Ft=e)}function Gd(e){e.tag===22?(K(Je,Je.current),K(Rt,e),Ft===null&&(Ft=e)):Jn()}function Jn(){K(Je,Je.current),K(Rt,Rt.current)}function jt(e){H(Rt),Ft===e&&(Ft=null),H(Je)}var Je=x(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||lc(a)||uc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var En=0,we=null,Ge=null,tt=null,xl=!1,fi=!1,za=!1,Cl=0,cr=0,di=null,Wb=0;function Qe(){throw Error(u(321))}function eo(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Mt(e[a],t[a]))return!1;return!0}function to(e,t,a,r,o,c){return En=c,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Th:go,za=!1,c=a(r,o),za=!1,fi&&(c=Yd(t,a,r,o)),Id(e),c}function Id(e){D.H=hr;var t=Ge!==null&&Ge.next!==null;if(En=0,tt=Ge=we=null,xl=!1,cr=0,di=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&gl(e)&&(nt=!0))}function Yd(e,t,a,r){we=e;var o=0;do{if(fi&&(di=null),cr=0,fi=!1,25<=o)throw Error(u(301));if(o+=1,tt=Ge=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Oh,c=t(a,r)}while(fi);return c}function e0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?fr(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(we.flags|=1024),t}function no(){var e=Cl!==0;return Cl=0,e}function ao(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function io(e){if(xl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xl=!1}En=0,tt=Ge=we=null,fi=!1,cr=Cl=0,di=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?we.memoizedState=tt=e:tt=tt.next=e,tt}function We(){if(Ge===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=tt===null?we.memoizedState:tt.next;if(t!==null)tt=t,Ge=e;else{if(e===null)throw we.alternate===null?Error(u(467)):Error(u(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},tt===null?we.memoizedState=tt=e:tt=tt.next=e}return tt}function Al(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fr(e){var t=cr;return cr+=1,di===null&&(di=[]),e=jd(di,e,t),t=we,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Th:go),e}function zl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fr(e);if(e.$$typeof===$)return dt(e)}throw Error(u(438,String(e)))}function ro(e){var t=null,a=we.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=we.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Al(),we.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=De;return t.index++,a}function wn(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=We();return lo(t,Ge,e)}function lo(e,t,a){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=a;var o=e.baseQueue,c=r.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,r.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=p=null,w=null,N=t,I=!1;do{var F=N.lane&-536870913;if(F!==N.lane?(ze&F)===F:(En&F)===F){var q=N.revertLane;if(q===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),F===li&&(I=!0);else if((En&q)===q){N=N.next,q===li&&(I=!0);continue}else F={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(_=w=F,p=c):w=w.next=F,we.lanes|=q,ta|=q;F=N.action,za&&a(c,F),c=N.hasEagerState?N.eagerState:a(c,F)}else q={lane:F,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(_=w=q,p=c):w=w.next=q,we.lanes|=F,ta|=F;N=N.next}while(N!==null&&N!==t);if(w===null?p=c:w.next=_,!Mt(c,e.memoizedState)&&(nt=!0,I&&(a=ui,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=w,r.lastRenderedState=c}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function uo(e){var t=We(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Mt(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function $d(e,t,a){var r=we,o=We(),c=Re;if(c){if(a===void 0)throw Error(u(407));a=a()}else a=t();var p=!Mt((Ge||o).memoizedState,a);if(p&&(o.memoizedState=a,nt=!0),o=o.queue,co(kd.bind(null,r,o,e),[e]),o.getSnapshot!==t||p||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,hi(9,{destroy:void 0},Fd.bind(null,r,o,a,t),null),$e===null)throw Error(u(349));c||(En&127)!==0||Pd(r,t,a)}return a}function Pd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=we.updateQueue,t===null?(t=Al(),we.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Fd(e,t,a,r){t.value=a,t.getSnapshot=r,Xd(t)&&Qd(e)}function kd(e,t,a){return a(function(){Xd(t)&&Qd(e)})}function Xd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Mt(e,a)}catch{return!0}}function Qd(e){var t=_a(e,2);t!==null&&Ot(t,e,2)}function so(e){var t=yt();if(typeof e=="function"){var a=e;if(e=a(),za){Gn(!0);try{a()}finally{Gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:e},t}function Zd(e,t,a,r){return e.baseState=a,lo(e,Ge,typeof r=="function"?r:wn)}function t0(e,t,a,r,o){if(jl(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};D.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,Kd(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Kd(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var c=D.T,p={};D.T=p;try{var _=a(o,r),w=D.S;w!==null&&w(p,_),Jd(e,t,_)}catch(N){oo(e,t,N)}finally{c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}else try{c=a(o,r),Jd(e,t,c)}catch(N){oo(e,t,N)}}function Jd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Wd(e,t,r)},function(r){return oo(e,t,r)}):Wd(e,t,a)}function Wd(e,t,a){t.status="fulfilled",t.value=a,eh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Kd(e,a)))}function oo(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,eh(t),t=t.next;while(t!==r)}e.action=null}function eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function th(e,t){return t}function nh(e,t){if(Re){var a=$e.formState;if(a!==null){e:{var r=we;if(Re){if(Fe){t:{for(var o=Fe,c=Pt;o.nodeType!==8;){if(!c){o=null;break t}if(o=kt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Fe=kt(o.nextSibling),r=o.data==="F!";break e}}Fn(r)}r=!1}r&&(t=a[0])}}return a=yt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:t},a.queue=r,a=Sh.bind(null,we,r),r.dispatch=a,r=so(!1),c=vo.bind(null,we,!1,r.queue),r=yt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=t0.bind(null,we,o,c,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function ah(e){var t=We();return ih(t,Ge,e)}function ih(e,t,a){if(t=lo(e,t,th)[0],e=Ml(wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fr(t)}catch(p){throw p===si?_l:p}else r=t;t=We();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(we.flags|=2048,hi(9,{destroy:void 0},n0.bind(null,o,a),null)),[r,c,e]}function n0(e,t){e.action=t}function rh(e){var t=We(),a=Ge;if(a!==null)return ih(t,a,e);We(),t=t.memoizedState,a=We();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function hi(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=we.updateQueue,t===null&&(t=Al(),we.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function lh(){return We().memoizedState}function Dl(e,t,a,r){var o=yt();we.flags|=e,o.memoizedState=hi(1|t,{destroy:void 0},a,r===void 0?null:r)}function Rl(e,t,a,r){var o=We();r=r===void 0?null:r;var c=o.memoizedState.inst;Ge!==null&&r!==null&&eo(r,Ge.memoizedState.deps)?o.memoizedState=hi(t,c,a,r):(we.flags|=e,o.memoizedState=hi(1|t,c,a,r))}function uh(e,t){Dl(8390656,8,e,t)}function co(e,t){Rl(2048,8,e,t)}function a0(e){we.flags|=4;var t=we.updateQueue;if(t===null)t=Al(),we.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function sh(e){var t=We().memoizedState;return a0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function oh(e,t){return Rl(4,2,e,t)}function ch(e,t){return Rl(4,4,e,t)}function fh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dh(e,t,a){a=a!=null?a.concat([e]):null,Rl(4,4,fh.bind(null,t,e),a)}function fo(){}function hh(e,t){var a=We();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&eo(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function mh(e,t){var a=We();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&eo(t,r[1]))return r[0];if(r=e(),za){Gn(!0);try{e()}finally{Gn(!1)}}return a.memoizedState=[r,t],r}function ho(e,t,a){return a===void 0||(En&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=pm(),we.lanes|=e,ta|=e,a)}function ph(e,t,a,r){return Mt(a,t)?a:ci.current!==null?(e=ho(e,a,r),Mt(e,t)||(nt=!0),e):(En&42)===0||(En&1073741824)!==0&&(ze&261930)===0?(nt=!0,e.memoizedState=a):(e=pm(),we.lanes|=e,ta|=e,t)}function vh(e,t,a,r,o){var c=Q.p;Q.p=c!==0&&8>c?c:8;var p=D.T,_={};D.T=_,vo(e,!1,t,a);try{var w=o(),N=D.S;if(N!==null&&N(_,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var I=Jb(w,r);dr(e,t,I,qt(e))}else dr(e,t,r,qt(e))}catch(F){dr(e,t,{then:function(){},status:"rejected",reason:F},qt())}finally{Q.p=c,p!==null&&_.types!==null&&(p.types=_.types),D.T=p}}function i0(){}function mo(e,t,a,r){if(e.tag!==5)throw Error(u(476));var o=gh(e).queue;vh(e,o,t,J,a===null?i0:function(){return yh(e),a(r)})}function gh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yh(e){var t=gh(e);t.next===null&&(t=e.alternate.memoizedState),dr(e,t.next.queue,{},qt())}function po(){return dt(zr)}function bh(){return We().memoizedState}function _h(){return We().memoizedState}function r0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=qt();e=Qn(a);var r=Zn(t,e,a);r!==null&&(Ot(r,t,a),ur(r,t,a)),t={cache:Ys()},e.payload=t;return}t=t.return}}function l0(e,t,a){var r=qt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},jl(e)?Eh(t,a):(a=Rs(e,t,a,r),a!==null&&(Ot(a,e,r),wh(a,t,r)))}function Sh(e,t,a){var r=qt();dr(e,t,a,r)}function dr(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(jl(e))Eh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,_=c(p,a);if(o.hasEagerState=!0,o.eagerState=_,Mt(_,p))return hl(e,t,o,0),$e===null&&dl(),!1}catch{}if(a=Rs(e,t,o,r),a!==null)return Ot(a,e,r),wh(a,t,r),!0}return!1}function vo(e,t,a,r){if(r={lane:2,revertLane:Xo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},jl(e)){if(t)throw Error(u(479))}else t=Rs(e,a,r,2),t!==null&&Ot(t,e,2)}function jl(e){var t=e.alternate;return e===we||t!==null&&t===we}function Eh(e,t){fi=xl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function wh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Af(e,a)}}var hr={readContext:dt,use:zl,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};hr.useEffectEvent=Qe;var Th={readContext:dt,use:zl,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:uh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Dl(4194308,4,fh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){Dl(4,2,e,t)},useMemo:function(e,t){var a=yt();t=t===void 0?null:t;var r=e();if(za){Gn(!0);try{e()}finally{Gn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=yt();if(a!==void 0){var o=a(t);if(za){Gn(!0);try{a(t)}finally{Gn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=l0.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=so(e);var t=e.queue,a=Sh.bind(null,we,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:fo,useDeferredValue:function(e,t){var a=yt();return ho(a,e,t)},useTransition:function(){var e=so(!1);return e=vh.bind(null,we,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=we,o=yt();if(Re){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),$e===null)throw Error(u(349));(ze&127)!==0||Pd(r,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,uh(kd.bind(null,r,c,e),[e]),r.flags|=2048,hi(9,{destroy:void 0},Fd.bind(null,r,c,a,t),null),a},useId:function(){var e=yt(),t=$e.identifierPrefix;if(Re){var a=un,r=ln;a=(r&~(1<<32-zt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Cl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Wb++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:po,useFormState:nh,useActionState:nh,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=vo.bind(null,we,!0,a),a.dispatch=t,[e,t]},useMemoCache:ro,useCacheRefresh:function(){return yt().memoizedState=r0.bind(null,we)},useEffectEvent:function(e){var t=yt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},go={readContext:dt,use:zl,useCallback:hh,useContext:dt,useEffect:co,useImperativeHandle:dh,useInsertionEffect:oh,useLayoutEffect:ch,useMemo:mh,useReducer:Ml,useRef:lh,useState:function(){return Ml(wn)},useDebugValue:fo,useDeferredValue:function(e,t){var a=We();return ph(a,Ge.memoizedState,e,t)},useTransition:function(){var e=Ml(wn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:fr(e),t]},useSyncExternalStore:$d,useId:bh,useHostTransitionStatus:po,useFormState:ah,useActionState:ah,useOptimistic:function(e,t){var a=We();return Zd(a,Ge,e,t)},useMemoCache:ro,useCacheRefresh:_h};go.useEffectEvent=sh;var Oh={readContext:dt,use:zl,useCallback:hh,useContext:dt,useEffect:co,useImperativeHandle:dh,useInsertionEffect:oh,useLayoutEffect:ch,useMemo:mh,useReducer:uo,useRef:lh,useState:function(){return uo(wn)},useDebugValue:fo,useDeferredValue:function(e,t){var a=We();return Ge===null?ho(a,e,t):ph(a,Ge.memoizedState,e,t)},useTransition:function(){var e=uo(wn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:fr(e),t]},useSyncExternalStore:$d,useId:bh,useHostTransitionStatus:po,useFormState:rh,useActionState:rh,useOptimistic:function(e,t){var a=We();return Ge!==null?Zd(a,Ge,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ro,useCacheRefresh:_h};Oh.useEffectEvent=sh;function yo(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var bo={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=qt(),o=Qn(r);o.payload=t,a!=null&&(o.callback=a),t=Zn(e,o,r),t!==null&&(Ot(t,e,r),ur(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=qt(),o=Qn(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Zn(e,o,r),t!==null&&(Ot(t,e,r),ur(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qt(),r=Qn(a);r.tag=2,t!=null&&(r.callback=t),t=Zn(e,r,a),t!==null&&(Ot(t,e,a),ur(t,e,a))}};function xh(e,t,a,r,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,p):t.prototype&&t.prototype.isPureReactComponent?!Wi(a,r)||!Wi(o,c):!0}function Ch(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function Ma(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Ah(e){fl(e)}function zh(e){console.error(e)}function Mh(e){fl(e)}function Ll(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Dh(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _o(e,t,a){return a=Qn(a),a.tag=3,a.payload={element:null},a.callback=function(){Ll(e,t)},a}function Rh(e){return e=Qn(e),e.tag=3,e}function jh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=r.value;e.payload=function(){return o(c)},e.callback=function(){Dh(t,a,r)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Dh(t,a,r),typeof o!="function"&&(na===null?na=new Set([this]):na.add(this));var _=r.stack;this.componentDidCatch(r.value,{componentStack:_!==null?_:""})})}function u0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ri(t,a,o,!0),a=Rt.current,a!==null){switch(a.tag){case 31:case 13:return Ft===null?Fl():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===Sl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Po(e,r,o)),!1;case 22:return a.flags|=65536,r===Sl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Po(e,r,o)),!1}throw Error(u(435,a.tag))}return Po(e,r,o),Fl(),!1}if(Re)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Vs&&(e=Error(u(422),{cause:r}),nr(It(e,a)))):(r!==Vs&&(t=Error(u(423),{cause:r}),nr(It(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=It(r,a),o=_o(e.stateNode,r,o),Qs(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(u(520),{cause:r});if(c=It(c,a),Sr===null?Sr=[c]:Sr.push(c),Ze!==4&&(Ze=2),t===null)return!0;r=It(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=_o(a.stateNode,r,e),Qs(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(na===null||!na.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Rh(o),jh(o,e,a,r),Qs(a,o),!1}a=a.return}while(a!==null);return!1}var So=Error(u(461)),nt=!1;function ht(e,t,a,r){t.child=e===null?Ud(t,null,a,r):Aa(t,e.child,a,r)}function Lh(e,t,a,r,o){a=a.render;var c=t.ref;if("ref"in r){var p={};for(var _ in r)_!=="ref"&&(p[_]=r[_])}else p=r;return Ta(t),r=to(e,t,a,p,c,o),_=no(),e!==null&&!nt?(ao(e,t,o),Tn(e,t,o)):(Re&&_&&qs(t),t.flags|=1,ht(e,t,r,o),t.child)}function Nh(e,t,a,r,o){if(e===null){var c=a.type;return typeof c=="function"&&!js(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,qh(e,t,c,r,o)):(e=pl(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zo(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:Wi,a(p,r)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=yn(c,r),e.ref=t.ref,e.return=t,t.child=e}function qh(e,t,a,r,o){if(e!==null){var c=e.memoizedProps;if(Wi(c,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=c,zo(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return Eo(e,t,a,r,o)}function Uh(e,t,a,r){var o=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~c}else r=0,t.child=null;return Vh(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bl(t,c!==null?c.cachePool:null),c!==null?Bd(t,c):Ks(),Gd(t);else return r=t.lanes=536870912,Vh(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(bl(t,c.cachePool),Bd(t,c),Jn(),t.memoizedState=null):(e!==null&&bl(t,null),Ks(),Jn());return ht(e,t,o,a),t.child}function mr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vh(e,t,a,r,o){var c=Ps();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&bl(t,null),Ks(),Gd(t),e!==null&&ri(e,t,r,!0),t.childLanes=o,null}function Nl(e,t){return t=Ul({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hh(e,t,a){return Aa(t,e.child,null,a),e=Nl(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function s0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(r.mode==="hidden")return e=Nl(t,r),t.lanes=536870912,mr(null,e);if(Ws(t),(e=Fe)?(e=Km(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:ln,overflow:un}:null,retryLane:536870912,hydrationErrors:null},a=Ed(e),a.return=t,t.child=a,ft=t,Fe=null)):e=null,e===null)throw Fn(t);return t.lanes=536870912,null}return Nl(t,r)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Ws(t),o)if(t.flags&256)t.flags&=-257,t=Hh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||ri(e,t,a,!1),o=(a&e.childLanes)!==0,nt||o){if(r=$e,r!==null&&(p=zf(r,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,_a(e,p),Ot(r,e,p),So;Fl(),t=Hh(e,t,a)}else e=c.treeContext,Fe=kt(p.nextSibling),ft=t,Re=!0,Pn=null,Pt=!1,e!==null&&Od(t,e),t=Nl(t,r),t.flags|=4096;return t}return e=yn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ql(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Eo(e,t,a,r,o){return Ta(t),a=to(e,t,a,r,void 0,o),r=no(),e!==null&&!nt?(ao(e,t,o),Tn(e,t,o)):(Re&&r&&qs(t),t.flags|=1,ht(e,t,a,o),t.child)}function Bh(e,t,a,r,o,c){return Ta(t),t.updateQueue=null,a=Yd(t,r,a,o),Id(e),r=no(),e!==null&&!nt?(ao(e,t,c),Tn(e,t,c)):(Re&&r&&qs(t),t.flags|=1,ht(e,t,a,c),t.child)}function Gh(e,t,a,r,o){if(Ta(t),t.stateNode===null){var c=ti,p=a.contextType;typeof p=="object"&&p!==null&&(c=dt(p)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},ks(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?dt(p):ti,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(yo(t,a,p,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&bo.enqueueReplaceState(c,c.state,null),or(t,r,c,o),sr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,w=Ma(a,_);c.props=w;var N=c.context,I=a.contextType;p=ti,typeof I=="object"&&I!==null&&(p=dt(I));var F=a.getDerivedStateFromProps;I=typeof F=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,I||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||N!==p)&&Ch(t,c,r,p),Xn=!1;var q=t.memoizedState;c.state=q,or(t,r,c,o),sr(),N=t.memoizedState,_||q!==N||Xn?(typeof F=="function"&&(yo(t,a,F,r),N=t.memoizedState),(w=Xn||xh(t,a,w,r,q,N,p))?(I||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=N),c.props=r,c.state=N,c.context=p,r=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Xs(e,t),p=t.memoizedProps,I=Ma(a,p),c.props=I,F=t.pendingProps,q=c.context,N=a.contextType,w=ti,typeof N=="object"&&N!==null&&(w=dt(N)),_=a.getDerivedStateFromProps,(N=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==F||q!==w)&&Ch(t,c,r,w),Xn=!1,q=t.memoizedState,c.state=q,or(t,r,c,o),sr();var V=t.memoizedState;p!==F||q!==V||Xn||e!==null&&e.dependencies!==null&&gl(e.dependencies)?(typeof _=="function"&&(yo(t,a,_,r),V=t.memoizedState),(I=Xn||xh(t,a,I,r,q,V,w)||e!==null&&e.dependencies!==null&&gl(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,V,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,V,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=V),c.props=r,c.state=V,c.context=w,r=I):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,ql(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=Aa(t,e.child,null,o),t.child=Aa(t,null,a,o)):ht(e,t,a,o),t.memoizedState=c.state,e=t.child):e=Tn(e,t,o),e}function Ih(e,t,a,r){return Ea(),t.flags|=256,ht(e,t,a,r),t.child}var wo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function To(e){return{baseLanes:e,cachePool:Dd()}}function Oo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Nt),e}function Yh(e,t,a){var r=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?Kn(t):Jn(),(e=Fe)?(e=Km(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:ln,overflow:un}:null,retryLane:536870912,hydrationErrors:null},a=Ed(e),a.return=t,t.child=a,ft=t,Fe=null)):e=null,e===null)throw Fn(t);return uc(e)?t.lanes=32:t.lanes=536870912,null}var _=r.children;return r=r.fallback,o?(Jn(),o=t.mode,_=Ul({mode:"hidden",children:_},o),r=Sa(r,o,a,null),_.return=t,r.return=t,_.sibling=r,t.child=_,r=t.child,r.memoizedState=To(a),r.childLanes=Oo(e,p,a),t.memoizedState=wo,mr(null,r)):(Kn(t),xo(t,_))}var w=e.memoizedState;if(w!==null&&(_=w.dehydrated,_!==null)){if(c)t.flags&256?(Kn(t),t.flags&=-257,t=Co(e,t,a)):t.memoizedState!==null?(Jn(),t.child=e.child,t.flags|=128,t=null):(Jn(),_=r.fallback,o=t.mode,r=Ul({mode:"visible",children:r.children},o),_=Sa(_,o,a,null),_.flags|=2,r.return=t,_.return=t,r.sibling=_,t.child=r,Aa(t,e.child,null,a),r=t.child,r.memoizedState=To(a),r.childLanes=Oo(e,p,a),t.memoizedState=wo,t=mr(null,r));else if(Kn(t),uc(_)){if(p=_.nextSibling&&_.nextSibling.dataset,p)var N=p.dgst;p=N,r=Error(u(419)),r.stack="",r.digest=p,nr({value:r,source:null,stack:null}),t=Co(e,t,a)}else if(nt||ri(e,t,a,!1),p=(a&e.childLanes)!==0,nt||p){if(p=$e,p!==null&&(r=zf(p,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,_a(e,r),Ot(p,e,r),So;lc(_)||Fl(),t=Co(e,t,a)}else lc(_)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Fe=kt(_.nextSibling),ft=t,Re=!0,Pn=null,Pt=!1,e!==null&&Od(t,e),t=xo(t,r.children),t.flags|=4096);return t}return o?(Jn(),_=r.fallback,o=t.mode,w=e.child,N=w.sibling,r=yn(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,N!==null?_=yn(N,_):(_=Sa(_,o,a,null),_.flags|=2),_.return=t,r.return=t,r.sibling=_,t.child=r,mr(null,r),r=t.child,_=e.child.memoizedState,_===null?_=To(a):(o=_.cachePool,o!==null?(w=et._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Dd(),_={baseLanes:_.baseLanes|a,cachePool:o}),r.memoizedState=_,r.childLanes=Oo(e,p,a),t.memoizedState=wo,mr(e.child,r)):(Kn(t),a=e.child,e=a.sibling,a=yn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function xo(e,t){return t=Ul({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ul(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Co(e,t,a){return Aa(t,e.child,null,a),e=xo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $h(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gs(e.return,t,a)}function Ao(e,t,a,r,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=r,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function Ph(e,t,a){var r=t.pendingProps,o=r.revealOrder,c=r.tail;r=r.children;var p=Je.current,_=(p&2)!==0;if(_?(p=p&1|2,t.flags|=128):p&=1,K(Je,p),ht(e,t,r,a),r=Re?tr:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,a,t);else if(e.tag===19)$h(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ol(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Ao(t,!1,o,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ol(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Ao(t,!0,a,null,c,r);break;case"together":Ao(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ri(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=yn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=yn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gl(e)))}function o0(e,t,a){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),kn(t,et,e.memoizedState.cache),Ea();break;case 27:case 5:Vt(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ws(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Kn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Yh(e,t,a):(Kn(t),e=Tn(e,t,a),e!==null?e.sibling:null);Kn(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ri(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return Ph(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Je,Je.current),r)break;return null;case 22:return t.lanes=0,Uh(e,t,a,t.pendingProps);case 24:kn(t,et,e.memoizedState.cache)}return Tn(e,t,a)}function Fh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!zo(e,a)&&(t.flags&128)===0)return nt=!1,o0(e,t,a);nt=(e.flags&131072)!==0}else nt=!1,Re&&(t.flags&1048576)!==0&&Td(t,tr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=xa(t.elementType),t.type=e,typeof e=="function")js(e)?(r=Ma(e,r),t.tag=1,t=Gh(null,t,e,r,a)):(t.tag=0,t=Eo(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===Z){t.tag=11,t=Lh(null,t,e,r,a);break e}else if(o===U){t.tag=14,t=Nh(null,t,e,r,a);break e}}throw t=de(e)||e,Error(u(306,t,""))}}return t;case 0:return Eo(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=Ma(r,t.pendingProps),Gh(e,t,r,o,a);case 3:e:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var c=t.memoizedState;o=c.element,Xs(e,t),or(t,r,null,a);var p=t.memoizedState;if(r=p.cache,kn(t,et,r),r!==c.cache&&Is(t,[et],a,!0),sr(),r=p.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ih(e,t,r,a);break e}else if(r!==o){o=It(Error(u(424)),t),nr(o),t=Ih(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Fe=kt(e.firstChild),ft=t,Re=!0,Pn=null,Pt=!0,a=Ud(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ea(),r===o){t=Tn(e,t,a);break e}ht(e,t,r,a)}t=t.child}return t;case 26:return ql(e,t),e===null?(a=ap(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,r=Wl(se.current).createElement(a),r[ct]=t,r[bt]=e,mt(r,a,e),ut(r),t.stateNode=r):t.memoizedState=ap(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vt(t),e===null&&Re&&(r=t.stateNode=ep(t.type,t.pendingProps,se.current),ft=t,Pt=!0,o=Fe,la(t.type)?(sc=o,Fe=kt(r.firstChild)):Fe=o),ht(e,t,t.pendingProps.children,a),ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=r=Fe)&&(r=H0(r,t.type,t.pendingProps,Pt),r!==null?(t.stateNode=r,ft=t,Fe=kt(r.firstChild),Pt=!1,o=!0):o=!1),o||Fn(t)),Vt(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,r=c.children,ac(o,c)?r=null:p!==null&&ac(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=to(e,t,e0,null,null,a),zr._currentValue=o),ql(e,t),ht(e,t,r,a),t.child;case 6:return e===null&&Re&&((e=a=Fe)&&(a=B0(a,t.pendingProps,Pt),a!==null?(t.stateNode=a,ft=t,Fe=null,e=!0):e=!1),e||Fn(t)),null;case 13:return Yh(e,t,a);case 4:return xe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,a):ht(e,t,r,a),t.child;case 11:return Lh(e,t,t.type,t.pendingProps,a);case 7:return ht(e,t,t.pendingProps,a),t.child;case 8:return ht(e,t,t.pendingProps.children,a),t.child;case 12:return ht(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,kn(t,t.type,r.value),ht(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ta(t),o=dt(o),r=r(o),t.flags|=1,ht(e,t,r,a),t.child;case 14:return Nh(e,t,t.type,t.pendingProps,a);case 15:return qh(e,t,t.type,t.pendingProps,a);case 19:return Ph(e,t,a);case 31:return s0(e,t,a);case 22:return Uh(e,t,a,t.pendingProps);case 24:return Ta(t),r=dt(et),e===null?(o=Ps(),o===null&&(o=$e,c=Ys(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:r,cache:o},ks(t),kn(t,et,o)):((e.lanes&a)!==0&&(Xs(e,t),or(t,null,null,a),sr()),o=e.memoizedState,c=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),kn(t,et,r)):(r=c.cache,kn(t,et,r),r!==o.cache&&Is(t,[et],a,!0))),ht(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function On(e){e.flags|=4}function Mo(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(bm())e.flags|=8192;else throw Ca=Sl,Fs}else e.flags&=-16777217}function kh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sp(t))if(bm())e.flags|=8192;else throw Ca=Sl,Fs}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xf():536870912,e.lanes|=t,gi|=t)}function pr(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function c0(e,t,a){var r=t.pendingProps;switch(Us(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Sn(et),Se(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ii(t)?On(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hs())),ke(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(On(t),c!==null?(ke(t),kh(t,c)):(ke(t),Mo(t,o,null,r,a))):c?c!==e.memoizedState?(On(t),ke(t),kh(t,c)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&On(t),ke(t),Mo(t,o,e,r,a)),null;case 27:if(ot(t),a=se.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&On(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ke(t),null}e=te.current,ii(t)?xd(t):(e=ep(o,r,a),t.stateNode=e,On(t))}return ke(t),null;case 5:if(ot(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&On(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ke(t),null}if(c=te.current,ii(t))xd(t);else{var p=Wl(se.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?p.createElement("select",{is:r.is}):p.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?p.createElement(o,{is:r.is}):p.createElement(o)}}c[ct]=t,c[bt]=r;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(mt(c,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&On(t)}}return ke(t),Mo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&On(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=se.current,ii(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=ft,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ct]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||Ym(e.nodeValue,a)),e||Fn(t,!0)}else e=Wl(e).createTextNode(r),e[ct]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=ii(t),a!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ke(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ct]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),o=!1}else o=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vl(t,t.updateQueue),ke(t),null);case 4:return Se(),e===null&&Jo(t.stateNode.containerInfo),ke(t),null;case 10:return Sn(t.type),ke(t),null;case 19:if(H(Je),r=t.memoizedState,r===null)return ke(t),null;if(o=(t.flags&128)!==0,c=r.rendering,c===null)if(o)pr(r,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ol(e),c!==null){for(t.flags|=128,pr(r,!1),e=c.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Sd(a,e),a=a.sibling;return K(Je,Je.current&1|2),Re&&bn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ct()>Yl&&(t.flags|=128,o=!0,pr(r,!1),t.lanes=4194304)}else{if(!o)if(e=Ol(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),pr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Re)return ke(t),null}else 2*Ct()-r.renderingStartTime>Yl&&a!==536870912&&(t.flags|=128,o=!0,pr(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ct(),e.sibling=null,a=Je.current,K(Je,o?a&1|2:a&1),Re&&bn(t,r.treeForkCount),e):(ke(t),null);case 22:case 23:return jt(t),Js(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&Vl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&H(Oa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sn(et),ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function f0(e,t){switch(Us(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(et),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ot(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(u(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Je),null;case 4:return Se(),null;case 10:return Sn(t.type),null;case 22:case 23:return jt(t),Js(),e!==null&&H(Oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sn(et),null;case 25:return null;default:return null}}function Xh(e,t){switch(Us(t),t.tag){case 3:Sn(et),Se();break;case 26:case 27:case 5:ot(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:H(Je);break;case 10:Sn(t.type);break;case 22:case 23:jt(t),Js(),e!==null&&H(Oa);break;case 24:Sn(et)}}function vr(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var c=a.create,p=a.inst;r=c(),p.destroy=r}a=a.next}while(a!==o)}}catch(_){Be(t,t.return,_)}}function Wn(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){var p=r.inst,_=p.destroy;if(_!==void 0){p.destroy=void 0,o=t;var w=a,N=_;try{N()}catch(I){Be(o,w,I)}}}r=r.next}while(r!==c)}}catch(I){Be(t,t.return,I)}}function Qh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Hd(t,a)}catch(r){Be(e,e.return,r)}}}function Zh(e,t,a){a.props=Ma(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Be(e,t,r)}}function gr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){Be(e,t,o)}}function sn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){Be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Be(e,t,o)}else a.current=null}function Kh(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){Be(e,e.return,o)}}function Do(e,t,a){try{var r=e.stateNode;j0(r,e.type,a,t),r[bt]=t}catch(o){Be(e,e.return,o)}}function Jh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&la(e.type)||e.tag===4}function Ro(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&la(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jo(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=vn));else if(r!==4&&(r===27&&la(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(jo(e,t,a),e=e.sibling;e!==null;)jo(e,t,a),e=e.sibling}function Hl(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&la(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hl(e,t,a),e=e.sibling;e!==null;)Hl(e,t,a),e=e.sibling}function Wh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);mt(t,r,a),t[ct]=e,t[bt]=a}catch(c){Be(e,e.return,c)}}var xn=!1,at=!1,Lo=!1,em=typeof WeakSet=="function"?WeakSet:Set,st=null;function d0(e,t){if(e=e.containerInfo,tc=lu,e=dd(e),xs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,_=-1,w=-1,N=0,I=0,F=e,q=null;t:for(;;){for(var V;F!==a||o!==0&&F.nodeType!==3||(_=p+o),F!==c||r!==0&&F.nodeType!==3||(w=p+r),F.nodeType===3&&(p+=F.nodeValue.length),(V=F.firstChild)!==null;)q=F,F=V;for(;;){if(F===e)break t;if(q===a&&++N===o&&(_=p),q===c&&++I===r&&(w=p),(V=F.nextSibling)!==null)break;F=q,q=F.parentNode}F=V}a=_===-1||w===-1?null:{start:_,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(nc={focusedElem:e,selectionRange:a},lu=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var ie=Ma(a.type,o);e=r.getSnapshotBeforeUpdate(ie,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(me){Be(a,a.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)rc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function tm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:An(e,a),r&4&&vr(5,a);break;case 1:if(An(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Be(a,a.return,p)}else{var o=Ma(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Be(a,a.return,p)}}r&64&&Qh(a),r&512&&gr(a,a.return);break;case 3:if(An(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Hd(e,t)}catch(p){Be(a,a.return,p)}}break;case 27:t===null&&r&4&&Wh(a);case 26:case 5:An(e,a),t===null&&r&4&&Kh(a),r&512&&gr(a,a.return);break;case 12:An(e,a);break;case 31:An(e,a),r&4&&im(e,a);break;case 13:An(e,a),r&4&&rm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=S0.bind(null,a),G0(e,a))));break;case 22:if(r=a.memoizedState!==null||xn,!r){t=t!==null&&t.memoizedState!==null||at,o=xn;var c=at;xn=r,(at=t)&&!c?zn(e,a,(a.subtreeFlags&8772)!==0):An(e,a),xn=o,at=c}break;case 30:break;default:An(e,a)}}function nm(e){var t=e.alternate;t!==null&&(e.alternate=null,nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&os(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,St=!1;function Cn(e,t,a){for(a=a.child;a!==null;)am(e,t,a),a=a.sibling}function am(e,t,a){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Gi,a)}catch{}switch(a.tag){case 26:at||sn(a,t),Cn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||sn(a,t);var r=Xe,o=St;la(a.type)&&(Xe=a.stateNode,St=!1),Cn(e,t,a),xr(a.stateNode),Xe=r,St=o;break;case 5:at||sn(a,t);case 6:if(r=Xe,o=St,Xe=null,Cn(e,t,a),Xe=r,St=o,Xe!==null)if(St)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(c){Be(a,t,c)}else try{Xe.removeChild(a.stateNode)}catch(c){Be(a,t,c)}break;case 18:Xe!==null&&(St?(e=Xe,Qm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Oi(e)):Qm(Xe,a.stateNode));break;case 4:r=Xe,o=St,Xe=a.stateNode.containerInfo,St=!0,Cn(e,t,a),Xe=r,St=o;break;case 0:case 11:case 14:case 15:Wn(2,a,t),at||Wn(4,a,t),Cn(e,t,a);break;case 1:at||(sn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Zh(a,t,r)),Cn(e,t,a);break;case 21:Cn(e,t,a);break;case 22:at=(r=at)||a.memoizedState!==null,Cn(e,t,a),at=r;break;default:Cn(e,t,a)}}function im(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oi(e)}catch(a){Be(t,t.return,a)}}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(a){Be(t,t.return,a)}}function h0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new em),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new em),t;default:throw Error(u(435,e.tag))}}function Bl(e,t){var a=h0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=E0.bind(null,e,r);r.then(o,o)}})}function Et(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],c=e,p=t,_=p;e:for(;_!==null;){switch(_.tag){case 27:if(la(_.type)){Xe=_.stateNode,St=!1;break e}break;case 5:Xe=_.stateNode,St=!1;break e;case 3:case 4:Xe=_.stateNode.containerInfo,St=!0;break e}_=_.return}if(Xe===null)throw Error(u(160));am(c,p,o),Xe=null,St=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}var en=null;function lm(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),wt(e),r&4&&(Wn(3,e,e.return),vr(3,e),Wn(5,e,e.return));break;case 1:Et(t,e),wt(e),r&512&&(at||a===null||sn(a,a.return)),r&64&&xn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=en;if(Et(t,e),wt(e),r&512&&(at||a===null||sn(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":c=o.getElementsByTagName("title")[0],(!c||c[$i]||c[ct]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(r),o.head.insertBefore(c,o.querySelector("head > title"))),mt(c,r,a),c[ct]=e,ut(c),r=c;break e;case"link":var p=lp("link","href",o).get(r+(a.href||""));if(p){for(var _=0;_<p.length;_++)if(c=p[_],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(_,1);break t}}c=o.createElement(r),mt(c,r,a),o.head.appendChild(c);break;case"meta":if(p=lp("meta","content",o).get(r+(a.content||""))){for(_=0;_<p.length;_++)if(c=p[_],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(_,1);break t}}c=o.createElement(r),mt(c,r,a),o.head.appendChild(c);break;default:throw Error(u(468,r))}c[ct]=e,ut(c),r=c}e.stateNode=r}else up(o,e.type,e.stateNode);else e.stateNode=rp(o,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?up(o,e.type,e.stateNode):rp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Do(e,e.memoizedProps,a.memoizedProps)}break;case 27:Et(t,e),wt(e),r&512&&(at||a===null||sn(a,a.return)),a!==null&&r&4&&Do(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Et(t,e),wt(e),r&512&&(at||a===null||sn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(ie){Be(e,e.return,ie)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Do(e,o,a!==null?a.memoizedProps:o)),r&1024&&(Lo=!0);break;case 6:if(Et(t,e),wt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(ie){Be(e,e.return,ie)}}break;case 3:if(nu=null,o=en,en=eu(t.containerInfo),Et(t,e),en=o,wt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Oi(t.containerInfo)}catch(ie){Be(e,e.return,ie)}Lo&&(Lo=!1,um(e));break;case 4:r=en,en=eu(e.stateNode.containerInfo),Et(t,e),wt(e),en=r;break;case 12:Et(t,e),wt(e);break;case 31:Et(t,e),wt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 13:Et(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Il=Ct()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,N=xn,I=at;if(xn=N||o,at=I||w,Et(t,e),at=I,xn=N,wt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||xn||at||Da(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(c=w.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{_=w.stateNode;var F=w.memoizedProps.style,q=F!=null&&F.hasOwnProperty("display")?F.display:null;_.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ie){Be(w,w.return,ie)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(ie){Be(w,w.return,ie)}}}else if(t.tag===18){if(a===null){w=t;try{var V=w.stateNode;o?Zm(V,!0):Zm(w.stateNode,!1)}catch(ie){Be(w,w.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Bl(e,a))));break;case 19:Et(t,e),wt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 30:break;case 21:break;default:Et(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Jh(r)){a=r;break}r=r.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var o=a.stateNode,c=Ro(e);Hl(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(Xa(p,""),a.flags&=-33);var _=Ro(e);Hl(e,_,p);break;case 3:case 4:var w=a.stateNode.containerInfo,N=Ro(e);jo(e,N,w);break;default:throw Error(u(161))}}catch(I){Be(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function um(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;um(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tm(e,t.alternate,t),t=t.sibling}function Da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wn(4,t,t.return),Da(t);break;case 1:sn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Zh(t,t.return,a),Da(t);break;case 27:xr(t.stateNode);case 26:case 5:sn(t,t.return),Da(t);break;case 22:t.memoizedState===null&&Da(t);break;case 30:Da(t);break;default:Da(t)}e=e.sibling}}function zn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:zn(o,c,a),vr(4,c);break;case 1:if(zn(o,c,a),r=c,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Be(r,r.return,N)}if(r=c,o=r.updateQueue,o!==null){var _=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Vd(w[o],_)}catch(N){Be(r,r.return,N)}}a&&p&64&&Qh(c),gr(c,c.return);break;case 27:Wh(c);case 26:case 5:zn(o,c,a),a&&r===null&&p&4&&Kh(c),gr(c,c.return);break;case 12:zn(o,c,a);break;case 31:zn(o,c,a),a&&p&4&&im(o,c);break;case 13:zn(o,c,a),a&&p&4&&rm(o,c);break;case 22:c.memoizedState===null&&zn(o,c,a),gr(c,c.return);break;case 30:break;default:zn(o,c,a)}t=t.sibling}}function No(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ar(a))}function qo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ar(e))}function tn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sm(e,t,a,r),t=t.sibling}function sm(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tn(e,t,a,r),o&2048&&vr(9,t);break;case 1:tn(e,t,a,r);break;case 3:tn(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ar(e)));break;case 12:if(o&2048){tn(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,_=c.onPostCommit;typeof _=="function"&&_(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Be(t,t.return,w)}}else tn(e,t,a,r);break;case 31:tn(e,t,a,r);break;case 13:tn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?tn(e,t,a,r):yr(e,t):c._visibility&2?tn(e,t,a,r):(c._visibility|=2,mi(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&No(p,t);break;case 24:tn(e,t,a,r),o&2048&&qo(t.alternate,t);break;default:tn(e,t,a,r)}}function mi(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,_=a,w=r,N=p.flags;switch(p.tag){case 0:case 11:case 15:mi(c,p,_,w,o),vr(8,p);break;case 23:break;case 22:var I=p.stateNode;p.memoizedState!==null?I._visibility&2?mi(c,p,_,w,o):yr(c,p):(I._visibility|=2,mi(c,p,_,w,o)),o&&N&2048&&No(p.alternate,p);break;case 24:mi(c,p,_,w,o),o&&N&2048&&qo(p.alternate,p);break;default:mi(c,p,_,w,o)}t=t.sibling}}function yr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:yr(a,r),o&2048&&No(r.alternate,r);break;case 24:yr(a,r),o&2048&&qo(r.alternate,r);break;default:yr(a,r)}t=t.sibling}}var br=8192;function pi(e,t,a){if(e.subtreeFlags&br)for(e=e.child;e!==null;)om(e,t,a),e=e.sibling}function om(e,t,a){switch(e.tag){case 26:pi(e,t,a),e.flags&br&&e.memoizedState!==null&&W0(a,en,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,a);break;case 3:case 4:var r=en;en=eu(e.stateNode.containerInfo),pi(e,t,a),en=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=br,br=16777216,pi(e,t,a),br=r):pi(e,t,a));break;default:pi(e,t,a)}}function cm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];st=r,dm(r,e)}cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fm(e),e=e.sibling}function fm(e){switch(e.tag){case 0:case 11:case 15:_r(e),e.flags&2048&&Wn(9,e,e.return);break;case 3:_r(e);break;case 12:_r(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gl(e)):_r(e);break;default:_r(e)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];st=r,dm(r,e)}cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wn(8,t,t.return),Gl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Gl(t));break;default:Gl(t)}e=e.sibling}}function dm(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:Wn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ar(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,st=r;else e:for(a=e;st!==null;){r=st;var o=r.sibling,c=r.return;if(nm(r),r===a){st=null;break e}if(o!==null){o.return=c,st=o;break e}st=c}}}var m0={getCacheForType:function(e){var t=dt(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return dt(et).controller.signal}},p0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,$e=null,Ce=null,ze=0,He=0,Lt=null,ea=!1,vi=!1,Uo=!1,Mn=0,Ze=0,ta=0,Ra=0,Vo=0,Nt=0,gi=0,Sr=null,Tt=null,Ho=!1,Il=0,hm=0,Yl=1/0,$l=null,na=null,rt=0,aa=null,yi=null,Dn=0,Bo=0,Go=null,mm=null,Er=0,Io=null;function qt(){return(Ne&2)!==0&&ze!==0?ze&-ze:D.T!==null?Xo():Mf()}function pm(){if(Nt===0)if((ze&536870912)===0||Re){var e=Jr;Jr<<=1,(Jr&3932160)===0&&(Jr=262144),Nt=e}else Nt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Nt}function Ot(e,t,a){(e===$e&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bi(e,0),ia(e,ze,Nt,!1)),Yi(e,a),((Ne&2)===0||e!==$e)&&(e===$e&&((Ne&2)===0&&(Ra|=a),Ze===4&&ia(e,ze,Nt,!1)),on(e))}function vm(e,t,a){if((Ne&6)!==0)throw Error(u(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ii(e,t),o=r?y0(e,t):$o(e,t,!0),c=r;do{if(o===0){vi&&!r&&ia(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!v0(a)){o=$o(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var _=e;o=Sr;var w=_.current.memoizedState.isDehydrated;if(w&&(bi(_,p).flags|=256),p=$o(_,p,!1),p!==2){if(Uo&&!w){_.errorRecoveryDisabledLanes|=c,Ra|=c,o=4;break e}c=Tt,Tt=o,c!==null&&(Tt===null?Tt=c:Tt.push.apply(Tt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){bi(e,0),ia(e,t,0,!0);break}e:{switch(r=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:ia(r,t,Nt,!ea);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Il+300-Ct(),10<o)){if(ia(r,t,Nt,!ea),el(r,0,!0)!==0)break e;Dn=t,r.timeoutHandle=km(gm.bind(null,r,a,Tt,$l,Ho,t,Nt,Ra,gi,ea,c,"Throttled",-0,0),o);break e}gm(r,a,Tt,$l,Ho,t,Nt,Ra,gi,ea,c,null,-0,0)}}break}while(!0);on(e)}function gm(e,t,a,r,o,c,p,_,w,N,I,F,q,V){if(e.timeoutHandle=-1,F=t.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},om(t,c,F);var ie=(c&62914560)===c?Il-Ct():(c&4194048)===c?hm-Ct():0;if(ie=e_(F,ie),ie!==null){Dn=c,e.cancelPendingCommit=ie(Om.bind(null,e,t,c,a,r,o,p,_,w,I,F,null,q,V)),ia(e,c,p,!N);return}}Om(e,t,c,a,r,o,p,_,w)}function v0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var o=a[r],c=o.getSnapshot;o=o.value;try{if(!Mt(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ia(e,t,a,r){t&=~Vo,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var c=31-zt(o),p=1<<c;r[c]=-1,o&=~p}a!==0&&Cf(e,a,t)}function Pl(){return(Ne&6)===0?(wr(0),!1):!0}function Yo(){if(Ce!==null){if(He===0)var e=Ce.return;else e=Ce,_n=wa=null,io(e),oi=null,rr=0,e=Ce;for(;e!==null;)Xh(e.alternate,e),e=e.return;Ce=null}}function bi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,q0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Dn=0,Yo(),$e=e,Ce=a=yn(e.current,null),ze=t,He=0,Lt=null,ea=!1,vi=Ii(e,t),Uo=!1,gi=Nt=Vo=Ra=ta=Ze=0,Tt=Sr=null,Ho=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-zt(r),c=1<<o;t|=e[o],r&=~c}return Mn=t,dl(),a}function ym(e,t){we=null,D.H=hr,t===si||t===_l?(t=Ld(),He=3):t===Fs?(t=Ld(),He=4):He=t===So?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Ce===null&&(Ze=1,Ll(e,It(t,e.current)))}function bm(){var e=Rt.current;return e===null?!0:(ze&4194048)===ze?Ft===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Ft:!1}function _m(){var e=D.H;return D.H=hr,e===null?hr:e}function Sm(){var e=D.A;return D.A=m0,e}function Fl(){Ze=4,ea||(ze&4194048)!==ze&&Rt.current!==null||(vi=!0),(ta&134217727)===0&&(Ra&134217727)===0||$e===null||ia($e,ze,Nt,!1)}function $o(e,t,a){var r=Ne;Ne|=2;var o=_m(),c=Sm();($e!==e||ze!==t)&&($l=null,bi(e,t)),t=!1;var p=Ze;e:do try{if(He!==0&&Ce!==null){var _=Ce,w=Lt;switch(He){case 8:Yo(),p=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var N=He;if(He=0,Lt=null,_i(e,_,w,N),a&&vi){p=0;break e}break;default:N=He,He=0,Lt=null,_i(e,_,w,N)}}g0(),p=Ze;break}catch(I){ym(e,I)}while(!0);return t&&e.shellSuspendCounter++,_n=wa=null,Ne=r,D.H=o,D.A=c,Ce===null&&($e=null,ze=0,dl()),p}function g0(){for(;Ce!==null;)Em(Ce)}function y0(e,t){var a=Ne;Ne|=2;var r=_m(),o=Sm();$e!==e||ze!==t?($l=null,Yl=Ct()+500,bi(e,t)):vi=Ii(e,t);e:do try{if(He!==0&&Ce!==null){t=Ce;var c=Lt;t:switch(He){case 1:He=0,Lt=null,_i(e,t,c,1);break;case 2:case 9:if(Rd(c)){He=0,Lt=null,wm(t);break}t=function(){He!==2&&He!==9||$e!==e||(He=7),on(e)},c.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Rd(c)?(He=0,Lt=null,wm(t)):(He=0,Lt=null,_i(e,t,c,7));break;case 5:var p=null;switch(Ce.tag){case 26:p=Ce.memoizedState;case 5:case 27:var _=Ce;if(p?sp(p):_.stateNode.complete){He=0,Lt=null;var w=_.sibling;if(w!==null)Ce=w;else{var N=_.return;N!==null?(Ce=N,kl(N)):Ce=null}break t}}He=0,Lt=null,_i(e,t,c,5);break;case 6:He=0,Lt=null,_i(e,t,c,6);break;case 8:Yo(),Ze=6;break e;default:throw Error(u(462))}}b0();break}catch(I){ym(e,I)}while(!0);return _n=wa=null,D.H=r,D.A=o,Ne=a,Ce!==null?0:($e=null,ze=0,dl(),Ze)}function b0(){for(;Ce!==null&&!Iy();)Em(Ce)}function Em(e){var t=Fh(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?kl(e):Ce=t}function wm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Bh(a,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Bh(a,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:io(t);default:Xh(a,t),t=Ce=Sd(t,Mn),t=Fh(a,t,Mn)}e.memoizedProps=e.pendingProps,t===null?kl(e):Ce=t}function _i(e,t,a,r){_n=wa=null,io(t),oi=null,rr=0;var o=t.return;try{if(u0(e,o,t,a,ze)){Ze=1,Ll(e,It(a,e.current)),Ce=null;return}}catch(c){if(o!==null)throw Ce=o,c;Ze=1,Ll(e,It(a,e.current)),Ce=null;return}t.flags&32768?(Re||r===1?e=!0:vi||(ze&536870912)!==0?e=!1:(ea=e=!0,(r===2||r===9||r===3||r===6)&&(r=Rt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Tm(t,e)):kl(t)}function kl(e){var t=e;do{if((t.flags&32768)!==0){Tm(t,ea);return}e=t.return;var a=c0(t.alternate,t,Mn);if(a!==null){Ce=a;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Ze===0&&(Ze=5)}function Tm(e,t){do{var a=f0(e.alternate,e);if(a!==null){a.flags&=32767,Ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=a}while(e!==null);Ze=6,Ce=null}function Om(e,t,a,r,o,c,p,_,w){e.cancelPendingCommit=null;do Xl();while(rt!==0);if((Ne&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Ds,Jy(e,a,c,p,_,w),e===$e&&(Ce=$e=null,ze=0),yi=t,aa=e,Dn=a,Bo=c,Go=o,mm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,w0(Zr,function(){return Mm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=D.T,D.T=null,o=Q.p,Q.p=2,p=Ne,Ne|=4;try{d0(e,t,a)}finally{Ne=p,Q.p=o,D.T=r}}rt=1,xm(),Cm(),Am()}}function xm(){if(rt===1){rt=0;var e=aa,t=yi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var r=Q.p;Q.p=2;var o=Ne;Ne|=4;try{lm(t,e);var c=nc,p=dd(e.containerInfo),_=c.focusedElem,w=c.selectionRange;if(p!==_&&_&&_.ownerDocument&&fd(_.ownerDocument.documentElement,_)){if(w!==null&&xs(_)){var N=w.start,I=w.end;if(I===void 0&&(I=N),"selectionStart"in _)_.selectionStart=N,_.selectionEnd=Math.min(I,_.value.length);else{var F=_.ownerDocument||document,q=F&&F.defaultView||window;if(q.getSelection){var V=q.getSelection(),ie=_.textContent.length,me=Math.min(w.start,ie),Ye=w.end===void 0?me:Math.min(w.end,ie);!V.extend&&me>Ye&&(p=Ye,Ye=me,me=p);var z=cd(_,me),C=cd(_,Ye);if(z&&C&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==C.node||V.focusOffset!==C.offset)){var j=F.createRange();j.setStart(z.node,z.offset),V.removeAllRanges(),me>Ye?(V.addRange(j),V.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),V.addRange(j))}}}}for(F=[],V=_;V=V.parentNode;)V.nodeType===1&&F.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<F.length;_++){var P=F[_];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}lu=!!tc,nc=tc=null}finally{Ne=o,Q.p=r,D.T=a}}e.current=t,rt=2}}function Cm(){if(rt===2){rt=0;var e=aa,t=yi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var r=Q.p;Q.p=2;var o=Ne;Ne|=4;try{tm(e,t.alternate,t)}finally{Ne=o,Q.p=r,D.T=a}}rt=3}}function Am(){if(rt===4||rt===3){rt=0,Yy();var e=aa,t=yi,a=Dn,r=mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,yi=aa=null,zm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(na=null),us(a),t=t.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Gi,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=D.T,o=Q.p,Q.p=2,D.T=null;try{for(var c=e.onRecoverableError,p=0;p<r.length;p++){var _=r[p];c(_.value,{componentStack:_.stack})}}finally{D.T=t,Q.p=o}}(Dn&3)!==0&&Xl(),on(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Io?Er++:(Er=0,Io=e):Er=0,wr(0)}}function zm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ar(t)))}function Xl(){return xm(),Cm(),Am(),Mm()}function Mm(){if(rt!==5)return!1;var e=aa,t=Bo;Bo=0;var a=us(Dn),r=D.T,o=Q.p;try{Q.p=32>a?32:a,D.T=null,a=Go,Go=null;var c=aa,p=Dn;if(rt=0,yi=aa=null,Dn=0,(Ne&6)!==0)throw Error(u(331));var _=Ne;if(Ne|=4,fm(c.current),sm(c,c.current,p,a),Ne=_,wr(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Gi,c)}catch{}return!0}finally{Q.p=o,D.T=r,zm(e,t)}}function Dm(e,t,a){t=It(a,t),t=_o(e.stateNode,t,2),e=Zn(e,t,2),e!==null&&(Yi(e,2),on(e))}function Be(e,t,a){if(e.tag===3)Dm(e,e,a);else for(;t!==null;){if(t.tag===3){Dm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(na===null||!na.has(r))){e=It(a,e),a=Rh(2),r=Zn(t,a,2),r!==null&&(jh(a,r,t,e),Yi(r,2),on(r));break}}t=t.return}}function Po(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new p0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(Uo=!0,o.add(a),e=_0.bind(null,e,t,a),t.then(e,e))}function _0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,$e===e&&(ze&a)===a&&(Ze===4||Ze===3&&(ze&62914560)===ze&&300>Ct()-Il?(Ne&2)===0&&bi(e,0):Vo|=a,gi===ze&&(gi=0)),on(e)}function Rm(e,t){t===0&&(t=xf()),e=_a(e,t),e!==null&&(Yi(e,t),on(e))}function S0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Rm(e,a)}function E0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Rm(e,a)}function w0(e,t){return as(e,t)}var Ql=null,Si=null,Fo=!1,Zl=!1,ko=!1,ra=0;function on(e){e!==Si&&e.next===null&&(Si===null?Ql=Si=e:Si=Si.next=e),Zl=!0,Fo||(Fo=!0,O0())}function wr(e,t){if(!ko&&Zl){ko=!0;do for(var a=!1,r=Ql;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var c=0;else{var p=r.suspendedLanes,_=r.pingedLanes;c=(1<<31-zt(42|e)+1)-1,c&=o&~(p&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,qm(r,c))}else c=ze,c=el(r,r===$e?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||Ii(r,c)||(a=!0,qm(r,c));r=r.next}while(a);ko=!1}}function T0(){jm()}function jm(){Zl=Fo=!1;var e=0;ra!==0&&N0()&&(e=ra);for(var t=Ct(),a=null,r=Ql;r!==null;){var o=r.next,c=Lm(r,t);c===0?(r.next=null,a===null?Ql=o:a.next=o,o===null&&(Si=a)):(a=r,(e!==0||(c&3)!==0)&&(Zl=!0)),r=o}rt!==0&&rt!==5||wr(e),ra!==0&&(ra=0)}function Lm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-zt(c),_=1<<p,w=o[p];w===-1?((_&a)===0||(_&r)!==0)&&(o[p]=Ky(_,t)):w<=t&&(e.expiredLanes|=_),c&=~_}if(t=$e,a=ze,a=el(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&is(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ii(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&is(r),us(a)){case 2:case 8:a=Tf;break;case 32:a=Zr;break;case 268435456:a=Of;break;default:a=Zr}return r=Nm.bind(null,e),a=as(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&is(r),e.callbackPriority=2,e.callbackNode=null,2}function Nm(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Xl()&&e.callbackNode!==a)return null;var r=ze;return r=el(e,e===$e?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vm(e,r,t),Lm(e,Ct()),e.callbackNode!=null&&e.callbackNode===a?Nm.bind(null,e):null)}function qm(e,t){if(Xl())return null;vm(e,t,!0)}function O0(){U0(function(){(Ne&6)!==0?as(wf,T0):jm()})}function Xo(){if(ra===0){var e=li;e===0&&(e=Kr,Kr<<=1,(Kr&261888)===0&&(Kr=256)),ra=e}return ra}function Um(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:il(""+e)}function Vm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function x0(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var c=Um((o[bt]||null).action),p=r.submitter;p&&(t=(t=p[bt]||null)?Um(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var _=new sl("action","action",null,r,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ra!==0){var w=p?Vm(o,p):new FormData(o);mo(a,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(_.preventDefault(),w=p?Vm(o,p):new FormData(o),mo(a,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var Qo=0;Qo<Ms.length;Qo++){var Zo=Ms[Qo],C0=Zo.toLowerCase(),A0=Zo[0].toUpperCase()+Zo.slice(1);Wt(C0,"on"+A0)}Wt(pd,"onAnimationEnd"),Wt(vd,"onAnimationIteration"),Wt(gd,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt($b,"onTransitionRun"),Wt(Pb,"onTransitionStart"),Wt(Fb,"onTransitionCancel"),Wt(yd,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),va("onBeforeInput",["compositionend","keypress","textInput","paste"]),va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),z0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tr));function Hm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var p=r.length-1;0<=p;p--){var _=r[p],w=_.instance,N=_.currentTarget;if(_=_.listener,w!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(I){fl(I)}o.currentTarget=null,c=w}else for(p=0;p<r.length;p++){if(_=r[p],w=_.instance,N=_.currentTarget,_=_.listener,w!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(I){fl(I)}o.currentTarget=null,c=w}}}}function Ae(e,t){var a=t[ss];a===void 0&&(a=t[ss]=new Set);var r=e+"__bubble";a.has(r)||(Bm(t,e,2,!1),a.add(r))}function Ko(e,t,a){var r=0;t&&(r|=4),Bm(a,e,r,t)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function Jo(e){if(!e[Kl]){e[Kl]=!0,jf.forEach(function(a){a!=="selectionchange"&&(z0.has(a)||Ko(a,!1,e),Ko(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kl]||(t[Kl]=!0,Ko("selectionchange",!1,t))}}function Bm(e,t,a,r){switch(pp(t)){case 2:var o=a_;break;case 8:o=i_;break;default:o=hc}a=o.bind(null,t,a,e),o=void 0,!gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Wo(e,t,a,r,o){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var _=r.stateNode.containerInfo;if(_===o)break;if(p===4)for(p=r.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;_!==null;){if(p=Ya(_),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){r=c=p;continue e}_=_.parentNode}}r=r.return}Pf(function(){var N=c,I=ps(a),F=[];e:{var q=bd.get(e);if(q!==void 0){var V=sl,ie=e;switch(e){case"keypress":if(ll(a)===0)break e;case"keydown":case"keyup":V=Eb;break;case"focusin":ie="focus",V=Ss;break;case"focusout":ie="blur",V=Ss;break;case"beforeblur":case"afterblur":V=Ss;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=cb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Ob;break;case pd:case vd:case gd:V=hb;break;case yd:V=Cb;break;case"scroll":case"scrollend":V=sb;break;case"wheel":V=zb;break;case"copy":case"cut":case"paste":V=pb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Zf;break;case"toggle":case"beforetoggle":V=Db}var me=(t&4)!==0,Ye=!me&&(e==="scroll"||e==="scrollend"),z=me?q!==null?q+"Capture":null:q;me=[];for(var C=N,j;C!==null;){var P=C;if(j=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||j===null||z===null||(P=Fi(C,z),P!=null&&me.push(Or(C,P,j))),Ye)break;C=C.return}0<me.length&&(q=new V(q,ie,null,a,I),F.push({event:q,listeners:me}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",q&&a!==ms&&(ie=a.relatedTarget||a.fromElement)&&(Ya(ie)||ie[Ia]))break e;if((V||q)&&(q=I.window===I?I:(q=I.ownerDocument)?q.defaultView||q.parentWindow:window,V?(ie=a.relatedTarget||a.toElement,V=N,ie=ie?Ya(ie):null,ie!==null&&(Ye=f(ie),me=ie.tag,ie!==Ye||me!==5&&me!==27&&me!==6)&&(ie=null)):(V=null,ie=N),V!==ie)){if(me=Xf,P="onMouseLeave",z="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(me=Zf,P="onPointerLeave",z="onPointerEnter",C="pointer"),Ye=V==null?q:Pi(V),j=ie==null?q:Pi(ie),q=new me(P,C+"leave",V,a,I),q.target=Ye,q.relatedTarget=j,P=null,Ya(I)===N&&(me=new me(z,C+"enter",ie,a,I),me.target=j,me.relatedTarget=Ye,P=me),Ye=P,V&&ie)t:{for(me=M0,z=V,C=ie,j=0,P=z;P;P=me(P))j++;P=0;for(var oe=C;oe;oe=me(oe))P++;for(;0<j-P;)z=me(z),j--;for(;0<P-j;)C=me(C),P--;for(;j--;){if(z===C||C!==null&&z===C.alternate){me=z;break t}z=me(z),C=me(C)}me=null}else me=null;V!==null&&Gm(F,q,V,me,!1),ie!==null&&Ye!==null&&Gm(F,Ye,ie,me,!0)}}e:{if(q=N?Pi(N):window,V=q.nodeName&&q.nodeName.toLowerCase(),V==="select"||V==="input"&&q.type==="file")var je=id;else if(nd(q))if(rd)je=Gb;else{je=Hb;var le=Vb}else V=q.nodeName,!V||V.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?N&&hs(N.elementType)&&(je=id):je=Bb;if(je&&(je=je(e,N))){ad(F,je,a,I);break e}le&&le(e,q,N),e==="focusout"&&N&&q.type==="number"&&N.memoizedProps.value!=null&&ds(q,"number",q.value)}switch(le=N?Pi(N):window,e){case"focusin":(nd(le)||le.contentEditable==="true")&&(Ja=le,Cs=N,er=null);break;case"focusout":er=Cs=Ja=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,hd(F,a,I);break;case"selectionchange":if(Yb)break;case"keydown":case"keyup":hd(F,a,I)}var Oe;if(ws)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Ka?ed(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Me="onCompositionStart");Me&&(Kf&&a.locale!=="ko"&&(Ka||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Ka&&(Oe=Ff()):(Yn=I,ys="value"in Yn?Yn.value:Yn.textContent,Ka=!0)),le=Jl(N,Me),0<le.length&&(Me=new Qf(Me,e,null,a,I),F.push({event:Me,listeners:le}),Oe?Me.data=Oe:(Oe=td(a),Oe!==null&&(Me.data=Oe)))),(Oe=jb?Lb(e,a):Nb(e,a))&&(Me=Jl(N,"onBeforeInput"),0<Me.length&&(le=new Qf("onBeforeInput","beforeinput",null,a,I),F.push({event:le,listeners:Me}),le.data=Oe)),x0(F,e,N,a,I)}Hm(F,t)})}function Or(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Jl(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Fi(e,a),o!=null&&r.unshift(Or(e,o,c)),o=Fi(e,t),o!=null&&r.push(Or(e,o,c))),e.tag===3)return r;e=e.return}return[]}function M0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gm(e,t,a,r,o){for(var c=t._reactName,p=[];a!==null&&a!==r;){var _=a,w=_.alternate,N=_.stateNode;if(_=_.tag,w!==null&&w===r)break;_!==5&&_!==26&&_!==27||N===null||(w=N,o?(N=Fi(a,c),N!=null&&p.unshift(Or(a,N,w))):o||(N=Fi(a,c),N!=null&&p.push(Or(a,N,w)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var D0=/\r\n?/g,R0=/\u0000|\uFFFD/g;function Im(e){return(typeof e=="string"?e:""+e).replace(D0,`
|
|
22
|
-
`).replace(R0,"")}function Ym(e,t){return t=Im(t),Im(e)===t}function Ie(e,t,a,r,o,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Xa(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Xa(e,""+r);break;case"className":nl(e,"class",r);break;case"tabIndex":nl(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":nl(e,a,r);break;case"style":Yf(e,r,c);break;case"data":if(t!=="object"){nl(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=il(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ie(e,t,"name",o.name,o,null),Ie(e,t,"formEncType",o.formEncType,o,null),Ie(e,t,"formMethod",o.formMethod,o,null),Ie(e,t,"formTarget",o.formTarget,o,null)):(Ie(e,t,"encType",o.encType,o,null),Ie(e,t,"method",o.method,o,null),Ie(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=il(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=vn);break;case"onScroll":r!=null&&Ae("scroll",e);break;case"onScrollEnd":r!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=il(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),tl(e,"popover",r);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tl(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=lb.get(a)||a,tl(e,a,r))}}function ec(e,t,a,r,o,c){switch(a){case"style":Yf(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Xa(e,r):(typeof r=="number"||typeof r=="bigint")&&Xa(e,""+r);break;case"onScroll":r!=null&&Ae("scroll",e);break;case"onScrollEnd":r!=null&&Ae("scrollend",e);break;case"onClick":r!=null&&(e.onclick=vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[bt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):tl(e,a,r)}}}function mt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var r=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ie(e,t,c,p,a,null)}}o&&Ie(e,t,"srcSet",a.srcSet,a,null),r&&Ie(e,t,"src",a.src,a,null);return;case"input":Ae("invalid",e);var _=c=p=o=null,w=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var I=a[r];if(I!=null)switch(r){case"name":o=I;break;case"type":p=I;break;case"checked":w=I;break;case"defaultChecked":N=I;break;case"value":c=I;break;case"defaultValue":_=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,t));break;default:Ie(e,t,r,I,a,null)}}Hf(e,c,_,w,N,p,o,!1);return;case"select":Ae("invalid",e),r=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":p=_;break;case"multiple":r=_;default:Ie(e,t,o,_,a,null)}t=c,a=p,e.multiple=!!r,t!=null?ka(e,!!r,t,!1):a!=null&&ka(e,!!r,a,!0);return;case"textarea":Ae("invalid",e),c=o=r=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":r=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:Ie(e,t,p,_,a,null)}Gf(e,r,o,c);return;case"option":for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null)&&(w==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ie(e,t,w,r,a,null));return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(r=0;r<Tr.length;r++)Ae(Tr[r],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ie(e,t,N,r,a,null)}return;default:if(hs(t)){for(I in a)a.hasOwnProperty(I)&&(r=a[I],r!==void 0&&ec(e,t,I,r,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(r=a[_],r!=null&&Ie(e,t,_,r,a,null))}function j0(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,_=null,w=null,N=null,I=null;for(V in a){var F=a[V];if(a.hasOwnProperty(V)&&F!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":w=F;default:r.hasOwnProperty(V)||Ie(e,t,V,null,r,F)}}for(var q in r){var V=r[q];if(F=a[q],r.hasOwnProperty(q)&&(V!=null||F!=null))switch(q){case"type":c=V;break;case"name":o=V;break;case"checked":N=V;break;case"defaultChecked":I=V;break;case"value":p=V;break;case"defaultValue":_=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:V!==F&&Ie(e,t,q,V,r,F)}}fs(e,p,_,w,N,I,c,o);return;case"select":V=p=_=q=null;for(c in a)if(w=a[c],a.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":V=w;default:r.hasOwnProperty(c)||Ie(e,t,c,null,r,w)}for(o in r)if(c=r[o],w=a[o],r.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":q=c;break;case"defaultValue":_=c;break;case"multiple":p=c;default:c!==w&&Ie(e,t,o,c,r,w)}t=_,a=p,r=V,q!=null?ka(e,!!a,q,!1):!!r!=!!a&&(t!=null?ka(e,!!a,t,!0):ka(e,!!a,a?[]:"",!1));return;case"textarea":V=q=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!r.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ie(e,t,_,null,r,o)}for(p in r)if(o=r[p],c=a[p],r.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":q=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Ie(e,t,p,o,r,c)}Bf(e,q,V);return;case"option":for(var ie in a)q=a[ie],a.hasOwnProperty(ie)&&q!=null&&!r.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:Ie(e,t,ie,null,r,q));for(w in r)q=r[w],V=a[w],r.hasOwnProperty(w)&&q!==V&&(q!=null||V!=null)&&(w==="selected"?e.selected=q&&typeof q!="function"&&typeof q!="symbol":Ie(e,t,w,q,r,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in a)q=a[me],a.hasOwnProperty(me)&&q!=null&&!r.hasOwnProperty(me)&&Ie(e,t,me,null,r,q);for(N in r)if(q=r[N],V=a[N],r.hasOwnProperty(N)&&q!==V&&(q!=null||V!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:Ie(e,t,N,q,r,V)}return;default:if(hs(t)){for(var Ye in a)q=a[Ye],a.hasOwnProperty(Ye)&&q!==void 0&&!r.hasOwnProperty(Ye)&&ec(e,t,Ye,void 0,r,q);for(I in r)q=r[I],V=a[I],!r.hasOwnProperty(I)||q===V||q===void 0&&V===void 0||ec(e,t,I,q,r,V);return}}for(var z in a)q=a[z],a.hasOwnProperty(z)&&q!=null&&!r.hasOwnProperty(z)&&Ie(e,t,z,null,r,q);for(F in r)q=r[F],V=a[F],!r.hasOwnProperty(F)||q===V||q==null&&V==null||Ie(e,t,F,q,r,V)}function $m(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],c=o.transferSize,p=o.initiatorType,_=o.duration;if(c&&_&&$m(p)){for(p=0,_=o.responseEnd,r+=1;r<a.length;r++){var w=a[r],N=w.startTime;if(N>_)break;var I=w.transferSize,F=w.initiatorType;I&&$m(F)&&(w=w.responseEnd,p+=I*(w<_?1:(_-N)/(w-N)))}if(--r,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var tc=null,nc=null;function Wl(e){return e.nodeType===9?e:e.ownerDocument}function Pm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ac(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ic=null;function N0(){var e=window.event;return e&&e.type==="popstate"?e===ic?!1:(ic=e,!0):(ic=null,!1)}var km=typeof setTimeout=="function"?setTimeout:void 0,q0=typeof clearTimeout=="function"?clearTimeout:void 0,Xm=typeof Promise=="function"?Promise:void 0,U0=typeof queueMicrotask=="function"?queueMicrotask:typeof Xm<"u"?function(e){return Xm.resolve(null).then(e).catch(V0)}:km;function V0(e){setTimeout(function(){throw e})}function la(e){return e==="head"}function Qm(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Oi(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")xr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,xr(a);for(var c=a.firstChild;c;){var p=c.nextSibling,_=c.nodeName;c[$i]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&xr(e.ownerDocument.body);a=o}while(a);Oi(t)}function Zm(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function rc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":rc(a),os(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function H0(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function B0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=kt(e.nextSibling),e===null))return null;return e}function Km(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kt(e.nextSibling),e===null))return null;return e}function lc(e){return e.data==="$?"||e.data==="$~"}function uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function G0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function kt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var sc=null;function Jm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return kt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ep(e,t,a){switch(t=Wl(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function xr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);os(e)}var Xt=new Map,tp=new Set;function eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rn=Q.d;Q.d={f:I0,r:Y0,D:$0,C:P0,L:F0,m:k0,X:Q0,S:X0,M:Z0};function I0(){var e=Rn.f(),t=Pl();return e||t}function Y0(e){var t=$a(e);t!==null&&t.tag===5&&t.type==="form"?yh(t):Rn.r(e)}var Ei=typeof document>"u"?null:document;function np(e,t,a){var r=Ei;if(r&&typeof t=="string"&&t){var o=Bt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),tp.has(o)||(tp.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),mt(t,"link",e),ut(t),r.head.appendChild(t)))}}function $0(e){Rn.D(e),np("dns-prefetch",e,null)}function P0(e,t){Rn.C(e,t),np("preconnect",e,t)}function F0(e,t,a){Rn.L(e,t,a);var r=Ei;if(r&&e&&t){var o='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Bt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Bt(a.imageSizes)+'"]')):o+='[href="'+Bt(e)+'"]';var c=o;switch(t){case"style":c=wi(e);break;case"script":c=Ti(e)}Xt.has(c)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(c,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Cr(c))||t==="script"&&r.querySelector(Ar(c))||(t=r.createElement("link"),mt(t,"link",e),ut(t),r.head.appendChild(t)))}}function k0(e,t){Rn.m(e,t);var a=Ei;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Bt(r)+'"][href="'+Bt(e)+'"]',c=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ti(e)}if(!Xt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Xt.set(c,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ar(c)))return}r=a.createElement("link"),mt(r,"link",e),ut(r),a.head.appendChild(r)}}}function X0(e,t,a){Rn.S(e,t,a);var r=Ei;if(r&&e){var o=Pa(r).hoistableStyles,c=wi(e);t=t||"default";var p=o.get(c);if(!p){var _={loading:0,preload:null};if(p=r.querySelector(Cr(c)))_.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(c))&&oc(e,a);var w=p=r.createElement("link");ut(w),mt(w,"link",e),w._p=new Promise(function(N,I){w.onload=N,w.onerror=I}),w.addEventListener("load",function(){_.loading|=1}),w.addEventListener("error",function(){_.loading|=2}),_.loading|=4,tu(p,t,r)}p={type:"stylesheet",instance:p,count:1,state:_},o.set(c,p)}}}function Q0(e,t){Rn.X(e,t);var a=Ei;if(a&&e){var r=Pa(a).hoistableScripts,o=Ti(e),c=r.get(o);c||(c=a.querySelector(Ar(o)),c||(e=y({src:e,async:!0},t),(t=Xt.get(o))&&cc(e,t),c=a.createElement("script"),ut(c),mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function Z0(e,t){Rn.M(e,t);var a=Ei;if(a&&e){var r=Pa(a).hoistableScripts,o=Ti(e),c=r.get(o);c||(c=a.querySelector(Ar(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Xt.get(o))&&cc(e,t),c=a.createElement("script"),ut(c),mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function ap(e,t,a,r){var o=(o=se.current)?eu(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=wi(a.href),a=Pa(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=wi(a.href);var c=Pa(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Cr(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Xt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Xt.set(e,a),c||K0(o,e,a,p.state))),t&&r===null)throw Error(u(528,""));return p}if(t&&r!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ti(a),a=Pa(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wi(e){return'href="'+Bt(e)+'"'}function Cr(e){return'link[rel="stylesheet"]['+e+"]"}function ip(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function K0(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),mt(t,"link",a),ut(t),e.head.appendChild(t))}function Ti(e){return'[src="'+Bt(e)+'"]'}function Ar(e){return"script[async]"+e}function rp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Bt(a.href)+'"]');if(r)return t.instance=r,ut(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ut(r),mt(r,"style",o),tu(r,a.precedence,e),t.instance=r;case"stylesheet":o=wi(a.href);var c=e.querySelector(Cr(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;r=ip(a),(o=Xt.get(o))&&oc(r,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var p=c;return p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),mt(c,"link",r),t.state.loading|=4,tu(c,a.precedence,e),t.instance=c;case"script":return c=Ti(a.src),(o=e.querySelector(Ar(c)))?(t.instance=o,ut(o),o):(r=a,(o=Xt.get(c))&&(r=y({},a),cc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),mt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,tu(r,a.precedence,e));return t.instance}function tu(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,c=o,p=0;p<r.length;p++){var _=r[p];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nu=null;function lp(e,t,a){if(nu===null){var r=new Map,o=nu=new Map;o.set(a,r)}else o=nu,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[$i]||c[ct]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var _=r.get(p);_?_.push(c):r.set(p,[c])}}return r}function up(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function J0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function W0(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=wi(r.href),c=t.querySelector(Cr(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=au.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ut(c);return}c=t.ownerDocument||t,r=ip(r),(o=Xt.get(o))&&oc(r,o),c=c.createElement("link"),ut(c);var p=c;p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),mt(c,"link",r),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=au.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var fc=0;function e_(e,t){return e.stylesheets&&e.count===0&&ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&fc===0&&(fc=62500*L0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>fc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var iu=null;function ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,iu=new Map,t.forEach(t_,e),iu=null,au.call(e))}function t_(e,t){if(!(t.state.loading&4)){var a=iu.get(e);if(a)var r=a.get(null);else{a=new Map,iu.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),r=p)}r&&a.set(null,r)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||r,c===r&&a.set(null,o),a.set(p,o),this.count++,r=au.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var zr={$$typeof:$,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function n_(e,t,a,r,o,c,p,_,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.hiddenUpdates=rs(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function op(e,t,a,r,o,c,p,_,w,N,I,F){return e=new n_(e,t,a,p,w,N,I,F,_),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=Ys(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},ks(c),e}function cp(e){return e?(e=ti,e):ti}function fp(e,t,a,r,o,c){o=cp(o),r.context===null?r.context=o:r.pendingContext=o,r=Qn(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Zn(e,r,t),a!==null&&(Ot(a,e,t),ur(a,e,t))}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function dc(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function hp(e){if(e.tag===13||e.tag===31){var t=_a(e,67108864);t!==null&&Ot(t,e,67108864),dc(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=qt();t=ls(t);var a=_a(e,t);a!==null&&Ot(a,e,t),dc(e,t)}}var lu=!0;function a_(e,t,a,r){var o=D.T;D.T=null;var c=Q.p;try{Q.p=2,hc(e,t,a,r)}finally{Q.p=c,D.T=o}}function i_(e,t,a,r){var o=D.T;D.T=null;var c=Q.p;try{Q.p=8,hc(e,t,a,r)}finally{Q.p=c,D.T=o}}function hc(e,t,a,r){if(lu){var o=mc(r);if(o===null)Wo(e,t,r,uu,a),vp(e,r);else if(l_(o,e,t,a,r))r.stopPropagation();else if(vp(e,r),t&4&&-1<r_.indexOf(e)){for(;o!==null;){var c=$a(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=pa(c.pendingLanes);if(p!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;p;){var w=1<<31-zt(p);_.entanglements[1]|=w,p&=~w}on(c),(Ne&6)===0&&(Yl=Ct()+500,wr(0))}}break;case 31:case 13:_=_a(c,2),_!==null&&Ot(_,c,2),Pl(),dc(c,2)}if(c=mc(r),c===null&&Wo(e,t,r,uu,a),c===o)break;o=c}o!==null&&r.stopPropagation()}else Wo(e,t,r,null,a)}}function mc(e){return e=ps(e),pc(e)}var uu=null;function pc(e){if(uu=null,e=Ya(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uu=e,null}function pp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($y()){case wf:return 2;case Tf:return 8;case Zr:case Py:return 32;case Of:return 268435456;default:return 32}default:return 32}}var vc=!1,ua=null,sa=null,oa=null,Mr=new Map,Dr=new Map,ca=[],r_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vp(e,t){switch(e){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":oa=null;break;case"pointerover":case"pointerout":Mr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function Rr(e,t,a,r,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[o]},t!==null&&(t=$a(t),t!==null&&hp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function l_(e,t,a,r,o){switch(t){case"focusin":return ua=Rr(ua,e,t,a,r,o),!0;case"dragenter":return sa=Rr(sa,e,t,a,r,o),!0;case"mouseover":return oa=Rr(oa,e,t,a,r,o),!0;case"pointerover":var c=o.pointerId;return Mr.set(c,Rr(Mr.get(c)||null,e,t,a,r,o)),!0;case"gotpointercapture":return c=o.pointerId,Dr.set(c,Rr(Dr.get(c)||null,e,t,a,r,o)),!0}return!1}function gp(e){var t=Ya(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Df(e.priority,function(){mp(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Df(e.priority,function(){mp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=mc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);ms=r,a.target.dispatchEvent(r),ms=null}else return t=$a(a),t!==null&&hp(t),e.blockedOn=a,!1;t.shift()}return!0}function yp(e,t,a){su(e)&&a.delete(t)}function u_(){vc=!1,ua!==null&&su(ua)&&(ua=null),sa!==null&&su(sa)&&(sa=null),oa!==null&&su(oa)&&(oa=null),Mr.forEach(yp),Dr.forEach(yp)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,vc||(vc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,u_)))}var cu=null;function bp(e){cu!==e&&(cu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){cu===e&&(cu=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(pc(r||a)===null)continue;break}var c=$a(a);c!==null&&(e.splice(t,3),t-=3,mo(c,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Oi(e){function t(w){return ou(w,e)}ua!==null&&ou(ua,e),sa!==null&&ou(sa,e),oa!==null&&ou(oa,e),Mr.forEach(t),Dr.forEach(t);for(var a=0;a<ca.length;a++){var r=ca[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ca.length&&(a=ca[0],a.blockedOn===null);)gp(a),a.blockedOn===null&&ca.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],c=a[r+1],p=o[bt]||null;if(typeof c=="function")p||bp(a);else if(p){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[bt]||null)_=p.formAction;else if(pc(o)!==null)continue}else _=p.action;typeof _=="function"?a[r+1]=_:(a.splice(r,3),r-=3),bp(a)}}}function _p(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function gc(e){this._internalRoot=e}fu.prototype.render=gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,r=qt();fp(a,r,e,t,null,null)},fu.prototype.unmount=gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fp(e.current,2,null,e,null,null),Pl(),t[Ia]=null}};function fu(e){this._internalRoot=e}fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ca.length&&t!==0&&t<ca[a].priority;a++);ca.splice(a,0,e),a===0&&gp(e)}};var Sp=n.version;if(Sp!=="19.2.4")throw Error(u(527,Sp,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var s_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Gi=du.inject(s_),At=du}catch{}}return Hr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var a=!1,r="",o=Ah,c=zh,p=Mh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=op(e,1,!1,null,null,a,r,null,o,c,p,_p),e[Ia]=t.current,Jo(e),new gc(t)},Hr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(u(299));var r=!1,o="",c=Ah,p=zh,_=Mh,w=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=op(e,1,!0,t,a??null,r,o,w,c,p,_,_p),t.context=cp(null),a=t.current,r=qt(),r=ls(r),o=Qn(r),o.callback=null,Zn(a,o,r),a=r,t.current.lanes=a,Yi(t,a),on(t),e[Ia]=t.current,Jo(e),new fu(t)},Hr.version="19.2.4",Hr}var Gv;function hx(){if(Gv)return Vc.exports;Gv=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Vc.exports=dx(),Vc.exports}var mx=hx();const px=document.getElementById("root"),vx=mx.createRoot(px);function Iv(i){vx.render(O.jsx(k.StrictMode,{children:i}))}H_({renderConfigScreen(i){return Iv(O.jsx(AT,{ctx:i}))},settingsAreaSidebarItemGroups(i){return i.currentRole.attributes.can_edit_schema?[{label:"Asset Management",items:[{label:"Optimize assets",icon:"images",pointsTo:{pageId:"optimize-assets"}}]}]:[]},renderPage(i,n){if(i==="optimize-assets")return Iv(O.jsx(ox,{ctx:n}))}});
|