datocms-plugin-asset-optimization 0.1.0 → 0.3.0

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.
@@ -0,0 +1,62 @@
1
+ function jm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fd={exports:{}},va={},dd={exports:{}},W={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ci=Symbol.for("react.element"),Rm=Symbol.for("react.portal"),Nm=Symbol.for("react.fragment"),Fm=Symbol.for("react.strict_mode"),Mm=Symbol.for("react.profiler"),Dm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),zm=Symbol.for("react.forward_ref"),$m=Symbol.for("react.suspense"),Vm=Symbol.for("react.memo"),Um=Symbol.for("react.lazy"),pc=Symbol.iterator;function qm(e){return e===null||typeof e!="object"?null:(e=pc&&e[pc]||e["@@iterator"],typeof e=="function"?e:null)}var pd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hd=Object.assign,md={};function kr(e,t,n){this.props=e,this.context=t,this.refs=md,this.updater=n||pd}kr.prototype.isReactComponent={};kr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yd(){}yd.prototype=kr.prototype;function Ju(e,t,n){this.props=e,this.context=t,this.refs=md,this.updater=n||pd}var Zu=Ju.prototype=new yd;Zu.constructor=Ju;hd(Zu,kr.prototype);Zu.isPureReactComponent=!0;var hc=Array.isArray,vd=Object.prototype.hasOwnProperty,el={current:null},gd={key:!0,ref:!0,__self:!0,__source:!0};function _d(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)vd.call(t,r)&&!gd.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),s=0;s<u;s++)l[s]=arguments[s+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Ci,type:e,key:o,ref:a,props:i,_owner:el.current}}function Bm(e,t){return{$$typeof:Ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ci}function Hm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var mc=/\/+/g;function Xa(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Hm(""+e.key):t.toString(36)}function so(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ci:case Rm:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Xa(a,0):r,hc(i)?(n="",e!=null&&(n=e.replace(mc,"$&/")+"/"),so(i,t,n,"",function(s){return s})):i!=null&&(tl(i)&&(i=Bm(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(mc,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",hc(e))for(var u=0;u<e.length;u++){o=e[u];var l=r+Xa(o,u);a+=so(o,t,n,l,i)}else if(l=qm(e),typeof l=="function")for(e=l.call(e),u=0;!(o=e.next()).done;)o=o.value,l=r+Xa(o,u++),a+=so(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ri(e,t,n){if(e==null)return e;var r=[],i=0;return so(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Gm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ae={current:null},uo={transition:null},Wm={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:uo,ReactCurrentOwner:el};function wd(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Ri,forEach:function(e,t,n){Ri(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ri(e,function(){t++}),t},toArray:function(e){return Ri(e,function(t){return t})||[]},only:function(e){if(!tl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=kr;W.Fragment=Nm;W.Profiler=Mm;W.PureComponent=Ju;W.StrictMode=Fm;W.Suspense=$m;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wm;W.act=wd;W.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=hd({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=el.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)vd.call(t,l)&&!gd.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var s=0;s<l;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:Ci,type:e.type,key:i,ref:o,props:r,_owner:a}};W.createContext=function(e){return e={$$typeof:Am,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dm,_context:e},e.Consumer=e};W.createElement=_d;W.createFactory=function(e){var t=_d.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:zm,render:e}};W.isValidElement=tl;W.lazy=function(e){return{$$typeof:Um,_payload:{_status:-1,_result:e},_init:Gm}};W.memo=function(e,t){return{$$typeof:Vm,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=uo.transition;uo.transition={};try{e()}finally{uo.transition=t}};W.unstable_act=wd;W.useCallback=function(e,t){return Ae.current.useCallback(e,t)};W.useContext=function(e){return Ae.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};W.useEffect=function(e,t){return Ae.current.useEffect(e,t)};W.useId=function(){return Ae.current.useId()};W.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Ae.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};W.useRef=function(e){return Ae.current.useRef(e)};W.useState=function(e){return Ae.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Ae.current.useTransition()};W.version="18.3.1";dd.exports=W;var k=dd.exports;const H=ya(k),yc=jm({__proto__:null,default:H},[k]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ym=k,Km=Symbol.for("react.element"),Qm=Symbol.for("react.fragment"),Xm=Object.prototype.hasOwnProperty,Jm=Ym.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zm={key:!0,ref:!0,__self:!0,__source:!0};function Sd(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Xm.call(t,r)&&!Zm.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Km,type:e,key:o,ref:a,props:i,_owner:Jm.current}}va.Fragment=Qm;va.jsx=Sd;va.jsxs=Sd;fd.exports=va;var _=fd.exports,Fs={exports:{}},ge={};Object.defineProperty(ge,"__esModule",{value:!0});ge.DATA_CLONE_ERROR=ge.MESSAGE=ge.REJECTED=ge.FULFILLED=ge.REPLY=ge.CALL=ge.HANDSHAKE_REPLY=ge.HANDSHAKE=void 0;const ey="handshake";ge.HANDSHAKE=ey;const ty="handshake-reply";ge.HANDSHAKE_REPLY=ty;const ny="call";ge.CALL=ny;const ry="reply";ge.REPLY=ry;const iy="fulfilled";ge.FULFILLED=iy;const oy="rejected";ge.REJECTED=oy;const ay="message";ge.MESSAGE=ay;const sy="DataCloneError";ge.DATA_CLONE_ERROR=sy;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.ERR_NO_IFRAME_SRC=mt.ERR_NOT_IN_IFRAME=mt.ERR_CONNECTION_TIMEOUT=mt.ERR_CONNECTION_DESTROYED=void 0;const uy="ConnectionDestroyed";mt.ERR_CONNECTION_DESTROYED=uy;const ly="ConnectionTimeout";mt.ERR_CONNECTION_TIMEOUT=ly;const cy="NotInIframe";mt.ERR_NOT_IN_IFRAME=cy;const fy="NoIframeSrc";mt.ERR_NO_IFRAME_SRC=fy;var Ms={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=()=>{const r=[];let i=!1;return{destroy(){i=!0,r.forEach(o=>{o()})},onDestroy(o){i?o():r.push(o)}}};t.default=n,e.exports=t.default})(Ms,Ms.exports);var dy=Ms.exports,Ds={exports:{}},Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.deserializeError=Nn.serializeError=void 0;const py=e=>{let t=e.name,n=e.message,r=e.stack;return{name:t,message:n,stack:r}};Nn.serializeError=py;const hy=e=>{const t=new Error;return Object.keys(e).forEach(n=>t[n]=e[n]),t};Nn.deserializeError=hy;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=Nn,i=(o,a,u)=>{const l=o.localName,s=o.local,c=o.remote,d=o.originForSending,f=o.originForReceiving;let h=!1;u(`${l}: Connecting call receiver`);const p=v=>{if(v.source!==c||v.data.penpal!==n.CALL)return;if(v.origin!==f){u(`${l} received message from origin ${v.origin} which did not match expected origin ${f}`);return}const E=v.data,m=E.methodName,y=E.args,g=E.id;u(`${l}: Received ${m}() call`);const w=O=>b=>{if(u(`${l}: Sending ${m}() reply`),h){u(`${l}: Unable to send ${m}() reply due to destroyed connection`);return}const x={penpal:n.REPLY,id:g,resolution:O,returnValue:b};O===n.REJECTED&&b instanceof Error&&(x.returnValue=(0,r.serializeError)(b),x.returnValueIsError=!0);try{c.postMessage(x,d)}catch(P){throw P.name===n.DATA_CLONE_ERROR&&c.postMessage({penpal:n.REPLY,id:g,resolution:n.REJECTED,returnValue:(0,r.serializeError)(P),returnValueIsError:!0},d),P}};new Promise(O=>O(a[m].apply(a,y))).then(w(n.FULFILLED),w(n.REJECTED))};return s.addEventListener(n.MESSAGE,p),()=>{h=!0,s.removeEventListener(n.MESSAGE,p)}};t.default=i,e.exports=t.default})(Ds,Ds.exports);var my=Ds.exports,As={exports:{}},zs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;var r=()=>++n;t.default=r,e.exports=t.default})(zs,zs.exports);var yy=zs.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=mt,i=a(yy),o=Nn;function a(l){return l&&l.__esModule?l:{default:l}}var u=(l,s,c,d,f)=>{const h=s.localName,p=s.local,v=s.remote,E=s.originForSending,m=s.originForReceiving;let y=!1;f(`${h}: Connecting call sender`);const g=w=>function(){for(var O=arguments.length,b=new Array(O),x=0;x<O;x++)b[x]=arguments[x];f(`${h}: Sending ${w}() call`);let P;try{v.closed&&(P=!0)}catch{P=!0}if(P&&d(),y){const R=new Error(`Unable to send ${w}() call due to destroyed connection`);throw R.code=r.ERR_CONNECTION_DESTROYED,R}return new Promise((R,j)=>{const V=(0,i.default)(),q=U=>{if(U.source!==v||U.data.penpal!==n.REPLY||U.data.id!==V)return;if(U.origin!==m){f(`${h} received message from origin ${U.origin} which did not match expected origin ${m}`);return}f(`${h}: Received ${w}() reply`),p.removeEventListener(n.MESSAGE,q);let ee=U.data.returnValue;U.data.returnValueIsError&&(ee=(0,o.deserializeError)(ee)),(U.data.resolution===n.FULFILLED?R:j)(ee)};p.addEventListener(n.MESSAGE,q),v.postMessage({penpal:n.CALL,id:V,methodName:w,args:b},E)})};return c.reduce((w,O)=>(w[O]=g(O),w),l),()=>{y=!0}};t.default=u,e.exports=t.default})(As,As.exports);var vy=As.exports,$s={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r=>function(){if(r){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];console.log("[Penpal]",...o)}};t.default=n,e.exports=t.default})($s,$s.exports);var gy=$s.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=mt,i=l(dy),o=l(my),a=l(vy),u=l(gy);function l(c){return c&&c.__esModule?c:{default:c}}var s=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.parentOrigin,h=f===void 0?"*":f,p=d.methods,v=p===void 0?{}:p,E=d.timeout,m=d.debug;const y=(0,u.default)(m);if(window===window.top){const R=new Error("connectToParent() must be called within an iframe");throw R.code=r.ERR_NOT_IN_IFRAME,R}const g=(0,i.default)(),w=g.destroy,O=g.onDestroy,b=window,x=b.parent;return{promise:new Promise((R,j)=>{let V;E!==void 0&&(V=setTimeout(()=>{const U=new Error(`Connection to parent timed out after ${E}ms`);U.code=r.ERR_CONNECTION_TIMEOUT,j(U),w()},E));const q=U=>{try{clearTimeout()}catch{return}if(U.source!==x||U.data.penpal!==n.HANDSHAKE_REPLY)return;if(h!=="*"&&h!==U.origin){y(`Child received handshake reply from origin ${U.origin} which did not match expected origin ${h}`);return}y("Child: Received handshake reply"),b.removeEventListener(n.MESSAGE,q);const ee={localName:"Child",local:b,remote:x,originForSending:U.origin==="null"?"*":U.origin,originForReceiving:U.origin},X={},K=(0,o.default)(ee,v,y);O(K);const re=(0,a.default)(X,ee,U.data.methodNames,w,y);O(re),clearTimeout(V),R(X)};b.addEventListener(n.MESSAGE,q),O(()=>{b.removeEventListener(n.MESSAGE,q);const U=new Error("Connection destroyed");U.code=r.ERR_CONNECTION_DESTROYED,j(U)}),y("Child: Sending handshake"),x.postMessage({penpal:n.HANDSHAKE,methodNames:Object.keys(v)},h)}),destroy:w}};t.default=s,e.exports=t.default})(Fs,Fs.exports);var _y=Fs.exports;const wy=ya(_y);var Ct=function(){return Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ct.apply(this,arguments)};function vc(e,t){for(var n=Ct({},e),r=0,i=t;r<i.length;r++){var o=i[r];delete n[o]}return n}function Ja(e){return function(t,n){if(e){for(var r={},i=0,o=t;i<o.length;i++){var a=o[i],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,Ct(Ct({},n),{itemType:u}))}return r}}}function Wt(e,t){var n=function(r,i,o){if(o.mode===e){var a=Ey(i),u=function(l){t(r,Ct(Ct(Ct({},i),l),a))};return u(o),u}};return n.mode=e,n}function nl(e,t){var n=function(r,i,o){if(o.mode===e){var a=function(u){t(r,Ct(Ct({},i),u))};return a(o),a}};return n.mode=e,n}function Sy(){for(var e=document.querySelectorAll("body *"),t=0,n=0;n<e.length;n++)t=Math.max(e[n].getBoundingClientRect().bottom,t);return t}var Ey=function(e){var t=null,n=function(s){var c=s===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,Sy()):s;c!==t&&(e.setHeight(c),t=c)},r=null,i=null,o=function(){return n()},a=function(){n(),r||(r=new ResizeObserver(o),r.observe(document.documentElement)),i||(i=new MutationObserver(o),i.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},u=function(){r&&(r.disconnect(),r=null),i&&(i.disconnect(),i=null)},l=function(){return!!r};return{updateHeight:n,startAutoResizer:a,stopAutoResizer:u,isAutoResizerActive:l}},xy=Wt("renderAssetSource",function(e,t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,t)}),by=Wt("renderConfigScreen",function(e,t){e.renderConfigScreen&&e.renderConfigScreen(t)}),Oy=Wt("renderFieldExtension",function(e,t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,t)}),Cy=Wt("renderItemCollectionOutlet",function(e,t){e.renderItemCollectionOutlet&&e.renderItemCollectionOutlet(t.itemCollectionOutletId,t)}),Py=Wt("renderItemFormOutlet",function(e,t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,t)}),Ty=nl("renderItemFormSidebar",function(e,t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,t)}),ky=Wt("renderItemFormSidebarPanel",function(e,t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,t)}),Iy=Wt("renderManualFieldExtensionConfigScreen",function(e,t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,t)}),Ly=Wt("renderModal",function(e,t){e.renderModal&&e.renderModal(t.modalId,t)}),jy=nl("renderPage",function(e,t){e.renderPage&&e.renderPage(t.pageId,t)}),Ry=nl("renderUploadSidebar",function(e,t){e.renderUploadSidebar&&e.renderUploadSidebar(t.sidebarId,t)}),Ny=Wt("renderUploadSidebarPanel",function(e,t){e.renderUploadSidebarPanel&&e.renderUploadSidebarPanel(t.sidebarPaneId,t)}),nt=function(){return nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},nt.apply(this,arguments)},Fy=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},My=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},gc=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function Dy(){return Fy(this,arguments,void 0,function(e){var t,n,r,i,o,a,u,l,s,c,d,f;return e===void 0&&(e={}),My(this,function(h){switch(h.label){case 0:return t=null,n=null,r=nt(nt({},e),{overrideFieldExtensions:Ja(e.overrideFieldExtensions),customMarksForStructuredTextField:Ja(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:Ja(e.customBlockStylesForStructuredTextField)}),i=wy({methods:nt(nt({sdkVersion:function(){return"0.3.0"},implementedHooks:function(){return Object.fromEntries(Object.keys(e).map(function(p){return[p,!0]}))}},Object.fromEntries(Object.entries(r).filter(function(p){var v=p[0];return!v.startsWith("render")}))),{onChange:function(p){t&&t(p)},callMethodMergingBootCtx:function(p,v,E,m,y){return n?n(p,v,E,m,y):null}})}),[4,i.promise];case 1:return o=h.sent(),[4,o.getSettings()];case 2:for(a=h.sent(),a.mode==="onBoot"&&(u=a,t=function(p){u=p},n=function(p,v,E,m,y){var g;if(p in r)return(g=r)[p].apply(g,gc(gc([],v,!1),[nt(nt(nt(nt({},vc(o,["getSettings","setHeight"])),vc(u,["mode","bodyPadding"])),Object.fromEntries(m.map(function(w){return[w,function(){for(var b=[],x=0;x<arguments.length;x++)b[x]=arguments[x];return o.callAdditionalCtxMethod(y,w,b)}]}))),E)],!1))},r.onBoot&&r.onBoot(nt(nt({},o),u))),l={renderAssetSource:xy,renderConfigScreen:by,renderFieldExtension:Oy,renderItemCollectionOutlet:Cy,renderItemFormOutlet:Py,renderItemFormSidebar:Ty,renderItemFormSidebarPanel:ky,renderManualFieldExtensionConfigScreen:Iy,renderModal:Ly,renderPage:jy,renderUploadSidebar:Ry,renderUploadSidebarPanel:Ny},s=0,c=Object.values(l);s<c.length;s++)if(d=c[s],f=d(r,o,a),f){t=f;break}return[2]}})})}var Ed={exports:{}};/*!
18
+ Copyright (c) 2018 Jed Watson.
19
+ Licensed under the MIT License (MIT), see
20
+ http://jedwatson.github.io/classnames
21
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ed);var Ay=Ed.exports;const It=ya(Ay),zy="_button_474wk_1",$y="_disabled_474wk_30",Vy="_fullWidth_474wk_118",Uy="_button__leftIcon_474wk_124",qy="_button__rightIcon_474wk_125",gn={button:zy,disabled:$y,"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:Vy,button__leftIcon:Uy,button__rightIcon:qy};function kn(e){var t,n=e.children,r=e.className,i=e.disabled,o=e.buttonType,a=o===void 0?"muted":o,u=e.buttonSize,l=u===void 0?"m":u,s=e.fullWidth,c=e.onClick,d=e.style,f=e.leftIcon,h=e.rightIcon,p=e.type,v=p===void 0?"button":p;return H.createElement("button",{type:v,className:It(gn.button,gn["buttonType-".concat(a)],gn["buttonSize-".concat(l)],(t={},t[gn.disabled]=i,t[gn.fullWidth]=s,t),r),disabled:i,onClick:c,style:d},f&&H.createElement("span",{className:gn.button__leftIcon},f),n&&H.createElement("span",null,n),h&&H.createElement("span",{className:gn.button__rightIcon},h))}var Vs=function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vs.apply(this,arguments)};function _c(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())})}function By(e,t){return t===void 0&&(t=!1),Vs({padding:t?void 0:e.bodyPadding.map(function(n){return"".concat(n,"px")}).join(" ")},Object.fromEntries(Object.entries(e.theme).flatMap(function(n){var r,i=n[0],o=n[1];return[["--".concat(_c(i)),o],["--".concat(_c("".concat(i,"RgbComponents"))),((r=o.match(/rgb\((\d+, \d+, \d+)\)/))===null||r===void 0?void 0:r[1])||void 0]]})))}const Hy="_themeVariables_ovgoa_1",Gy="_canvas_ovgoa_68",wc={themeVariables:Hy,canvas:Gy};var Wy=k.createContext(null);function xd(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,i=t.mode;return k.useEffect(function(){if(!r&&"startAutoResizer"in t){var o=t;return o.startAutoResizer(),function(){o.stopAutoResizer()}}},[i,r]),H.createElement(Wy.Provider,{value:t},H.createElement("div",{className:It(wc.themeVariables,wc.canvas),style:By(t)},n))}var bd={exports:{}},Je={},Od={exports:{}},Cd={};/**
22
+ * @license React
23
+ * scheduler.production.min.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */(function(e){function t(I,D){var N=I.length;I.push(D);e:for(;0<N;){var Y=N-1>>>1,G=I[Y];if(0<i(G,D))I[Y]=D,I[N]=G,N=Y;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var D=I[0],N=I.pop();if(N!==D){I[0]=N;e:for(var Y=0,G=I.length,he=G>>>1;Y<he;){var ce=2*(Y+1)-1,$e=I[ce],oe=ce+1,Fe=I[oe];if(0>i($e,N))oe<G&&0>i(Fe,$e)?(I[Y]=Fe,I[oe]=N,Y=oe):(I[Y]=$e,I[ce]=N,Y=ce);else if(oe<G&&0>i(Fe,N))I[Y]=Fe,I[oe]=N,Y=oe;else break e}}return D}function i(I,D){var N=I.sortIndex-D.sortIndex;return N!==0?N:I.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var l=[],s=[],c=1,d=null,f=3,h=!1,p=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(I){for(var D=n(s);D!==null;){if(D.callback===null)r(s);else if(D.startTime<=I)r(s),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(s)}}function w(I){if(v=!1,g(I),!p)if(n(l)!==null)p=!0,K(O);else{var D=n(s);D!==null&&re(w,D.startTime-I)}}function O(I,D){p=!1,v&&(v=!1,m(P),P=-1),h=!0;var N=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||I&&!V());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var G=Y(d.expirationTime<=D);D=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var he=!0;else{var ce=n(s);ce!==null&&re(w,ce.startTime-D),he=!1}return he}finally{d=null,f=N,h=!1}}var b=!1,x=null,P=-1,R=5,j=-1;function V(){return!(e.unstable_now()-j<R)}function q(){if(x!==null){var I=e.unstable_now();j=I;var D=!0;try{D=x(!0,I)}finally{D?U():(b=!1,x=null)}}else b=!1}var U;if(typeof y=="function")U=function(){y(q)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,X=ee.port2;ee.port1.onmessage=q,U=function(){X.postMessage(null)}}else U=function(){E(q,0)};function K(I){x=I,b||(b=!0,U())}function re(I,D){P=E(function(){I(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,K(O))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var N=f;f=D;try{return I()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,D){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var N=f;f=I;try{return D()}finally{f=N}},e.unstable_scheduleCallback=function(I,D,N){var Y=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?Y+N:Y):N=Y,I){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=N+G,I={id:c++,callback:D,priorityLevel:I,startTime:N,expirationTime:G,sortIndex:-1},N>Y?(I.sortIndex=N,t(s,I),n(l)===null&&I===n(s)&&(v?(m(P),P=-1):v=!0,re(w,N-Y))):(I.sortIndex=G,t(l,I),p||h||(p=!0,K(O))),I},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(I){var D=f;return function(){var N=f;f=D;try{return I.apply(this,arguments)}finally{f=N}}}})(Cd);Od.exports=Cd;var Yy=Od.exports;/**
30
+ * @license React
31
+ * react-dom.production.min.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */var Ky=k,Xe=Yy;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Pd=new Set,ai={};function Un(e,t){Sr(e,t),Sr(e+"Capture",t)}function Sr(e,t){for(ai[e]=t,e=0;e<t.length;e++)Pd.add(t[e])}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Us=Object.prototype.hasOwnProperty,Qy=/^[: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]*$/,Sc={},Ec={};function Xy(e){return Us.call(Ec,e)?!0:Us.call(Sc,e)?!1:Qy.test(e)?Ec[e]=!0:(Sc[e]=!0,!1)}function Jy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zy(e,t,n,r){if(t===null||typeof t>"u"||Jy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var rl=/[\-:]([a-z])/g;function il(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rl,il);ke[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rl,il);ke[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rl,il);ke[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function ol(e,t,n,r){var i=ke.hasOwnProperty(t)?ke[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zy(t,n,i,r)&&(n=null),r||i===null?Xy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Yt=Ky.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ni=Symbol.for("react.element"),Kn=Symbol.for("react.portal"),Qn=Symbol.for("react.fragment"),al=Symbol.for("react.strict_mode"),qs=Symbol.for("react.profiler"),Td=Symbol.for("react.provider"),kd=Symbol.for("react.context"),sl=Symbol.for("react.forward_ref"),Bs=Symbol.for("react.suspense"),Hs=Symbol.for("react.suspense_list"),ul=Symbol.for("react.memo"),Xt=Symbol.for("react.lazy"),Id=Symbol.for("react.offscreen"),xc=Symbol.iterator;function Rr(e){return e===null||typeof e!="object"?null:(e=xc&&e[xc]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,Za;function Hr(e){if(Za===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||""}return`
38
+ `+Za+e}var es=!1;function ts(e,t){if(!e||es)return"";es=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&typeof s.stack=="string"){for(var i=s.stack.split(`
39
+ `),o=r.stack.split(`
40
+ `),a=i.length-1,u=o.length-1;1<=a&&0<=u&&i[a]!==o[u];)u--;for(;1<=a&&0<=u;a--,u--)if(i[a]!==o[u]){if(a!==1||u!==1)do if(a--,u--,0>u||i[a]!==o[u]){var l=`
41
+ `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=u);break}}}finally{es=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function ev(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=ts(e.type,!1),e;case 11:return e=ts(e.type.render,!1),e;case 1:return e=ts(e.type,!0),e;default:return""}}function Gs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qn:return"Fragment";case Kn:return"Portal";case qs:return"Profiler";case al:return"StrictMode";case Bs:return"Suspense";case Hs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kd:return(e.displayName||"Context")+".Consumer";case Td:return(e._context.displayName||"Context")+".Provider";case sl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ul:return t=e.displayName||null,t!==null?t:Gs(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return Gs(e(t))}catch{}}return null}function tv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gs(t);case 8:return t===al?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ld(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nv(e){var t=Ld(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fi(e){e._valueTracker||(e._valueTracker=nv(e))}function jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ld(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Po(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}}function Ws(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Rd(e,t){t=t.checked,t!=null&&ol(e,"checked",t,!1)}function Ys(e,t){Rd(e,t);var n=pn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ks(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ks(e,t.type,pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ks(e,t,n){(t!=="number"||Po(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gr=Array.isArray;function sr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(Gr(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pn(n)}}function Nd(e,t){var n=pn(t.value),r=pn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Pc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Fd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Fd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mi,Md=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mi=Mi||document.createElement("div"),Mi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function si(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rv=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){rv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function Dd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function Ad(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Dd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var iv=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Js(e,t){if(t){if(iv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Zs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 eu=null;function ll(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tu=null,ur=null,lr=null;function Tc(e){if(e=ki(e)){if(typeof tu!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Ea(t),tu(e.stateNode,e.type,t))}}function zd(e){ur?lr?lr.push(e):lr=[e]:ur=e}function $d(){if(ur){var e=ur,t=lr;if(lr=ur=null,Tc(e),t)for(e=0;e<t.length;e++)Tc(t[e])}}function Vd(e,t){return e(t)}function Ud(){}var ns=!1;function qd(e,t,n){if(ns)return e(t,n);ns=!0;try{return Vd(e,t,n)}finally{ns=!1,(ur!==null||lr!==null)&&(Ud(),$d())}}function ui(e,t){var n=e.stateNode;if(n===null)return null;var r=Ea(n);if(r===null)return null;n=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(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var nu=!1;if(Vt)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){nu=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{nu=!1}function ov(e,t,n,r,i,o,a,u,l){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var Xr=!1,To=null,ko=!1,ru=null,av={onError:function(e){Xr=!0,To=e}};function sv(e,t,n,r,i,o,a,u,l){Xr=!1,To=null,ov.apply(av,arguments)}function uv(e,t,n,r,i,o,a,u,l){if(sv.apply(this,arguments),Xr){if(Xr){var s=To;Xr=!1,To=null}else throw Error(L(198));ko||(ko=!0,ru=s)}}function qn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Bd(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 kc(e){if(qn(e)!==e)throw Error(L(188))}function lv(e){var t=e.alternate;if(!t){if(t=qn(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return kc(i),e;if(o===r)return kc(i),t;o=o.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Hd(e){return e=lv(e),e!==null?Gd(e):null}function Gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Gd(e);if(t!==null)return t;e=e.sibling}return null}var Wd=Xe.unstable_scheduleCallback,Ic=Xe.unstable_cancelCallback,cv=Xe.unstable_shouldYield,fv=Xe.unstable_requestPaint,ve=Xe.unstable_now,dv=Xe.unstable_getCurrentPriorityLevel,cl=Xe.unstable_ImmediatePriority,Yd=Xe.unstable_UserBlockingPriority,Io=Xe.unstable_NormalPriority,pv=Xe.unstable_LowPriority,Kd=Xe.unstable_IdlePriority,ga=null,Pt=null;function hv(e){if(Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(ga,e,void 0,(e.current.flags&128)===128)}catch{}}var yt=Math.clz32?Math.clz32:vv,mv=Math.log,yv=Math.LN2;function vv(e){return e>>>=0,e===0?32:31-(mv(e)/yv|0)|0}var Di=64,Ai=4194304;function Wr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~i;u!==0?r=Wr(u):(o&=a,o!==0&&(r=Wr(o)))}else a=n&~i,a!==0?r=Wr(a):o!==0&&(r=Wr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yt(t),i=1<<n,r|=e[n],t&=~i;return r}function gv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _v(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-yt(o),u=1<<a,l=i[a];l===-1?(!(u&n)||u&r)&&(i[a]=gv(u,t)):l<=t&&(e.expiredLanes|=u),o&=~u}}function iu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Qd(){var e=Di;return Di<<=1,!(Di&4194240)&&(Di=64),e}function rs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function wv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-yt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function fl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var te=0;function Xd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Jd,dl,Zd,ep,tp,ou=!1,zi=[],on=null,an=null,sn=null,li=new Map,ci=new Map,en=[],Sv="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 submit".split(" ");function Lc(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":an=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ci.delete(t.pointerId)}}function Fr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ki(t),t!==null&&dl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ev(e,t,n,r,i){switch(t){case"focusin":return on=Fr(on,e,t,n,r,i),!0;case"dragenter":return an=Fr(an,e,t,n,r,i),!0;case"mouseover":return sn=Fr(sn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return li.set(o,Fr(li.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ci.set(o,Fr(ci.get(o)||null,e,t,n,r,i)),!0}return!1}function np(e){var t=On(e.target);if(t!==null){var n=qn(t);if(n!==null){if(t=n.tag,t===13){if(t=Bd(n),t!==null){e.blockedOn=t,tp(e.priority,function(){Zd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=au(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);eu=r,n.target.dispatchEvent(r),eu=null}else return t=ki(n),t!==null&&dl(t),e.blockedOn=n,!1;t.shift()}return!0}function jc(e,t,n){lo(e)&&n.delete(t)}function xv(){ou=!1,on!==null&&lo(on)&&(on=null),an!==null&&lo(an)&&(an=null),sn!==null&&lo(sn)&&(sn=null),li.forEach(jc),ci.forEach(jc)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,ou||(ou=!0,Xe.unstable_scheduleCallback(Xe.unstable_NormalPriority,xv)))}function fi(e){function t(i){return Mr(i,e)}if(0<zi.length){Mr(zi[0],e);for(var n=1;n<zi.length;n++){var r=zi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(on!==null&&Mr(on,e),an!==null&&Mr(an,e),sn!==null&&Mr(sn,e),li.forEach(t),ci.forEach(t),n=0;n<en.length;n++)r=en[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<en.length&&(n=en[0],n.blockedOn===null);)np(n),n.blockedOn===null&&en.shift()}var cr=Yt.ReactCurrentBatchConfig,jo=!0;function bv(e,t,n,r){var i=te,o=cr.transition;cr.transition=null;try{te=1,pl(e,t,n,r)}finally{te=i,cr.transition=o}}function Ov(e,t,n,r){var i=te,o=cr.transition;cr.transition=null;try{te=4,pl(e,t,n,r)}finally{te=i,cr.transition=o}}function pl(e,t,n,r){if(jo){var i=au(e,t,n,r);if(i===null)ps(e,t,r,Ro,n),Lc(e,r);else if(Ev(i,e,t,n,r))r.stopPropagation();else if(Lc(e,r),t&4&&-1<Sv.indexOf(e)){for(;i!==null;){var o=ki(i);if(o!==null&&Jd(o),o=au(e,t,n,r),o===null&&ps(e,t,r,Ro,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ps(e,t,r,null,n)}}var Ro=null;function au(e,t,n,r){if(Ro=null,e=ll(r),e=On(e),e!==null)if(t=qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Bd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ro=e,null}function rp(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dv()){case cl:return 1;case Yd:return 4;case Io:case pv:return 16;case Kd:return 536870912;default:return 16}default:return 16}}var nn=null,hl=null,co=null;function ip(){if(co)return co;var e,t=hl,n=t.length,r,i="value"in nn?nn.value:nn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return co=i.slice(e,1<r?1-r:void 0)}function fo(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 $i(){return!0}function Rc(){return!1}function Ze(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?$i:Rc,this.isPropagationStopped=Rc,this}return pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$i)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$i)},persist:function(){},isPersistent:$i}),t}var Ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=Ze(Ir),Ti=pe({},Ir,{view:0,detail:0}),Cv=Ze(Ti),is,os,Dr,_a=pe({},Ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yl,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!==Dr&&(Dr&&e.type==="mousemove"?(is=e.screenX-Dr.screenX,os=e.screenY-Dr.screenY):os=is=0,Dr=e),is)},movementY:function(e){return"movementY"in e?e.movementY:os}}),Nc=Ze(_a),Pv=pe({},_a,{dataTransfer:0}),Tv=Ze(Pv),kv=pe({},Ti,{relatedTarget:0}),as=Ze(kv),Iv=pe({},Ir,{animationName:0,elapsedTime:0,pseudoElement:0}),Lv=Ze(Iv),jv=pe({},Ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rv=Ze(jv),Nv=pe({},Ir,{data:0}),Fc=Ze(Nv),Fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mv={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"},Dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Av(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dv[e])?!!t[e]:!1}function yl(){return Av}var zv=pe({},Ti,{key:function(e){if(e.key){var t=Fv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yl,charCode:function(e){return e.type==="keypress"?fo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$v=Ze(zv),Vv=pe({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mc=Ze(Vv),Uv=pe({},Ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yl}),qv=Ze(Uv),Bv=pe({},Ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hv=Ze(Bv),Gv=pe({},_a,{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}),Wv=Ze(Gv),Yv=[9,13,27,32],vl=Vt&&"CompositionEvent"in window,Jr=null;Vt&&"documentMode"in document&&(Jr=document.documentMode);var Kv=Vt&&"TextEvent"in window&&!Jr,op=Vt&&(!vl||Jr&&8<Jr&&11>=Jr),Dc=" ",Ac=!1;function ap(e,t){switch(e){case"keyup":return Yv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Qv(e,t){switch(e){case"compositionend":return sp(t);case"keypress":return t.which!==32?null:(Ac=!0,Dc);case"textInput":return e=t.data,e===Dc&&Ac?null:e;default:return null}}function Xv(e,t){if(Xn)return e==="compositionend"||!vl&&ap(e,t)?(e=ip(),co=hl=nn=null,Xn=!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 op&&t.locale!=="ko"?null:t.data;default:return null}}var Jv={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 zc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jv[e.type]:t==="textarea"}function up(e,t,n,r){zd(r),t=No(t,"onChange"),0<t.length&&(n=new ml("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zr=null,di=null;function Zv(e){_p(e,0)}function wa(e){var t=er(e);if(jd(t))return e}function eg(e,t){if(e==="change")return t}var lp=!1;if(Vt){var ss;if(Vt){var us="oninput"in document;if(!us){var $c=document.createElement("div");$c.setAttribute("oninput","return;"),us=typeof $c.oninput=="function"}ss=us}else ss=!1;lp=ss&&(!document.documentMode||9<document.documentMode)}function Vc(){Zr&&(Zr.detachEvent("onpropertychange",cp),di=Zr=null)}function cp(e){if(e.propertyName==="value"&&wa(di)){var t=[];up(t,di,e,ll(e)),qd(Zv,t)}}function tg(e,t,n){e==="focusin"?(Vc(),Zr=t,di=n,Zr.attachEvent("onpropertychange",cp)):e==="focusout"&&Vc()}function ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wa(di)}function rg(e,t){if(e==="click")return wa(t)}function ig(e,t){if(e==="input"||e==="change")return wa(t)}function og(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:og;function pi(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Us.call(t,i)||!gt(e[i],t[i]))return!1}return!0}function Uc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qc(e,t){var n=Uc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uc(n)}}function fp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dp(){for(var e=window,t=Po();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Po(e.document)}return t}function gl(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")}function ag(e){var t=dp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fp(n.ownerDocument.documentElement,n)){if(r!==null&&gl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=qc(n,o);var a=qc(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sg=Vt&&"documentMode"in document&&11>=document.documentMode,Jn=null,su=null,ei=null,uu=!1;function Bc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||Jn==null||Jn!==Po(r)||(r=Jn,"selectionStart"in r&&gl(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}),ei&&pi(ei,r)||(ei=r,r=No(su,"onSelect"),0<r.length&&(t=new ml("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Jn)))}function Vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zn={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionend:Vi("Transition","TransitionEnd")},ls={},pp={};Vt&&(pp=document.createElement("div").style,"AnimationEvent"in window||(delete Zn.animationend.animation,delete Zn.animationiteration.animation,delete Zn.animationstart.animation),"TransitionEvent"in window||delete Zn.transitionend.transition);function Sa(e){if(ls[e])return ls[e];if(!Zn[e])return e;var t=Zn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pp)return ls[e]=t[n];return e}var hp=Sa("animationend"),mp=Sa("animationiteration"),yp=Sa("animationstart"),vp=Sa("transitionend"),gp=new Map,Hc="abort auxClick 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(" ");function mn(e,t){gp.set(e,t),Un(t,[e])}for(var cs=0;cs<Hc.length;cs++){var fs=Hc[cs],ug=fs.toLowerCase(),lg=fs[0].toUpperCase()+fs.slice(1);mn(ug,"on"+lg)}mn(hp,"onAnimationEnd");mn(mp,"onAnimationIteration");mn(yp,"onAnimationStart");mn("dblclick","onDoubleClick");mn("focusin","onFocus");mn("focusout","onBlur");mn(vp,"onTransitionEnd");Sr("onMouseEnter",["mouseout","mouseover"]);Sr("onMouseLeave",["mouseout","mouseover"]);Sr("onPointerEnter",["pointerout","pointerover"]);Sr("onPointerLeave",["pointerout","pointerover"]);Un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Un("onBeforeInput",["compositionend","keypress","textInput","paste"]);Un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yr="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(" "),cg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yr));function Gc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uv(r,t,void 0,e),e.currentTarget=null}function _p(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],l=u.instance,s=u.currentTarget;if(u=u.listener,l!==o&&i.isPropagationStopped())break e;Gc(i,u,s),o=l}else for(a=0;a<r.length;a++){if(u=r[a],l=u.instance,s=u.currentTarget,u=u.listener,l!==o&&i.isPropagationStopped())break e;Gc(i,u,s),o=l}}}if(ko)throw e=ru,ko=!1,ru=null,e}function se(e,t){var n=t[pu];n===void 0&&(n=t[pu]=new Set);var r=e+"__bubble";n.has(r)||(wp(t,e,2,!1),n.add(r))}function ds(e,t,n){var r=0;t&&(r|=4),wp(n,e,r,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function hi(e){if(!e[Ui]){e[Ui]=!0,Pd.forEach(function(n){n!=="selectionchange"&&(cg.has(n)||ds(n,!1,e),ds(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,ds("selectionchange",!1,t))}}function wp(e,t,n,r){switch(rp(t)){case 1:var i=bv;break;case 4:i=Ov;break;default:i=pl}n=i.bind(null,t,n,e),i=void 0,!nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ps(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;u!==null;){if(a=On(u),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}u=u.parentNode}}r=r.return}qd(function(){var s=o,c=ll(n),d=[];e:{var f=gp.get(e);if(f!==void 0){var h=ml,p=e;switch(e){case"keypress":if(fo(n)===0)break e;case"keydown":case"keyup":h=$v;break;case"focusin":p="focus",h=as;break;case"focusout":p="blur",h=as;break;case"beforeblur":case"afterblur":h=as;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Nc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Tv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=qv;break;case hp:case mp:case yp:h=Lv;break;case vp:h=Hv;break;case"scroll":h=Cv;break;case"wheel":h=Wv;break;case"copy":case"cut":case"paste":h=Rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Mc}var v=(t&4)!==0,E=!v&&e==="scroll",m=v?f!==null?f+"Capture":null:f;v=[];for(var y=s,g;y!==null;){g=y;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,m!==null&&(w=ui(y,m),w!=null&&v.push(mi(y,w,g)))),E)break;y=y.return}0<v.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==eu&&(p=n.relatedTarget||n.fromElement)&&(On(p)||p[Ut]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=s,p=p?On(p):null,p!==null&&(E=qn(p),p!==E||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=s),h!==p)){if(v=Nc,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Mc,w="onPointerLeave",m="onPointerEnter",y="pointer"),E=h==null?f:er(h),g=p==null?f:er(p),f=new v(w,y+"leave",h,n,c),f.target=E,f.relatedTarget=g,w=null,On(c)===s&&(v=new v(m,y+"enter",p,n,c),v.target=g,v.relatedTarget=E,w=v),E=w,h&&p)t:{for(v=h,m=p,y=0,g=v;g;g=Gn(g))y++;for(g=0,w=m;w;w=Gn(w))g++;for(;0<y-g;)v=Gn(v),y--;for(;0<g-y;)m=Gn(m),g--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=Gn(v),m=Gn(m)}v=null}else v=null;h!==null&&Wc(d,f,h,v,!1),p!==null&&E!==null&&Wc(d,E,p,v,!0)}}e:{if(f=s?er(s):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var O=eg;else if(zc(f))if(lp)O=ig;else{O=ng;var b=tg}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(O=rg);if(O&&(O=O(e,s))){up(d,O,n,c);break e}b&&b(e,f,s),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&Ks(f,"number",f.value)}switch(b=s?er(s):window,e){case"focusin":(zc(b)||b.contentEditable==="true")&&(Jn=b,su=s,ei=null);break;case"focusout":ei=su=Jn=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,Bc(d,n,c);break;case"selectionchange":if(sg)break;case"keydown":case"keyup":Bc(d,n,c)}var x;if(vl)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Xn?ap(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(op&&n.locale!=="ko"&&(Xn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Xn&&(x=ip()):(nn=c,hl="value"in nn?nn.value:nn.textContent,Xn=!0)),b=No(s,P),0<b.length&&(P=new Fc(P,e,null,n,c),d.push({event:P,listeners:b}),x?P.data=x:(x=sp(n),x!==null&&(P.data=x)))),(x=Kv?Qv(e,n):Xv(e,n))&&(s=No(s,"onBeforeInput"),0<s.length&&(c=new Fc("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:s}),c.data=x))}_p(d,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function No(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ui(e,n),o!=null&&r.unshift(mi(e,o,i)),o=ui(e,t),o!=null&&r.push(mi(e,o,i))),e=e.return}return r}function Gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wc(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var u=n,l=u.alternate,s=u.stateNode;if(l!==null&&l===r)break;u.tag===5&&s!==null&&(u=s,i?(l=ui(n,o),l!=null&&a.unshift(mi(n,l,u))):i||(l=ui(n,o),l!=null&&a.push(mi(n,l,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var fg=/\r\n?/g,dg=/\u0000|\uFFFD/g;function Yc(e){return(typeof e=="string"?e:""+e).replace(fg,`
42
+ `).replace(dg,"")}function qi(e,t,n){if(t=Yc(t),Yc(e)!==t&&n)throw Error(L(425))}function Fo(){}var lu=null,cu=null;function fu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var du=typeof setTimeout=="function"?setTimeout:void 0,pg=typeof clearTimeout=="function"?clearTimeout:void 0,Kc=typeof Promise=="function"?Promise:void 0,hg=typeof queueMicrotask=="function"?queueMicrotask:typeof Kc<"u"?function(e){return Kc.resolve(null).then(e).catch(mg)}:du;function mg(e){setTimeout(function(){throw e})}function hs(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),fi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);fi(t)}function un(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==="$?")break;if(t==="/$")return null}}return e}function Qc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),bt="__reactFiber$"+Lr,yi="__reactProps$"+Lr,Ut="__reactContainer$"+Lr,pu="__reactEvents$"+Lr,yg="__reactListeners$"+Lr,vg="__reactHandles$"+Lr;function On(e){var t=e[bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ut]||n[bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qc(e);e!==null;){if(n=e[bt])return n;e=Qc(e)}return t}e=n,n=e.parentNode}return null}function ki(e){return e=e[bt]||e[Ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function er(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Ea(e){return e[yi]||null}var hu=[],tr=-1;function yn(e){return{current:e}}function ue(e){0>tr||(e.current=hu[tr],hu[tr]=null,tr--)}function ae(e,t){tr++,hu[tr]=e.current,e.current=t}var hn={},Ne=yn(hn),qe=yn(!1),Fn=hn;function Er(e,t){var n=e.type.contextTypes;if(!n)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Be(e){return e=e.childContextTypes,e!=null}function Mo(){ue(qe),ue(Ne)}function Xc(e,t,n){if(Ne.current!==hn)throw Error(L(168));ae(Ne,t),ae(qe,n)}function Sp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,tv(e)||"Unknown",i));return pe({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Fn=Ne.current,ae(Ne,e),ae(qe,qe.current),!0}function Jc(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Sp(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,ue(qe),ue(Ne),ae(Ne,e)):ue(qe),ae(qe,n)}var Mt=null,xa=!1,ms=!1;function Ep(e){Mt===null?Mt=[e]:Mt.push(e)}function gg(e){xa=!0,Ep(e)}function vn(){if(!ms&&Mt!==null){ms=!0;var e=0,t=te;try{var n=Mt;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mt=null,xa=!1}catch(i){throw Mt!==null&&(Mt=Mt.slice(e+1)),Wd(cl,vn),i}finally{te=t,ms=!1}}return null}var nr=[],rr=0,Ao=null,zo=0,ot=[],at=0,Mn=null,Dt=1,At="";function Sn(e,t){nr[rr++]=zo,nr[rr++]=Ao,Ao=e,zo=t}function xp(e,t,n){ot[at++]=Dt,ot[at++]=At,ot[at++]=Mn,Mn=e;var r=Dt;e=At;var i=32-yt(r)-1;r&=~(1<<i),n+=1;var o=32-yt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Dt=1<<32-yt(t)+i|n<<i|r,At=o+e}else Dt=1<<o|n<<i|r,At=e}function _l(e){e.return!==null&&(Sn(e,1),xp(e,1,0))}function wl(e){for(;e===Ao;)Ao=nr[--rr],nr[rr]=null,zo=nr[--rr],nr[rr]=null;for(;e===Mn;)Mn=ot[--at],ot[at]=null,At=ot[--at],ot[at]=null,Dt=ot[--at],ot[at]=null}var Ke=null,Ye=null,le=!1,ht=null;function bp(e,t){var n=st(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ke=e,Ye=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ke=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Mn!==null?{id:Dt,overflow:At}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=st(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ke=e,Ye=null,!0):!1;default:return!1}}function mu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yu(e){if(le){var t=Ye;if(t){var n=t;if(!Zc(e,t)){if(mu(e))throw Error(L(418));t=un(n.nextSibling);var r=Ke;t&&Zc(e,t)?bp(r,n):(e.flags=e.flags&-4097|2,le=!1,Ke=e)}}else{if(mu(e))throw Error(L(418));e.flags=e.flags&-4097|2,le=!1,Ke=e}}}function ef(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ke=e}function Bi(e){if(e!==Ke)return!1;if(!le)return ef(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fu(e.type,e.memoizedProps)),t&&(t=Ye)){if(mu(e))throw Op(),Error(L(418));for(;t;)bp(e,t),t=un(t.nextSibling)}if(ef(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Ke?un(e.stateNode.nextSibling):null;return!0}function Op(){for(var e=Ye;e;)e=un(e.nextSibling)}function xr(){Ye=Ke=null,le=!1}function Sl(e){ht===null?ht=[e]:ht.push(e)}var _g=Yt.ReactCurrentBatchConfig;function Ar(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var u=i.refs;a===null?delete u[o]:u[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Hi(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tf(e){var t=e._init;return t(e._payload)}function Cp(e){function t(m,y){if(e){var g=m.deletions;g===null?(m.deletions=[y],m.flags|=16):g.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=dn(m,y),m.index=0,m.sibling=null,m}function o(m,y,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<y?(m.flags|=2,y):g):(m.flags|=2,y)):(m.flags|=1048576,y)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function u(m,y,g,w){return y===null||y.tag!==6?(y=Es(g,m.mode,w),y.return=m,y):(y=i(y,g),y.return=m,y)}function l(m,y,g,w){var O=g.type;return O===Qn?c(m,y,g.props.children,w,g.key):y!==null&&(y.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Xt&&tf(O)===y.type)?(w=i(y,g.props),w.ref=Ar(m,y,g),w.return=m,w):(w=_o(g.type,g.key,g.props,null,m.mode,w),w.ref=Ar(m,y,g),w.return=m,w)}function s(m,y,g,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=xs(g,m.mode,w),y.return=m,y):(y=i(y,g.children||[]),y.return=m,y)}function c(m,y,g,w,O){return y===null||y.tag!==7?(y=Ln(g,m.mode,w,O),y.return=m,y):(y=i(y,g),y.return=m,y)}function d(m,y,g){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Es(""+y,m.mode,g),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ni:return g=_o(y.type,y.key,y.props,null,m.mode,g),g.ref=Ar(m,null,y),g.return=m,g;case Kn:return y=xs(y,m.mode,g),y.return=m,y;case Xt:var w=y._init;return d(m,w(y._payload),g)}if(Gr(y)||Rr(y))return y=Ln(y,m.mode,g,null),y.return=m,y;Hi(m,y)}return null}function f(m,y,g,w){var O=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return O!==null?null:u(m,y,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ni:return g.key===O?l(m,y,g,w):null;case Kn:return g.key===O?s(m,y,g,w):null;case Xt:return O=g._init,f(m,y,O(g._payload),w)}if(Gr(g)||Rr(g))return O!==null?null:c(m,y,g,w,null);Hi(m,g)}return null}function h(m,y,g,w,O){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(g)||null,u(y,m,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ni:return m=m.get(w.key===null?g:w.key)||null,l(y,m,w,O);case Kn:return m=m.get(w.key===null?g:w.key)||null,s(y,m,w,O);case Xt:var b=w._init;return h(m,y,g,b(w._payload),O)}if(Gr(w)||Rr(w))return m=m.get(g)||null,c(y,m,w,O,null);Hi(y,w)}return null}function p(m,y,g,w){for(var O=null,b=null,x=y,P=y=0,R=null;x!==null&&P<g.length;P++){x.index>P?(R=x,x=null):R=x.sibling;var j=f(m,x,g[P],w);if(j===null){x===null&&(x=R);break}e&&x&&j.alternate===null&&t(m,x),y=o(j,y,P),b===null?O=j:b.sibling=j,b=j,x=R}if(P===g.length)return n(m,x),le&&Sn(m,P),O;if(x===null){for(;P<g.length;P++)x=d(m,g[P],w),x!==null&&(y=o(x,y,P),b===null?O=x:b.sibling=x,b=x);return le&&Sn(m,P),O}for(x=r(m,x);P<g.length;P++)R=h(x,m,P,g[P],w),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?P:R.key),y=o(R,y,P),b===null?O=R:b.sibling=R,b=R);return e&&x.forEach(function(V){return t(m,V)}),le&&Sn(m,P),O}function v(m,y,g,w){var O=Rr(g);if(typeof O!="function")throw Error(L(150));if(g=O.call(g),g==null)throw Error(L(151));for(var b=O=null,x=y,P=y=0,R=null,j=g.next();x!==null&&!j.done;P++,j=g.next()){x.index>P?(R=x,x=null):R=x.sibling;var V=f(m,x,j.value,w);if(V===null){x===null&&(x=R);break}e&&x&&V.alternate===null&&t(m,x),y=o(V,y,P),b===null?O=V:b.sibling=V,b=V,x=R}if(j.done)return n(m,x),le&&Sn(m,P),O;if(x===null){for(;!j.done;P++,j=g.next())j=d(m,j.value,w),j!==null&&(y=o(j,y,P),b===null?O=j:b.sibling=j,b=j);return le&&Sn(m,P),O}for(x=r(m,x);!j.done;P++,j=g.next())j=h(x,m,P,j.value,w),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?P:j.key),y=o(j,y,P),b===null?O=j:b.sibling=j,b=j);return e&&x.forEach(function(q){return t(m,q)}),le&&Sn(m,P),O}function E(m,y,g,w){if(typeof g=="object"&&g!==null&&g.type===Qn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ni:e:{for(var O=g.key,b=y;b!==null;){if(b.key===O){if(O=g.type,O===Qn){if(b.tag===7){n(m,b.sibling),y=i(b,g.props.children),y.return=m,m=y;break e}}else if(b.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Xt&&tf(O)===b.type){n(m,b.sibling),y=i(b,g.props),y.ref=Ar(m,b,g),y.return=m,m=y;break e}n(m,b);break}else t(m,b);b=b.sibling}g.type===Qn?(y=Ln(g.props.children,m.mode,w,g.key),y.return=m,m=y):(w=_o(g.type,g.key,g.props,null,m.mode,w),w.ref=Ar(m,y,g),w.return=m,m=w)}return a(m);case Kn:e:{for(b=g.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(m,y.sibling),y=i(y,g.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=xs(g,m.mode,w),y.return=m,m=y}return a(m);case Xt:return b=g._init,E(m,y,b(g._payload),w)}if(Gr(g))return p(m,y,g,w);if(Rr(g))return v(m,y,g,w);Hi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,g),y.return=m,m=y):(n(m,y),y=Es(g,m.mode,w),y.return=m,m=y),a(m)):n(m,y)}return E}var br=Cp(!0),Pp=Cp(!1),$o=yn(null),Vo=null,ir=null,El=null;function xl(){El=ir=Vo=null}function bl(e){var t=$o.current;ue($o),e._currentValue=t}function vu(e,t,n){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===n)break;e=e.return}}function fr(e,t){Vo=e,El=ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(El!==e)if(e={context:e,memoizedValue:t,next:null},ir===null){if(Vo===null)throw Error(L(308));ir=e,Vo.dependencies={lanes:0,firstContext:e}}else ir=ir.next=e;return t}var Cn=null;function Ol(e){Cn===null?Cn=[e]:Cn.push(e)}function Tp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ol(t)):(n.next=i.next,i.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Jt=!1;function Cl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ol(r)):(t.next=i.next,i.next=t),r.interleaved=t,qt(e,n)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fl(e,n)}}function nf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Uo(e,t,n,r){var i=e.updateQueue;Jt=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var l=u,s=l.next;l.next=null,a===null?o=s:a.next=s,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==a&&(u===null?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,c=s=l=null,u=o;do{var f=u.lane,h=u.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var p=e,v=u;switch(f=t,h=n,v.tag){case 1:if(p=v.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=pe({},d,f);break e;case 2:Jt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[u]:f.push(u))}else h={eventTime:h,lane:f,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(s=c=h,l=d):c=c.next=h,a|=f;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;f=u,u=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=s,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);An|=a,e.lanes=a,e.memoizedState=d}}function rf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var Ii={},Tt=yn(Ii),vi=yn(Ii),gi=yn(Ii);function Pn(e){if(e===Ii)throw Error(L(174));return e}function Pl(e,t){switch(ae(gi,t),ae(vi,e),ae(Tt,Ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xs(t,e)}ue(Tt),ae(Tt,t)}function Or(){ue(Tt),ue(vi),ue(gi)}function Ip(e){Pn(gi.current);var t=Pn(Tt.current),n=Xs(t,e.type);t!==n&&(ae(vi,e),ae(Tt,n))}function Tl(e){vi.current===e&&(ue(Tt),ue(vi))}var fe=yn(0);function qo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ys=[];function kl(){for(var e=0;e<ys.length;e++)ys[e]._workInProgressVersionPrimary=null;ys.length=0}var ho=Yt.ReactCurrentDispatcher,vs=Yt.ReactCurrentBatchConfig,Dn=0,de=null,Se=null,xe=null,Bo=!1,ti=!1,_i=0,wg=0;function Ie(){throw Error(L(321))}function Il(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function Ll(e,t,n,r,i,o){if(Dn=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ho.current=e===null||e.memoizedState===null?bg:Og,e=n(r,i),ti){o=0;do{if(ti=!1,_i=0,25<=o)throw Error(L(301));o+=1,xe=Se=null,t.updateQueue=null,ho.current=Cg,e=n(r,i)}while(ti)}if(ho.current=Ho,t=Se!==null&&Se.next!==null,Dn=0,xe=Se=de=null,Bo=!1,t)throw Error(L(300));return e}function jl(){var e=_i!==0;return _i=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xe===null?de.memoizedState=xe=e:xe=xe.next=e,xe}function ct(){if(Se===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=xe===null?de.memoizedState:xe.next;if(t!==null)xe=t,Se=e;else{if(e===null)throw Error(L(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},xe===null?de.memoizedState=xe=e:xe=xe.next=e}return xe}function wi(e,t){return typeof t=="function"?t(e):t}function gs(e){var t=ct(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=Se,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var u=a=null,l=null,s=o;do{var c=s.lane;if((Dn&c)===c)l!==null&&(l=l.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};l===null?(u=l=d,a=r):l=l.next=d,de.lanes|=c,An|=c}s=s.next}while(s!==null&&s!==o);l===null?a=r:l.next=u,gt(r,t.memoizedState)||(Ue=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,de.lanes|=o,An|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _s(e){var t=ct(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);gt(o,t.memoizedState)||(Ue=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lp(){}function jp(e,t){var n=de,r=ct(),i=t(),o=!gt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ue=!0),r=r.queue,Rl(Fp.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||xe!==null&&xe.memoizedState.tag&1){if(n.flags|=2048,Si(9,Np.bind(null,n,r,i,t),void 0,null),be===null)throw Error(L(349));Dn&30||Rp(n,t,i)}return i}function Rp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Np(e,t,n,r){t.value=n,t.getSnapshot=r,Mp(t)&&Dp(e)}function Fp(e,t,n){return n(function(){Mp(t)&&Dp(e)})}function Mp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Dp(e){var t=qt(e,1);t!==null&&vt(t,e,1,-1)}function of(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=xg.bind(null,de,e),[t.memoizedState,e]}function Si(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ap(){return ct().memoizedState}function mo(e,t,n,r){var i=St();de.flags|=e,i.memoizedState=Si(1|t,n,void 0,r===void 0?null:r)}function ba(e,t,n,r){var i=ct();r=r===void 0?null:r;var o=void 0;if(Se!==null){var a=Se.memoizedState;if(o=a.destroy,r!==null&&Il(r,a.deps)){i.memoizedState=Si(t,n,o,r);return}}de.flags|=e,i.memoizedState=Si(1|t,n,o,r)}function af(e,t){return mo(8390656,8,e,t)}function Rl(e,t){return ba(2048,8,e,t)}function zp(e,t){return ba(4,2,e,t)}function $p(e,t){return ba(4,4,e,t)}function Vp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Up(e,t,n){return n=n!=null?n.concat([e]):null,ba(4,4,Vp.bind(null,t,e),n)}function Nl(){}function qp(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Il(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bp(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Il(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hp(e,t,n){return Dn&21?(gt(n,t)||(n=Qd(),de.lanes|=n,An|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ue=!0),e.memoizedState=n)}function Sg(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=vs.transition;vs.transition={};try{e(!1),t()}finally{te=n,vs.transition=r}}function Gp(){return ct().memoizedState}function Eg(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wp(e))Yp(t,n);else if(n=Tp(e,t,n,r),n!==null){var i=De();vt(n,e,r,i),Kp(n,t,r)}}function xg(e,t,n){var r=fn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wp(e))Yp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,u=o(a,n);if(i.hasEagerState=!0,i.eagerState=u,gt(u,a)){var l=t.interleaved;l===null?(i.next=i,Ol(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Tp(e,t,i,r),n!==null&&(i=De(),vt(n,e,r,i),Kp(n,t,r))}}function Wp(e){var t=e.alternate;return e===de||t!==null&&t===de}function Yp(e,t){ti=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fl(e,n)}}var Ho={readContext:lt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},bg={readContext:lt,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:af,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mo(4194308,4,Vp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4194308,4,e,t)},useInsertionEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Eg.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:of,useDebugValue:Nl,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=of(!1),t=e[0];return e=Sg.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=St();if(le){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),be===null)throw Error(L(349));Dn&30||Rp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,af(Fp.bind(null,r,o,e),[e]),r.flags|=2048,Si(9,Np.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=St(),t=be.identifierPrefix;if(le){var n=At,r=Dt;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_i++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Og={readContext:lt,useCallback:qp,useContext:lt,useEffect:Rl,useImperativeHandle:Up,useInsertionEffect:zp,useLayoutEffect:$p,useMemo:Bp,useReducer:gs,useRef:Ap,useState:function(){return gs(wi)},useDebugValue:Nl,useDeferredValue:function(e){var t=ct();return Hp(t,Se.memoizedState,e)},useTransition:function(){var e=gs(wi)[0],t=ct().memoizedState;return[e,t]},useMutableSource:Lp,useSyncExternalStore:jp,useId:Gp,unstable_isNewReconciler:!1},Cg={readContext:lt,useCallback:qp,useContext:lt,useEffect:Rl,useImperativeHandle:Up,useInsertionEffect:zp,useLayoutEffect:$p,useMemo:Bp,useReducer:_s,useRef:Ap,useState:function(){return _s(wi)},useDebugValue:Nl,useDeferredValue:function(e){var t=ct();return Se===null?t.memoizedState=e:Hp(t,Se.memoizedState,e)},useTransition:function(){var e=_s(wi)[0],t=ct().memoizedState;return[e,t]},useMutableSource:Lp,useSyncExternalStore:jp,useId:Gp,unstable_isNewReconciler:!1};function dt(e,t){if(e&&e.defaultProps){t=pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oa={isMounted:function(e){return(e=e._reactInternals)?qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),i=fn(e),o=zt(r,i);o.payload=t,n!=null&&(o.callback=n),t=ln(e,o,i),t!==null&&(vt(t,e,i,r),po(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),i=fn(e),o=zt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ln(e,o,i),t!==null&&(vt(t,e,i,r),po(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=fn(e),i=zt(n,r);i.tag=2,t!=null&&(i.callback=t),t=ln(e,i,r),t!==null&&(vt(t,e,r,n),po(t,e,r))}};function sf(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!pi(n,r)||!pi(i,o):!0}function Qp(e,t,n){var r=!1,i=hn,o=t.contextType;return typeof o=="object"&&o!==null?o=lt(o):(i=Be(t)?Fn:Ne.current,r=t.contextTypes,o=(r=r!=null)?Er(e,i):hn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function uf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oa.enqueueReplaceState(t,t.state,null)}function _u(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Cl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=lt(o):(o=Be(t)?Fn:Ne.current,i.context=Er(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(gu(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Oa.enqueueReplaceState(i,i.state,null),Uo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Cr(e,t){try{var n="",r=t;do n+=ev(r),r=r.return;while(r);var i=n}catch(o){i=`
43
+ Error generating stack: `+o.message+`
44
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pg=typeof WeakMap=="function"?WeakMap:Map;function Xp(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wo||(Wo=!0,Iu=r),wu(e,t)},n}function Jp(e,t,n){n=zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){wu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){wu(e,t),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function lf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Vg.bind(null,e,t,n),t.then(e,e))}function cf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ff(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zt(-1,1),t.tag=2,ln(n,t,1))),n.lanes|=1),e)}var Tg=Yt.ReactCurrentOwner,Ue=!1;function Me(e,t,n,r){t.child=e===null?Pp(t,null,n,r):br(t,e.child,n,r)}function df(e,t,n,r,i){n=n.render;var o=t.ref;return fr(t,i),r=Ll(e,t,n,r,o,i),n=jl(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bt(e,t,i)):(le&&n&&_l(t),t.flags|=1,Me(e,t,r,i),t.child)}function pf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ul(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Zp(e,t,o,r,i)):(e=_o(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:pi,n(a,r)&&e.ref===t.ref)return Bt(e,t,i)}return t.flags|=1,e=dn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Zp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(pi(o,r)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ue=!0);else return t.lanes=e.lanes,Bt(e,t,i)}return Su(e,t,n,r,i)}function eh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(ar,We),We|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(ar,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ae(ar,We),We|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ae(ar,We),We|=r;return Me(e,t,i,n),t.child}function th(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Su(e,t,n,r,i){var o=Be(n)?Fn:Ne.current;return o=Er(t,o),fr(t,i),n=Ll(e,t,n,r,o,i),r=jl(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bt(e,t,i)):(le&&r&&_l(t),t.flags|=1,Me(e,t,n,i),t.child)}function hf(e,t,n,r,i){if(Be(n)){var o=!0;Do(t)}else o=!1;if(fr(t,i),t.stateNode===null)yo(e,t),Qp(t,n,r),_u(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var l=a.context,s=n.contextType;typeof s=="object"&&s!==null?s=lt(s):(s=Be(n)?Fn:Ne.current,s=Er(t,s));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||l!==s)&&uf(t,a,r,s),Jt=!1;var f=t.memoizedState;a.state=f,Uo(t,r,a,i),l=t.memoizedState,u!==r||f!==l||qe.current||Jt?(typeof c=="function"&&(gu(t,n,c,r),l=t.memoizedState),(u=Jt||sf(t,n,u,r,f,l,s))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,kp(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:dt(t.type,u),a.props=s,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=lt(l):(l=Be(n)?Fn:Ne.current,l=Er(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==d||f!==l)&&uf(t,a,r,l),Jt=!1,f=t.memoizedState,a.state=f,Uo(t,r,a,i);var p=t.memoizedState;u!==d||f!==p||qe.current||Jt?(typeof h=="function"&&(gu(t,n,h,r),p=t.memoizedState),(s=Jt||sf(t,n,s,r,f,p,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,p,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,p,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=s):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Eu(e,t,n,r,o,i)}function Eu(e,t,n,r,i,o){th(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Jc(t,n,!1),Bt(e,t,o);r=t.stateNode,Tg.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=br(t,e.child,null,o),t.child=br(t,null,u,o)):Me(e,t,u,o),t.memoizedState=r.state,i&&Jc(t,n,!0),t.child}function nh(e){var t=e.stateNode;t.pendingContext?Xc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xc(e,t.context,!1),Pl(e,t.containerInfo)}function mf(e,t,n,r,i){return xr(),Sl(i),t.flags|=256,Me(e,t,n,r),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0};function bu(e){return{baseLanes:e,cachePool:null,transitions:null}}function rh(e,t,n){var r=t.pendingProps,i=fe.current,o=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ae(fe,i&1),e===null)return yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ta(a,r,0,null),e=Ln(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=bu(n),t.memoizedState=xu,e):Fl(t,a));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return kg(e,t,a,r,u,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,u=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=dn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=dn(u,o):(o=Ln(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?bu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=xu,r}return o=e.child,e=o.sibling,r=dn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fl(e,t){return t=Ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gi(e,t,n,r){return r!==null&&Sl(r),br(t,e.child,null,n),e=Fl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kg(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=ws(Error(L(422))),Gi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ta({mode:"visible",children:r.children},i,0,null),o=Ln(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&br(t,e.child,null,a),t.child.memoizedState=bu(a),t.memoizedState=xu,o);if(!(t.mode&1))return Gi(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(L(419)),r=ws(o,r,void 0),Gi(e,t,a,r)}if(u=(a&e.childLanes)!==0,Ue||u){if(r=be,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,qt(e,i),vt(r,e,i,-1))}return Vl(),r=ws(Error(L(421))),Gi(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ug.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ye=un(i.nextSibling),Ke=t,le=!0,ht=null,e!==null&&(ot[at++]=Dt,ot[at++]=At,ot[at++]=Mn,Dt=e.id,At=e.overflow,Mn=t),t=Fl(t,r.children),t.flags|=4096,t)}function yf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vu(e.return,t,n)}function Ss(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function ih(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Me(e,t,r.children,n),r=fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yf(e,n,t);else if(e.tag===19)yf(e,n,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}r&=1}if(ae(fe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&qo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ss(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&qo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ss(t,!0,n,null,o);break;case"together":Ss(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function yo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ig(e,t,n){switch(t.tag){case 3:nh(t),xr();break;case 5:Ip(t);break;case 1:Be(t.type)&&Do(t);break;case 4:Pl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae($o,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(fe,fe.current&1),t.flags|=128,null):n&t.child.childLanes?rh(e,t,n):(ae(fe,fe.current&1),e=Bt(e,t,n),e!==null?e.sibling:null);ae(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ih(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,eh(e,t,n)}return Bt(e,t,n)}var oh,Ou,ah,sh;oh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ou=function(){};ah=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pn(Tt.current);var o=null;switch(n){case"input":i=Ws(e,i),r=Ws(e,r),o=[];break;case"select":i=pe({},i,{value:void 0}),r=pe({},r,{value:void 0}),o=[];break;case"textarea":i=Qs(e,i),r=Qs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fo)}Js(n,r);var a;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var u=i[s];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ai.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var l=r[s];if(u=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&l!==u&&(l!=null||u!=null))if(s==="style")if(u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(s,n)),n=l;else s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,u=u?u.__html:void 0,l!=null&&u!==l&&(o=o||[]).push(s,l)):s==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(s,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(ai.hasOwnProperty(s)?(l!=null&&s==="onScroll"&&se("scroll",e),o||u===l||(o=[])):(o=o||[]).push(s,l))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};sh=function(e,t,n,r){n!==r&&(t.flags|=4)};function zr(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lg(e,t,n){var r=t.pendingProps;switch(wl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Be(t.type)&&Mo(),Le(t),null;case 3:return r=t.stateNode,Or(),ue(qe),ue(Ne),kl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ht!==null&&(Ru(ht),ht=null))),Ou(e,t),Le(t),null;case 5:Tl(t);var i=Pn(gi.current);if(n=t.type,e!==null&&t.stateNode!=null)ah(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Le(t),null}if(e=Pn(Tt.current),Bi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[bt]=t,r[yi]=o,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(i=0;i<Yr.length;i++)se(Yr[i],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":bc(r,o),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},se("invalid",r);break;case"textarea":Cc(r,o),se("invalid",r)}Js(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];a==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&qi(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&qi(r.textContent,u,e),i=["children",""+u]):ai.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&se("scroll",r)}switch(n){case"input":Fi(r),Oc(r,o,!0);break;case"textarea":Fi(r),Pc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Fo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Fd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[bt]=t,e[yi]=r,oh(e,t,!1,!1),t.stateNode=e;e:{switch(a=Zs(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;i<Yr.length;i++)se(Yr[i],e);i=r;break;case"source":se("error",e),i=r;break;case"img":case"image":case"link":se("error",e),se("load",e),i=r;break;case"details":se("toggle",e),i=r;break;case"input":bc(e,r),i=Ws(e,r),se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=pe({},r,{value:void 0}),se("invalid",e);break;case"textarea":Cc(e,r),i=Qs(e,r),se("invalid",e);break;default:i=r}Js(n,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var l=u[o];o==="style"?Ad(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Md(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&si(e,l):typeof l=="number"&&si(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ai.hasOwnProperty(o)?l!=null&&o==="onScroll"&&se("scroll",e):l!=null&&ol(e,o,l,a))}switch(n){case"input":Fi(e),Oc(e,r,!1);break;case"textarea":Fi(e),Pc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?sr(e,!!r.multiple,o,!1):r.defaultValue!=null&&sr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Fo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Le(t),null;case 6:if(e&&t.stateNode!=null)sh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=Pn(gi.current),Pn(Tt.current),Bi(t)){if(r=t.stateNode,n=t.memoizedProps,r[bt]=t,(o=r.nodeValue!==n)&&(e=Ke,e!==null))switch(e.tag){case 3:qi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[bt]=t,t.stateNode=r}return Le(t),null;case 13:if(ue(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(le&&Ye!==null&&t.mode&1&&!(t.flags&128))Op(),xr(),t.flags|=98560,o=!1;else if(o=Bi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[bt]=t}else xr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Le(t),o=!1}else ht!==null&&(Ru(ht),ht=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||fe.current&1?Ee===0&&(Ee=3):Vl())),t.updateQueue!==null&&(t.flags|=4),Le(t),null);case 4:return Or(),Ou(e,t),e===null&&hi(t.stateNode.containerInfo),Le(t),null;case 10:return bl(t.type._context),Le(t),null;case 17:return Be(t.type)&&Mo(),Le(t),null;case 19:if(ue(fe),o=t.memoizedState,o===null)return Le(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)zr(o,!1);else{if(Ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=qo(e),a!==null){for(t.flags|=128,zr(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(fe,fe.current&1|2),t.child}e=e.sibling}o.tail!==null&&ve()>Pr&&(t.flags|=128,r=!0,zr(o,!1),t.lanes=4194304)}else{if(!r)if(e=qo(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!le)return Le(t),null}else 2*ve()-o.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,zr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ve(),t.sibling=null,n=fe.current,ae(fe,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return $l(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function jg(e,t){switch(wl(t),t.tag){case 1:return Be(t.type)&&Mo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),ue(qe),ue(Ne),kl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tl(t),null;case 13:if(ue(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(fe),null;case 4:return Or(),null;case 10:return bl(t.type._context),null;case 22:case 23:return $l(),null;case 24:return null;default:return null}}var Wi=!1,Re=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,F=null;function or(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Cu(e,t,n){try{n()}catch(r){me(e,t,r)}}var vf=!1;function Ng(e,t){if(lu=jo,e=dp(),gl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,u=-1,l=-1,s=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(u=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++s===i&&(u=a),f===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(cu={focusedElem:e,selectionRange:n},jo=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,E=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:dt(t.type,v),E);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){me(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return p=vf,vf=!1,p}function ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Cu(t,n,o)}i=i.next}while(i!==r)}}function Ca(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uh(e){var t=e.alternate;t!==null&&(e.alternate=null,uh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[yi],delete t[pu],delete t[yg],delete t[vg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lh(e){return e.tag===5||e.tag===3||e.tag===4}function gf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lh(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.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 Tu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fo));else if(r!==4&&(e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ku(e,t,n),e=e.sibling;e!==null;)ku(e,t,n),e=e.sibling}var Ce=null,pt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)ch(e,t,n),n=n.sibling}function ch(e,t,n){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(ga,n)}catch{}switch(n.tag){case 5:Re||or(n,t);case 6:var r=Ce,i=pt;Ce=null,Qt(e,t,n),Ce=r,pt=i,Ce!==null&&(pt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(pt?(e=Ce,n=n.stateNode,e.nodeType===8?hs(e.parentNode,n):e.nodeType===1&&hs(e,n),fi(e)):hs(Ce,n.stateNode));break;case 4:r=Ce,i=pt,Ce=n.stateNode.containerInfo,pt=!0,Qt(e,t,n),Ce=r,pt=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Cu(n,t,a),i=i.next}while(i!==r)}Qt(e,t,n);break;case 1:if(!Re&&(or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){me(n,t,u)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Qt(e,t,n),Re=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function _f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rg),t.forEach(function(r){var i=qg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,u=a;e:for(;u!==null;){switch(u.tag){case 5:Ce=u.stateNode,pt=!1;break e;case 3:Ce=u.stateNode.containerInfo,pt=!0;break e;case 4:Ce=u.stateNode.containerInfo,pt=!0;break e}u=u.return}if(Ce===null)throw Error(L(160));ch(o,a,i),Ce=null,pt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(s){me(i,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fh(t,e),t=t.sibling}function fh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ft(t,e),_t(e),r&4){try{ni(3,e,e.return),Ca(3,e)}catch(v){me(e,e.return,v)}try{ni(5,e,e.return)}catch(v){me(e,e.return,v)}}break;case 1:ft(t,e),_t(e),r&512&&n!==null&&or(n,n.return);break;case 5:if(ft(t,e),_t(e),r&512&&n!==null&&or(n,n.return),e.flags&32){var i=e.stateNode;try{si(i,"")}catch(v){me(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,u=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Rd(i,o),Zs(u,a);var s=Zs(u,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?Ad(i,d):c==="dangerouslySetInnerHTML"?Md(i,d):c==="children"?si(i,d):ol(i,c,d,s)}switch(u){case"input":Ys(i,o);break;case"textarea":Nd(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?sr(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?sr(i,!!o.multiple,o.defaultValue,!0):sr(i,!!o.multiple,o.multiple?[]:"",!1))}i[yi]=o}catch(v){me(e,e.return,v)}}break;case 6:if(ft(t,e),_t(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){me(e,e.return,v)}}break;case 3:if(ft(t,e),_t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(t.containerInfo)}catch(v){me(e,e.return,v)}break;case 4:ft(t,e),_t(e);break;case 13:ft(t,e),_t(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Al=ve())),r&4&&_f(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(s=Re)||c,ft(t,e),Re=s):ft(t,e),_t(e),r&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(f=F,h=f.child,f.tag){case 0:case 11:case 14:case 15:ni(4,f,f.return);break;case 1:or(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(v){me(r,n,v)}}break;case 5:or(f,f.return);break;case 22:if(f.memoizedState!==null){Sf(d);continue}}h!==null?(h.return=f,F=h):Sf(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,s?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,u.style.display=Dd("display",a))}catch(v){me(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(v){me(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ft(t,e),_t(e),r&4&&_f(e);break;case 21:break;default:ft(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(lh(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(si(i,""),r.flags&=-33);var o=gf(e);ku(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,u=gf(e);Tu(e,u,a);break;default:throw Error(L(161))}}catch(l){me(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fg(e,t,n){F=e,dh(e)}function dh(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Wi;if(!a){var u=i.alternate,l=u!==null&&u.memoizedState!==null||Re;u=Wi;var s=Re;if(Wi=a,(Re=l)&&!s)for(F=i;F!==null;)a=F,l=a.child,a.tag===22&&a.memoizedState!==null?Ef(i):l!==null?(l.return=a,F=l):Ef(i);for(;o!==null;)F=o,dh(o),o=o.sibling;F=i,Wi=u,Re=s}wf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,F=o):wf(e)}}function wf(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||Ca(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&rf(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}rf(t,a,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var s=t.alternate;if(s!==null){var c=s.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&fi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Re||t.flags&512&&Pu(t)}catch(f){me(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Sf(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Ef(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ca(4,t)}catch(l){me(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){me(t,i,l)}}var o=t.return;try{Pu(t)}catch(l){me(t,o,l)}break;case 5:var a=t.return;try{Pu(t)}catch(l){me(t,a,l)}}}catch(l){me(t,t.return,l)}if(t===e){F=null;break}var u=t.sibling;if(u!==null){u.return=t.return,F=u;break}F=t.return}}var Mg=Math.ceil,Go=Yt.ReactCurrentDispatcher,Ml=Yt.ReactCurrentOwner,ut=Yt.ReactCurrentBatchConfig,Q=0,be=null,we=null,Te=0,We=0,ar=yn(0),Ee=0,Ei=null,An=0,Pa=0,Dl=0,ri=null,Ve=null,Al=0,Pr=1/0,Nt=null,Wo=!1,Iu=null,cn=null,Yi=!1,rn=null,Yo=0,ii=0,Lu=null,vo=-1,go=0;function De(){return Q&6?ve():vo!==-1?vo:vo=ve()}function fn(e){return e.mode&1?Q&2&&Te!==0?Te&-Te:_g.transition!==null?(go===0&&(go=Qd()),go):(e=te,e!==0||(e=window.event,e=e===void 0?16:rp(e.type)),e):1}function vt(e,t,n,r){if(50<ii)throw ii=0,Lu=null,Error(L(185));Pi(e,n,r),(!(Q&2)||e!==be)&&(e===be&&(!(Q&2)&&(Pa|=n),Ee===4&&tn(e,Te)),He(e,r),n===1&&Q===0&&!(t.mode&1)&&(Pr=ve()+500,xa&&vn()))}function He(e,t){var n=e.callbackNode;_v(e,t);var r=Lo(e,e===be?Te:0);if(r===0)n!==null&&Ic(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ic(n),t===1)e.tag===0?gg(xf.bind(null,e)):Ep(xf.bind(null,e)),hg(function(){!(Q&6)&&vn()}),n=null;else{switch(Xd(r)){case 1:n=cl;break;case 4:n=Yd;break;case 16:n=Io;break;case 536870912:n=Kd;break;default:n=Io}n=wh(n,ph.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ph(e,t){if(vo=-1,go=0,Q&6)throw Error(L(327));var n=e.callbackNode;if(dr()&&e.callbackNode!==n)return null;var r=Lo(e,e===be?Te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ko(e,r);else{t=r;var i=Q;Q|=2;var o=mh();(be!==e||Te!==t)&&(Nt=null,Pr=ve()+500,In(e,t));do try{zg();break}catch(u){hh(e,u)}while(!0);xl(),Go.current=o,Q=i,we!==null?t=0:(be=null,Te=0,t=Ee)}if(t!==0){if(t===2&&(i=iu(e),i!==0&&(r=i,t=ju(e,i))),t===1)throw n=Ei,In(e,0),tn(e,r),He(e,ve()),n;if(t===6)tn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Dg(i)&&(t=Ko(e,r),t===2&&(o=iu(e),o!==0&&(r=o,t=ju(e,o))),t===1))throw n=Ei,In(e,0),tn(e,r),He(e,ve()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:En(e,Ve,Nt);break;case 3:if(tn(e,r),(r&130023424)===r&&(t=Al+500-ve(),10<t)){if(Lo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=du(En.bind(null,e,Ve,Nt),t);break}En(e,Ve,Nt);break;case 4:if(tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-yt(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mg(r/1960))-r,10<r){e.timeoutHandle=du(En.bind(null,e,Ve,Nt),r);break}En(e,Ve,Nt);break;case 5:En(e,Ve,Nt);break;default:throw Error(L(329))}}}return He(e,ve()),e.callbackNode===n?ph.bind(null,e):null}function ju(e,t){var n=ri;return e.current.memoizedState.isDehydrated&&(In(e,t).flags|=256),e=Ko(e,t),e!==2&&(t=Ve,Ve=n,t!==null&&Ru(t)),e}function Ru(e){Ve===null?Ve=e:Ve.push.apply(Ve,e)}function Dg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!gt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 tn(e,t){for(t&=~Dl,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yt(t),r=1<<n;e[n]=-1,t&=~r}}function xf(e){if(Q&6)throw Error(L(327));dr();var t=Lo(e,0);if(!(t&1))return He(e,ve()),null;var n=Ko(e,t);if(e.tag!==0&&n===2){var r=iu(e);r!==0&&(t=r,n=ju(e,r))}if(n===1)throw n=Ei,In(e,0),tn(e,t),He(e,ve()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,Ve,Nt),He(e,ve()),null}function zl(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(Pr=ve()+500,xa&&vn())}}function zn(e){rn!==null&&rn.tag===0&&!(Q&6)&&dr();var t=Q;Q|=1;var n=ut.transition,r=te;try{if(ut.transition=null,te=1,e)return e()}finally{te=r,ut.transition=n,Q=t,!(Q&6)&&vn()}}function $l(){We=ar.current,ue(ar)}function In(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pg(n)),we!==null)for(n=we.return;n!==null;){var r=n;switch(wl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Mo();break;case 3:Or(),ue(qe),ue(Ne),kl();break;case 5:Tl(r);break;case 4:Or();break;case 13:ue(fe);break;case 19:ue(fe);break;case 10:bl(r.type._context);break;case 22:case 23:$l()}n=n.return}if(be=e,we=e=dn(e.current,null),Te=We=t,Ee=0,Ei=null,Dl=Pa=An=0,Ve=ri=null,Cn!==null){for(t=0;t<Cn.length;t++)if(n=Cn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Cn=null}return e}function hh(e,t){do{var n=we;try{if(xl(),ho.current=Ho,Bo){for(var r=de.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Bo=!1}if(Dn=0,xe=Se=de=null,ti=!1,_i=0,Ml.current=null,n===null||n.return===null){Ee=1,Ei=t,we=null;break}e:{var o=e,a=n.return,u=n,l=t;if(t=Te,u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var s=l,c=u,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=cf(a);if(h!==null){h.flags&=-257,ff(h,a,u,o,t),h.mode&1&&lf(o,s,t),t=h,l=s;var p=t.updateQueue;if(p===null){var v=new Set;v.add(l),t.updateQueue=v}else p.add(l);break e}else{if(!(t&1)){lf(o,s,t),Vl();break e}l=Error(L(426))}}else if(le&&u.mode&1){var E=cf(a);if(E!==null){!(E.flags&65536)&&(E.flags|=256),ff(E,a,u,o,t),Sl(Cr(l,u));break e}}o=l=Cr(l,u),Ee!==4&&(Ee=2),ri===null?ri=[o]:ri.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=Xp(o,l,t);nf(o,m);break e;case 1:u=l;var y=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(cn===null||!cn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Jp(o,u,t);nf(o,w);break e}}o=o.return}while(o!==null)}vh(n)}catch(O){t=O,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function mh(){var e=Go.current;return Go.current=Ho,e===null?Ho:e}function Vl(){(Ee===0||Ee===3||Ee===2)&&(Ee=4),be===null||!(An&268435455)&&!(Pa&268435455)||tn(be,Te)}function Ko(e,t){var n=Q;Q|=2;var r=mh();(be!==e||Te!==t)&&(Nt=null,In(e,t));do try{Ag();break}catch(i){hh(e,i)}while(!0);if(xl(),Q=n,Go.current=r,we!==null)throw Error(L(261));return be=null,Te=0,Ee}function Ag(){for(;we!==null;)yh(we)}function zg(){for(;we!==null&&!cv();)yh(we)}function yh(e){var t=_h(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?vh(e):we=t,Ml.current=null}function vh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jg(n,t),n!==null){n.flags&=32767,we=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ee=6,we=null;return}}else if(n=Lg(n,t,We),n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Ee===0&&(Ee=5)}function En(e,t,n){var r=te,i=ut.transition;try{ut.transition=null,te=1,$g(e,t,n,r)}finally{ut.transition=i,te=r}return null}function $g(e,t,n,r){do dr();while(rn!==null);if(Q&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(wv(e,o),e===be&&(we=be=null,Te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Yi||(Yi=!0,wh(Io,function(){return dr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ut.transition,ut.transition=null;var a=te;te=1;var u=Q;Q|=4,Ml.current=null,Ng(e,n),fh(n,e),ag(cu),jo=!!lu,cu=lu=null,e.current=n,Fg(n),fv(),Q=u,te=a,ut.transition=o}else e.current=n;if(Yi&&(Yi=!1,rn=e,Yo=i),o=e.pendingLanes,o===0&&(cn=null),hv(n.stateNode),He(e,ve()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Wo)throw Wo=!1,e=Iu,Iu=null,e;return Yo&1&&e.tag!==0&&dr(),o=e.pendingLanes,o&1?e===Lu?ii++:(ii=0,Lu=e):ii=0,vn(),null}function dr(){if(rn!==null){var e=Xd(Yo),t=ut.transition,n=te;try{if(ut.transition=null,te=16>e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,Yo=0,Q&6)throw Error(L(331));var i=Q;for(Q|=4,F=e.current;F!==null;){var o=F,a=o.child;if(F.flags&16){var u=o.deletions;if(u!==null){for(var l=0;l<u.length;l++){var s=u[l];for(F=s;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:ni(8,c,o)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var f=c.sibling,h=c.return;if(uh(c),c===s){F=null;break}if(f!==null){f.return=h,F=f;break}F=h}}}var p=o.alternate;if(p!==null){var v=p.child;if(v!==null){p.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}F=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,F=a;else e:for(;F!==null;){if(o=F,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ni(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,F=m;break e}F=o.return}}var y=e.current;for(F=y;F!==null;){a=F;var g=a.child;if(a.subtreeFlags&2064&&g!==null)g.return=a,F=g;else e:for(a=y;F!==null;){if(u=F,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Ca(9,u)}}catch(O){me(u,u.return,O)}if(u===a){F=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,F=w;break e}F=u.return}}if(Q=i,vn(),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(ga,e)}catch{}r=!0}return r}finally{te=n,ut.transition=t}}return!1}function bf(e,t,n){t=Cr(n,t),t=Xp(e,t,1),e=ln(e,t,1),t=De(),e!==null&&(Pi(e,1,t),He(e,t))}function me(e,t,n){if(e.tag===3)bf(e,e,n);else for(;t!==null;){if(t.tag===3){bf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(cn===null||!cn.has(r))){e=Cr(n,e),e=Jp(t,e,1),t=ln(t,e,1),e=De(),t!==null&&(Pi(t,1,e),He(t,e));break}}t=t.return}}function Vg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,be===e&&(Te&n)===n&&(Ee===4||Ee===3&&(Te&130023424)===Te&&500>ve()-Al?In(e,0):Dl|=n),He(e,t)}function gh(e,t){t===0&&(e.mode&1?(t=Ai,Ai<<=1,!(Ai&130023424)&&(Ai=4194304)):t=1);var n=De();e=qt(e,t),e!==null&&(Pi(e,t,n),He(e,n))}function Ug(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gh(e,n)}function qg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),gh(e,n)}var _h;_h=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,Ig(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,le&&t.flags&1048576&&xp(t,zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yo(e,t),e=t.pendingProps;var i=Er(t,Ne.current);fr(t,n),i=Ll(null,t,r,e,i,n);var o=jl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(o=!0,Do(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Cl(t),i.updater=Oa,t.stateNode=i,i._reactInternals=t,_u(t,r,e,n),t=Eu(null,t,r,!0,o,n)):(t.tag=0,le&&o&&_l(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Hg(r),e=dt(r,e),i){case 0:t=Su(null,t,r,e,n);break e;case 1:t=hf(null,t,r,e,n);break e;case 11:t=df(null,t,r,e,n);break e;case 14:t=pf(null,t,r,dt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),Su(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),hf(e,t,r,i,n);case 3:e:{if(nh(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,kp(e,t),Uo(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Cr(Error(L(423)),t),t=mf(e,t,r,n,i);break e}else if(r!==i){i=Cr(Error(L(424)),t),t=mf(e,t,r,n,i);break e}else for(Ye=un(t.stateNode.containerInfo.firstChild),Ke=t,le=!0,ht=null,n=Pp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===i){t=Bt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Ip(t),e===null&&yu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,fu(r,i)?a=null:o!==null&&fu(r,o)&&(t.flags|=32),th(e,t),Me(e,t,a,n),t.child;case 6:return e===null&&yu(t),null;case 13:return rh(e,t,n);case 4:return Pl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=br(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),df(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ae($o,r._currentValue),r._currentValue=a,o!==null)if(gt(o.value,a)){if(o.children===i.children&&!qe.current){t=Bt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){a=o.child;for(var l=u.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=zt(-1,n&-n),l.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?l.next=l:(l.next=c.next,c.next=l),s.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),vu(o.return,n,t),u.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(L(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),vu(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fr(t,n),i=lt(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=dt(r,t.pendingProps),i=dt(r.type,i),pf(e,t,r,i,n);case 15:return Zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),yo(e,t),t.tag=1,Be(r)?(e=!0,Do(t)):e=!1,fr(t,n),Qp(t,r,i),_u(t,r,i,n),Eu(null,t,r,!0,e,n);case 19:return ih(e,t,n);case 22:return eh(e,t,n)}throw Error(L(156,t.tag))};function wh(e,t){return Wd(e,t)}function Bg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,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 st(e,t,n,r){return new Bg(e,t,n,r)}function Ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hg(e){if(typeof e=="function")return Ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sl)return 11;if(e===ul)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _o(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Ul(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qn:return Ln(n.children,i,o,t);case al:a=8,i|=8;break;case qs:return e=st(12,n,t,i|2),e.elementType=qs,e.lanes=o,e;case Bs:return e=st(13,n,t,i),e.elementType=Bs,e.lanes=o,e;case Hs:return e=st(19,n,t,i),e.elementType=Hs,e.lanes=o,e;case Id:return Ta(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Td:a=10;break e;case kd:a=9;break e;case sl:a=11;break e;case ul:a=14;break e;case Xt:a=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=st(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ln(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Ta(e,t,n,r){return e=st(22,e,r,t),e.elementType=Id,e.lanes=n,e.stateNode={isHidden:!1},e}function Es(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function xs(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rs(0),this.expirationTimes=rs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ql(e,t,n,r,i,o,a,u,l){return e=new Gg(e,t,n,u,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=st(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cl(o),e}function Wg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Sh(e){if(!e)return hn;e=e._reactInternals;e:{if(qn(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(Be(n))return Sp(e,n,t)}return t}function Eh(e,t,n,r,i,o,a,u,l){return e=ql(n,r,!0,e,i,o,a,u,l),e.context=Sh(null),n=e.current,r=De(),i=fn(n),o=zt(r,i),o.callback=t??null,ln(n,o,i),e.current.lanes=i,Pi(e,i,r),He(e,r),e}function ka(e,t,n,r){var i=t.current,o=De(),a=fn(i);return n=Sh(n),t.context===null?t.context=n:t.pendingContext=n,t=zt(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ln(i,t,a),e!==null&&(vt(e,i,a,o),po(e,i,a)),a}function Qo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Of(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bl(e,t){Of(e,t),(e=e.alternate)&&Of(e,t)}function Yg(){return null}var xh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hl(e){this._internalRoot=e}Ia.prototype.render=Hl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));ka(e,t,null,null)};Ia.prototype.unmount=Hl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zn(function(){ka(null,e,null,null)}),t[Ut]=null}};function Ia(e){this._internalRoot=e}Ia.prototype.unstable_scheduleHydration=function(e){if(e){var t=ep();e={blockedOn:null,target:e,priority:t};for(var n=0;n<en.length&&t!==0&&t<en[n].priority;n++);en.splice(n,0,e),n===0&&np(e)}};function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function La(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cf(){}function Kg(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var s=Qo(a);o.call(s)}}var a=Eh(t,r,e,0,null,!1,!1,"",Cf);return e._reactRootContainer=a,e[Ut]=a.current,hi(e.nodeType===8?e.parentNode:e),zn(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var s=Qo(l);u.call(s)}}var l=ql(e,0,!1,null,null,!1,!1,"",Cf);return e._reactRootContainer=l,e[Ut]=l.current,hi(e.nodeType===8?e.parentNode:e),zn(function(){ka(t,l,n,r)}),l}function ja(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var u=i;i=function(){var l=Qo(a);u.call(l)}}ka(t,a,e,i)}else a=Kg(n,t,e,i,r);return Qo(a)}Jd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(fl(t,n|1),He(t,ve()),!(Q&6)&&(Pr=ve()+500,vn()))}break;case 13:zn(function(){var r=qt(e,1);if(r!==null){var i=De();vt(r,e,1,i)}}),Bl(e,1)}};dl=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=De();vt(t,e,134217728,n)}Bl(e,134217728)}};Zd=function(e){if(e.tag===13){var t=fn(e),n=qt(e,t);if(n!==null){var r=De();vt(n,e,t,r)}Bl(e,t)}};ep=function(){return te};tp=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};tu=function(e,t,n){switch(t){case"input":if(Ys(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ea(r);if(!i)throw Error(L(90));jd(r),Ys(r,i)}}}break;case"textarea":Nd(e,n);break;case"select":t=n.value,t!=null&&sr(e,!!n.multiple,t,!1)}};Vd=zl;Ud=zn;var Qg={usingClientEntryPoint:!1,Events:[ki,er,Ea,zd,$d,zl]},$r={findFiberByHostInstance:On,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xg={bundleType:$r.bundleType,version:$r.version,rendererPackageName:$r.rendererPackageName,rendererConfig:$r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hd(e),e===null?null:e.stateNode},findFiberByHostInstance:$r.findFiberByHostInstance||Yg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ki.isDisabled&&Ki.supportsFiber)try{ga=Ki.inject(Xg),Pt=Ki}catch{}}Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qg;Je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gl(t))throw Error(L(200));return Wg(e,t,null,n)};Je.createRoot=function(e,t){if(!Gl(e))throw Error(L(299));var n=!1,r="",i=xh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ql(e,1,!1,null,null,n,!1,r,i),e[Ut]=t.current,hi(e.nodeType===8?e.parentNode:e),new Hl(t)};Je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Hd(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return zn(e)};Je.hydrate=function(e,t,n){if(!La(t))throw Error(L(200));return ja(null,e,t,!0,n)};Je.hydrateRoot=function(e,t,n){if(!Gl(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=xh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Eh(t,null,e,1,n??null,i,!1,o,a),e[Ut]=t.current,hi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ia(t)};Je.render=function(e,t,n){if(!La(t))throw Error(L(200));return ja(null,e,t,!1,n)};Je.unmountComponentAtNode=function(e){if(!La(e))throw Error(L(40));return e._reactRootContainer?(zn(function(){ja(null,null,e,!1,function(){e._reactRootContainer=null,e[Ut]=null})}),!0):!1};Je.unstable_batchedUpdates=zl;Je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!La(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return ja(e,t,n,!1,r)};Je.version="18.3.1-next-f1338f8080-20240426";function bh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bh)}catch(e){console.error(e)}}bh(),bd.exports=Je;var Oh=bd.exports;const Jg="_fieldError_qi0xk_1",Zg={fieldError:Jg};function Ch(e){var t=e.children;return H.createElement("div",{className:Zg.fieldError},t)}const e_="_FieldGroup_uz9ju_1",t_="_FieldGroup__item_uz9ju_5",Pf={FieldGroup:e_,FieldGroup__item:t_};var Nu=function(){return Nu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Nu.apply(this,arguments)},n_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Vr(e){var t=e.children,n=e.className,r=n_(e,["children","className"]),i=It(Pf.FieldGroup,n);return H.createElement("div",Nu({},r,{className:i}),H.Children.map(t,function(o){return H.createElement("div",{className:Pf.FieldGroup__item},o)}))}const r_="_fieldHint_1avon_1",i_={fieldHint:r_};function Ph(e){var t=e.children;return H.createElement("div",{className:i_.fieldHint},t)}var Fu=function(){return Fu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fu.apply(this,arguments)};function Th(e){var t=e.id,n=e.label,r=e.hint,i=e.error,o=e.required,a=e.formLabelProps,u=e.children;return H.createElement(H.Fragment,null,H.createElement(kh,Fu({},a,{htmlFor:t,required:o,error:!!i}),n),u,i&&H.createElement(Ch,null,i),r&&H.createElement(Ph,null,r))}const o_="_Form_5qspp_1",a_="_Form__item_5qspp_5",bs={Form:o_,Form__item:a_,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var Mu=function(){return Mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mu.apply(this,arguments)},s_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},u_=function(e){var t=e.children,n=e.className,r=e.onSubmit,i=e.spacing,o=i===void 0?"default":i,a=s_(e,["children","className","onSubmit","spacing"]),u=It(bs.Form,n),l=It(bs.Form__item,bs["Form__item--".concat(o)]),s=k.useCallback(function(c){c.preventDefault(),r&&r(c)},[r]);return H.createElement("form",Mu({className:u,onSubmit:s},a),k.Children.map(t,function(c){return c?H.createElement("div",{className:l},c):null}))};const l_="_formLabel_tcjrv_1",c_="_formLabel__code_tcjrv_8",f_="_formLabel__label_tcjrv_18",d_="_formLabel__required_tcjrv_30",Ur={formLabel:l_,formLabel__code:c_,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:f_,formLabel__required:d_};var Du=function(){return Du=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Du.apply(this,arguments)},p_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},kh=function(e){var t,n=e.children,r=e.className,i=e.htmlFor,o=e.code,a=e.required,u=a===void 0?!1:a,l=e.error,s=l===void 0?!1:l,c=p_(e,["children","className","htmlFor","code","required","error"]),d=It(Ur.formLabel,r,(t={},t[Ur["formLabel--error"]]=s,t));return H.createElement("label",Du({className:d,htmlFor:i},c),H.createElement("span",{className:Ur.formLabel__label},n,u&&H.createElement("span",{className:Ur.formLabel__required},"*")),o&&H.createElement("span",{className:Ur.formLabel__code},o))},Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Au.apply(this,arguments)};function h_(e){var t=e.id,n=e.name,r=e.label,i=e.hint,o=e.error,a=e.required,u=e.placeholder,l=e.formLabelProps,s=e.value,c=e.onChange,d=e.selectInputProps;return H.createElement(Th,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},H.createElement(pS,Au({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function m_(e,t){if($n(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($n(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ih(e){var t=m_(e,"string");return $n(t)=="symbol"?t:t+""}function Kr(e,t,n){return(t=Ih(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){Kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y_(e){if(Array.isArray(e))return e}function v_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(c){s=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}function zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lh(e,t){if(e){if(typeof e=="string")return zu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(e,t):void 0}}function g_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(e,t){return y_(e)||v_(e,t)||Lh(e,t)||g_()}function __(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Kt(e,t){if(e==null)return{};var n,r,i=__(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var w_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function S_(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,u=e.inputValue,l=e.menuIsOpen,s=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,p=Kt(e,w_),v=k.useState(u!==void 0?u:n),E=$t(v,2),m=E[0],y=E[1],g=k.useState(l!==void 0?l:i),w=$t(g,2),O=w[0],b=w[1],x=k.useState(h!==void 0?h:a),P=$t(x,2),R=P[0],j=P[1],V=k.useCallback(function(I,D){typeof s=="function"&&s(I,D),j(I)},[s]),q=k.useCallback(function(I,D){var N;typeof c=="function"&&(N=c(I,D)),y(N!==void 0?N:I)},[c]),U=k.useCallback(function(){typeof f=="function"&&f(),b(!0)},[f]),ee=k.useCallback(function(){typeof d=="function"&&d(),b(!1)},[d]),X=u!==void 0?u:m,K=l!==void 0?l:O,re=h!==void 0?h:R;return z(z({},p),{},{inputValue:X,menuIsOpen:K,onChange:V,onInputChange:q,onMenuClose:ee,onMenuOpen:U,value:re})}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(null,arguments)}function E_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ih(r.key),r)}}function x_(e,t,n){return t&&kf(e.prototype,t),n&&kf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $u(e,t){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$u(e,t)}function b_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}function Xo(e){return Xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xo(e)}function jh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jh=function(){return!!e})()}function O_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C_(e,t){if(t&&($n(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O_(e)}function P_(e){var t=jh();return function(){var n,r=Xo(e);if(t){var i=Xo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return C_(this,n)}}function T_(e){if(Array.isArray(e))return zu(e)}function k_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function I_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wl(e){return T_(e)||k_(e)||Lh(e)||I_()}function L_(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function j_(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var R_=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(j_(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=L_(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),je="-ms-",Jo="-moz-",J="-webkit-",Rh="comm",Yl="rule",Kl="decl",N_="@import",Nh="@keyframes",F_="@layer",M_=Math.abs,Ra=String.fromCharCode,D_=Object.assign;function A_(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function Fh(e){return e.trim()}function z_(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,n){return e.replace(t,n)}function Vu(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function xi(e,t,n){return e.slice(t,n)}function Et(e){return e.length}function Ql(e){return e.length}function Qi(e,t){return t.push(e),e}function $_(e,t){return e.map(t).join("")}var Na=1,Tr=1,Mh=0,Ge=0,_e=0,jr="";function Fa(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Na,column:Tr,length:a,return:""}}function qr(e,t){return D_(Fa("",null,null,"",null,null,0),e,{length:-e.length},t)}function V_(){return _e}function U_(){return _e=Ge>0?Pe(jr,--Ge):0,Tr--,_e===10&&(Tr=1,Na--),_e}function Qe(){return _e=Ge<Mh?Pe(jr,Ge++):0,Tr++,_e===10&&(Tr=1,Na++),_e}function kt(){return Pe(jr,Ge)}function wo(){return Ge}function Li(e,t){return xi(jr,e,t)}function bi(e){switch(e){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 Dh(e){return Na=Tr=1,Mh=Et(jr=e),Ge=0,[]}function Ah(e){return jr="",e}function So(e){return Fh(Li(Ge-1,Uu(e===91?e+2:e===40?e+1:e)))}function q_(e){for(;(_e=kt())&&_e<33;)Qe();return bi(e)>2||bi(_e)>3?"":" "}function B_(e,t){for(;--t&&Qe()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Li(e,wo()+(t<6&&kt()==32&&Qe()==32))}function Uu(e){for(;Qe();)switch(_e){case e:return Ge;case 34:case 39:e!==34&&e!==39&&Uu(_e);break;case 40:e===41&&Uu(e);break;case 92:Qe();break}return Ge}function H_(e,t){for(;Qe()&&e+_e!==57;)if(e+_e===84&&kt()===47)break;return"/*"+Li(t,Ge-1)+"*"+Ra(e===47?e:Qe())}function G_(e){for(;!bi(kt());)Qe();return Li(e,Ge)}function W_(e){return Ah(Eo("",null,null,null,[""],e=Dh(e),0,[0],e))}function Eo(e,t,n,r,i,o,a,u,l){for(var s=0,c=0,d=a,f=0,h=0,p=0,v=1,E=1,m=1,y=0,g="",w=i,O=o,b=r,x=g;E;)switch(p=y,y=Qe()){case 40:if(p!=108&&Pe(x,d-1)==58){Vu(x+=Z(So(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:x+=So(y);break;case 9:case 10:case 13:case 32:x+=q_(p);break;case 92:x+=B_(wo()-1,7);continue;case 47:switch(kt()){case 42:case 47:Qi(Y_(H_(Qe(),wo()),t,n),l);break;default:x+="/"}break;case 123*v:u[s++]=Et(x)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:E=0;case 59+c:m==-1&&(x=Z(x,/\f/g,"")),h>0&&Et(x)-d&&Qi(h>32?Lf(x+";",r,n,d-1):Lf(Z(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(Qi(b=If(x,t,n,s,c,i,u,g,w=[],O=[],d),o),y===123)if(c===0)Eo(x,t,b,b,w,o,d,u,O);else switch(f===99&&Pe(x,3)===110?100:f){case 100:case 108:case 109:case 115:Eo(e,b,b,r&&Qi(If(e,b,b,0,0,i,u,g,i,w=[],d),O),i,O,d,u,r?w:O);break;default:Eo(x,b,b,b,[""],O,0,u,O)}}s=c=h=0,v=m=1,g=x="",d=a;break;case 58:d=1+Et(x),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&U_()==125)continue}switch(x+=Ra(y),y*v){case 38:m=c>0?1:(x+="\f",-1);break;case 44:u[s++]=(Et(x)-1)*m,m=1;break;case 64:kt()===45&&(x+=So(Qe())),f=kt(),c=d=Et(g=x+=G_(wo())),y++;break;case 45:p===45&&Et(x)==2&&(v=0)}}return o}function If(e,t,n,r,i,o,a,u,l,s,c){for(var d=i-1,f=i===0?o:[""],h=Ql(f),p=0,v=0,E=0;p<r;++p)for(var m=0,y=xi(e,d+1,d=M_(v=a[p])),g=e;m<h;++m)(g=Fh(v>0?f[m]+" "+y:Z(y,/&\f/g,f[m])))&&(l[E++]=g);return Fa(e,t,n,i===0?Yl:u,l,s,c)}function Y_(e,t,n){return Fa(e,t,n,Rh,Ra(V_()),xi(e,2,-2),0)}function Lf(e,t,n,r){return Fa(e,t,n,Kl,xi(e,0,r),xi(e,r+1,-1),r)}function pr(e,t){for(var n="",r=Ql(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function K_(e,t,n,r){switch(e.type){case F_:if(e.children.length)break;case N_:case Kl:return e.return=e.return||e.value;case Rh:return"";case Nh:return e.return=e.value+"{"+pr(e.children,r)+"}";case Yl:e.value=e.props.join(",")}return Et(n=pr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Q_(e){var t=Ql(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function X_(e){return function(t){t.root||(t=t.return)&&e(t)}}function J_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Z_=function(t,n,r){for(var i=0,o=0;i=o,o=kt(),i===38&&o===12&&(n[r]=1),!bi(o);)Qe();return Li(t,Ge)},e0=function(t,n){var r=-1,i=44;do switch(bi(i)){case 0:i===38&&kt()===12&&(n[r]=1),t[r]+=Z_(Ge-1,n,r);break;case 2:t[r]+=So(i);break;case 4:if(i===44){t[++r]=kt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ra(i)}while(i=Qe());return t},t0=function(t,n){return Ah(e0(Dh(t),n))},jf=new WeakMap,n0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!jf.get(r))&&!i){jf.set(t,!0);for(var o=[],a=t0(n,o),u=r.props,l=0,s=0;l<a.length;l++)for(var c=0;c<u.length;c++,s++)t.props[s]=o[l]?a[l].replace(/&\f/g,u[c]):u[c]+" "+a[l]}}},r0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function zh(e,t){switch(A_(e,t)){case 5103:return J+"print-"+e+e;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 J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+Jo+e+je+e+e;case 6828:case 4268:return J+e+je+e+e;case 6165:return J+e+je+"flex-"+e+e;case 5187:return J+e+Z(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return J+e+je+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return J+e+je+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+je+Z(e,"shrink","negative")+e;case 5292:return J+e+je+Z(e,"basis","preferred-size")+e;case 6060:return J+"box-"+Z(e,"-grow","")+J+e+je+Z(e,"grow","positive")+e;case 4554:return J+Z(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,J+"$1$2")+e;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(Et(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+Jo+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vu(e,"stretch")?zh(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,Et(e)-3-(~Vu(e,"!important")&&10))){case 107:return Z(e,":",":"+J)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(Pe(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return J+e+je+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+je+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+je+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+je+e+e}return e}var i0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Kl:t.return=zh(t.value,t.length);break;case Nh:return pr([qr(t,{value:Z(t.value,"@","@"+J)})],i);case Yl:if(t.length)return $_(t.props,function(o){switch(z_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([qr(t,{props:[Z(o,/:(read-\w+)/,":"+Jo+"$1")]})],i);case"::placeholder":return pr([qr(t,{props:[Z(o,/:(plac\w+)/,":"+J+"input-$1")]}),qr(t,{props:[Z(o,/:(plac\w+)/,":"+Jo+"$1")]}),qr(t,{props:[Z(o,/:(plac\w+)/,je+"input-$1")]})],i)}return""})}},o0=[i0],a0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var E=v.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||o0,o={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var E=v.getAttribute("data-emotion").split(" "),m=1;m<E.length;m++)o[E[m]]=!0;u.push(v)});var l,s=[n0,r0];{var c,d=[K_,X_(function(v){c.insert(v)})],f=Q_(s.concat(i,d)),h=function(E){return pr(W_(E),f)};l=function(E,m,y,g){c=y,h(E?E+"{"+m.styles+"}":m.styles),g&&(p.inserted[m.name]=!0)}}var p={key:n,sheet:new R_({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(u),p},$h={exports:{}},ne={};/** @license React v16.13.1
47
+ * react-is.production.min.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */var Oe=typeof Symbol=="function"&&Symbol.for,Xl=Oe?Symbol.for("react.element"):60103,Jl=Oe?Symbol.for("react.portal"):60106,Ma=Oe?Symbol.for("react.fragment"):60107,Da=Oe?Symbol.for("react.strict_mode"):60108,Aa=Oe?Symbol.for("react.profiler"):60114,za=Oe?Symbol.for("react.provider"):60109,$a=Oe?Symbol.for("react.context"):60110,Zl=Oe?Symbol.for("react.async_mode"):60111,Va=Oe?Symbol.for("react.concurrent_mode"):60111,Ua=Oe?Symbol.for("react.forward_ref"):60112,qa=Oe?Symbol.for("react.suspense"):60113,s0=Oe?Symbol.for("react.suspense_list"):60120,Ba=Oe?Symbol.for("react.memo"):60115,Ha=Oe?Symbol.for("react.lazy"):60116,u0=Oe?Symbol.for("react.block"):60121,l0=Oe?Symbol.for("react.fundamental"):60117,c0=Oe?Symbol.for("react.responder"):60118,f0=Oe?Symbol.for("react.scope"):60119;function et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xl:switch(e=e.type,e){case Zl:case Va:case Ma:case Aa:case Da:case qa:return e;default:switch(e=e&&e.$$typeof,e){case $a:case Ua:case Ha:case Ba:case za:return e;default:return t}}case Jl:return t}}}function Vh(e){return et(e)===Va}ne.AsyncMode=Zl;ne.ConcurrentMode=Va;ne.ContextConsumer=$a;ne.ContextProvider=za;ne.Element=Xl;ne.ForwardRef=Ua;ne.Fragment=Ma;ne.Lazy=Ha;ne.Memo=Ba;ne.Portal=Jl;ne.Profiler=Aa;ne.StrictMode=Da;ne.Suspense=qa;ne.isAsyncMode=function(e){return Vh(e)||et(e)===Zl};ne.isConcurrentMode=Vh;ne.isContextConsumer=function(e){return et(e)===$a};ne.isContextProvider=function(e){return et(e)===za};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xl};ne.isForwardRef=function(e){return et(e)===Ua};ne.isFragment=function(e){return et(e)===Ma};ne.isLazy=function(e){return et(e)===Ha};ne.isMemo=function(e){return et(e)===Ba};ne.isPortal=function(e){return et(e)===Jl};ne.isProfiler=function(e){return et(e)===Aa};ne.isStrictMode=function(e){return et(e)===Da};ne.isSuspense=function(e){return et(e)===qa};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ma||e===Va||e===Aa||e===Da||e===qa||e===s0||typeof e=="object"&&e!==null&&(e.$$typeof===Ha||e.$$typeof===Ba||e.$$typeof===za||e.$$typeof===$a||e.$$typeof===Ua||e.$$typeof===l0||e.$$typeof===c0||e.$$typeof===f0||e.$$typeof===u0)};ne.typeOf=et;$h.exports=ne;var d0=$h.exports,Uh=d0,p0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},h0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qh={};qh[Uh.ForwardRef]=p0;qh[Uh.Memo]=h0;var m0=!0;function y0(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Bh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||m0===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},v0=function(t,n,r){Bh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function g0(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _0={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},w0=/[A-Z]|^ms/g,S0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hh=function(t){return t.charCodeAt(1)===45},Rf=function(t){return t!=null&&typeof t!="boolean"},Os=J_(function(e){return Hh(e)?e:e.replace(w0,"-$&").toLowerCase()}),Nf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(S0,function(r,i,o){return xt={name:i,styles:o,next:xt},i})}return _0[t]!==1&&!Hh(t)&&typeof n=="number"&&n!==0?n+"px":n};function Oi(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return xt={name:i.name,styles:i.styles,next:xt},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)xt={name:a.name,styles:a.styles,next:xt},a=a.next;var u=o.styles+";";return u}return E0(e,t,n)}case"function":{if(e!==void 0){var l=xt,s=n(e);return xt=l,Oi(e,t,s)}break}}var c=n;return c}function E0(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Oi(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var u=a;Rf(u)&&(r+=Os(o)+":"+Nf(o,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Rf(a[l])&&(r+=Os(o)+":"+Nf(o,a[l])+";");else{var s=Oi(e,t,a);switch(o){case"animation":case"animationName":{r+=Os(o)+":"+s+";";break}default:r+=o+"{"+s+"}"}}}return r}var Ff=/label:\s*([^\s;{]+)\s*(;|$)/g,xt;function Gh(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";xt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Oi(n,t,o);else{var a=o;i+=a[0]}for(var u=1;u<e.length;u++)if(i+=Oi(n,t,e[u]),r){var l=o;i+=l[u]}Ff.lastIndex=0;for(var s="",c;(c=Ff.exec(i))!==null;)s+="-"+c[1];var d=g0(i)+s;return{name:d,styles:i,next:xt}}var x0=function(t){return t()},b0=yc.useInsertionEffect?yc.useInsertionEffect:!1,O0=b0||x0,Wh=k.createContext(typeof HTMLElement<"u"?a0({key:"css"}):null);Wh.Provider;var C0=function(t){return k.forwardRef(function(n,r){var i=k.useContext(Wh);return t(n,i,r)})},P0=k.createContext({}),ec={}.hasOwnProperty,qu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",T0=function(t,n){var r={};for(var i in n)ec.call(n,i)&&(r[i]=n[i]);return r[qu]=t,r},k0=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Bh(n,r,i),O0(function(){return v0(n,r,i)}),null},I0=C0(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[qu],o=[r],a="";typeof e.className=="string"?a=y0(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var u=Gh(o,void 0,k.useContext(P0));a+=t.key+"-"+u.name;var l={};for(var s in e)ec.call(e,s)&&s!=="css"&&s!==qu&&(l[s]=e[s]);return l.className=a,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(k0,{cache:t,serialized:u,isStringTag:typeof i=="string"}),k.createElement(i,l))}),L0=I0,A=function(t,n){var r=arguments;if(n==null||!ec.call(n,"css"))return k.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=L0,o[1]=T0(t,n);for(var a=2;a<i;a++)o[a]=r[a];return k.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(A||(A={}));function tc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Gh(t)}function j0(){var e=tc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function R0(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const N0=Math.min,F0=Math.max,Zo=Math.round,Xi=Math.floor,ea=e=>({x:e,y:e});function M0(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ga(){return typeof window<"u"}function Yh(e){return Qh(e)?(e.nodeName||"").toLowerCase():"#document"}function Ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kh(e){var t;return(t=(Qh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qh(e){return Ga()?e instanceof Node||e instanceof Ht(e).Node:!1}function D0(e){return Ga()?e instanceof Element||e instanceof Ht(e).Element:!1}function nc(e){return Ga()?e instanceof HTMLElement||e instanceof Ht(e).HTMLElement:!1}function Mf(e){return!Ga()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ht(e).ShadowRoot}function Xh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=rc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function A0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function z0(e){return["html","body","#document"].includes(Yh(e))}function rc(e){return Ht(e).getComputedStyle(e)}function $0(e){if(Yh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mf(e)&&e.host||Kh(e);return Mf(t)?t.host:t}function Jh(e){const t=$0(e);return z0(t)?e.ownerDocument?e.ownerDocument.body:e.body:nc(t)&&Xh(t)?t:Jh(t)}function ta(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Jh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Ht(i);if(o){const u=Bu(a);return t.concat(a,a.visualViewport||[],Xh(i)?i:[],u&&n?ta(u):[])}return t.concat(i,ta(i,[],n))}function Bu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V0(e){const t=rc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=nc(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=Zo(n)!==o||Zo(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function ic(e){return D0(e)?e:e.contextElement}function Df(e){const t=ic(e);if(!nc(t))return ea(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=V0(t);let a=(o?Zo(n.width):n.width)/r,u=(o?Zo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const U0=ea(0);function q0(e){const t=Ht(e);return!A0()||!t.visualViewport?U0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B0(e,t,n){return!1}function Af(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ic(e);let a=ea(1);t&&(a=Df(e));const u=B0()?q0(o):ea(0);let l=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=Ht(o),h=r;let p=f,v=Bu(p);for(;v&&r&&h!==p;){const E=Df(v),m=v.getBoundingClientRect(),y=rc(v),g=m.left+(v.clientLeft+parseFloat(y.paddingLeft))*E.x,w=m.top+(v.clientTop+parseFloat(y.paddingTop))*E.y;l*=E.x,s*=E.y,c*=E.x,d*=E.y,l+=g,s+=w,p=Ht(v),v=Bu(p)}}return M0({width:c,height:d,x:l,y:s})}function Zh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H0(e,t){let n=null,r;const i=Kh(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=s;if(u||t(),!f||!h)return;const p=Xi(d),v=Xi(i.clientWidth-(c+f)),E=Xi(i.clientHeight-(d+h)),m=Xi(c),g={rootMargin:-p+"px "+-v+"px "+-E+"px "+-m+"px",threshold:F0(0,N0(1,l))||1};let w=!0;function O(b){const x=b[0].intersectionRatio;if(x!==l){if(!w)return a();x?a(!1,x):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x===1&&!Zh(s,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(O,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,g)}n.observe(e)}return a(!0),o}function G0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,s=ic(e),c=i||o?[...s?ta(s):[],...ta(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=s&&u?H0(s,n):null;let f=-1,h=null;a&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),s&&!l&&h.observe(s),h.observe(t));let p,v=l?Af(e):null;l&&E();function E(){const m=Af(e);v&&!Zh(v,m)&&n(),v=m,p=requestAnimationFrame(E)}return n(),()=>{var m;c.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Hu=k.useLayoutEffect,W0=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],na=function(){};function Y0(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function K0(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Y0(e,a)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var zf=function(t){return iw(t)?t.filter(Boolean):$n(t)==="object"&&t!==null?[t]:[]},em=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Kt(t,W0);return z({},n)},ye=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},a(n,t),u)}};function Wa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Q0(e){return Wa(e)?window.innerHeight:e.clientHeight}function tm(e){return Wa(e)?window.pageYOffset:e.scrollTop}function ra(e,t){if(Wa(e)){window.scrollTo(0,t);return}e.scrollTop=t}function X0(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function J0(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ji(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:na,i=tm(e),o=t-i,a=10,u=0;function l(){u+=a;var s=J0(u,i,o,n);ra(e,s),u<n?window.requestAnimationFrame(l):r(e)}l()}function $f(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ra(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ra(e,Math.max(t.offsetTop-i,0))}function Z0(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Vf(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function ew(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var nm=!1,tw={get passive(){return nm=!0}},Zi=typeof window<"u"?window:{};Zi.addEventListener&&Zi.removeEventListener&&(Zi.addEventListener("p",na,tw),Zi.removeEventListener("p",na,!1));var nw=nm;function rw(e){return e!=null}function iw(e){return Array.isArray(e)}function eo(e,t,n){return e?t:n}var ow=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(a){var u=$t(a,1),l=u[0];return!r.includes(l)});return o.reduce(function(a,u){var l=$t(u,2),s=l[0],c=l[1];return a[s]=c,a},{})},aw=["children","innerProps"],sw=["children","innerProps"];function uw(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,l=X0(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=l.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),h=f.bottom,p=f.height,v=f.top,E=n.offsetParent.getBoundingClientRect(),m=E.top,y=a?window.innerHeight:Q0(l),g=tm(l),w=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),b=m-O,x=y-v,P=b+g,R=d-g-v,j=h-y+g+w,V=g+v-O,q=160;switch(i){case"auto":case"bottom":if(x>=p)return{placement:"bottom",maxHeight:t};if(R>=p&&!a)return o&&Ji(l,j,q),{placement:"bottom",maxHeight:t};if(!a&&R>=r||a&&x>=r){o&&Ji(l,j,q);var U=a?x-w:R-w;return{placement:"bottom",maxHeight:U}}if(i==="auto"||a){var ee=t,X=a?b:P;return X>=r&&(ee=Math.min(X-w-u,t)),{placement:"top",maxHeight:ee}}if(i==="bottom")return o&&ra(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(b>=p)return{placement:"top",maxHeight:t};if(P>=p&&!a)return o&&Ji(l,V,q),{placement:"top",maxHeight:t};if(!a&&P>=r||a&&b>=r){var K=t;return(!a&&P>=r||a&&b>=r)&&(K=a?b-O:P-O),o&&Ji(l,V,q),{placement:"top",maxHeight:K}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}function lw(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rm=function(t){return t==="auto"?"bottom":t},cw=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,u=o.spacing,l=o.colors;return z((r={label:"menu"},Kr(r,lw(i),"100%"),Kr(r,"position","absolute"),Kr(r,"width","100%"),Kr(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},im=k.createContext(null),fw=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,u=t.menuShouldScrollIntoView,l=t.theme,s=k.useContext(im)||{},c=s.setPortalPlacement,d=k.useRef(null),f=k.useState(i),h=$t(f,2),p=h[0],v=h[1],E=k.useState(null),m=$t(E,2),y=m[0],g=m[1],w=l.spacing.controlHeight;return Hu(function(){var O=d.current;if(O){var b=a==="fixed",x=u&&!b,P=uw({maxHeight:i,menuEl:O,minHeight:r,placement:o,shouldScroll:x,isFixedPosition:b,controlHeight:w});v(P.maxHeight),g(P.placement),c==null||c(P.placement)}},[i,o,a,u,r,c,w]),n({ref:d,placerProps:z(z({},t),{},{placement:y||rm(o),maxHeight:p})})},dw=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return A("div",$({},ye(t,"menu",{menu:!0}),{ref:r},i),n)},pw=dw,hw=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return z({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},mw=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return A("div",$({},ye(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},om=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return z({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},yw=om,vw=om,gw=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Kt(t,aw);return A("div",$({},ye(z(z({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},_w=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Kt(t,sw);return A("div",$({},ye(z(z({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},ww=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Sw=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,u=t.menuPosition,l=k.useRef(null),s=k.useRef(null),c=k.useState(rm(a)),d=$t(c,2),f=d[0],h=d[1],p=k.useMemo(function(){return{setPortalPlacement:h}},[]),v=k.useState(null),E=$t(v,2),m=E[0],y=E[1],g=k.useCallback(function(){if(i){var x=Z0(i),P=u==="fixed"?0:window.pageYOffset,R=x[f]+P;(R!==(m==null?void 0:m.offset)||x.left!==(m==null?void 0:m.rect.left)||x.width!==(m==null?void 0:m.rect.width))&&y({offset:R,rect:x})}},[i,u,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Hu(function(){g()},[g]);var w=k.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),i&&l.current&&(s.current=G0(i,l.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Hu(function(){w()},[w]);var O=k.useCallback(function(x){l.current=x,w()},[w]);if(!n&&u!=="fixed"||!m)return null;var b=A("div",$({ref:O},ye(z(z({},t),{},{offset:m.offset,position:u,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),r);return A(im.Provider,{value:p},n?Oh.createPortal(b,n):b)},Ew=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},xw=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return A("div",$({},ye(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},bw=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return z({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Ow=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return A("div",$({},ye(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Cw=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Pw=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"indicatorsContainer",{indicators:!0}),r),n)},Uf,Tw=["size"],kw=["innerProps","isRtl","size"],Iw={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},am=function(t){var n=t.size,r=Kt(t,Tw);return A("svg",$({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Iw},r))},oc=function(t){return A(am,$({size:20},t),A("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"}))},sm=function(t){return A(am,$({size:20},t),A("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"}))},um=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return z({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Lw=um,jw=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||A(sm,null))},Rw=um,Nw=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||A(oc,null))},Fw=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return z({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},Mw=function(t){var n=t.innerProps;return A("span",$({},n,ye(t,"indicatorSeparator",{"indicator-separator":!0})))},Dw=j0(Uf||(Uf=R0([`
54
+ 0%, 80%, 100% { opacity: 0; }
55
+ 40% { opacity: 1; }
56
+ `]))),Aw=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,u=o.spacing.baseUnit;return z({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:u*2})},Cs=function(t){var n=t.delay,r=t.offset;return A("span",{css:tc({animation:"".concat(Dw," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},zw=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=Kt(t,kw);return A("div",$({},ye(z(z({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),A(Cs,{delay:0,offset:r}),A(Cs,{delay:160,offset:!0}),A(Cs,{delay:320,offset:!r}))},$w=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,u=o.borderRadius,l=o.spacing;return z({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},Vw=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,u=t.menuIsOpen;return A("div",$({ref:o},ye(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),a,{"aria-disabled":r||void 0}),n)},Uw=Vw,qw=["data"],Bw=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Hw=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,u=t.headingProps,l=t.innerProps,s=t.label,c=t.theme,d=t.selectProps;return A("div",$({},ye(t,"group",{group:!0}),l),A(a,$({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),s),A("div",null,n))},Gw=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return z({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Ww=function(t){var n=em(t);n.data;var r=Kt(n,qw);return A("div",$({},ye(t,"groupHeading",{"group-heading":!0}),r))},Yw=Hw,Kw=["innerRef","isDisabled","isHidden","inputClassName"],Qw=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,u=o.colors;return z(z({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Xw),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},lm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Xw={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":z({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lm)},Jw=function(t){return z({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},lm)},Zw=function(t){var n=t.cx,r=t.value,i=em(t),o=i.innerRef,a=i.isDisabled,u=i.isHidden,l=i.inputClassName,s=Kt(i,Kw);return A("div",$({},ye(t,"input",{"input-container":!0}),{"data-value":r||""}),A("input",$({className:n({input:!0},l),ref:o,style:Jw(u),disabled:a},s)))},e1=Zw,t1=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return z({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},n1=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return z({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},r1=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,u=t.isFocused;return z({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},cm=function(t){var n=t.children,r=t.innerProps;return A("div",r,n)},i1=cm,o1=cm;function a1(e){var t=e.children,n=e.innerProps;return A("div",$({role:"button"},n),t||A(oc,{size:14}))}var s1=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,u=t.removeProps,l=t.selectProps,s=r.Container,c=r.Label,d=r.Remove;return A(s,{data:i,innerProps:z(z({},ye(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},A(c,{data:i,innerProps:z({},ye(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),A(d,{data:i,innerProps:z(z({},ye(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:l}))},u1=s1,l1=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,u=a.spacing,l=a.colors;return z({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},c1=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,u=t.innerProps;return A("div",$({},ye(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},u),n)},f1=c1,d1=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return z({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},p1=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"placeholder",{placeholder:!0}),r),n)},h1=p1,m1=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return z({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},y1=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return A("div",$({},ye(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},v1=y1,g1={ClearIndicator:Nw,Control:Uw,DropdownIndicator:jw,DownChevron:sm,CrossIcon:oc,Group:Yw,GroupHeading:Ww,IndicatorsContainer:Pw,IndicatorSeparator:Mw,Input:e1,LoadingIndicator:zw,Menu:pw,MenuList:mw,MenuPortal:Sw,LoadingMessage:_w,NoOptionsMessage:gw,MultiValue:u1,MultiValueContainer:i1,MultiValueLabel:o1,MultiValueRemove:a1,Option:f1,Placeholder:h1,SelectContainer:xw,SingleValue:v1,ValueContainer:Ow},_1=function(t){return z(z({},g1),t.components)},qf=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function w1(e,t){return!!(e===t||qf(e)&&qf(t))}function S1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!w1(e[n],t[n]))return!1;return!0}function E1(e,t){t===void 0&&(t=S1);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}var x1={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"},b1=function(t){return A("span",$({css:x1},t))},Bf=b1,O1={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){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(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,u=t.selectValue,l=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,d=function(v,E){return v&&v.length?"".concat(v.indexOf(E)+1," of ").concat(v.length):""};if(n==="value"&&u)return"value ".concat(a," focused, ").concat(d(u,r),".");if(n==="menu"&&c){var f=l?" disabled":"",h="".concat(s?" selected":"").concat(f);return"".concat(a).concat(h,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},C1=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,u=t.selectValue,l=t.selectProps,s=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,p=l.isMulti,v=l.isOptionDisabled,E=l.isSearchable,m=l.menuIsOpen,y=l.options,g=l.screenReaderStatus,w=l.tabSelectsValue,O=l.isLoading,b=l["aria-label"],x=l["aria-live"],P=k.useMemo(function(){return z(z({},O1),d||{})},[d]),R=k.useMemo(function(){var X="";if(n&&P.onChange){var K=n.option,re=n.options,I=n.removedValue,D=n.removedValues,N=n.value,Y=function(Lt){return Array.isArray(Lt)?null:Lt},G=I||K||Y(N),he=G?f(G):"",ce=re||D||void 0,$e=ce?ce.map(f):[],oe=z({isDisabled:G&&v(G,u),label:he,labels:$e},n);X=P.onChange(oe)}return X},[n,P,v,u,f]),j=k.useMemo(function(){var X="",K=r||i,re=!!(r&&u&&u.includes(r));if(K&&P.onFocus){var I={focused:K,label:f(K),isDisabled:v(K,u),isSelected:re,options:o,context:K===r?"menu":"value",selectValue:u,isAppleDevice:c};X=P.onFocus(I)}return X},[r,i,f,v,P,o,u,c]),V=k.useMemo(function(){var X="";if(m&&y.length&&!O&&P.onFilter){var K=g({count:o.length});X=P.onFilter({inputValue:h,resultsMessage:K})}return X},[o,h,m,P,y,g,O]),q=(n==null?void 0:n.action)==="initial-input-focus",U=k.useMemo(function(){var X="";if(P.guidance){var K=i?"value":m?"menu":"input";X=P.guidance({"aria-label":b,context:K,isDisabled:r&&v(r,u),isMulti:p,isSearchable:E,tabSelectsValue:w,isInitialFocus:q})}return X},[b,r,i,p,v,E,m,P,u,w,q]),ee=A(k.Fragment,null,A("span",{id:"aria-selection"},R),A("span",{id:"aria-focused"},j),A("span",{id:"aria-results"},V),A("span",{id:"aria-guidance"},U));return A(k.Fragment,null,A(Bf,{id:s},q&&ee),A(Bf,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!q&&ee))},P1=C1,Gu=[{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źẑżžẓẕƶȥɀⱬꝣ"}],T1=new RegExp("["+Gu.map(function(e){return e.letters}).join("")+"]","g"),fm={};for(var Ps=0;Ps<Gu.length;Ps++)for(var Ts=Gu[Ps],ks=0;ks<Ts.letters.length;ks++)fm[Ts.letters[ks]]=Ts.base;var dm=function(t){return t.replace(T1,function(n){return fm[n]})},k1=E1(dm),Hf=function(t){return t.replace(/^\s+|\s+$/g,"")},I1=function(t){return"".concat(t.label," ").concat(t.value)},L1=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=z({ignoreCase:!0,ignoreAccents:!0,stringify:I1,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,u=i.stringify,l=i.trim,s=i.matchFrom,c=l?Hf(r):r,d=l?Hf(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=k1(c),d=dm(d)),s==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},j1=["innerRef"];function R1(e){var t=e.innerRef,n=Kt(e,j1),r=ow(n,"onExited","in","enter","exit","appear");return A("input",$({ref:t},r,{css:tc({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 N1=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function F1(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=k.useRef(!1),u=k.useRef(!1),l=k.useRef(0),s=k.useRef(null),c=k.useCallback(function(E,m){if(s.current!==null){var y=s.current,g=y.scrollTop,w=y.scrollHeight,O=y.clientHeight,b=s.current,x=m>0,P=w-O-g,R=!1;P>m&&a.current&&(r&&r(E),a.current=!1),x&&u.current&&(o&&o(E),u.current=!1),x&&m>P?(n&&!a.current&&n(E),b.scrollTop=w,R=!0,a.current=!0):!x&&-m>g&&(i&&!u.current&&i(E),b.scrollTop=0,R=!0,u.current=!0),R&&N1(E)}},[n,r,i,o]),d=k.useCallback(function(E){c(E,E.deltaY)},[c]),f=k.useCallback(function(E){l.current=E.changedTouches[0].clientY},[]),h=k.useCallback(function(E){var m=l.current-E.changedTouches[0].clientY;c(E,m)},[c]),p=k.useCallback(function(E){if(E){var m=nw?{passive:!1}:!1;E.addEventListener("wheel",d,m),E.addEventListener("touchstart",f,m),E.addEventListener("touchmove",h,m)}},[h,f,d]),v=k.useCallback(function(E){E&&(E.removeEventListener("wheel",d,!1),E.removeEventListener("touchstart",f,!1),E.removeEventListener("touchmove",h,!1))},[h,f,d]);return k.useEffect(function(){if(t){var E=s.current;return p(E),function(){v(E)}}},[t,p,v]),function(E){s.current=E}}var Gf=["boxSizing","height","overflow","paddingRight","position"],Wf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Yf(e){e.cancelable&&e.preventDefault()}function Kf(e){e.stopPropagation()}function Qf(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Xf(){return"ontouchstart"in window||navigator.maxTouchPoints}var Jf=!!(typeof window<"u"&&window.document&&window.document.createElement),Br=0,Wn={capture:!1,passive:!1};function M1(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=k.useRef({}),o=k.useRef(null),a=k.useCallback(function(l){if(Jf){var s=document.body,c=s&&s.style;if(r&&Gf.forEach(function(p){var v=c&&c[p];i.current[p]=v}),r&&Br<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(Wf).forEach(function(p){var v=Wf[p];c&&(c[p]=v)}),c&&(c.paddingRight="".concat(h,"px"))}s&&Xf()&&(s.addEventListener("touchmove",Yf,Wn),l&&(l.addEventListener("touchstart",Qf,Wn),l.addEventListener("touchmove",Kf,Wn))),Br+=1}},[r]),u=k.useCallback(function(l){if(Jf){var s=document.body,c=s&&s.style;Br=Math.max(Br-1,0),r&&Br<1&&Gf.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),s&&Xf()&&(s.removeEventListener("touchmove",Yf,Wn),l&&(l.removeEventListener("touchstart",Qf,Wn),l.removeEventListener("touchmove",Kf,Wn)))}},[r]);return k.useEffect(function(){if(t){var l=o.current;return a(l),function(){u(l)}}},[t,a,u]),function(l){o.current=l}}var D1=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},A1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function z1(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,u=e.onTopArrive,l=e.onTopLeave,s=F1({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:u,onTopLeave:l}),c=M1({isEnabled:n}),d=function(h){s(h),c(h)};return A(k.Fragment,null,n&&A("div",{onClick:D1,css:A1}),t(d))}var $1={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},V1=function(t){var n=t.name,r=t.onFocus;return A("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:$1,value:"",onChange:function(){}})},U1=V1;function ac(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function q1(){return ac(/^iPhone/i)}function pm(){return ac(/^Mac/i)}function B1(){return ac(/^iPad/i)||pm()&&navigator.maxTouchPoints>1}function H1(){return q1()||B1()}function G1(){return pm()||H1()}var W1=function(t){return t.label},Y1=function(t){return t.label},K1=function(t){return t.value},Q1=function(t){return!!t.isDisabled},X1={clearIndicator:Rw,container:Ew,control:$w,dropdownIndicator:Lw,group:Bw,groupHeading:Gw,indicatorsContainer:Cw,indicatorSeparator:Fw,input:Qw,loadingIndicator:Aw,loadingMessage:vw,menu:cw,menuList:hw,menuPortal:ww,multiValue:t1,multiValueLabel:n1,multiValueRemove:r1,noOptionsMessage:yw,option:l1,placeholder:d1,singleValue:m1,valueContainer:bw},J1={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%)"},Z1=4,hm=4,eS=38,tS=hm*2,nS={baseUnit:hm,controlHeight:eS,menuGutter:tS},Is={borderRadius:Z1,colors:J1,spacing:nS},rS={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Vf(),captureMenuScroll:!Vf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:L1(),formatGroupLabel:W1,getOptionLabel:Y1,getOptionValue:K1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Q1,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!ew(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Zf(e,t,n,r){var i=vm(e,t,n),o=gm(e,t,n),a=ym(e,t),u=ia(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:u,index:r}}function xo(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,u){return Zf(e,a,t,u)}).filter(function(a){return td(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Zf(e,n,t,r);return td(e,o)?o:void 0}).filter(rw)}function mm(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Wl(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function ed(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Wl(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function iS(e,t){return mm(xo(e,t))}function td(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,u=t.value;return(!wm(e)||!o)&&_m(e,{label:a,value:u,data:i},r)}function oS(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function aS(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ls=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},ym=function(t,n){return t.getOptionLabel(n)},ia=function(t,n){return t.getOptionValue(n)};function vm(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function gm(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ia(e,t);return n.some(function(i){return ia(e,i)===r})}function _m(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var wm=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},sS=1,Sm=function(e){b_(n,e);var t=P_(n);function n(r){var i;if(E_(this,n),i=t.call(this,r),i.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:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=G1(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,s){var c=i.props,d=c.onChange,f=c.name;s.name=f,i.ariaOnChange(l,s),d(l,s)},i.setValue=function(l,s,c){var d=i.props,f=d.closeMenuOnSelect,h=d.isMulti,p=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:p}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:s,option:c})},i.selectOption=function(l){var s=i.props,c=s.blurInputOnSelect,d=s.isMulti,f=s.name,h=i.state.selectValue,p=d&&i.isOptionSelected(l,h),v=i.isOptionDisabled(l,h);if(p){var E=i.getOptionValue(l);i.setValue(h.filter(function(m){return i.getOptionValue(m)!==E}),"deselect-option",l)}else if(!v)d?i.setValue([].concat(Wl(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}c&&i.blurInput()},i.removeValue=function(l){var s=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),f=c.filter(function(p){return i.getOptionValue(p)!==d}),h=eo(s,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(eo(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,s=i.state.selectValue,c=s[s.length-1],d=s.slice(0,s.length-1),f=eo(l,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Ls(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return ed(xo(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return K0.apply(void 0,[i.props.classNamePrefix].concat(s))},i.getOptionLabel=function(l){return ym(i.props,l)},i.getOptionValue=function(l){return ia(i.props,l)},i.getStyles=function(l,s){var c=i.props.unstyled,d=X1[l](s,c);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(d,s):d},i.getClassNames=function(l,s){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,s)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return _1(i.props)},i.buildCategorizedOptions=function(){return xo(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return mm(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,s){i.setState({ariaSelection:z({value:l},s)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var s=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():s&&i.openMenu("first"):(s&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var s=i.props,c=s.isMulti,d=s.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Wa(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var s=l.touches,c=s&&s.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var s=l.touches,c=s&&s.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),h=5;i.userIsDragging=d>h||f>h}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var s=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:s}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var s=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:s}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var s=i.getFocusableOptions(),c=s.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return wm(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var s=i.props,c=s.isMulti,d=s.backspaceRemovesValue,f=s.escapeClearsValue,h=s.inputValue,p=s.isClearable,v=s.isDisabled,E=s.menuIsOpen,m=s.onKeyDown,y=s.tabSelectsValue,g=s.openMenuOnFocus,w=i.state,O=w.focusedOption,b=w.focusedValue,x=w.selectValue;if(!v&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||h)return;i.focusValue("previous");break;case"ArrowRight":if(!c||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(b)i.removeValue(b);else{if(!d)return;c?i.popValue():p&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!E||!y||!O||g&&i.isOptionSelected(O,x))return;i.selectOption(O);break;case"Enter":if(l.keyCode===229)break;if(E){if(!O||i.isComposing)return;i.selectOption(O);break}return;case"Escape":E?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):p&&f&&i.clearValue();break;case" ":if(h)return;if(!E){i.openMenu("first");break}if(!O)return;i.selectOption(O);break;case"ArrowUp":E?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":E?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!E)return;i.focusOption("pageup");break;case"PageDown":if(!E)return;i.focusOption("pagedown");break;case"Home":if(!E)return;i.focusOption("first");break;case"End":if(!E)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++sS),i.state.selectValue=zf(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),u=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[u],i.state.focusedOptionId=Ls(o,a[u])}return i}return x_(n,[{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&&$f(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,u=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&u&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($f(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(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,u=a.selectValue,l=a.isFocused,s=this.buildFocusableOptions(),c=i==="first"?0:s.length-1;if(!this.props.isMulti){var d=s.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(u);u||(l=-1);var s=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=s:c=l-1;break;case"next":l>-1&&l<s&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var l=0,s=u.indexOf(a);a||(s=-1),i==="up"?l=s>0?s-1:u.length-1:i==="down"?l=(s+1)%u.length:i==="pageup"?(l=s-o,l<0&&(l=0)):i==="pagedown"?(l=s+o,l>u.length-1&&(l=u.length-1)):i==="last"&&(l=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Is):z(z({},Is),this.props.theme):Is}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,u=this.getClassNames,l=this.getValue,s=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,p=d.options,v=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:u,getValue:l,hasValue:v,isMulti:f,isRtl:h,options:p,selectOption:s,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return vm(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return gm(this.props,i,o)}},{key:"filterOption",value:function(i,o){return _m(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{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 i=this.props,o=i.isDisabled,a=i.isSearchable,u=i.inputId,l=i.inputValue,s=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,h=this.getComponents(),p=h.Input,v=this.state,E=v.inputIsHidden,m=v.ariaSelection,y=this.commonProps,g=u||this.getElementId("input"),w=z(z(z({"aria-autocomplete":"list","aria-expanded":d,"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?k.createElement(p,$({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:o,isHidden:E,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:l},w)):k.createElement(R1,$({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:na,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,u=o.MultiValueContainer,l=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,h=this.props,p=h.controlShouldRenderValue,v=h.isDisabled,E=h.isMulti,m=h.inputValue,y=h.placeholder,g=this.state,w=g.selectValue,O=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!p)return m?null:k.createElement(d,$({},f,{key:"placeholder",isDisabled:v,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),y);if(E)return w.map(function(P,R){var j=P===O,V="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return k.createElement(a,$({},f,{components:{Container:u,Label:l,Remove:s},isFocused:j,isDisabled:v,key:V,index:R,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(U){U.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(m)return null;var x=w[0];return k.createElement(c,$({},f,{data:x,isDisabled:v}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,u=this.props,l=u.isDisabled,s=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||s)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,$({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,u=this.props,l=u.isDisabled,s=u.isLoading,c=this.state.isFocused;if(!o||!s)return null;var d={"aria-hidden":"true"};return k.createElement(o,$({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var u=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused;return k.createElement(a,$({},u,{isDisabled:l,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,$({},a,{innerProps:s,isDisabled:u,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,u=o.GroupHeading,l=o.Menu,s=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,h=o.Option,p=this.commonProps,v=this.state.focusedOption,E=this.props,m=E.captureMenuScroll,y=E.inputValue,g=E.isLoading,w=E.loadingMessage,O=E.minMenuHeight,b=E.maxMenuHeight,x=E.menuIsOpen,P=E.menuPlacement,R=E.menuPosition,j=E.menuPortalTarget,V=E.menuShouldBlockScroll,q=E.menuShouldScrollIntoView,U=E.noOptionsMessage,ee=E.onMenuScrollToTop,X=E.onMenuScrollToBottom;if(!x)return null;var K=function(he,ce){var $e=he.type,oe=he.data,Fe=he.isDisabled,Lt=he.isSelected,ji=he.label,km=he.value,cc=v===oe,fc=Fe?void 0:function(){return i.onOptionHover(oe)},Im=Fe?void 0:function(){return i.selectOption(oe)},dc="".concat(i.getElementId("option"),"-").concat(ce),Lm={id:dc,onClick:Im,onMouseMove:fc,onMouseOver:fc,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Lt};return k.createElement(h,$({},p,{innerProps:Lm,data:oe,isDisabled:Fe,isSelected:Lt,key:dc,label:ji,type:$e,value:km,isFocused:cc,innerRef:cc?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(he.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(G){if(G.type==="group"){var he=G.data,ce=G.options,$e=G.index,oe="".concat(i.getElementId("group"),"-").concat($e),Fe="".concat(oe,"-heading");return k.createElement(a,$({},p,{key:oe,data:he,options:ce,Heading:u,headingProps:{id:Fe,data:G.data},label:i.formatGroupLabel(G.data)}),G.options.map(function(Lt){return K(Lt,"".concat($e,"-").concat(Lt.index))}))}else if(G.type==="option")return K(G,"".concat(G.index))});else if(g){var I=w({inputValue:y});if(I===null)return null;re=k.createElement(d,p,I)}else{var D=U({inputValue:y});if(D===null)return null;re=k.createElement(f,p,D)}var N={minMenuHeight:O,maxMenuHeight:b,menuPlacement:P,menuPosition:R,menuShouldScrollIntoView:q},Y=k.createElement(fw,$({},p,N),function(G){var he=G.ref,ce=G.placerProps,$e=ce.placement,oe=ce.maxHeight;return k.createElement(l,$({},p,N,{innerRef:he,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:g,placement:$e}),k.createElement(z1,{captureEnabled:m,onTopArrive:ee,onBottomArrive:X,lockEnabled:V},function(Fe){return k.createElement(s,$({},p,{innerRef:function(ji){i.getMenuListRef(ji),Fe(ji)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:i.getElementId("listbox")},isLoading:g,maxHeight:oe,focusedOption:v}),re)}))});return j||R==="fixed"?k.createElement(c,$({},p,{appendTo:j,controlElement:this.controlRef,menuPlacement:P,menuPosition:R}),Y):Y}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,u=o.isDisabled,l=o.isMulti,s=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return k.createElement(U1,{name:s,onFocus:this.onValueInputFocus});if(!(!s||u))if(l)if(a){var f=d.map(function(v){return i.getOptionValue(v)}).join(a);return k.createElement("input",{name:s,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(v,E){return k.createElement("input",{key:"i-".concat(E),name:s,type:"hidden",value:i.getOptionValue(v)})}):k.createElement("input",{name:s,type:"hidden",value:""});return k.createElement("div",null,h)}else{var p=d[0]?this.getOptionValue(d[0]):"";return k.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,u=o.focusedOption,l=o.focusedValue,s=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return k.createElement(P1,$({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:u,focusedValue:l,isFocused:s,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,u=i.SelectContainer,l=i.ValueContainer,s=this.props,c=s.className,d=s.id,f=s.isDisabled,h=s.menuIsOpen,p=this.state.isFocused,v=this.commonProps=this.getCommonProps();return k.createElement(u,$({},v,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:p}),this.renderLiveRegion(),k.createElement(o,$({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:p,menuIsOpen:h}),k.createElement(l,$({},v,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(a,$({},v,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,u=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,h=i.options,p=i.value,v=i.menuIsOpen,E=i.inputValue,m=i.isMulti,y=zf(p),g={};if(a&&(p!==a.value||h!==a.options||v!==a.menuIsOpen||E!==a.inputValue)){var w=v?iS(i,y):[],O=v?ed(xo(i,y),"".concat(f,"-option")):[],b=u?oS(o,y):null,x=aS(o,w),P=Ls(O,x);g={selectValue:y,focusedOption:x,focusedOptionId:P,focusableOptionsWithIds:O,focusedValue:b,clearFocusValueOnUpdate:!1}}var R=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},j=s,V=c&&d;return c&&!V&&(j={value:eo(m,y,y[0]||null),options:y,action:"initial-input-focus"},V=!d),(s==null?void 0:s.action)==="initial-input-focus"&&(j=null),z(z(z({},g),R),{},{prevProps:i,ariaSelection:j,prevWasFocused:V})}}]),n}(k.Component);Sm.defaultProps=rS;var uS=k.forwardRef(function(e,t){var n=S_(e);return k.createElement(Sm,$({ref:t},n))}),lS=uS,ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ie.apply(this,arguments)},cS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},fS=function(e){return ie(ie({},e),{borderRadius:0,colors:ie(ie({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},dS=function(e,t){return k.useMemo(function(){return{placeholder:function(n){return ie(ie({},n),{color:"var(--placeholder-body-color)"})},container:function(n){return ie(ie({},n),{fontSize:"inherit"})},control:function(n,r){var i=r.isFocused,o=n;return o=ie(ie({},o),{minHeight:40}),i?ie(ie({},o),{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}):ie(ie({},o),{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(n){return ie(ie({},n),{cursor:"pointer"})},menu:function(n){return ie(ie({},n),{zIndex:1e3,minWidth:250})},input:function(n){var r=ie(ie({},n),{boxShadow:"none","input:focus":{boxShadow:"none"}});return r},multiValue:function(n){return ie(ie({},n),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(n){return ie(ie({},n),{fontSize:"inherit",padding:3})}}},[e,t])};function pS(e){var t=e.isDisabled,n=e.error,r=cS(e,["isDisabled","error"]),i=dS(t,n);return H.createElement(lS,ie({},r,{isDisabled:t,theme:fS,styles:i}))}const hS="_Spinner__bar_oumod_13",js={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:hS};var oa=function(){return oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},oa.apply(this,arguments)};function mS(e){for(var t,n=e.size,r=n===void 0?32:n,i=e.placement,o=i===void 0?"inline":i,a=e.style,u=a===void 0?{}:a,l=[],s=0;s<12;s+=1){var c={};c.animationDelay="".concat((s-12)/10,"s"),c.transform="rotate(".concat(s*30,"deg) translate(146%)"),l.push(H.createElement("div",{style:c,className:js.Spinner__bar,key:s}))}var d={width:r*.5,height:r*.5};return o==="inline"&&(d.marginLeft=r*.5,d.transform="translateY(33%)"),H.createElement("div",{className:It((t={},t[js["Spinner--inline"]]=o==="inline",t[js["Spinner--centered"]]=o==="centered",t)),style:oa(oa({},u),d)},l)}const yS="_switchField__flex_16z4j_1",vS="_switchField__switchInput_16z4j_6",gS="_switchField__label_16z4j_10",_S="_switchField__below_16z4j_22",to={switchField__flex:yS,switchField__switchInput:vS,switchField__label:gS,switchField__below:_S};var aa=function(){return aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},aa.apply(this,arguments)};function _n(e){var t=e.id,n=e.name,r=e.label,i=e.hint,o=e.error,a=e.required,u=e.formLabelProps,l=e.value,s=e.onChange,c=e.switchInputProps;return H.createElement(H.Fragment,null,H.createElement("div",{className:to.switchField__flex},H.createElement("div",{className:to.switchField__switchInput},H.createElement(OS,aa({},c,{name:n,value:l,onChange:s}))),H.createElement(kh,aa({},u,{htmlFor:t,required:a,className:It(to.switchField__label,u==null?void 0:u.className),error:!!o}),r)),(i||o)&&H.createElement("div",{className:to.switchField__below},o&&H.createElement(Ch,null,o),i&&H.createElement(Ph,null,i)))}const wS="_switchInput__inner_1knbg_1",SS="_switchInput_1knbg_1",ES="_switchInput__checked_1knbg_47",xS="_switchInput__disabled_1knbg_60",no={switchInput__inner:wS,switchInput:SS,switchInput__checked:ES,switchInput__disabled:xS};var Wu=function(){return Wu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wu.apply(this,arguments)},bS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function OS(e){var t,n=e.className,r=e.value,i=e.disabled,o=e.onClick,a=e.onChange,u=e.onKeyDown,l=bS(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function s(h,p){!i&&a&&a(h,p)}function c(h){h.key==="ArrowLeft"?s(!1,h):h.key==="ArrowRight"&&s(!0,h),u==null||u(h)}function d(h){s(!r,h),o==null||o(h)}var f=It(no.switchInput,n,(t={},t[no.switchInput__checked]=r,t[no.switchInput__disabled]=i,t));return H.createElement("button",Wu({},l,{type:"button",role:"switch","aria-checked":r,disabled:i,className:f,onKeyDown:c,onClick:d}),H.createElement("span",{className:no.switchInput__inner}))}var Yu=function(){return Yu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yu.apply(this,arguments)};function wn(e){var t=e.id,n=e.name,r=e.label,i=e.hint,o=e.error,a=e.required,u=e.placeholder,l=e.formLabelProps,s=e.value,c=e.onChange,d=e.textInputProps;return H.createElement(Th,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},H.createElement(TS,Yu({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}const CS="_TextInput_x2oj2_1",ro={TextInput:CS,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};var Ku=function(){return Ku=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ku.apply(this,arguments)},PS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},TS=function(e){var t,n=e.className,r=e.disabled,i=r===void 0?!1:r,o=e.error,a=e.id,u=e.inputRef,l=e.maxLength,s=e.name,c=e.labelText,d=e.onBlur,f=e.onChange,h=e.placeholder,p=e.required,v=p===void 0?!1:p,E=e.type,m=e.value,y=e.monospaced,g=PS(e,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),w=k.useCallback(function(b){f&&f(b.target.value,b)},[f]),O=It(ro.TextInput,n,(t={},t[ro["TextInput--disabled"]]=i,t[ro["TextInput--error"]]=o,t[ro["TextInput--monospaced"]]=y,t));return H.createElement("input",Ku({className:O,"aria-label":c,id:a,name:s,required:v,placeholder:h,maxLength:l,disabled:i,onBlur:d,onChange:w,value:m,type:E,ref:u},g))};function kS({ctx:e}){return _.jsx(xd,{ctx:e,children:_.jsx(kn,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>e.navigateTo(`/configuration/p/${e.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}var xn=function(){return xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xn.apply(this,arguments)};function IS(e){return typeof e=="object"&&!!e&&"data"in e}function Gt(e){var t=e.id,n=e.type,r=e.attributes,i=e.relationships,o=e.meta;return xn(xn(xn(xn(xn({},t?{id:t}:{}),n?{type:n}:{}),r||{}),i?Object.fromEntries(Object.entries(i).map(function(a){var u=a[0],l=a[1];return[u,l==null?void 0:l.data]})):{}),o?{meta:o}:{})}function S(e){if(!IS(e))throw new Error("Invalid body!");return Array.isArray(e.data)?e.data.map(Gt):Gt(e.data)}var Em=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();function LS(e){if(typeof e!="object"||e===null||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(n.data.length===0)return!1;var r=n.data[0];return!(typeof r!="object"||r===null||!("id"in r)||!("type"in r)||!("attributes"in r)||r.type!=="api_error")}var jS=function(e){Em(t,e);function t(n){var r=this.constructor,i=e.call(this,"API Error!")||this;return Object.setPrototypeOf(i,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(i,oi):i.stack=new Error().stack,i.request=n.request,i.preCallStack=n.preCallStack,i.message="".concat(n.request.method," ").concat(n.request.url,": Timeout error"),i.preCallStack&&(i.stack+=`
57
+ Caused By:
58
+ `.concat(i.preCallStack)),i}return t}(Error),oi=function(e){Em(t,e);function t(n){var r=this.constructor,i=e.call(this,"API Error!")||this;Object.setPrototypeOf(i,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(i,t):i.stack=new Error().stack,i.request=n.request,i.response=n.response,i.preCallStack=n.preCallStack;var o="".concat(n.request.method," ").concat(n.request.url,": ").concat(i.response.status," ").concat(i.response.statusText);return i.errors.length>0&&(o+=`
59
+
60
+ `.concat(JSON.stringify(i.errors,null,2))),i.message=o,i.preCallStack&&(i.stack+=`
61
+ Caused By:
62
+ `.concat(i.preCallStack)),i}return Object.defineProperty(t.prototype,"errors",{get:function(){return LS(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(n,r){var i=Array.isArray(n)?n:[n];return this.errors.find(function(o){return i.includes(o.attributes.code)&&(!r||(typeof r=="function"?r(o.attributes.details):Object.entries(r).every(function(a){var u=a[0],l=a[1];return o.attributes.details[u]===l})))})},t}(Error),RS=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ya=function(e){RS(t,e);function t(){var n=this.constructor,r=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(r,n.prototype),r}return t}(Error);function Ka(e,t){var n=null,r=new Promise(function(i,o){n=function(){try{t&&t(),o(new Ya)}catch(u){o(u)}};var a=typeof e=="function"?e():e;a.then(i,o)});return n&&(r.cancel=n),r}function bo(e){return new Promise(function(t){setTimeout(t,e)})}var NS=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},FS=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function MS(e){return NS(this,void 0,void 0,function(){var t,n,r;return FS(this,function(i){switch(i.label){case 0:n=0,i.label=1;case 1:return i.trys.push([1,4,,5]),n+=1,[4,bo(n*1e3)];case 2:return i.sent(),[4,e()];case 3:return t=i.sent(),[3,5];case 4:if(r=i.sent(),!(r instanceof oi)||r.response.status!==404)throw r;return[3,5];case 5:if(!t)return[3,1];i.label=6;case 6:return[2,t]}})})}var xm={},sc={},uc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TaskCollisionStrategy=void 0,function(t){t[t.DEFAULT=0]="DEFAULT",t[t.KEEP_THIS=1]="KEEP_THIS",t[t.KEEP_OTHER=2]="KEEP_OTHER",t[t.KEEP_BOTH=3]="KEEP_BOTH",t[t.RESOLVE_THIS=4]="RESOLVE_THIS",t[t.RESOLVE_OTHER=5]="RESOLVE_OTHER"}(e.TaskCollisionStrategy||(e.TaskCollisionStrategy={}))})(uc);var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});class DS{constructor(t,n){this._code=t,this._message=n}get code(){return this._code}get message(){return this._message}}Qa.default=DS;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.mutexEquality=Vn.mutexBitwiseAnd=void 0;function AS(e,t){return(e&t)!==0}Vn.mutexBitwiseAnd=AS;function zS(e,t){return e===t}Vn.mutexEquality=zS;var lc={};Object.defineProperty(lc,"__esModule",{value:!0});class $S{constructor(t,n){this._meta=void 0,this._task=t,this._scheduler=n}withDescriptor(t){return this._descriptor=t,this}withMutex(t){return this._mutex=t,this}withMeta(t){return this._meta=t,this}runBeforeExecuting(t){return this._onPreExecute=t,this}handleCollisions(t){return this._onTaskCollision=t,this}execute(t){return this._scheduler.enqueue({priority:t,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}lc.default=$S;var VS=Ot&&Ot.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},bm=Ot&&Ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sc,"__esModule",{value:!0});const wt=uc,US=bm(Qa),qS=Vn,BS=bm(lc);var rt;(function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"})(rt||(rt={}));function nd(e,t){for(let n of e.listeners)n.reject(t)}class HS{constructor(t,n={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=t,this._samePriorityMutex=!!n.samePriorityMutex,this._mutexStrategy=n.mutexStrategy||qS.mutexEquality,n.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(t){return new Promise((n,r)=>{typeof t=="function"&&(t={priority:0,execute:t});const i=this._checkMutexes(t,n,r);i.task?this._addTask(i.task):i.canceled&&r(this.createCanceledError())})}prepare(t){return new BS.default(t,this)}_addTask(t){this._queue.push(t),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((t,n)=>n.state===rt.EXECUTING?t+1:t,0)}createCanceledError(){return new US.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(t=>t.state===rt.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(t=>t.state!==rt.TERMINATED)}_removeTaskAt(t){this._queue.splice(t,1)}_executeTask(t){return VS(this,void 0,void 0,function*(){try{return t.task.onPreExecute&&t.task.onPreExecute(),yield t.task.execute()}catch(n){throw n}finally{t.state=rt.TERMINATED;let n=this._queue.indexOf(t);this._removeTaskAt(n),this._executeNextTasks()}})}_executeNextTasks(){let t=this.executingTasks;if(t>=this._maxConcurrentTasks)return;let n=this._maxConcurrentTasks-t;for(let r=0;r<n;r++){const i=this._findFirstPendingTask();if(!i){this._isIdle()&&this._switchToIdle();return}i.state=rt.EXECUTING,this._executeTask(i).then(o=>{for(const{resolve:a}of i.listeners)try{a(o)}catch(u){this._errorLog("An error occurred while resolving listener",u)}}).catch(o=>{for(const{reject:a}of i.listeners)try{a(o)}catch(u){this._errorLog("An error occurred while rejecting listener",u)}})}}_switchToIdle(){this._isExecuting=!1;const t=this._idleListeners;this._idleListeners=[];for(const{resolve:n}of t)try{n()}catch{}}waitForIdle(){return this._isExecuting?new Promise((t,n)=>{this._idleListeners.push({resolve:t,reject:n})}):Promise.resolve()}_applyPriorities(){this._queue.sort((t,n)=>n.task.priority-t.task.priority)}_checkMutexes(t,n,r){for(let i=0;i<this._queue.length;i++){let o=this._queue[i];if(o.state===rt.TERMINATED||this._samePriorityMutex&&o.task.priority!=t.priority||!o.task.mutex||!t.mutex||!this._mutexStrategy(o.task.mutex,t.mutex))continue;let a,u;if(o.task.onTaskCollision)if(a=o.task.onTaskCollision(t),a===wt.TaskCollisionStrategy.KEEP_OTHER&&o.state!==rt.EXECUTING){this._removeTaskAt(i--),nd(o,this.createCanceledError());continue}else{if(a===wt.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(a===wt.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(i--),{canceled:!1,task:{task:t,state:rt.PENDING,listeners:[{resolve:n,reject:r},...o.listeners]}};if(a===wt.TaskCollisionStrategy.RESOLVE_THIS)return o.listeners=[...o.listeners,{resolve:n,reject:r}],{canceled:!1}}if(t.onTaskCollision){if(u=t.onTaskCollision(o.task),u===wt.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(u===wt.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(i--),nd(o,this.createCanceledError());continue}else{if(u===wt.TaskCollisionStrategy.RESOLVE_OTHER)return o.listeners=[...o.listeners,{resolve:n,reject:r}],{canceled:!1};if(u===wt.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(i--),{canceled:!1,task:{task:t,state:rt.PENDING,listeners:[{resolve:n,reject:r},...o.listeners]}}}}if(!(a===wt.TaskCollisionStrategy.KEEP_BOTH&&u===wt.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:t,state:rt.PENDING,listeners:[{resolve:n,reject:r}]}}}}sc.default=HS;(function(e){var t=Ot&&Ot.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.mutexEquality=e.mutexBitwiseAnd=e.SchedulerError=e.TaskCollisionStrategy=e.Scheduler=void 0;const n=t(sc);e.Scheduler=n.default;const r=uc;Object.defineProperty(e,"TaskCollisionStrategy",{enumerable:!0,get:function(){return r.TaskCollisionStrategy}});const i=t(Qa);e.SchedulerError=i.default;const o=Vn;Object.defineProperty(e,"mutexBitwiseAnd",{enumerable:!0,get:function(){return o.mutexBitwiseAnd}}),Object.defineProperty(e,"mutexEquality",{enumerable:!0,get:function(){return o.mutexEquality}})})(xm);var GS=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Tn=function(e){return this instanceof Tn?(this.v=e,this):new Tn(e)},WS=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof Tn?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}};function Bn(e,t,n){return WS(this,arguments,function(){var i,o,a,u,l,m,s,c,d,f,h,p,v,E,m;return GS(this,function(y){switch(y.label){case 0:if(i=(n==null?void 0:n.perPage)||e.defaultLimit,i>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if(o=(n==null?void 0:n.concurrency)||1,o>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,Tn(t({limit:i,offset:0}))];case 1:a=y.sent(),u=0,l=a.data,y.label=2;case 2:return u<l.length?(m=l[u],[4,Tn(m)]):[3,6];case 3:return[4,y.sent()];case 4:y.sent(),y.label=5;case 5:return u++,[3,2];case 6:for(s=a.meta.total_count,c=new xm.Scheduler(o),d=[],f=function(g){d.push(c.enqueue(function(){return t({limit:i,offset:g})}))},h=i;h<s;h+=i)f(h);y.label=7;case 7:return d.length>0?[4,Tn(d.shift())]:[3,14];case 8:p=y.sent(),v=0,E=p.data,y.label=9;case 9:return v<E.length?(m=E[v],[4,Tn(m)]):[3,13];case 10:return[4,y.sent()];case 11:y.sent(),y.label=12;case 12:return v++,[3,9];case 13:return[3,7];case 14:return[2]}})})}function Hn(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var io=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Om="__ARRAY_INDEX__";function YS(e){return e.reduce(function(t,n,r){return r===0?n:n===Om?"".concat(t,"[]"):"".concat(t,"[").concat(n,"]")},"")}function KS(e){if(typeof e=="number"||typeof e=="string")return e.toString();if(e===!0)return"true";if(e===!1)return"false";throw"Don't know how to serialize param value ".concat(JSON.stringify(e))}function Qu(e,t){t===void 0&&(t=[]);var n=[];if(typeof e=="number"||typeof e=="string"||typeof e=="boolean")n.push([YS(t),KS(e)]);else if(typeof e=="object"){if(Array.isArray(e))for(var r=0,i=e;r<i.length;r++)for(var o=i[r],a=0,u=Qu(o,io(io([],t,!0),[Om],!1));a<u.length;a++){var l=u[a];n.push(l)}else if(e)for(var s=0,c=Object.entries(e);s<c.length;s++)for(var d=c[s],f=d[0],o=d[1],h=0,p=Qu(o,io(io([],t,!0),[f],!1));h<p.length;h++){var l=p[h];n.push(l)}}return n}var Ft=function(){return Ft=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ft.apply(this,arguments)},QS=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},XS=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},JS=typeof window<"u"&&typeof window.document<"u",ZS=5,it;(function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(it||(it={}));function eE(e){var t={};return e.forEach(function(n,r){t[r]=n}),t}function rd(e,t,n,r,i,o,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:i.status,statusText:i.statusText,headers:eE(i.headers),body:o},preCallStack:a}}function tE(e,t,n,r,i){return{request:{url:t,method:e,headers:n,body:r},preCallStack:i}}function nE(e,t,n,r,i,o,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:i,statusText:"N/A",headers:{},body:o},preCallStack:a}}function rE(e){return typeof e=="object"&&!!e&&"code"in e}function iE(e){return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n.toLowerCase(),r]}))}var id=1;function Oo(e){var t;return QS(this,void 0,void 0,function(){var n,r,i,o,a,u,l,s,c,d,f,h,p,v,E,m,j,V,y,g,w,O,b,x,P,R,j,V,q,U,ee,X,K,re;return XS(this,function(I){switch(I.label){case 0:if(n=id,id+=1,r=e.fetchFn||(typeof fetch>"u"?void 0:fetch)||(typeof globalThis>"u"?void 0:globalThis.fetch),typeof r>"u")throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");if(i=e.preCallStack,o=e.userAgent||"@datocms/rest-client-utils",a=e.retryCount||1,u=e.logLevel||it.NONE,l="autoRetry"in e?e.autoRetry:!0,s=e.logFn||function(){return!0},c=Ft({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?iE(e.extraHeaders):{}),JS&&delete c["user-agent"],d=e.baseUrl.replace(/\/$/,""),f=e.body?JSON.stringify(e.body,null,2):void 0,h=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Qu(e.queryParams)).toString()):"",p="".concat(d).concat(e.url).concat(h),u>=it.BASIC){if(s("[".concat(n,"] ").concat(e.method," ").concat(p)),u>=it.BODY_AND_HEADERS)for(v=0,E=Object.entries(c||{});v<E.length;v++)m=E[v],j=m[0],V=m[1],s("[".concat(n,"] ").concat(j,": ").concat(V));u>=it.BODY&&f&&s("[".concat(n,"] ").concat(f))}I.label=1;case 1:return I.trys.push([1,12,,16]),y=Ka(r(p,{method:e.method,headers:c,body:f})),g=setTimeout(function(){y.cancel()},e.requestTimeout||3e4),[4,y];case 2:if(w=I.sent(),clearTimeout(g),O=w.headers.get("Content-Type"),b=O&&!O.includes("application/json"),!(w.status===429||b))return[3,4];if(!l||b&&e.method!=="GET")throw new oi(rd(e.method,p,c,e.body,w,void 0,i));return x=w.headers.has("X-RateLimit-Reset")?Number.parseInt(w.headers.get("X-RateLimit-Reset"),10):a,u>=it.BASIC&&(w.status===429?s("[".concat(n,"] Rate limit exceeded, wait ").concat(x," seconds then retry...")):s("[".concat(n,'] Invalid response content type "').concat(O,'" (status ').concat(w.status,"). Wait ").concat(x," seconds then retry..."))),[4,bo(x*1e3)];case 3:return I.sent(),[2,Oo(Ft(Ft({},e),{retryCount:a+1}))];case 4:if(u>=it.BASIC&&(s("[".concat(n,"] Status: ").concat(w.status," (").concat(w.statusText,")")),u>=it.BODY_AND_HEADERS))for(P=0,R=["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"];P<R.length;P++)j=R[P],V=w.headers.get(j),V&&s("[".concat(n,"] ").concat(j,": ").concat(V));return w.status!==204?[3,5]:(U=void 0,[3,7]);case 5:return[4,w.json()];case 6:U=I.sent(),I.label=7;case 7:return q=U,u>=it.BODY&&q&&s("[".concat(n,"] ").concat(JSON.stringify(q,null,2))),w.status!==202?[3,9]:[4,e.fetchJobResult(q.data.id)];case 8:if(ee=I.sent(),ee.status<200||ee.status>=300)throw new oi(nE(e.method,p,c,e.body,ee.status,ee.payload,i));q=ee.payload,I.label=9;case 9:return w.status>=200&&w.status<300?[2,q]:(X=new oi(rd(e.method,p,c,e.body,w,q,i)),K=(t=X.errors.find(function(D){return D.attributes.transient}))===null||t===void 0?void 0:t.attributes.code,l&&K?(u>=it.BASIC&&s("[".concat(n,"] ").concat(K,", wait ").concat(a," seconds then retry...")),[4,bo(a*1e3)]):[3,11]);case 10:return I.sent(),[2,Oo(Ft(Ft({},e),{retryCount:a+1}))];case 11:throw X;case 12:return re=I.sent(),re instanceof Ya||rE(re)&&re.code.includes("ETIMEDOUT")?l&&a<ZS?(u>=it.BASIC&&s("[".concat(n,"] Timeout error, wait ").concat(a," seconds then retry...")),[4,bo(a*1e3)]):[3,14]:[3,15];case 13:return I.sent(),[2,Oo(Ft(Ft({},e),{retryCount:a+1}))];case 14:throw new jS(tE(e.method,p,c,e.body,i));case 15:throw re;case 16:return[2]}})})}var bn=function(){return bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},bn.apply(this,arguments)},oE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Co(e){return typeof e=="object"&&!!e&&"id"in e&&"type"in e}function Rs(e){return Array.isArray(e)&&e.every(Co)}function M(e,t){if(typeof e!="object"||!e)throw new Error("Invalid body!");if(Array.isArray(e))return{data:e.map(function(P){var R;return(R=M(P,t))===null||R===void 0?void 0:R.data})};var n=e,r=n.id,i=n.type,o=n.meta,a=oE(n,["id","type","meta"]),u={},l={};if(t.attributes==="*")for(var s=0,c=Object.entries(a);s<c.length;s++){var d=c[s],f=d[0],h=d[1];if(t.relationships.includes(f))if(Co(h)){var p=h.id,v=h.type;l[f]={data:{id:p,type:v}}}else Rs(h)?l[f]={data:h.map(function(P){var R=P.id,j=P.type;return{id:R,type:j}})}:l[f]={data:null};else u[f]=h}else if(t.relationships==="*")for(var E=0,m=Object.entries(a);E<m.length;E++){var y=m[E],f=y[0],h=y[1];if(t.attributes.includes(f))u[f]=h;else if(Co(h)){var g=h.id,v=h.type;l[f]={data:{id:g,type:v}}}else Rs(h)?l[f]={data:h.map(function(j){var V=j.id,q=j.type;return{id:V,type:q}})}:l[f]={data:null}}else{for(var w=0,O=Object.entries(a);w<O.length;w++){var b=O[w],f=b[0],h=b[1];if(t.attributes.includes(f))u[f]=h;else if(t.relationships.includes(f))if(Co(h)){var x=h.id,v=h.type;l[f]={data:{id:x,type:v}}}else Rs(h)?l[f]={data:h.map(function(j){var V=j.id,q=j.type;return{id:V,type:q}})}:l[f]={data:null}}t.attributes.includes("type")&&(u.type=i)}return{data:bn(bn(bn(bn(bn({},r||t.id?{id:r||t.id}:{}),{type:t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(l).length>0?{relationships:l}:{}),o?{meta:o}:{})}}function C(e){return typeof e=="string"?e:e.id}var B=function(){function e(t){this.client=t}return e}(),aE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sE=function(e){aE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(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_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","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/roles",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(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_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","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/roles/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/roles/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/roles/".concat(n)})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/roles/".concat(n,"/duplicate")})},t.TYPE="role",t}(B),uE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(){return jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},jn.apply(this,arguments)},lE=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},cE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},od=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function ad(e,t){return e==null&&t==null?!0:e===t}function fE(e,t){for(var n in e)if(!ad(e[n],t[n]))return!1;for(var n in t)if(!ad(e[n],t[n]))return!1;return!0}function oo(e,t,n,r){if(!t)return e;var i=t.add,o=t.remove;return od(od([],o?o.reduce(function(a,u){var l=jn(jn({},u),{environment:n}),s=a.find(function(c){return fE(c,l)});if(!s)throw new Error("Cannot find rule ".concat(JSON.stringify(l)," to remove in ").concat(r,"!"));return a.filter(function(c){return c!==s})},e):e,!0),i?i.map(function(a){return jn({environment:n},a)}):[],!0)}var dE=function(e){uE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.updateCurrentEnvironmentPermissions=function(n,r){return lE(this,void 0,void 0,function(){var i,o,a,u,l,s;return cE(this,function(c){switch(c.label){case 0:return o=this.client.config.environment,o?[3,2]:[4,this.client.environments.list()];case 1:o=c.sent().find(function(d){return d.meta.primary}).id,c.label=2;case 2:return i=o,[4,this.find(n)];case 3:return a=c.sent(),u=!!(r.positive_item_type_permissions||r.negative_item_type_permissions),l=!!(r.positive_upload_permissions||r.negative_upload_permissions),s=jn(jn({},u?{positive_item_type_permissions:oo(a.positive_item_type_permissions,r.positive_item_type_permissions,i,"positive_item_type_permissions"),negative_item_type_permissions:oo(a.negative_item_type_permissions,r.negative_item_type_permissions,i,"negative_item_type_permissions")}:{}),l?{positive_upload_permissions:oo(a.positive_upload_permissions,r.positive_upload_permissions,i,"positive_upload_permissions"),negative_upload_permissions:oo(a.negative_upload_permissions,r.negative_upload_permissions,i,"negative_upload_permissions")}:{}),[2,this.update(n,s)]}})})},t}(sE),pE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hE=function(e){pE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/users/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(n,r){return this.rawFind(C(n),r).then(function(i){return S(i)})},t.prototype.rawFind=function(n,r){return this.client.request({method:"GET",url:"/users/".concat(n),queryParams:r})},t.prototype.findMe=function(n){return this.rawFindMe(n).then(function(r){return S(r)})},t.prototype.rawFindMe=function(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/users/".concat(n),queryParams:r})},t.TYPE="user",t}(B),mE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yE=function(e){mE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/sso-users/".concat(n)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then(function(n){return S(n)})},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/sso-users/".concat(n),queryParams:r})},t.TYPE="sso_user",t}(B),vE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gE=function(e){vE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.query=function(n){return this.rawQuery(M(n,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawQuery=function(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})},t.TYPE="audit_log_event",t}(B),_E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wE=function(e){_E(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/menu-items",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/menu-items/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/menu-items/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/menu-items/".concat(n)})},t.prototype.reorder=function(n){return this.rawReorder(M(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawReorder=function(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})},t.TYPE="menu_item",t}(B),SE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),EE=function(e){SE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/schema-menu-items/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/schema-menu-items/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/schema-menu-items/".concat(n)})},t.prototype.reorder=function(n){return this.rawReorder(M(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawReorder=function(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})},t.TYPE="schema_menu_item",t}(B),xE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bE=function(e){xE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/upload-collections/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/upload-collections/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/upload-collections/".concat(n)})},t.prototype.reorder=function(n){return this.rawReorder(M(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawReorder=function(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})},t.TYPE="upload_collection",t}(B),OE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CE=function(e){OE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(M(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"]}),r).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:r})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(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(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/item-types/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n)})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/duplicate")})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/item-types/".concat(n),queryParams:r})},t.prototype.rawReorderFieldsAndFieldsets=function(n,r){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/reorder-fields-and-fieldsets"),body:r})},t.TYPE="item_type",t}(B),PE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),TE=function(e){PE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/fields"),body:r})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/fields/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(C(n)).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fields")})},t.prototype.referencing=function(n){return this.rawReferencing(C(n)).then(function(r){return S(r)})},t.prototype.rawReferencing=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fields/referencing")})},t.prototype.related=function(n){return this.rawRelated(C(n)).then(function(r){return S(r)})},t.prototype.rawRelated=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fields/related")})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/fields/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/fields/".concat(n)})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/fields/".concat(n,"/duplicate")})},t.TYPE="field",t}(B),kE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IE=function(e){kE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/fieldsets"),body:r})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/fieldsets/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(C(n)).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fieldsets")})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/fieldsets/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(n)})},t.TYPE="fieldset",t}(B),LE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jE=function(e){LE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/sessions",body:n})},t.TYPE="session",t}(B),RE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NE=function(e){RE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/access_tokens/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/access_tokens/".concat(n)})},t.prototype.regenerateToken=function(n){return this.rawRegenerateToken(C(n)).then(function(r){return S(r)})},t.prototype.rawRegenerateToken=function(n){return this.client.request({method:"POST",url:"/access_tokens/".concat(n,"/regenerate_token")})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(n),queryParams:r})},t.TYPE="access_token",t}(B),FE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ME=function(e){FE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/plugins",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/plugins/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/plugins/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/plugins/".concat(n)})},t.prototype.fields=function(n){return this.rawFields(C(n)).then(function(r){return S(r)})},t.prototype.rawFields=function(n){return this.client.request({method:"GET",url:"/plugins/".concat(n,"/fields")})},t.TYPE="plugin",t}(B),DE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),AE=function(e){DE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/job-results/".concat(n)})},t.TYPE="job_result",t}(B),zE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$E=function(e){zE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/subscription-limits/".concat(n)})},t.TYPE="subscription_limit",t}(B),VE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UE=function(e){VE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(B),qE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BE=function(e){qE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/build-events/".concat(n)})},t.TYPE="build_event",t}(B),HE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sa=function(){return sa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},sa.apply(this,arguments)},GE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},WE=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},hr=function(e){return this instanceof hr?(this.v=e,this):new hr(e)},YE=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof hr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},KE=function(e){HE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/items",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return YE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return GE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=WE(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,hr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,hr(Gt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,hr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Hn(n),Bn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(sa(sa({},n),{page:o}))},r)},t.prototype.validateExisting=function(n,r){return this.rawValidateExisting(C(n),M(r,{id:C(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(n,r){return this.client.request({method:"POST",url:"/items/".concat(n,"/validate"),body:r})},t.prototype.validateNew=function(n){return this.rawValidateNew(M(n,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(n){return this.client.request({method:"POST",url:"/items/validate",body:n})},t.prototype.create=function(n){return this.rawCreate(M(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/items",body:n})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/items/".concat(n,"/duplicate")})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/items/".concat(n),body:r})},t.prototype.references=function(n,r){return this.rawReferences(C(n),r).then(function(i){return S(i)})},t.prototype.rawReferences=function(n,r){return this.client.request({method:"GET",url:"/items/".concat(n,"/references"),queryParams:r})},t.prototype.find=function(n,r){return this.rawFind(C(n),r).then(function(i){return S(i)})},t.prototype.rawFind=function(n,r){return this.client.request({method:"GET",url:"/items/".concat(n),queryParams:r})},t.prototype.currentVsPublishedState=function(n){return this.rawCurrentVsPublishedState(C(n)).then(function(r){return S(r)})},t.prototype.rawCurrentVsPublishedState=function(n){return this.client.request({method:"GET",url:"/items/".concat(n,"/current-vs-published-state")})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/items/".concat(n)})},t.prototype.batchDestroy=function(n){return this.rawBatchDestroy(n).then(function(r){return S(r)})},t.prototype.rawBatchDestroy=function(n){return this.client.request({method:"DELETE",url:"/items",queryParams:n})},t.prototype.batchPublish=function(n){return this.rawBatchPublish(n).then(function(r){return S(r)})},t.prototype.rawBatchPublish=function(n){return this.client.request({method:"PUT",url:"/items/publish",queryParams:n})},t.prototype.batchUnpublish=function(n){return this.rawBatchUnpublish(n).then(function(r){return S(r)})},t.prototype.rawBatchUnpublish=function(n){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:n})},t.prototype.publish=function(n,r,i){return this.rawPublish(C(n),r?M(r,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,i).then(function(o){return S(o)})},t.prototype.rawPublish=function(n,r,i){return this.client.request({method:"PUT",url:"/items/".concat(n,"/publish"),body:r,queryParams:i})},t.prototype.unpublish=function(n,r,i){return this.rawUnpublish(C(n),r?M(r,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,i).then(function(o){return S(o)})},t.prototype.rawUnpublish=function(n,r,i){return this.client.request({method:"PUT",url:"/items/".concat(n,"/unpublish"),body:r,queryParams:i})},t.prototype.bulkPublish=function(n){return this.rawBulkPublish(M(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkPublish=function(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})},t.prototype.bulkUnpublish=function(n){return this.rawBulkUnpublish(M(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkUnpublish=function(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})},t.prototype.bulkDestroy=function(n){return this.rawBulkDestroy(M(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkDestroy=function(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})},t.prototype.bulkMoveToStage=function(n){return this.rawBulkMoveToStage(M(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkMoveToStage=function(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})},t.TYPE="item",t}(B),QE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ua=function(){return ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ua.apply(this,arguments)},XE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},JE=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},mr=function(e){return this instanceof mr?(this.v=e,this):new mr(e)},ZE=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof mr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},ex=function(e){QE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.restore=function(n){return this.rawRestore(C(n)).then(function(r){return S(r)})},t.prototype.rawRestore=function(n){return this.client.request({method:"POST",url:"/versions/".concat(n,"/restore")})},t.prototype.list=function(n,r){return this.rawList(C(n),r).then(function(i){return S(i)})},t.prototype.rawList=function(n,r){return this.client.request({method:"GET",url:"/items/".concat(n,"/versions"),queryParams:r})},t.prototype.listPagedIterator=function(n,r,i){return ZE(this,arguments,function(){var a,u,l,s,c,d,f,h,p;return XE(this,function(v){switch(v.label){case 0:v.trys.push([0,9,10,15]),a=!0,u=JE(this.rawListPagedIterator(C(n),r,i)),v.label=1;case 1:return[4,mr(u.next())];case 2:if(l=v.sent(),d=l.done,!!d)return[3,8];p=l.value,a=!1,v.label=3;case 3:return v.trys.push([3,,6,7]),s=p,[4,mr(Gt(s))];case 4:return[4,v.sent()];case 5:return v.sent(),[3,7];case 6:return a=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return c=v.sent(),f={error:c},[3,15];case 10:return v.trys.push([10,,13,14]),!a&&!d&&(h=u.return)?[4,mr(h.call(u))]:[3,12];case 11:v.sent(),v.label=12;case 12:return[3,14];case 13:if(f)throw f.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r,i){var o=this;return Hn(r),Bn({defaultLimit:15,maxLimit:50},function(a){return o.rawList(n,ua(ua({},r),{page:a}))},i)},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/versions/".concat(n)})},t.TYPE="item_version",t}(B),tx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),la=function(){return la=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},la.apply(this,arguments)},nx=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},rx=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},yr=function(e){return this instanceof yr?(this.v=e,this):new yr(e)},ix=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof yr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},Cm=function(e){tx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/uploads",body:n})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return ix(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return nx(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=rx(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,yr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,yr(Gt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,yr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Hn(n),Bn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(la(la({},n),{page:o}))},r)},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/uploads/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/uploads/".concat(n)})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/uploads/".concat(n),body:r})},t.prototype.batchAddTags=function(n,r){return this.rawBatchAddTags(M(n,{type:"upload",attributes:["tags"],relationships:[]}),r).then(function(i){return S(i)})},t.prototype.rawBatchAddTags=function(n,r){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:n,queryParams:r})},t.prototype.batchDestroy=function(n){return this.rawBatchDestroy(n).then(function(r){return S(r)})},t.prototype.rawBatchDestroy=function(n){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:n})},t.prototype.references=function(n,r){return this.rawReferences(C(n),r).then(function(i){return S(i)})},t.prototype.rawReferences=function(n,r){return this.client.request({method:"GET",url:"/uploads/".concat(n,"/references"),queryParams:r})},t.prototype.bulkTag=function(n){return this.rawBulkTag(M(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(function(r){return S(r)})},t.prototype.rawBulkTag=function(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})},t.prototype.bulkSetUploadCollection=function(n){return this.rawBulkSetUploadCollection(M(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(function(r){return S(r)})},t.prototype.rawBulkSetUploadCollection=function(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})},t.prototype.bulkDestroy=function(n){return this.rawBulkDestroy(M(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(function(r){return S(r)})},t.prototype.rawBulkDestroy=function(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})},t.TYPE="upload",t}(B),ox=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ax=function(e){ox(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_request",attributes:["filename"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})},t.TYPE="upload_request",t}(B),sx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ux=function(e){sx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/uploads/".concat(n,"/tracks"),body:r})},t.prototype.list=function(n){return this.rawList(C(n)).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/uploads/".concat(n,"/tracks")})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),C(r)).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/uploads/".concat(n,"/tracks/").concat(r)})},t.prototype.generateSubtitles=function(n,r){return this.rawGenerateSubtitles(C(n),M(r,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawGenerateSubtitles=function(n,r){return this.client.request({method:"POST",url:"/uploads/".concat(n,"/tracks/generate-subtitles"),body:r})},t.TYPE="upload_track",t}(B),lx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cx=function(e){lx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/items/".concat(n,"/scheduled-publication"),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/items/".concat(n,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(B),fx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dx=function(e){fx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/items/".concat(n,"/scheduled-unpublishing"),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/items/".concat(n,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(B),px=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ca=function(){return ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ca.apply(this,arguments)},hx=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},mx=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},vr=function(e){return this instanceof vr?(this.v=e,this):new vr(e)},yx=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof vr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},vx=function(e){px(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return yx(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return hx(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=mx(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,vr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,vr(Gt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,vr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Hn(n),Bn({defaultLimit:20,maxLimit:100},function(o){return i.rawList(ca(ca({},n),{page:o}))},r)},t.TYPE="search_result",t}(B),gx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_x=function(e){gx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.fork=function(n,r,i){return this.rawFork(C(n),M(r,{id:C(n),type:"environment",attributes:[],relationships:[]}),i).then(function(o){return S(o)})},t.prototype.rawFork=function(n,r,i){return this.client.request({method:"POST",url:"/environments/".concat(n,"/fork"),body:r,queryParams:i})},t.prototype.promote=function(n){return this.rawPromote(C(n)).then(function(r){return S(r)})},t.prototype.rawPromote=function(n){return this.client.request({method:"PUT",url:"/environments/".concat(n,"/promote")})},t.prototype.rename=function(n,r){return this.rawRename(C(n),M(r,{id:C(n),type:"environment",attributes:[],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawRename=function(n,r){return this.client.request({method:"PUT",url:"/environments/".concat(n,"/rename"),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/environments/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/environments/".concat(n)})},t.TYPE="environment",t}(B),wx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sx=function(e){wx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(n){return this.rawActivate(n).then(function(r){return S(r)})},t.prototype.rawActivate=function(n){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:n})},t.prototype.deactivate=function(){return this.rawDeactivate().then(function(n){return S(n)})},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(B),Ex=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xx=function(e){Ex(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(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(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/webhooks",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(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(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/webhooks/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/webhooks/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/webhooks/".concat(n)})},t.TYPE="webhook",t}(B),bx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(){return fa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fa.apply(this,arguments)},Ox=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Cx=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},gr=function(e){return this instanceof gr?(this.v=e,this):new gr(e)},Px=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof gr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},Tx=function(e){bx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return Px(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return Ox(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=Cx(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,gr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,gr(Gt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,gr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Hn(n),Bn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(fa(fa({},n),{page:o}))},r)},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/webhook_calls/".concat(n)})},t.prototype.resendWebhook=function(n){return this.rawResendWebhook(C(n))},t.prototype.rawResendWebhook=function(n){return this.client.request({method:"POST",url:"/webhook_calls/".concat(n,"/resend_webhook")})},t.TYPE="webhook_call",t}(B),kx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ix=function(e){kx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/build-triggers/".concat(n)})},t.prototype.create=function(n){return this.rawCreate(M(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/build-triggers/".concat(n),body:r})},t.prototype.trigger=function(n){return this.rawTrigger(C(n))},t.prototype.rawTrigger=function(n){return this.client.request({method:"POST",url:"/build-triggers/".concat(n,"/trigger")})},t.prototype.abort=function(n){return this.rawAbort(C(n))},t.prototype.rawAbort=function(n){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(n,"/abort")})},t.prototype.abortIndexing=function(n){return this.rawAbortIndexing(C(n))},t.prototype.rawAbortIndexing=function(n){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(n,"/abort_indexing")})},t.prototype.reindex=function(n){return this.rawReindex(C(n))},t.prototype.rawReindex=function(n){return this.client.request({method:"PUT",url:"/build-triggers/".concat(n,"/reindex")})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(n)})},t.TYPE="build_trigger",t}(B),Lx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jx=function(e){Lx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/item-type-filters/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(n)})},t.TYPE="item_type_filter",t}(B),Rx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nx=function(e){Rx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/upload-filters/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/upload-filters/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(n)})},t.TYPE="upload_filter",t}(B),Fx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mx=function(e){Fx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/site-invitations/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/site-invitations/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(n)})},t.prototype.resend=function(n){return this.rawResend(C(n)).then(function(r){return S(r)})},t.prototype.rawResend=function(n){return this.client.request({method:"POST",url:"/site-invitations/".concat(n,"/resend")})},t.TYPE="site_invitation",t}(B),Dx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ax=function(e){Dx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(n),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(n)})},t.TYPE="editing_session",t}(B),zx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$x=function(e){zx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(n){return this.rawCopyRoles(C(n)).then(function(r){return S(r)})},t.prototype.rawCopyRoles=function(n){return this.client.request({method:"POST",url:"/sso-groups/".concat(n,"/copy-roles")})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/sso-groups/".concat(n),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(n)})},t.TYPE="sso_group",t}(B),Vx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ux=function(e){Vx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then(function(n){return S(n)})},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(n){return this.rawUpdate(M(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(function(r){return S(r)})},t.prototype.rawUpdate=function(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})},t.TYPE="sso_settings",t}(B),qx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bx=function(e){qx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n){return this.rawFind(n).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})},t.TYPE="emoji_suggestions",t}(B),Hx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gx=function(e){Hx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(n){return this.rawUpdate(M(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawUpdate=function(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})},t.TYPE="white_label_settings",t}(B),Wx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yx=function(e){Wx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(B),Kx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qx=function(e){Kx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(B),Xx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jx=function(e){Xx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n,r){return this.rawFind(C(n),r).then(function(i){return S(i)})},t.prototype.rawFind=function(n,r){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(n),queryParams:r})},t.TYPE="usage_counter",t}(B),Zx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),da=function(){return da=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},da.apply(this,arguments)},eb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},tb=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},_r=function(e){return this instanceof _r?(this.v=e,this):new _r(e)},nb=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof _r?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},rb=function(e){Zx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return nb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return eb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=tb(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,_r(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,_r(Gt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,_r(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Hn(n),Bn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(da(da({},n),{page:o}))},r)},t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})},t.TYPE="upload_tag",t}(B),ib=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pa=function(){return pa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pa.apply(this,arguments)},ob=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ab=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},wr=function(e){return this instanceof wr?(this.v=e,this):new wr(e)},sb=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,v){o.push([f,h,p,v])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof wr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},ub=function(e){ib(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return sb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return ob(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=ab(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,wr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,wr(Gt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,wr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Hn(n),Bn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(pa(pa({},n),{page:o}))},r)},t.TYPE="upload_smart_tag",t}(B),lb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cb=function(e){lb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n){return this.rawFind(n).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/site",queryParams:n})},t.prototype.update=function(n){return this.rawUpdate(M(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(function(r){return S(r)})},t.prototype.rawUpdate=function(n){return this.client.request({method:"PUT",url:"/site",body:n})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then(function(n){return S(n)})},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then(function(n){return S(n)})},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then(function(n){return S(n)})},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.prototype.activateImprovedGqlVisibilityControl=function(){return this.rawActivateImprovedGqlVisibilityControl().then(function(n){return S(n)})},t.prototype.rawActivateImprovedGqlVisibilityControl=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})},t.prototype.activateImprovedBooleanFields=function(){return this.rawActivateImprovedBooleanFields().then(function(n){return S(n)})},t.prototype.rawActivateImprovedBooleanFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})},t.prototype.activateDraftModeAsDefault=function(){return this.rawActivateDraftModeAsDefault().then(function(n){return S(n)})},t.prototype.rawActivateDraftModeAsDefault=function(){return this.client.request({method:"PUT",url:"/site/activate-draft-mode-as-default"})},t.prototype.activateImprovedValidationAtPublishing=function(){return this.rawActivateImprovedValidationAtPublishing().then(function(n){return S(n)})},t.prototype.rawActivateImprovedValidationAtPublishing=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-validation-at-publishing"})},t.prototype.updateAssetsCdnDefaultSettings=function(n){return this.rawUpdateAssetsCdnDefaultSettings(M(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawUpdateAssetsCdnDefaultSettings=function(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})},t.TYPE="site",t}(B),fb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),db=function(e){fb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/workflows",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/workflows/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/workflows/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n))},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/workflows/".concat(n)})},t.TYPE="workflow",t}(B),Zt=function(){return Zt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Zt.apply(this,arguments)},pb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},hb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},mb=function(){function e(t){this.config=t,this.roles=new dE(this),this.users=new hE(this),this.ssoUsers=new yE(this),this.auditLogEvents=new gE(this),this.menuItems=new wE(this),this.schemaMenuItems=new EE(this),this.uploadCollections=new bE(this),this.itemTypes=new CE(this),this.fields=new TE(this),this.fieldsets=new IE(this),this.session=new jE(this),this.accessTokens=new NE(this),this.plugins=new ME(this),this.jobResults=new AE(this),this.subscriptionLimits=new $E(this),this.subscriptionFeatures=new UE(this),this.buildEvents=new BE(this),this.items=new KE(this),this.itemVersions=new ex(this),this.uploads=new Cm(this),this.uploadRequest=new ax(this),this.uploadTracks=new ux(this),this.scheduledPublication=new cx(this),this.scheduledUnpublishing=new dx(this),this.searchResults=new vx(this),this.environments=new _x(this),this.maintenanceMode=new Sx(this),this.webhooks=new xx(this),this.webhookCalls=new Tx(this),this.buildTriggers=new Ix(this),this.itemTypeFilters=new jx(this),this.uploadFilters=new Nx(this),this.siteInvitations=new Mx(this),this.editingSessions=new Ax(this),this.ssoGroups=new $x(this),this.ssoSettings=new Ux(this),this.emojiSuggestions=new Bx(this),this.whiteLabelSettings=new Gx(this),this.publicInfo=new Yx(this),this.dailyUsages=new Qx(this),this.usageCounters=new Jx(this),this.uploadTags=new rb(this),this.uploadSmartTags=new ub(this),this.site=new cb(this),this.workflows=new db(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(t){var n=this;return Oo(Zt(Zt(Zt({},this.config),t),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v3.4.5",baseUrl:this.baseUrl,preCallStack:new Error().stack,extraHeaders:Zt(Zt(Zt({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(r){return n.jobResultsFetcher?n.jobResultsFetcher(r):MS(function(){return n.jobResults.find(r)})}}))},e.prototype.eventsChannelName=function(){return pb(this,void 0,void 0,function(){var t;return hb(this,function(n){switch(n.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return t=n.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(t.id,"-environment-").concat(this.config.environment):"private-site-".concat(t.id),[2,this.cachedEventsChannelName]}})})},e.defaultBaseUrl="https://site-api.datocms.com",e}();function yb(e,t,n){var r=n===void 0?{}:n,i=r.onProgress,o=r.additionalHeaders,a=new XMLHttpRequest;return Ka(new Promise(function(u,l){if(i&&a.upload&&(a.upload.onprogress=function(p){p.lengthComputable&&i({type:"UPLOADING_FILE",payload:{progress:Math.round(p.loaded/p.total*100)}})}),a.onreadystatechange=function(){a.readyState===4&&(a.status===200?u():l(new Error("Status ".concat(a.status))))},a.addEventListener("error",l,!1),a.open("PUT",t,!0),o)for(var s=0,c=Object.entries(o);s<c.length;s++){var d=c[s],f=d[0],h=d[1];a.setRequestHeader(f,h)}a.send(e)}),function(){a.onreadystatechange=null,a.abort()})}var ha=function(){return ha=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ha.apply(this,arguments)},vb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},gb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function _b(e,t,n){var r=this;n===void 0&&(n={});var i=n.filename||("name"in t?t.name:void 0);if(!i)throw new Error("Missing filename, please provide it as an option!");var o=!1,a=void 0;return Ka(function(){return vb(r,void 0,void 0,function(){var u,l,s,c;return gb(this,function(d){switch(d.label){case 0:return n.onProgress&&(n==null||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:i}})),[4,e.uploadRequest.create({filename:i})];case 1:if(u=d.sent(),l=u.id,s=u.url,c=u.request_headers,o)throw new Ya;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=yb(t,s,ha(ha({},n),{additionalHeaders:c})),[4,a];case 2:return d.sent(),[2,l]}})})},function(){a?a.cancel():o=!0})}var wb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ma.apply(this,arguments)},Sb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},Eb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},xb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},bb=function(e){wb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createFromFileOrBlob=function(n){var r=this,i=!1,o;return Ka(function(){return Sb(r,void 0,void 0,function(){var a,u,l,s,c;return Eb(this,function(d){switch(d.label){case 0:if(i)throw new Ya;return a=n.fileOrBlob,u=n.filename,l=n.onProgress,s=xb(n,["fileOrBlob","filename","onProgress"]),o=_b(this.client,a,{filename:u,onProgress:l}),[4,o];case 1:return c=d.sent(),l&&l({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(ma(ma({},s),{path:c}))]}})})},function(){o?o.cancel():i=!0})},t}(Cm),Ob=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cb=function(e){Ob(t,e);function t(n){var r=e.call(this,n)||this;return r.uploads=new bb(r),r}return t}(mb);function Pb(e){return new Cb(e)}const Tb="_assetListCard_1g8hn_23",kb="_assetListHeader_1g8hn_43",Ib="_assetListHeaderTitle_1g8hn_52",Lb="_categoryBadge_1g8hn_67",jb="_badgeGreen_1g8hn_81",Rb="_badgeRed_1g8hn_85",Nb="_badgeGray_1g8hn_89",Fb="_badgeBlue_1g8hn_93",Mb="_noAssetsMessage_1g8hn_97",Db="_assetList_1g8hn_23",Ab="_assetListItem_1g8hn_112",zb="_assetItemContent_1g8hn_126",$b="_assetIcon_1g8hn_132",Vb="_fileIconWrapper_1g8hn_136",Ub="_assetDetails_1g8hn_149",qb="_assetPath_1g8hn_154",Bb="_optimizationStats_1g8hn_161",Hb="_sizeInfo_1g8hn_169",Gb="_sizeBefore_1g8hn_176",Wb="_sizeAfter_1g8hn_176",Yb="_sizeLabel_1g8hn_182",Kb="_sizeValue_1g8hn_187",Qb="_sizeArrow_1g8hn_200",Xb="_savingsBadge_1g8hn_205",Jb="_assetActions_1g8hn_215",Zb="_container_1g8hn_226",eO="_optimizingContainer_1g8hn_290",tO="_statusText_1g8hn_302",nO="_percentageText_1g8hn_308",rO="_progressBar_1g8hn_315",iO="_progressBarFill_1g8hn_326",oO="_logWrapper_1g8hn_359",aO="_logHeader_1g8hn_369",sO="_logsContainer_1g8hn_381",uO="_logs_1g8hn_381",lO="_logEntry_1g8hn_397",cO="_sizeComparison_1g8hn_410",fO="_originalSize_1g8hn_568",dO="_optimizedSize_1g8hn_578",pO="_sizeSavings_1g8hn_583",hO="_settingsContainer_1g8hn_628",mO="_settingsForm_1g8hn_634",yO="_fieldRow_1g8hn_659",vO="_field_1g8hn_659",gO="_formActionContainer_1g8hn_670",_O="_buttonGroup_1g8hn_674",wO="_resultsContainer_1g8hn_718",SO="_optimizationSummaryTitle_1g8hn_727",EO="_statsCardGrid_1g8hn_735",xO="_statsCard_1g8hn_735",bO="_clickableStatsCard_1g8hn_752",OO="_statsCardTitle_1g8hn_792",CO="_statsCardValue_1g8hn_800",PO="_optimizedValue_1g8hn_806",TO="_skippedValue_1g8hn_810",kO="_failedValue_1g8hn_814",IO="_statsCardLabel_1g8hn_818",LO="_savingsSummary_1g8hn_823",jO="_savingsCard_1g8hn_827",RO="_savingsRow_1g8hn_834",NO="_savingsLabel_1g8hn_846",FO="_savingsValue_1g8hn_851",MO="_actionsContainer_1g8hn_857",DO="_infoText_1g8hn_866",AO="_hintWithDoc_1g8hn_882",zO="_plainHint_1g8hn_896",$O="_docLinkIcon_1g8hn_909",VO="_currentAssetPreview_1g8hn_973",UO="_assetPreviewImage_1g8hn_984",qO="_assetPreviewInfo_1g8hn_1001",BO="_assetPreviewTitle_1g8hn_1006",HO="_assetPreviewMeta_1g8hn_1016",GO="_advancedOptionsGroup_1g8hn_1025",WO="_optionsGrid_1g8hn_1035",YO="_optionItem_1g8hn_1042",KO="_paramTooltip_1g8hn_1049",QO="_tooltipText_1g8hn_1054",T={assetListCard:Tb,assetListHeader:kb,assetListHeaderTitle:Ib,categoryBadge:Lb,badgeGreen:jb,badgeRed:Rb,badgeGray:Nb,badgeBlue:Fb,noAssetsMessage:Mb,assetList:Db,assetListItem:Ab,assetItemContent:zb,assetIcon:$b,fileIconWrapper:Vb,assetDetails:Ub,assetPath:qb,optimizationStats:Bb,sizeInfo:Hb,sizeBefore:Gb,sizeAfter:Wb,sizeLabel:Yb,sizeValue:Kb,sizeArrow:Qb,savingsBadge:Xb,assetActions:Jb,container:Zb,optimizingContainer:eO,statusText:tO,percentageText:nO,progressBar:rO,progressBarFill:iO,logWrapper:oO,logHeader:aO,logsContainer:sO,logs:uO,logEntry:lO,sizeComparison:cO,originalSize:fO,optimizedSize:dO,sizeSavings:pO,settingsContainer:hO,settingsForm:mO,fieldRow:yO,field:vO,formActionContainer:gO,buttonGroup:_O,resultsContainer:wO,optimizationSummaryTitle:SO,statsCardGrid:EO,statsCard:xO,clickableStatsCard:bO,statsCardTitle:OO,statsCardValue:CO,optimizedValue:PO,skippedValue:TO,failedValue:kO,statsCardLabel:IO,savingsSummary:LO,savingsCard:jO,savingsRow:RO,savingsLabel:NO,savingsValue:FO,actionsContainer:MO,infoText:DO,hintWithDoc:AO,plainHint:zO,docLinkIcon:$O,currentAssetPreview:VO,assetPreviewImage:UO,assetPreviewInfo:qO,assetPreviewTitle:BO,assetPreviewMeta:HO,advancedOptionsGroup:GO,optionsGrid:WO,optionItem:YO,paramTooltip:KO,tooltipText:QO},Pm={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 XO(e,t){if(!e.is_image)return null;const n=t.largeAssetThreshold*1024*1024,r=t.veryLargeAssetThreshold*1024*1024,i=e.size>=n,o=e.size>=r;let a="?";if(t.useAutoCompress&&(a+="auto=compress"),o)a+=a.length>1?"&":"",a+=`q=${t.qualityVeryLarge}`;else if(i)a+=a.length>1?"&":"",a+=`q=${t.qualityLarge}`;else return null;if(t.resizeLargeImages&&e.width&&e.height){const u=Math.max(e.width,e.height),l=o?t.resizeDimensionVeryLarge:i?t.resizeDimensionLarge:null;l&&u>l&&(e.width>=e.height?(a+=a.length>1?"&":"",a+=`max-w=${l}`):(a+=a.length>1?"&":"",a+=`h=${l}`))}return t.targetFormat&&!t.preserveOriginalFormat&&(a+=a.length>1?"&":"",a+=`fm=${t.targetFormat}`),o&&t.useDpr&&(a+=a.length>1?"&":"",a+="dpr=2"),t.useLossless&&(a+=a.length>1?"&":"",a+="lossless=1"),t.useChromaSubsampling&&(a+=a.length>1?"&":"",a+="chromasub=444"),t.preserveColorProfile&&(a+=a.length>1?"&":"",a+="cs=origin"),a}var JO="Expected a function",sd=NaN,ZO="[object Symbol]",eC=/^\s+|\s+$/g,tC=/^[-+]0x[0-9a-f]+$/i,nC=/^0b[01]+$/i,rC=/^0o[0-7]+$/i,iC=parseInt,oC=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot,aC=typeof self=="object"&&self&&self.Object===Object&&self,sC=oC||aC||Function("return this")(),uC=Object.prototype,lC=uC.toString,cC=Math.max,fC=Math.min,Ns=function(){return sC.Date.now()};function dC(e,t,n){var r,i,o,a,u,l,s=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(JO);t=ud(t)||0,Xu(n)&&(c=!!n.leading,d="maxWait"in n,o=d?cC(ud(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(b){var x=r,P=i;return r=i=void 0,s=b,a=e.apply(P,x),a}function p(b){return s=b,u=setTimeout(m,t),c?h(b):a}function v(b){var x=b-l,P=b-s,R=t-x;return d?fC(R,o-P):R}function E(b){var x=b-l,P=b-s;return l===void 0||x>=t||x<0||d&&P>=o}function m(){var b=Ns();if(E(b))return y(b);u=setTimeout(m,v(b))}function y(b){return u=void 0,f&&r?h(b):(r=i=void 0,a)}function g(){u!==void 0&&clearTimeout(u),s=0,r=l=i=u=void 0}function w(){return u===void 0?a:y(Ns())}function O(){var b=Ns(),x=E(b);if(r=arguments,i=this,l=b,x){if(u===void 0)return p(l);if(d)return u=setTimeout(m,t),h(l)}return u===void 0&&(u=setTimeout(m,t)),a}return O.cancel=g,O.flush=w,O}function Xu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function pC(e){return!!e&&typeof e=="object"}function hC(e){return typeof e=="symbol"||pC(e)&&lC.call(e)==ZO}function ud(e){if(typeof e=="number")return e;if(hC(e))return sd;if(Xu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(eC,"");var n=nC.test(e);return n||rC.test(e)?iC(e.slice(2),n?2:8):tC.test(e)?sd:+e}var mC=dC;const yC=ya(mC),tt=({children:e,paramName:t,paramValue:n})=>{const i=n==null?`${t}`:typeof n=="boolean"?n?`${t}=1`:"":`${t}=${n}`;return i?_.jsxs("div",{className:T.paramTooltip,children:[e,_.jsx("span",{className:T.tooltipText,children:i})]}):_.jsx(_.Fragment,{children:e})},jt=({hint:e,url:t})=>{const n=`Learn more about ${e}`,r=()=>{window.open(t,"_blank","noopener,noreferrer")};return _.jsxs("button",{className:T.hintWithDoc,onClick:r,type:"button","aria-label":n,children:[_.jsx("span",{children:e}),_.jsx("span",{className:T.docLinkIcon,children:"ℹ"})]})},Yn=({hint:e})=>_.jsx("div",{className:T.plainHint,children:_.jsx("span",{children:e})}),Rt={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"},vC=({settings:e,onSettingsChange:t,onStartOptimization:n,ctx:r})=>{const i=k.useRef(null);k.useEffect(()=>(i.current=yC(async c=>{try{await r.updatePluginParameters({optimization_settings:JSON.stringify(c)}),console.log("Settings saved to plugin parameters:",c)}catch(d){console.error("Error saving settings:",d)}},500),()=>{i.current&&i.current.cancel()}),[r]),k.useEffect(()=>{i.current&&i.current(e)},[e]);const o=c=>d=>{const f=Number.parseFloat(d);if(!Number.isNaN(f)){let h=f;(c==="qualityLarge"||c==="qualityVeryLarge")&&(h=Math.min(Math.max(0,f),100)),c==="minimumReduction"&&(h=Math.min(Math.max(0,f),100)),(c==="largeAssetThreshold"||c==="veryLargeAssetThreshold")&&(h=Math.max(.1,f)),(c==="resizeDimensionLarge"||c==="resizeDimensionVeryLarge")&&(h=Math.max(1,f)),t({...e,[c]:h})}},a=c=>d=>{t({...e,[c]:d})},u=c=>(d,f)=>{d&&typeof d=="object"&&!Array.isArray(d)&&"value"in d&&t({...e,[c]:d.value})},l=[{label:"WebP",value:"webp"},{label:"AVIF",value:"avif"}],s=l.find(c=>c.value===e.targetFormat)||l[0];return _.jsxs(u_,{className:T.settingsForm,children:[_.jsxs(Vr,{children:[_.jsx("h4",{children:"Size Thresholds"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(wn,{id:"largeAssetThreshold",name:"largeAssetThreshold",label:"Large Asset (MB)",value:e.largeAssetThreshold.toString(),onChange:o("largeAssetThreshold")}),_.jsx(Yn,{hint:`Assets above ${e.largeAssetThreshold}MB will be optimized`})]}),_.jsxs("div",{className:T.field,children:[_.jsx(wn,{id:"veryLargeAssetThreshold",name:"veryLargeAssetThreshold",label:"Very Large Asset (MB)",value:e.veryLargeAssetThreshold.toString(),onChange:o("veryLargeAssetThreshold")}),_.jsx(Yn,{hint:`Assets above ${e.veryLargeAssetThreshold}MB get stronger optimization`})]})]}),_.jsxs("div",{className:T.field,children:[_.jsx(wn,{id:"minimumReduction",name:"minimumReduction",label:"Minimum Size Reduction (%)",value:e.minimumReduction.toString(),onChange:o("minimumReduction")}),_.jsx(Yn,{hint:"Only replace if reduced by at least this percentage"})]})]}),_.jsxs(Vr,{children:[_.jsx("h4",{children:"Basic Optimization"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"fm",paramValue:e.preserveOriginalFormat?void 0:e.targetFormat,children:_.jsx(_n,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:e.preserveOriginalFormat,onChange:a("preserveOriginalFormat")})}),_.jsx(jt,{hint:"Keep original image format (JPG, PNG, etc.)",url:Rt.format})]}),_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"auto",paramValue:"compress",children:_.jsx(_n,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:e.useAutoCompress,onChange:a("useAutoCompress")})}),_.jsx(jt,{hint:"Use Imgix's auto compression features",url:Rt.auto})]})]}),!e.preserveOriginalFormat&&_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"fm",paramValue:e.targetFormat,children:_.jsx(h_,{id:"targetFormat",name:"targetFormat",label:"Target Format",value:s,onChange:u("targetFormat"),selectInputProps:{options:l}})}),_.jsx(Yn,{hint:"Format to convert images to"})]}),_.jsxs("p",{className:T.infoText,children:[_.jsx("strong",{children:"Format Settings:"})," ",e.preserveOriginalFormat?"Original image formats will be preserved while optimizing quality and file size.":`Images will be converted to ${e.targetFormat.toUpperCase()} format for better compression.`,e.useAutoCompress&&_.jsx("span",{children:" Auto compression is enabled, letting Imgix automatically optimize each image."})]}),_.jsx("div",{className:T.fieldRow,children:_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"max-w",paramValue:e.resizeLargeImages?"value":void 0,children:_.jsx(_n,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:e.resizeLargeImages,onChange:a("resizeLargeImages")})}),_.jsx(jt,{hint:"Reduce image dimensions to save space",url:Rt.resize})]})})]}),e.resizeLargeImages&&_.jsxs(Vr,{children:[_.jsx("h4",{children:"Resize Dimensions"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"max-w",paramValue:e.resizeDimensionLarge,children:_.jsx(wn,{id:"resizeDimensionLarge",name:"resizeDimensionLarge",label:"Large Image Max Width (px)",value:e.resizeDimensionLarge.toString(),onChange:o("resizeDimensionLarge")})}),_.jsx(Yn,{hint:"Max dimension for large images"})]}),_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"max-w",paramValue:e.resizeDimensionVeryLarge,children:_.jsx(wn,{id:"resizeDimensionVeryLarge",name:"resizeDimensionVeryLarge",label:"Very Large Image Max Width (px)",value:e.resizeDimensionVeryLarge.toString(),onChange:o("resizeDimensionVeryLarge")})}),_.jsx(Yn,{hint:"Max dimension for very large images"})]})]})]}),_.jsxs(Vr,{children:[_.jsx("h4",{children:"Compression Settings"}),!e.useLossless&&_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"q",paramValue:e.qualityLarge,children:_.jsx(wn,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:e.qualityLarge.toString(),onChange:o("qualityLarge")})}),_.jsx(jt,{hint:"Quality for large images (0-100)",url:Rt.quality})]}),_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"q",paramValue:e.qualityVeryLarge,children:_.jsx(wn,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:e.qualityVeryLarge.toString(),onChange:o("qualityVeryLarge")})}),_.jsx(jt,{hint:"Quality for very large images (0-100)",url:Rt.quality})]})]}),e.useLossless&&_.jsxs("p",{className:T.infoText,style:{marginBottom:0},children:[_.jsx("strong",{children:"Lossless Mode:"})," Standard quality settings are disabled when using Lossless Mode."]})]}),_.jsxs(Vr,{className:T.advancedOptionsGroup,children:[_.jsx("h4",{children:"Advanced Options"}),_.jsxs("div",{className:T.optionsGrid,children:[_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"lossless",paramValue:e.useLossless?1:void 0,children:_.jsx(_n,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:e.useLossless,onChange:a("useLossless")})}),_.jsx(jt,{hint:"Use lossless compression when possible",url:Rt.lossless})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"dpr",paramValue:e.useDpr?2:void 0,children:_.jsx(_n,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:e.useDpr,onChange:a("useDpr")})}),_.jsx(jt,{hint:"Optimize for high-resolution displays (Retina)",url:Rt.dpr})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"chromasub",paramValue:e.useChromaSubsampling?444:void 0,children:_.jsx(_n,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:e.useChromaSubsampling,onChange:a("useChromaSubsampling")})}),_.jsx(jt,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:Rt.chroma})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"cs",paramValue:e.preserveColorProfile?"origin":void 0,children:_.jsx(_n,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:e.preserveColorProfile,onChange:a("preserveColorProfile")})}),_.jsx(jt,{hint:"Maintain accurate colors from original image",url:Rt.colorSpace})]})]})]}),_.jsx("div",{className:T.formActionContainer,children:_.jsxs("div",{className:T.buttonGroup,children:[_.jsx(kn,{buttonType:"muted",buttonSize:"l",onClick:()=>t({...Pm}),children:"Restore Defaults"}),_.jsx(kn,{buttonType:"primary",buttonSize:"l",onClick:n,fullWidth:!0,children:"Start Optimization"})]})})]})};function Rn(e){return e<1024?`${e} bytes`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const gC=({log:e})=>{if(e.length===0)return null;const t=k.useRef(null);return k.useEffect(()=>{if(t.current){const{scrollHeight:n,clientHeight:r}=t.current;t.current.scrollTop=n-r}},[]),_.jsxs("div",{className:T.logWrapper,children:[_.jsxs("div",{className:T.logHeader,children:[_.jsx("h3",{children:"Activity Log"}),_.jsxs("span",{children:[e.length," entries"]})]}),_.jsx("div",{className:T.logsContainer,ref:t,children:_.jsx("div",{className:T.logs,children:e.map((n,r)=>_.jsxs("div",{className:T.logEntry,children:[_.jsx("span",{children:n.text}),n.originalSize&&n.optimizedSize&&_.jsxs("span",{className:T.sizeComparison,children:[_.jsx("span",{className:T.originalSize,children:Rn(n.originalSize)}),_.jsx("span",{className:T.sizeArrow,children:"→"}),_.jsx("span",{className:T.optimizedSize,children:Rn(n.optimizedSize)}),_.jsxs("span",{className:T.sizeSavings,children:["(-",n.savingsPercentage,"%)"]})]})]},`log-${r}-${n.text.substring(0,10)}`))})})]})},_C=({current:e,total:t,isVisible:n,assetSizeCategory:r="large",currentAsset:i})=>{var a;if(!n)return null;const o=t>0?Math.min(100,Math.max(0,Math.round(e/t*100))):0;return _.jsxs("div",{className:T.optimizingContainer,children:[i&&_.jsxs("div",{className:T.currentAssetPreview,children:[_.jsx("div",{className:T.assetPreviewImage,children:_.jsx("img",{src:`${i.url}?w=120&h=80&fit=crop&auto=format`,alt:i.basename})}),_.jsxs("div",{className:T.assetPreviewInfo,children:[_.jsx("div",{className:T.assetPreviewTitle,children:i.basename}),_.jsxs("div",{className:T.assetPreviewMeta,children:[(a=i.path.split(".").pop())==null?void 0:a.toUpperCase()," • ",(i.size/(1024*1024)).toFixed(2)," MB • ",i.width,"×",i.height,"px"]})]})]}),_.jsxs("div",{className:T.statusText,children:[_.jsx(mS,{size:16})," ",_.jsxs("span",{children:["Processing ",r," assets: ",e," of ",t]})]}),_.jsx("div",{className:T.percentageText,children:_.jsxs("span",{children:[o,"%"]})}),_.jsx("div",{className:T.progressBar,children:_.jsx("div",{className:T.progressBarFill,style:{width:`${o}%`}})})]})},wC=({result:e,setSelectedCategory:t,resetState:n,largeAssetThreshold:r})=>{if(!e)return null;const{optimized:i,skipped:o,failed:a,totalAssets:u,optimizedAssets:l}=e,s=l.reduce((p,v)=>p+(v.originalSize-v.optimizedSize),0),c=l.length>0?Math.round(l.reduce((p,v)=>p+(v.originalSize-v.optimizedSize)/v.originalSize*100,0)/l.length):0,d=()=>s<1024?`${s} bytes`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`,f=(p,v)=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),t(v))},h=()=>{n?n():t(null)};return _.jsxs("div",{className:T.resultsContainer,children:[_.jsx("h2",{className:T.optimizationSummaryTitle,children:"Optimization Summary"}),u===0&&r&&_.jsx("div",{className:`${T.infoBox}`,style:{margin:"0 0 16px 0",padding:"16px",backgroundColor:"var(--light-bg-color)",borderRadius:"4px"},children:_.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[_.jsx("div",{style:{marginRight:"8px",color:"var(--accent-color)",display:"flex"},children:_.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[_.jsx("title",{children:"Information"}),_.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"})]})}),_.jsxs("p",{style:{margin:0,color:"var(--base-body-color)"},children:["No images in your project are larger than ",_.jsxs("strong",{children:[r,"MB"]}),". Try lowering the minimum size threshold to optimize more assets."]})]})}),_.jsxs("div",{className:T.statsCardGrid,children:[_.jsxs("div",{className:T.statsCard,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Total Assets"}),_.jsx("div",{className:T.statsCardValue,children:u}),_.jsx("div",{className:T.statsCardLabel,children:u>0?"Total":"No assets found"})]}),_.jsxs("div",{className:`${T.statsCard} ${i>0?T.clickableStatsCard:""}`,onClick:()=>i>0?t("optimized"):null,onKeyDown:p=>i>0?f(p,"optimized"):null,role:i>0?"button":void 0,tabIndex:i>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Optimized"}),_.jsx("div",{className:`${T.statsCardValue} ${T.optimizedValue}`,children:i}),_.jsx("div",{className:T.statsCardLabel,children:i>0?"Click to view":"No optimized assets"})]}),_.jsxs("div",{className:`${T.statsCard} ${o>0?T.clickableStatsCard:""}`,onClick:()=>o>0?t("skipped"):null,onKeyDown:p=>o>0?f(p,"skipped"):null,role:o>0?"button":void 0,tabIndex:o>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Skipped"}),_.jsx("div",{className:`${T.statsCardValue} ${T.skippedValue}`,children:o}),_.jsx("div",{className:T.statsCardLabel,children:o>0?"Click to view":"No skipped assets"})]}),_.jsxs("div",{className:`${T.statsCard} ${a>0?T.clickableStatsCard:""}`,onClick:()=>a>0?t("failed"):null,onKeyDown:p=>a>0?f(p,"failed"):null,role:a>0?"button":void 0,tabIndex:a>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Failed"}),_.jsx("div",{className:`${T.statsCardValue} ${T.failedValue}`,children:a}),_.jsx("div",{className:T.statsCardLabel,children:a>0?"Click to view":"No failed assets"})]})]}),_.jsx("div",{className:T.savingsSummary,children:_.jsxs("div",{className:T.savingsCard,children:[_.jsxs("div",{className:T.savingsRow,children:[_.jsx("div",{className:T.savingsLabel,children:"Total Storage Saved"}),_.jsx("div",{className:T.savingsValue,children:d()})]}),_.jsxs("div",{className:T.savingsRow,children:[_.jsx("div",{className:T.savingsLabel,children:"Average Optimization per Asset"}),_.jsxs("div",{className:T.savingsValue,children:[c,"%"]})]})]})}),_.jsx("div",{className:T.actionsContainer,children:_.jsx(kn,{buttonType:"primary",buttonSize:"l",onClick:h,fullWidth:!0,children:"New Optimization"})})]})},SC=({assets:e,category:t,onClose:n,ctx:r})=>{const i=()=>{switch(t){case"optimized":return T.badgeGreen;case"failed":return T.badgeRed;case"skipped":return T.badgeGray;default:return T.badgeBlue}};return _.jsxs("div",{className:T.assetListCard,children:[_.jsxs("div",{className:T.assetListHeader,children:[_.jsxs("div",{className:T.assetListHeaderTitle,children:[_.jsx("div",{className:`${T.categoryBadge} ${i()}`,children:e.length}),_.jsxs("h3",{children:[t.charAt(0).toUpperCase()+t.slice(1)," Assets"]})]}),n&&_.jsx(kn,{buttonType:"negative",buttonSize:"xs",onClick:n,children:"Close"})]}),e.length===0?_.jsxs("div",{className:T.noAssetsMessage,children:["No ",t," assets to display."]}):_.jsx("ul",{className:T.assetList,children:e.map(o=>{const a={id:o.id,path:o.path,url:o.url,size:"size"in o?o.size:"originalSize"in o?o.originalSize:0,basename:"basename"in o?o.basename:"",originalSize:"originalSize"in o?o.originalSize:void 0,optimizedSize:"optimizedSize"in o?o.optimizedSize:void 0},u=a.originalSize&&a.optimizedSize?Math.round((a.originalSize-a.optimizedSize)/a.originalSize*100):null,l=a.path.split(".").pop()||"";return _.jsx("li",{className:T.assetListItem,children:_.jsxs("div",{className:T.assetItemContent,children:[_.jsx("div",{className:T.assetIcon,children:_.jsx("div",{className:T.fileIconWrapper,children:l.toUpperCase()})}),_.jsxs("div",{className:T.assetDetails,children:[_.jsx("p",{className:T.assetPath,children:a.path}),t==="optimized"&&a.originalSize&&a.optimizedSize&&_.jsxs("div",{className:T.optimizationStats,children:[_.jsxs("div",{className:T.sizeInfo,children:[_.jsxs("div",{className:T.sizeBefore,children:[_.jsx("span",{className:T.sizeLabel,children:"Original:"}),_.jsx("span",{className:T.sizeValue,children:Rn(a.originalSize)})]}),_.jsx("div",{className:T.sizeArrow,children:"→"}),_.jsxs("div",{className:T.sizeAfter,children:[_.jsx("span",{className:T.sizeLabel,children:"Optimized:"}),_.jsx("span",{className:T.sizeValue,children:Rn(a.optimizedSize)})]})]}),u&&_.jsxs("div",{className:`${T.savingsBadge} ${T.badgeGreen}`,children:[u,"% savings"]})]})]}),_.jsxs("div",{className:T.assetActions,children:[_.jsx(kn,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(a.url,"_blank"),children:"View Asset"}),_.jsx(kn,{buttonSize:"xxs",buttonType:"muted",style:{marginLeft:"8px"},onClick:()=>window.open(`https://${r.site.attributes.internal_domain}/media/assets/${a.id}`,"_blank"),children:"Media Area"})]})]})},a.id)})})]})};async function EC(e,t,n=60,r=2e3){var u;const i="https://site-api.datocms.com",o={Authorization:`Bearer ${t}`,"Content-Type":"application/json",Accept:"application/json","X-Api-Version":"3"};let a=0;for(;a<n;){a++;try{const l=await fetch(`${i}/job-results/${e}`,{headers:o});if(l.status===200){const s=await l.json();if(((u=s.data.attributes)==null?void 0:u.status)===200)return console.log(`Job ${e} completed successfully`),s}console.log(`Job ${e} still processing (attempt ${a}/${n})...`),await new Promise(s=>setTimeout(s,r))}catch(l){console.error(`Error checking job status: ${l}`)}}throw new Error(`Job ${e} did not complete after ${n} attempts`)}async function xC(e,t,n,r){var i,o;if(console.log(`Replacing DatoCMS asset ID ${e} with image from URL: ${t}`),!e||!n)throw new Error("Missing required parameters: assetId and apiToken are required");try{const a="https://site-api.datocms.com",u={Authorization:`Bearer ${n}`,"Content-Type":"application/json",Accept:"application/json","X-Api-Version":"3"},l=await fetch(`${a}/upload-requests`,{method:"POST",headers:u,body:JSON.stringify({data:{type:"upload_request",attributes:{filename:r||"optimized-image.jpg"}}})});if(!l.ok){const w=await l.text();throw new Error(`Failed to create upload request: ${l.status} ${w}`)}const s=await l.json(),{id:c,attributes:{url:d,request_headers:f}}=s.data,h=await fetch(t);if(!h.ok)throw new Error(`Failed to fetch image from URL: ${h.status} ${h.statusText}`);const v=await(await h.blob()).arrayBuffer(),E=new Uint8Array(v),m=await fetch(d,{method:"PUT",headers:{...f,"Content-Length":E.length.toString()},body:E});if(!m.ok)throw new Error(`Failed to upload file to S3: ${m.status} ${m.statusText}`);const y=await fetch(`${a}/uploads/${e}`,{method:"PUT",headers:u,body:JSON.stringify({data:{id:e,type:"upload",attributes:{path:c}}})});if(!y.ok){const w=await y.text();throw new Error(`Failed to update asset metadata: ${y.status} ${w}`)}const g=await y.json();if(g.data&&g.data.type==="job"){const w=g.data.id;console.log(`Asset update initiated as job ${w}, waiting for completion...`);const O=await EC(w,n);if(((i=O.data.attributes)==null?void 0:i.status)!==200)throw new Error(`Job completed with error status: ${(o=O.data.attributes)==null?void 0:o.status}`);return O.data.attributes.payload}return console.log("Asset replaced successfully:",g),g}catch(a){throw console.error("Error replacing asset:",a),a}}function bC(e){var t,n,r,i,o,a;return{id:e.id,is_image:e.is_image||!1,size:e.size||0,url:e.url||"",path:e.path||"",basename:e.basename||"",width:e.width||void 0,height:e.height||void 0,alt:((n=(t=e.default_field_metadata)==null?void 0:t.en)==null?void 0:n.alt)||void 0,title:((i=(r=e.default_field_metadata)==null?void 0:r.en)==null?void 0:i.title)||void 0,customData:((a=(o=e.default_field_metadata)==null?void 0:o.en)==null?void 0:a.custom_data)||{},tags:e.tags||[]}}function ao(e){return{id:e.id,path:e.path,url:e.url}}function OC(e,t,n){return{id:e.id,path:e.path,url:e.url,originalSize:t,optimizedSize:n}}const CC=({ctx:e})=>{const[t,n]=k.useState(!1),[r,i]=k.useState(0),[o,a]=k.useState(0),[u,l]=k.useState(null),[s,c]=k.useState([]),[d,f]=k.useState({...Pm}),[h,p]=k.useState(void 0),[v,E]=k.useState(null);k.useEffect(()=>{(async()=>{try{const b=e.plugin.attributes.parameters;if(b&&typeof b.optimization_settings=="string")try{const x=JSON.parse(b.optimization_settings);f(x),console.log("Loaded settings from plugin parameters:",x)}catch(x){console.error("Error parsing saved settings:",x)}else console.log("No saved settings found, using defaults")}catch(b){console.error("Error accessing plugin parameters:",b)}})()},[e]),k.useEffect(()=>{const O=b=>{if(t){const x="Optimization is in progress. Leaving the page now may cause you to lose assets! Are you sure you want to leave?";return b.preventDefault(),b.returnValue=x,x}};return window.addEventListener("beforeunload",O),()=>{window.removeEventListener("beforeunload",O)}},[t]);const m=O=>{c(b=>[{text:`[${new Date().toISOString()}] ${O}`},...b])},y=(O,b,x)=>{const P=b-x,R=Math.round(P/b*100);c(j=>[{text:`[${new Date().toISOString()}] Successfully optimized asset: ${O} `,originalSize:b,optimizedSize:x,savingsPercentage:R},...j])},g=async()=>{try{if(await e.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 e.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.",choices:[{label:"Yes, Replace My Assets",value:"confirm",intent:"positive"}],cancel:{label:"No, Cancel Operation",value:!1}})!=="confirm")return;w(),n(!0),m("Starting asset optimization process...");const x=Pb({apiToken:e.currentUserAccessToken??"",environment:e.environment});m("Fetching assets from DatoCMS...");const P=d.largeAssetThreshold*1024*1024,R=[];let j=0;for await(const D of x.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:P}}}}))j++,R.push(bC(D));m(`Found ${j} assets larger than ${d.largeAssetThreshold}MB.`),m(`Found ${R.length} optimizable images.`),a(R.length);let V=0,q=0,U=0;const ee=[],X=[],K=[];let re=0,I=0;for(let D=0;D<R.length;D++){const N=R[D];i(D+1),p(N);try{m(`Processing asset: ${N.path} (${Rn(N.size)})`),re+=N.size;const Y=XO(N,d);if(!Y){m(`Skipping asset ${N.path}: No suitable optimization parameters found.`),X.push(ao(N)),q++;continue}const G=`${N.url}${Y}`;m(`Optimizing with parameters: ${Y}`);const he=await fetch(G);if(!he.ok)throw new Error(`Failed to fetch optimized image: ${he.statusText}`);const ce=await he.blob();m(`Optimized image size: ${Rn(ce.size)}`);const $e=N.size*(1-d.minimumReduction/100);if(ce.size>$e){m(`Optimization not significant enough for ${N.path}. Skipping.`),X.push(ao(N)),q++;continue}m(`Replacing asset ${N.path}...`);try{const oe=e.currentUserAccessToken;if(!oe)throw new Error("Failed to get API token");const Fe=`${N.url}${Y}`;await xC(N.id,Fe,oe,N.basename),ee.push(OC(N,N.size,ce.size)),I+=ce.size,V++,y(N.path,N.size,ce.size),m(`Successfully replaced asset ${N.path}`)}catch(oe){m(`Error replacing asset: ${oe instanceof Error?oe.message:String(oe)}`),K.push(ao(N)),U++}}catch(Y){m(`Error optimizing asset ${N.path}: ${Y instanceof Error?Y.message:String(Y)}`),K.push(ao(N)),U++}}l({optimized:V,skipped:q,failed:U,totalAssets:j,optimizedAssets:ee,skippedAssets:X,failedAssets:K}),m(`Optimization complete. Optimized: ${V}, Skipped: ${q}, Failed: ${U}`),V>0&&m(`Total size savings: ${Rn(re-I)} (${Math.round((re-I)/re*100)}%)`),m("Asset optimization process completed!"),e.notice("Asset optimization process completed!")}catch(O){m(`Error during optimization process: ${O instanceof Error?O.message:String(O)}`),e.alert(`Error during optimization process: ${O instanceof Error?O.message:String(O)}`)}finally{n(!1)}},w=()=>{l(null),c([]),i(0),a(0),p(void 0)};return _.jsx(xd,{ctx:e,children:_.jsxs("div",{className:T.container,children:[_.jsx("h1",{className:T.title,children:"Asset Optimization"}),!t&&!u&&_.jsx("div",{className:T.settingsContainer,children:_.jsx(vC,{settings:d,onSettingsChange:f,onStartOptimization:g,ctx:e})}),_.jsx(_C,{current:r,total:o,isVisible:t,assetSizeCategory:d.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:h}),u&&_.jsxs(_.Fragment,{children:[_.jsx(wC,{result:u,setSelectedCategory:E,resetState:w,largeAssetThreshold:d.largeAssetThreshold}),v&&_.jsx(SC,{assets:v==="optimized"?u.optimizedAssets:v==="skipped"?u.skippedAssets:u.failedAssets,category:v,onClose:()=>E(null),ctx:e})]}),_.jsx(gC,{log:s})]})})};var Tm,ld=Oh;Tm=ld.createRoot,ld.hydrateRoot;const PC=document.getElementById("root"),TC=Tm(PC);function cd(e){TC.render(_.jsx(k.StrictMode,{children:e}))}Dy({renderConfigScreen(e){return cd(_.jsx(kS,{ctx:e}))},settingsAreaSidebarItemGroups(e){return e.currentRole.attributes.can_edit_schema?[{label:"Asset Management",items:[{label:"Optimize assets",icon:"images",pointsTo:{pageId:"optimize-assets"}}]}]:[]},renderPage(e,t){switch(e){case"optimize-assets":return cd(_.jsx(CC,{ctx:t}))}}});