datocms-plugin-asset-optimization 0.2.0 → 0.4.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,64 @@
1
+ function Am(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 wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},Sa={},gd={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 Ii=Symbol.for("react.element"),zm=Symbol.for("react.portal"),$m=Symbol.for("react.fragment"),Vm=Symbol.for("react.strict_mode"),Um=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),Bm=Symbol.for("react.context"),Hm=Symbol.for("react.forward_ref"),Gm=Symbol.for("react.suspense"),Wm=Symbol.for("react.memo"),Ym=Symbol.for("react.lazy"),mc=Symbol.iterator;function Km(e){return e===null||typeof e!="object"?null:(e=mc&&e[mc]||e["@@iterator"],typeof e=="function"?e:null)}var _d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wd=Object.assign,Sd={};function Lr(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||_d}Lr.prototype.isReactComponent={};Lr.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")};Lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ed(){}Ed.prototype=Lr.prototype;function el(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||_d}var tl=el.prototype=new Ed;tl.constructor=el;wd(tl,Lr.prototype);tl.isPureReactComponent=!0;var yc=Array.isArray,bd=Object.prototype.hasOwnProperty,nl={current:null},xd={key:!0,ref:!0,__self:!0,__source:!0};function Od(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)bd.call(t,r)&&!xd.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:Ii,type:e,key:o,ref:a,props:i,_owner:nl.current}}function Qm(e,t){return{$$typeof:Ii,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ii}function Xm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vc=/\/+/g;function Za(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xm(""+e.key):t.toString(36)}function fo(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 Ii:case zm:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Za(a,0):r,yc(i)?(n="",e!=null&&(n=e.replace(vc,"$&/")+"/"),fo(i,t,n,"",function(s){return s})):i!=null&&(rl(i)&&(i=Qm(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(vc,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",yc(e))for(var u=0;u<e.length;u++){o=e[u];var l=r+Za(o,u);a+=fo(o,t,n,l,i)}else if(l=Km(e),typeof l=="function")for(e=l.call(e),u=0;!(o=e.next()).done;)o=o.value,l=r+Za(o,u++),a+=fo(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 Di(e,t,n){if(e==null)return e;var r=[],i=0;return fo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Jm(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},po={transition:null},Zm={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:po,ReactCurrentOwner:nl};function Cd(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Di,forEach:function(e,t,n){Di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Di(e,function(){t++}),t},toArray:function(e){return Di(e,function(t){return t})||[]},only:function(e){if(!rl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=Lr;W.Fragment=$m;W.Profiler=Um;W.PureComponent=el;W.StrictMode=Vm;W.Suspense=Gm;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zm;W.act=Cd;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=wd({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=nl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)bd.call(t,l)&&!xd.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:Ii,type:e.type,key:i,ref:o,props:r,_owner:a}};W.createContext=function(e){return e={$$typeof:Bm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:qm,_context:e},e.Consumer=e};W.createElement=Od;W.createFactory=function(e){var t=Od.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:Hm,render:e}};W.isValidElement=rl;W.lazy=function(e){return{$$typeof:Ym,_payload:{_status:-1,_result:e},_init:Jm}};W.memo=function(e,t){return{$$typeof:Wm,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=po.transition;po.transition={};try{e()}finally{po.transition=t}};W.unstable_act=Cd;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";gd.exports=W;var k=gd.exports;const H=wa(k),gc=Am({__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 ey=k,ty=Symbol.for("react.element"),ny=Symbol.for("react.fragment"),ry=Object.prototype.hasOwnProperty,iy=ey.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oy={key:!0,ref:!0,__self:!0,__source:!0};function Pd(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)ry.call(t,r)&&!oy.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:ty,type:e,key:o,ref:a,props:i,_owner:iy.current}}Sa.Fragment=ny;Sa.jsx=Pd;Sa.jsxs=Pd;vd.exports=Sa;var _=vd.exports,Ds={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 ay="handshake";ge.HANDSHAKE=ay;const sy="handshake-reply";ge.HANDSHAKE_REPLY=sy;const uy="call";ge.CALL=uy;const ly="reply";ge.REPLY=ly;const cy="fulfilled";ge.FULFILLED=cy;const fy="rejected";ge.REJECTED=fy;const dy="message";ge.MESSAGE=dy;const py="DataCloneError";ge.DATA_CLONE_ERROR=py;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 hy="ConnectionDestroyed";mt.ERR_CONNECTION_DESTROYED=hy;const my="ConnectionTimeout";mt.ERR_CONNECTION_TIMEOUT=my;const yy="NotInIframe";mt.ERR_NOT_IN_IFRAME=yy;const vy="NoIframeSrc";mt.ERR_NO_IFRAME_SRC=vy;var As={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})(As,As.exports);var gy=As.exports,zs={exports:{}},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.deserializeError=Mn.serializeError=void 0;const _y=e=>{let t=e.name,n=e.message,r=e.stack;return{name:t,message:n,stack:r}};Mn.serializeError=_y;const wy=e=>{const t=new Error;return Object.keys(e).forEach(n=>t[n]=e[n]),t};Mn.deserializeError=wy;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=Mn,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})(zs,zs.exports);var Sy=zs.exports,$s={exports:{}},Vs={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})(Vs,Vs.exports);var Ey=Vs.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=mt,i=a(Ey),o=Mn;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})($s,$s.exports);var by=$s.exports,Us={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})(Us,Us.exports);var xy=Us.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=mt,i=l(gy),o=l(Sy),a=l(by),u=l(xy);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})(Ds,Ds.exports);var Oy=Ds.exports;const Cy=wa(Oy);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 _c(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 es(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=Ty(i),u=function(l){t(r,Ct(Ct(Ct({},i),l),a))};return u(o),u}};return n.mode=e,n}function il(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 Py(){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 Ty=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,Py()):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}},ky=Wt("renderAssetSource",function(e,t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,t)}),Iy=Wt("renderConfigScreen",function(e,t){e.renderConfigScreen&&e.renderConfigScreen(t)}),Ly=Wt("renderFieldExtension",function(e,t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,t)}),jy=Wt("renderItemCollectionOutlet",function(e,t){e.renderItemCollectionOutlet&&e.renderItemCollectionOutlet(t.itemCollectionOutletId,t)}),Ry=Wt("renderItemFormOutlet",function(e,t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,t)}),Ny=il("renderItemFormSidebar",function(e,t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,t)}),Fy=Wt("renderItemFormSidebarPanel",function(e,t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,t)}),My=Wt("renderManualFieldExtensionConfigScreen",function(e,t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,t)}),Dy=Wt("renderModal",function(e,t){e.renderModal&&e.renderModal(t.modalId,t)}),Ay=il("renderPage",function(e,t){e.renderPage&&e.renderPage(t.pageId,t)}),zy=il("renderUploadSidebar",function(e,t){e.renderUploadSidebar&&e.renderUploadSidebar(t.sidebarId,t)}),$y=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)},Vy=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())})},Uy=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}}},wc=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 qy(){return Vy(this,arguments,void 0,function(e){var t,n,r,i,o,a,u,l,s,c,d,f;return e===void 0&&(e={}),Uy(this,function(h){switch(h.label){case 0:return t=null,n=null,r=nt(nt({},e),{overrideFieldExtensions:es(e.overrideFieldExtensions),customMarksForStructuredTextField:es(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:es(e.customBlockStylesForStructuredTextField)}),i=Cy({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,wc(wc([],v,!1),[nt(nt(nt(nt({},_c(o,["getSettings","setHeight"])),_c(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:ky,renderConfigScreen:Iy,renderFieldExtension:Ly,renderItemCollectionOutlet:jy,renderItemFormOutlet:Ry,renderItemFormSidebar:Ny,renderItemFormSidebarPanel:Fy,renderManualFieldExtensionConfigScreen:My,renderModal:Dy,renderPage:Ay,renderUploadSidebar:zy,renderUploadSidebarPanel:$y},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 Td={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})()})(Td);var By=Td.exports;const It=wa(By),Hy="_button_474wk_1",Gy="_disabled_474wk_30",Wy="_fullWidth_474wk_118",Yy="_button__leftIcon_474wk_124",Ky="_button__rightIcon_474wk_125",wn={button:Hy,disabled:Gy,"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:Wy,button__leftIcon:Yy,button__rightIcon:Ky};function Ln(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(wn.button,wn["buttonType-".concat(a)],wn["buttonSize-".concat(l)],(t={},t[wn.disabled]=i,t[wn.fullWidth]=s,t),r),disabled:i,onClick:c,style:d},f&&H.createElement("span",{className:wn.button__leftIcon},f),n&&H.createElement("span",null,n),h&&H.createElement("span",{className:wn.button__rightIcon},h))}var qs=function(){return qs=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},qs.apply(this,arguments)};function Sc(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())})}function Qy(e,t){return t===void 0&&(t=!1),qs({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(Sc(i)),o],["--".concat(Sc("".concat(i,"RgbComponents"))),((r=o.match(/rgb\((\d+, \d+, \d+)\)/))===null||r===void 0?void 0:r[1])||void 0]]})))}const Xy="_themeVariables_ovgoa_1",Jy="_canvas_ovgoa_68",Ec={themeVariables:Xy,canvas:Jy};var Zy=k.createContext(null);function kd(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(Zy.Provider,{value:t},H.createElement("div",{className:It(Ec.themeVariables,Ec.canvas),style:Qy(t)},n))}var Id={exports:{}},Je={},Ld={exports:{}},jd={};/**
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}}}})(jd);Ld.exports=jd;var ev=Ld.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 tv=k,Xe=ev;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 Rd=new Set,ui={};function Bn(e,t){br(e,t),br(e+"Capture",t)}function br(e,t){for(ui[e]=t,e=0;e<t.length;e++)Rd.add(t[e])}var Ut=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bs=Object.prototype.hasOwnProperty,nv=/^[: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]*$/,bc={},xc={};function rv(e){return Bs.call(xc,e)?!0:Bs.call(bc,e)?!1:nv.test(e)?xc[e]=!0:(bc[e]=!0,!1)}function iv(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 ov(e,t,n,r){if(t===null||typeof t>"u"||iv(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 ol=/[\-:]([a-z])/g;function al(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(ol,al);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(ol,al);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(ol,al);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 sl(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")&&(ov(t,n,i,r)&&(n=null),r||i===null?rv(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=tv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ai=Symbol.for("react.element"),Kn=Symbol.for("react.portal"),Qn=Symbol.for("react.fragment"),ul=Symbol.for("react.strict_mode"),Hs=Symbol.for("react.profiler"),Nd=Symbol.for("react.provider"),Fd=Symbol.for("react.context"),ll=Symbol.for("react.forward_ref"),Gs=Symbol.for("react.suspense"),Ws=Symbol.for("react.suspense_list"),cl=Symbol.for("react.memo"),Xt=Symbol.for("react.lazy"),Md=Symbol.for("react.offscreen"),Oc=Symbol.iterator;function Fr(e){return e===null||typeof e!="object"?null:(e=Oc&&e[Oc]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,ts;function Wr(e){if(ts===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ts=t&&t[1]||""}return`
38
+ `+ts+e}var ns=!1;function rs(e,t){if(!e||ns)return"";ns=!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{ns=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wr(e):""}function av(e){switch(e.tag){case 5:return Wr(e.type);case 16:return Wr("Lazy");case 13:return Wr("Suspense");case 19:return Wr("SuspenseList");case 0:case 2:case 15:return e=rs(e.type,!1),e;case 11:return e=rs(e.type.render,!1),e;case 1:return e=rs(e.type,!0),e;default:return""}}function Ys(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 Hs:return"Profiler";case ul:return"StrictMode";case Gs:return"Suspense";case Ws:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fd:return(e.displayName||"Context")+".Consumer";case Nd:return(e._context.displayName||"Context")+".Provider";case ll:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cl:return t=e.displayName||null,t!==null?t:Ys(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return Ys(e(t))}catch{}}return null}function sv(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 Ys(t);case 8:return t===ul?"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 Dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uv(e){var t=Dd(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 zi(e){e._valueTracker||(e._valueTracker=uv(e))}function Ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lo(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 Ks(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cc(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 zd(e,t){t=t.checked,t!=null&&sl(e,"checked",t,!1)}function Qs(e,t){zd(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")?Xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xs(e,t.type,pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pc(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 Xs(e,t,n){(t!=="number"||Lo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function ur(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 Js(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Tc(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(Yr(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 $d(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 kc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vd(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 Zs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $i,Ud=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($i=$i||document.createElement("div"),$i.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$i.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={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},lv=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){lv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function qd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function Bd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=qd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cv=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 eu(e,t){if(t){if(cv[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 tu(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 nu=null;function fl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ru=null,lr=null,cr=null;function Ic(e){if(e=Ri(e)){if(typeof ru!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Ca(t),ru(e.stateNode,e.type,t))}}function Hd(e){lr?cr?cr.push(e):cr=[e]:lr=e}function Gd(){if(lr){var e=lr,t=cr;if(cr=lr=null,Ic(e),t)for(e=0;e<t.length;e++)Ic(t[e])}}function Wd(e,t){return e(t)}function Yd(){}var is=!1;function Kd(e,t,n){if(is)return e(t,n);is=!0;try{return Wd(e,t,n)}finally{is=!1,(lr!==null||cr!==null)&&(Yd(),Gd())}}function ci(e,t){var n=e.stateNode;if(n===null)return null;var r=Ca(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 iu=!1;if(Ut)try{var Mr={};Object.defineProperty(Mr,"passive",{get:function(){iu=!0}}),window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{iu=!1}function fv(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 Zr=!1,jo=null,Ro=!1,ou=null,dv={onError:function(e){Zr=!0,jo=e}};function pv(e,t,n,r,i,o,a,u,l){Zr=!1,jo=null,fv.apply(dv,arguments)}function hv(e,t,n,r,i,o,a,u,l){if(pv.apply(this,arguments),Zr){if(Zr){var s=jo;Zr=!1,jo=null}else throw Error(L(198));Ro||(Ro=!0,ou=s)}}function Hn(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 Qd(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 Lc(e){if(Hn(e)!==e)throw Error(L(188))}function mv(e){var t=e.alternate;if(!t){if(t=Hn(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 Lc(i),e;if(o===r)return Lc(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 Xd(e){return e=mv(e),e!==null?Jd(e):null}function Jd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jd(e);if(t!==null)return t;e=e.sibling}return null}var Zd=Xe.unstable_scheduleCallback,jc=Xe.unstable_cancelCallback,yv=Xe.unstable_shouldYield,vv=Xe.unstable_requestPaint,ve=Xe.unstable_now,gv=Xe.unstable_getCurrentPriorityLevel,dl=Xe.unstable_ImmediatePriority,ep=Xe.unstable_UserBlockingPriority,No=Xe.unstable_NormalPriority,_v=Xe.unstable_LowPriority,tp=Xe.unstable_IdlePriority,Ea=null,Pt=null;function wv(e){if(Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(Ea,e,void 0,(e.current.flags&128)===128)}catch{}}var yt=Math.clz32?Math.clz32:bv,Sv=Math.log,Ev=Math.LN2;function bv(e){return e>>>=0,e===0?32:31-(Sv(e)/Ev|0)|0}var Vi=64,Ui=4194304;function Kr(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 Fo(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=Kr(u):(o&=a,o!==0&&(r=Kr(o)))}else a=n&~i,a!==0?r=Kr(a):o!==0&&(r=Kr(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 xv(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 Ov(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]=xv(u,t)):l<=t&&(e.expiredLanes|=u),o&=~u}}function au(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function np(){var e=Vi;return Vi<<=1,!(Vi&4194240)&&(Vi=64),e}function os(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Li(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 Cv(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 pl(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 rp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ip,hl,op,ap,sp,su=!1,qi=[],on=null,an=null,sn=null,fi=new Map,di=new Map,en=[],Pv="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 Rc(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":fi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(t.pointerId)}}function Dr(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=Ri(t),t!==null&&hl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tv(e,t,n,r,i){switch(t){case"focusin":return on=Dr(on,e,t,n,r,i),!0;case"dragenter":return an=Dr(an,e,t,n,r,i),!0;case"mouseover":return sn=Dr(sn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return fi.set(o,Dr(fi.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,di.set(o,Dr(di.get(o)||null,e,t,n,r,i)),!0}return!1}function up(e){var t=Pn(e.target);if(t!==null){var n=Hn(t);if(n!==null){if(t=n.tag,t===13){if(t=Qd(n),t!==null){e.blockedOn=t,sp(e.priority,function(){op(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 ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nu=r,n.target.dispatchEvent(r),nu=null}else return t=Ri(n),t!==null&&hl(t),e.blockedOn=n,!1;t.shift()}return!0}function Nc(e,t,n){ho(e)&&n.delete(t)}function kv(){su=!1,on!==null&&ho(on)&&(on=null),an!==null&&ho(an)&&(an=null),sn!==null&&ho(sn)&&(sn=null),fi.forEach(Nc),di.forEach(Nc)}function Ar(e,t){e.blockedOn===t&&(e.blockedOn=null,su||(su=!0,Xe.unstable_scheduleCallback(Xe.unstable_NormalPriority,kv)))}function pi(e){function t(i){return Ar(i,e)}if(0<qi.length){Ar(qi[0],e);for(var n=1;n<qi.length;n++){var r=qi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(on!==null&&Ar(on,e),an!==null&&Ar(an,e),sn!==null&&Ar(sn,e),fi.forEach(t),di.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);)up(n),n.blockedOn===null&&en.shift()}var fr=Yt.ReactCurrentBatchConfig,Mo=!0;function Iv(e,t,n,r){var i=te,o=fr.transition;fr.transition=null;try{te=1,ml(e,t,n,r)}finally{te=i,fr.transition=o}}function Lv(e,t,n,r){var i=te,o=fr.transition;fr.transition=null;try{te=4,ml(e,t,n,r)}finally{te=i,fr.transition=o}}function ml(e,t,n,r){if(Mo){var i=uu(e,t,n,r);if(i===null)ms(e,t,r,Do,n),Rc(e,r);else if(Tv(i,e,t,n,r))r.stopPropagation();else if(Rc(e,r),t&4&&-1<Pv.indexOf(e)){for(;i!==null;){var o=Ri(i);if(o!==null&&ip(o),o=uu(e,t,n,r),o===null&&ms(e,t,r,Do,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ms(e,t,r,null,n)}}var Do=null;function uu(e,t,n,r){if(Do=null,e=fl(r),e=Pn(e),e!==null)if(t=Hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Qd(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 Do=e,null}function lp(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(gv()){case dl:return 1;case ep:return 4;case No:case _v:return 16;case tp:return 536870912;default:return 16}default:return 16}}var nn=null,yl=null,mo=null;function cp(){if(mo)return mo;var e,t=yl,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 mo=i.slice(e,1<r?1-r:void 0)}function yo(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 Bi(){return!0}function Fc(){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)?Bi:Fc,this.isPropagationStopped=Fc,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=Bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vl=Ze(jr),ji=pe({},jr,{view:0,detail:0}),jv=Ze(ji),as,ss,zr,ba=pe({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gl,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!==zr&&(zr&&e.type==="mousemove"?(as=e.screenX-zr.screenX,ss=e.screenY-zr.screenY):ss=as=0,zr=e),as)},movementY:function(e){return"movementY"in e?e.movementY:ss}}),Mc=Ze(ba),Rv=pe({},ba,{dataTransfer:0}),Nv=Ze(Rv),Fv=pe({},ji,{relatedTarget:0}),us=Ze(Fv),Mv=pe({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),Dv=Ze(Mv),Av=pe({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zv=Ze(Av),$v=pe({},jr,{data:0}),Dc=Ze($v),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uv={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"},qv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qv[e])?!!t[e]:!1}function gl(){return Bv}var Hv=pe({},ji,{key:function(e){if(e.key){var t=Vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Uv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gl,charCode:function(e){return e.type==="keypress"?yo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gv=Ze(Hv),Wv=pe({},ba,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=Ze(Wv),Yv=pe({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gl}),Kv=Ze(Yv),Qv=pe({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xv=Ze(Qv),Jv=pe({},ba,{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}),Zv=Ze(Jv),eg=[9,13,27,32],_l=Ut&&"CompositionEvent"in window,ei=null;Ut&&"documentMode"in document&&(ei=document.documentMode);var tg=Ut&&"TextEvent"in window&&!ei,fp=Ut&&(!_l||ei&&8<ei&&11>=ei),zc=" ",$c=!1;function dp(e,t){switch(e){case"keyup":return eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function ng(e,t){switch(e){case"compositionend":return pp(t);case"keypress":return t.which!==32?null:($c=!0,zc);case"textInput":return e=t.data,e===zc&&$c?null:e;default:return null}}function rg(e,t){if(Xn)return e==="compositionend"||!_l&&dp(e,t)?(e=cp(),mo=yl=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 fp&&t.locale!=="ko"?null:t.data;default:return null}}var ig={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 Vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ig[e.type]:t==="textarea"}function hp(e,t,n,r){Hd(r),t=Ao(t,"onChange"),0<t.length&&(n=new vl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ti=null,hi=null;function og(e){Op(e,0)}function xa(e){var t=er(e);if(Ad(t))return e}function ag(e,t){if(e==="change")return t}var mp=!1;if(Ut){var ls;if(Ut){var cs="oninput"in document;if(!cs){var Uc=document.createElement("div");Uc.setAttribute("oninput","return;"),cs=typeof Uc.oninput=="function"}ls=cs}else ls=!1;mp=ls&&(!document.documentMode||9<document.documentMode)}function qc(){ti&&(ti.detachEvent("onpropertychange",yp),hi=ti=null)}function yp(e){if(e.propertyName==="value"&&xa(hi)){var t=[];hp(t,hi,e,fl(e)),Kd(og,t)}}function sg(e,t,n){e==="focusin"?(qc(),ti=t,hi=n,ti.attachEvent("onpropertychange",yp)):e==="focusout"&&qc()}function ug(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(hi)}function lg(e,t){if(e==="click")return xa(t)}function cg(e,t){if(e==="input"||e==="change")return xa(t)}function fg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:fg;function mi(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(!Bs.call(t,i)||!gt(e[i],t[i]))return!1}return!0}function Bc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hc(e,t){var n=Bc(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=Bc(n)}}function vp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gp(){for(var e=window,t=Lo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lo(e.document)}return t}function wl(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 dg(e){var t=gp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vp(n.ownerDocument.documentElement,n)){if(r!==null&&wl(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=Hc(n,o);var a=Hc(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 pg=Ut&&"documentMode"in document&&11>=document.documentMode,Jn=null,lu=null,ni=null,cu=!1;function Gc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cu||Jn==null||Jn!==Lo(r)||(r=Jn,"selectionStart"in r&&wl(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}),ni&&mi(ni,r)||(ni=r,r=Ao(lu,"onSelect"),0<r.length&&(t=new vl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Jn)))}function Hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zn={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionend:Hi("Transition","TransitionEnd")},fs={},_p={};Ut&&(_p=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 Oa(e){if(fs[e])return fs[e];if(!Zn[e])return e;var t=Zn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _p)return fs[e]=t[n];return e}var wp=Oa("animationend"),Sp=Oa("animationiteration"),Ep=Oa("animationstart"),bp=Oa("transitionend"),xp=new Map,Wc="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){xp.set(e,t),Bn(t,[e])}for(var ds=0;ds<Wc.length;ds++){var ps=Wc[ds],hg=ps.toLowerCase(),mg=ps[0].toUpperCase()+ps.slice(1);mn(hg,"on"+mg)}mn(wp,"onAnimationEnd");mn(Sp,"onAnimationIteration");mn(Ep,"onAnimationStart");mn("dblclick","onDoubleClick");mn("focusin","onFocus");mn("focusout","onBlur");mn(bp,"onTransitionEnd");br("onMouseEnter",["mouseout","mouseover"]);br("onMouseLeave",["mouseout","mouseover"]);br("onPointerEnter",["pointerout","pointerover"]);br("onPointerLeave",["pointerout","pointerover"]);Bn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Bn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Bn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Bn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Bn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Bn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="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(" "),yg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function Yc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hv(r,t,void 0,e),e.currentTarget=null}function Op(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;Yc(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;Yc(i,u,s),o=l}}}if(Ro)throw e=ou,Ro=!1,ou=null,e}function se(e,t){var n=t[mu];n===void 0&&(n=t[mu]=new Set);var r=e+"__bubble";n.has(r)||(Cp(t,e,2,!1),n.add(r))}function hs(e,t,n){var r=0;t&&(r|=4),Cp(n,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function yi(e){if(!e[Gi]){e[Gi]=!0,Rd.forEach(function(n){n!=="selectionchange"&&(yg.has(n)||hs(n,!1,e),hs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,hs("selectionchange",!1,t))}}function Cp(e,t,n,r){switch(lp(t)){case 1:var i=Iv;break;case 4:i=Lv;break;default:i=ml}n=i.bind(null,t,n,e),i=void 0,!iu||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 ms(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=Pn(u),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}u=u.parentNode}}r=r.return}Kd(function(){var s=o,c=fl(n),d=[];e:{var f=xp.get(e);if(f!==void 0){var h=vl,p=e;switch(e){case"keypress":if(yo(n)===0)break e;case"keydown":case"keyup":h=Gv;break;case"focusin":p="focus",h=us;break;case"focusout":p="blur",h=us;break;case"beforeblur":case"afterblur":h=us;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=Mc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Nv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Kv;break;case wp:case Sp:case Ep:h=Dv;break;case bp:h=Xv;break;case"scroll":h=jv;break;case"wheel":h=Zv;break;case"copy":case"cut":case"paste":h=zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ac}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=ci(y,m),w!=null&&v.push(vi(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!==nu&&(p=n.relatedTarget||n.fromElement)&&(Pn(p)||p[qt]))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?Pn(p):null,p!==null&&(E=Hn(p),p!==E||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=s),h!==p)){if(v=Mc,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ac,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,Pn(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&&Kc(d,f,h,v,!1),p!==null&&E!==null&&Kc(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=ag;else if(Vc(f))if(mp)O=cg;else{O=ug;var b=sg}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(O=lg);if(O&&(O=O(e,s))){hp(d,O,n,c);break e}b&&b(e,f,s),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&Xs(f,"number",f.value)}switch(b=s?er(s):window,e){case"focusin":(Vc(b)||b.contentEditable==="true")&&(Jn=b,lu=s,ni=null);break;case"focusout":ni=lu=Jn=null;break;case"mousedown":cu=!0;break;case"contextmenu":case"mouseup":case"dragend":cu=!1,Gc(d,n,c);break;case"selectionchange":if(pg)break;case"keydown":case"keyup":Gc(d,n,c)}var x;if(_l)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?dp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(fp&&n.locale!=="ko"&&(Xn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Xn&&(x=cp()):(nn=c,yl="value"in nn?nn.value:nn.textContent,Xn=!0)),b=Ao(s,P),0<b.length&&(P=new Dc(P,e,null,n,c),d.push({event:P,listeners:b}),x?P.data=x:(x=pp(n),x!==null&&(P.data=x)))),(x=tg?ng(e,n):rg(e,n))&&(s=Ao(s,"onBeforeInput"),0<s.length&&(c=new Dc("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:s}),c.data=x))}Op(d,t)})}function vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ao(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ci(e,n),o!=null&&r.unshift(vi(e,o,i)),o=ci(e,t),o!=null&&r.push(vi(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 Kc(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=ci(n,o),l!=null&&a.unshift(vi(n,l,u))):i||(l=ci(n,o),l!=null&&a.push(vi(n,l,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var vg=/\r\n?/g,gg=/\u0000|\uFFFD/g;function Qc(e){return(typeof e=="string"?e:""+e).replace(vg,`
42
+ `).replace(gg,"")}function Wi(e,t,n){if(t=Qc(t),Qc(e)!==t&&n)throw Error(L(425))}function zo(){}var fu=null,du=null;function pu(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 hu=typeof setTimeout=="function"?setTimeout:void 0,_g=typeof clearTimeout=="function"?clearTimeout:void 0,Xc=typeof Promise=="function"?Promise:void 0,wg=typeof queueMicrotask=="function"?queueMicrotask:typeof Xc<"u"?function(e){return Xc.resolve(null).then(e).catch(Sg)}:hu;function Sg(e){setTimeout(function(){throw e})}function ys(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),pi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);pi(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 Jc(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 Rr=Math.random().toString(36).slice(2),xt="__reactFiber$"+Rr,gi="__reactProps$"+Rr,qt="__reactContainer$"+Rr,mu="__reactEvents$"+Rr,Eg="__reactListeners$"+Rr,bg="__reactHandles$"+Rr;function Pn(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qt]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jc(e);e!==null;){if(n=e[xt])return n;e=Jc(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[xt]||e[qt],!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 Ca(e){return e[gi]||null}var yu=[],tr=-1;function yn(e){return{current:e}}function ue(e){0>tr||(e.current=yu[tr],yu[tr]=null,tr--)}function ae(e,t){tr++,yu[tr]=e.current,e.current=t}var hn={},Ne=yn(hn),qe=yn(!1),Dn=hn;function xr(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 $o(){ue(qe),ue(Ne)}function Zc(e,t,n){if(Ne.current!==hn)throw Error(L(168));ae(Ne,t),ae(qe,n)}function Pp(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,sv(e)||"Unknown",i));return pe({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Dn=Ne.current,ae(Ne,e),ae(qe,qe.current),!0}function ef(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Pp(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,ue(qe),ue(Ne),ae(Ne,e)):ue(qe),ae(qe,n)}var Dt=null,Pa=!1,vs=!1;function Tp(e){Dt===null?Dt=[e]:Dt.push(e)}function xg(e){Pa=!0,Tp(e)}function vn(){if(!vs&&Dt!==null){vs=!0;var e=0,t=te;try{var n=Dt;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,Pa=!1}catch(i){throw Dt!==null&&(Dt=Dt.slice(e+1)),Zd(dl,vn),i}finally{te=t,vs=!1}}return null}var nr=[],rr=0,Uo=null,qo=0,ot=[],at=0,An=null,At=1,zt="";function bn(e,t){nr[rr++]=qo,nr[rr++]=Uo,Uo=e,qo=t}function kp(e,t,n){ot[at++]=At,ot[at++]=zt,ot[at++]=An,An=e;var r=At;e=zt;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,At=1<<32-yt(t)+i|n<<i|r,zt=o+e}else At=1<<o|n<<i|r,zt=e}function Sl(e){e.return!==null&&(bn(e,1),kp(e,1,0))}function El(e){for(;e===Uo;)Uo=nr[--rr],nr[rr]=null,qo=nr[--rr],nr[rr]=null;for(;e===An;)An=ot[--at],ot[at]=null,zt=ot[--at],ot[at]=null,At=ot[--at],ot[at]=null}var Ke=null,Ye=null,le=!1,ht=null;function Ip(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 tf(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=An!==null?{id:At,overflow:zt}: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 vu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gu(e){if(le){var t=Ye;if(t){var n=t;if(!tf(e,t)){if(vu(e))throw Error(L(418));t=un(n.nextSibling);var r=Ke;t&&tf(e,t)?Ip(r,n):(e.flags=e.flags&-4097|2,le=!1,Ke=e)}}else{if(vu(e))throw Error(L(418));e.flags=e.flags&-4097|2,le=!1,Ke=e}}}function nf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ke=e}function Yi(e){if(e!==Ke)return!1;if(!le)return nf(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pu(e.type,e.memoizedProps)),t&&(t=Ye)){if(vu(e))throw Lp(),Error(L(418));for(;t;)Ip(e,t),t=un(t.nextSibling)}if(nf(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 Lp(){for(var e=Ye;e;)e=un(e.nextSibling)}function Or(){Ye=Ke=null,le=!1}function bl(e){ht===null?ht=[e]:ht.push(e)}var Og=Yt.ReactCurrentBatchConfig;function $r(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 Ki(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rf(e){var t=e._init;return t(e._payload)}function jp(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=xs(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&&rf(O)===y.type)?(w=i(y,g.props),w.ref=$r(m,y,g),w.return=m,w):(w=bo(g.type,g.key,g.props,null,m.mode,w),w.ref=$r(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=Os(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=Rn(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=xs(""+y,m.mode,g),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ai:return g=bo(y.type,y.key,y.props,null,m.mode,g),g.ref=$r(m,null,y),g.return=m,g;case Kn:return y=Os(y,m.mode,g),y.return=m,y;case Xt:var w=y._init;return d(m,w(y._payload),g)}if(Yr(y)||Fr(y))return y=Rn(y,m.mode,g,null),y.return=m,y;Ki(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 Ai: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(Yr(g)||Fr(g))return O!==null?null:c(m,y,g,w,null);Ki(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 Ai: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(Yr(w)||Fr(w))return m=m.get(g)||null,c(y,m,w,O,null);Ki(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&&bn(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&&bn(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&&bn(m,P),O}function v(m,y,g,w){var O=Fr(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&&bn(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&&bn(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&&bn(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 Ai: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&&rf(O)===b.type){n(m,b.sibling),y=i(b,g.props),y.ref=$r(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=Rn(g.props.children,m.mode,w,g.key),y.return=m,m=y):(w=bo(g.type,g.key,g.props,null,m.mode,w),w.ref=$r(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=Os(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(Yr(g))return p(m,y,g,w);if(Fr(g))return v(m,y,g,w);Ki(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=xs(g,m.mode,w),y.return=m,m=y),a(m)):n(m,y)}return E}var Cr=jp(!0),Rp=jp(!1),Bo=yn(null),Ho=null,ir=null,xl=null;function Ol(){xl=ir=Ho=null}function Cl(e){var t=Bo.current;ue(Bo),e._currentValue=t}function _u(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 dr(e,t){Ho=e,xl=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(xl!==e)if(e={context:e,memoizedValue:t,next:null},ir===null){if(Ho===null)throw Error(L(308));ir=e,Ho.dependencies={lanes:0,firstContext:e}}else ir=ir.next=e;return t}var Tn=null;function Pl(e){Tn===null?Tn=[e]:Tn.push(e)}function Np(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Pl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Bt(e,r)}function Bt(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 Tl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(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 $t(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,Bt(e,n)}return i=r.interleaved,i===null?(t.next=t,Pl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Bt(e,n)}function vo(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,pl(e,n)}}function of(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 Go(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);$n|=a,e.lanes=a,e.memoizedState=d}}function af(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 Ni={},Tt=yn(Ni),_i=yn(Ni),wi=yn(Ni);function kn(e){if(e===Ni)throw Error(L(174));return e}function kl(e,t){switch(ae(wi,t),ae(_i,e),ae(Tt,Ni),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zs(t,e)}ue(Tt),ae(Tt,t)}function Pr(){ue(Tt),ue(_i),ue(wi)}function Mp(e){kn(wi.current);var t=kn(Tt.current),n=Zs(t,e.type);t!==n&&(ae(_i,e),ae(Tt,n))}function Il(e){_i.current===e&&(ue(Tt),ue(_i))}var fe=yn(0);function Wo(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 gs=[];function Ll(){for(var e=0;e<gs.length;e++)gs[e]._workInProgressVersionPrimary=null;gs.length=0}var go=Yt.ReactCurrentDispatcher,_s=Yt.ReactCurrentBatchConfig,zn=0,de=null,Se=null,be=null,Yo=!1,ri=!1,Si=0,Cg=0;function Ie(){throw Error(L(321))}function jl(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 Rl(e,t,n,r,i,o){if(zn=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,go.current=e===null||e.memoizedState===null?Ig:Lg,e=n(r,i),ri){o=0;do{if(ri=!1,Si=0,25<=o)throw Error(L(301));o+=1,be=Se=null,t.updateQueue=null,go.current=jg,e=n(r,i)}while(ri)}if(go.current=Ko,t=Se!==null&&Se.next!==null,zn=0,be=Se=de=null,Yo=!1,t)throw Error(L(300));return e}function Nl(){var e=Si!==0;return Si=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?de.memoizedState=be=e:be=be.next=e,be}function ct(){if(Se===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=be===null?de.memoizedState:be.next;if(t!==null)be=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},be===null?de.memoizedState=be=e:be=be.next=e}return be}function Ei(e,t){return typeof t=="function"?t(e):t}function ws(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((zn&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,$n|=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,$n|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ss(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 Dp(){}function Ap(e,t){var n=de,r=ct(),i=t(),o=!gt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ue=!0),r=r.queue,Fl(Vp.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,bi(9,$p.bind(null,n,r,i,t),void 0,null),xe===null)throw Error(L(349));zn&30||zp(n,t,i)}return i}function zp(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 $p(e,t,n,r){t.value=n,t.getSnapshot=r,Up(t)&&qp(e)}function Vp(e,t,n){return n(function(){Up(t)&&qp(e)})}function Up(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function qp(e){var t=Bt(e,1);t!==null&&vt(t,e,1,-1)}function sf(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:Ei,lastRenderedState:e},t.queue=e,e=e.dispatch=kg.bind(null,de,e),[t.memoizedState,e]}function bi(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 Bp(){return ct().memoizedState}function _o(e,t,n,r){var i=St();de.flags|=e,i.memoizedState=bi(1|t,n,void 0,r===void 0?null:r)}function Ta(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&&jl(r,a.deps)){i.memoizedState=bi(t,n,o,r);return}}de.flags|=e,i.memoizedState=bi(1|t,n,o,r)}function uf(e,t){return _o(8390656,8,e,t)}function Fl(e,t){return Ta(2048,8,e,t)}function Hp(e,t){return Ta(4,2,e,t)}function Gp(e,t){return Ta(4,4,e,t)}function Wp(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 Yp(e,t,n){return n=n!=null?n.concat([e]):null,Ta(4,4,Wp.bind(null,t,e),n)}function Ml(){}function Kp(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qp(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xp(e,t,n){return zn&21?(gt(n,t)||(n=np(),de.lanes|=n,$n|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ue=!0),e.memoizedState=n)}function Pg(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=_s.transition;_s.transition={};try{e(!1),t()}finally{te=n,_s.transition=r}}function Jp(){return ct().memoizedState}function Tg(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zp(e))eh(t,n);else if(n=Np(e,t,n,r),n!==null){var i=De();vt(n,e,r,i),th(n,t,r)}}function kg(e,t,n){var r=fn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zp(e))eh(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,Pl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Np(e,t,i,r),n!==null&&(i=De(),vt(n,e,r,i),th(n,t,r))}}function Zp(e){var t=e.alternate;return e===de||t!==null&&t===de}function eh(e,t){ri=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function th(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pl(e,n)}}var Ko={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},Ig={readContext:lt,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:uf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_o(4194308,4,Wp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _o(4194308,4,e,t)},useInsertionEffect:function(e,t){return _o(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=Tg.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:sf,useDebugValue:Ml,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=sf(!1),t=e[0];return e=Pg.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(),xe===null)throw Error(L(349));zn&30||zp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,uf(Vp.bind(null,r,o,e),[e]),r.flags|=2048,bi(9,$p.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=St(),t=xe.identifierPrefix;if(le){var n=zt,r=At;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Si++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Cg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lg={readContext:lt,useCallback:Kp,useContext:lt,useEffect:Fl,useImperativeHandle:Yp,useInsertionEffect:Hp,useLayoutEffect:Gp,useMemo:Qp,useReducer:ws,useRef:Bp,useState:function(){return ws(Ei)},useDebugValue:Ml,useDeferredValue:function(e){var t=ct();return Xp(t,Se.memoizedState,e)},useTransition:function(){var e=ws(Ei)[0],t=ct().memoizedState;return[e,t]},useMutableSource:Dp,useSyncExternalStore:Ap,useId:Jp,unstable_isNewReconciler:!1},jg={readContext:lt,useCallback:Kp,useContext:lt,useEffect:Fl,useImperativeHandle:Yp,useInsertionEffect:Hp,useLayoutEffect:Gp,useMemo:Qp,useReducer:Ss,useRef:Bp,useState:function(){return Ss(Ei)},useDebugValue:Ml,useDeferredValue:function(e){var t=ct();return Se===null?t.memoizedState=e:Xp(t,Se.memoizedState,e)},useTransition:function(){var e=Ss(Ei)[0],t=ct().memoizedState;return[e,t]},useMutableSource:Dp,useSyncExternalStore:Ap,useId:Jp,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 wu(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 ka={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),i=fn(e),o=$t(r,i);o.payload=t,n!=null&&(o.callback=n),t=ln(e,o,i),t!==null&&(vt(t,e,i,r),vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),i=fn(e),o=$t(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),vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=fn(e),i=$t(n,r);i.tag=2,t!=null&&(i.callback=t),t=ln(e,i,r),t!==null&&(vt(t,e,r,n),vo(t,e,r))}};function lf(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?!mi(n,r)||!mi(i,o):!0}function nh(e,t,n){var r=!1,i=hn,o=t.contextType;return typeof o=="object"&&o!==null?o=lt(o):(i=Be(t)?Dn:Ne.current,r=t.contextTypes,o=(r=r!=null)?xr(e,i):hn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ka,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function cf(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&&ka.enqueueReplaceState(t,t.state,null)}function Su(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Tl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=lt(o):(o=Be(t)?Dn:Ne.current,i.context=xr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(wu(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&&ka.enqueueReplaceState(i,i.state,null),Go(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Tr(e,t){try{var n="",r=t;do n+=av(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 Es(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Eu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rg=typeof WeakMap=="function"?WeakMap:Map;function rh(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xo||(Xo=!0,ju=r),Eu(e,t)},n}function ih(e,t,n){n=$t(-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(){Eu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Eu(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 ff(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rg;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=Wg.bind(null,e,t,n),t.then(e,e))}function df(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 pf(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=$t(-1,1),t.tag=2,ln(n,t,1))),n.lanes|=1),e)}var Ng=Yt.ReactCurrentOwner,Ue=!1;function Me(e,t,n,r){t.child=e===null?Rp(t,null,n,r):Cr(t,e.child,n,r)}function hf(e,t,n,r,i){n=n.render;var o=t.ref;return dr(t,i),r=Rl(e,t,n,r,o,i),n=Nl(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(le&&n&&Sl(t),t.flags|=1,Me(e,t,r,i),t.child)}function mf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Bl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,oh(e,t,o,r,i)):(e=bo(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:mi,n(a,r)&&e.ref===t.ref)return Ht(e,t,i)}return t.flags|=1,e=dn(o,r),e.ref=t.ref,e.return=t,t.child=e}function oh(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(mi(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,Ht(e,t,i)}return bu(e,t,n,r,i)}function ah(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 sh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bu(e,t,n,r,i){var o=Be(n)?Dn:Ne.current;return o=xr(t,o),dr(t,i),n=Rl(e,t,n,r,o,i),r=Nl(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(le&&r&&Sl(t),t.flags|=1,Me(e,t,n,i),t.child)}function yf(e,t,n,r,i){if(Be(n)){var o=!0;Vo(t)}else o=!1;if(dr(t,i),t.stateNode===null)wo(e,t),nh(t,n,r),Su(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)?Dn:Ne.current,s=xr(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)&&cf(t,a,r,s),Jt=!1;var f=t.memoizedState;a.state=f,Go(t,r,a,i),l=t.memoizedState,u!==r||f!==l||qe.current||Jt?(typeof c=="function"&&(wu(t,n,c,r),l=t.memoizedState),(u=Jt||lf(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,Fp(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)?Dn:Ne.current,l=xr(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)&&cf(t,a,r,l),Jt=!1,f=t.memoizedState,a.state=f,Go(t,r,a,i);var p=t.memoizedState;u!==d||f!==p||qe.current||Jt?(typeof h=="function"&&(wu(t,n,h,r),p=t.memoizedState),(s=Jt||lf(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 xu(e,t,n,r,o,i)}function xu(e,t,n,r,i,o){sh(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&ef(t,n,!1),Ht(e,t,o);r=t.stateNode,Ng.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Cr(t,e.child,null,o),t.child=Cr(t,null,u,o)):Me(e,t,u,o),t.memoizedState=r.state,i&&ef(t,n,!0),t.child}function uh(e){var t=e.stateNode;t.pendingContext?Zc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zc(e,t.context,!1),kl(e,t.containerInfo)}function vf(e,t,n,r,i){return Or(),bl(i),t.flags|=256,Me(e,t,n,r),t.child}var Ou={dehydrated:null,treeContext:null,retryLane:0};function Cu(e){return{baseLanes:e,cachePool:null,transitions:null}}function lh(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 gu(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=ja(a,r,0,null),e=Rn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Cu(n),t.memoizedState=Ou,e):Dl(t,a));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Fg(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=Rn(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?Cu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Ou,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 Dl(e,t){return t=ja({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&bl(r),Cr(t,e.child,null,n),e=Dl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fg(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Es(Error(L(422))),Qi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ja({mode:"visible",children:r.children},i,0,null),o=Rn(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Cr(t,e.child,null,a),t.child.memoizedState=Cu(a),t.memoizedState=Ou,o);if(!(t.mode&1))return Qi(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=Es(o,r,void 0),Qi(e,t,a,r)}if(u=(a&e.childLanes)!==0,Ue||u){if(r=xe,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,Bt(e,i),vt(r,e,i,-1))}return ql(),r=Es(Error(L(421))),Qi(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Yg.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ye=un(i.nextSibling),Ke=t,le=!0,ht=null,e!==null&&(ot[at++]=At,ot[at++]=zt,ot[at++]=An,At=e.id,zt=e.overflow,An=t),t=Dl(t,r.children),t.flags|=4096,t)}function gf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_u(e.return,t,n)}function bs(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 ch(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&&gf(e,n,t);else if(e.tag===19)gf(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&&Wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bs(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&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bs(t,!0,n,null,o);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function wo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$n|=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 Mg(e,t,n){switch(t.tag){case 3:uh(t),Or();break;case 5:Mp(t);break;case 1:Be(t.type)&&Vo(t);break;case 4:kl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(Bo,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?lh(e,t,n):(ae(fe,fe.current&1),e=Ht(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 ch(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,ah(e,t,n)}return Ht(e,t,n)}var fh,Pu,dh,ph;fh=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}};Pu=function(){};dh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,kn(Tt.current);var o=null;switch(n){case"input":i=Ks(e,i),r=Ks(e,r),o=[];break;case"select":i=pe({},i,{value:void 0}),r=pe({},r,{value:void 0}),o=[];break;case"textarea":i=Js(e,i),r=Js(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zo)}eu(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"&&(ui.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"&&(ui.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)}};ph=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vr(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 Dg(e,t,n){var r=t.pendingProps;switch(El(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)&&$o(),Le(t),null;case 3:return r=t.stateNode,Pr(),ue(qe),ue(Ne),Ll(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ht!==null&&(Fu(ht),ht=null))),Pu(e,t),Le(t),null;case 5:Il(t);var i=kn(wi.current);if(n=t.type,e!==null&&t.stateNode!=null)dh(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=kn(Tt.current),Yi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[xt]=t,r[gi]=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<Qr.length;i++)se(Qr[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":Cc(r,o),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},se("invalid",r);break;case"textarea":Tc(r,o),se("invalid",r)}eu(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&&Wi(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Wi(r.textContent,u,e),i=["children",""+u]):ui.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&se("scroll",r)}switch(n){case"input":zi(r),Pc(r,o,!0);break;case"textarea":zi(r),kc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=zo)}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=Vd(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[xt]=t,e[gi]=r,fh(e,t,!1,!1),t.stateNode=e;e:{switch(a=tu(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<Qr.length;i++)se(Qr[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":Cc(e,r),i=Ks(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":Tc(e,r),i=Js(e,r),se("invalid",e);break;default:i=r}eu(n,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var l=u[o];o==="style"?Bd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ud(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&li(e,l):typeof l=="number"&&li(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ui.hasOwnProperty(o)?l!=null&&o==="onScroll"&&se("scroll",e):l!=null&&sl(e,o,l,a))}switch(n){case"input":zi(e),Pc(e,r,!1);break;case"textarea":zi(e),kc(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?ur(e,!!r.multiple,o,!1):r.defaultValue!=null&&ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=zo)}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)ph(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=kn(wi.current),kn(Tt.current),Yi(t)){if(r=t.stateNode,n=t.memoizedProps,r[xt]=t,(o=r.nodeValue!==n)&&(e=Ke,e!==null))switch(e.tag){case 3:Wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[xt]=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))Lp(),Or(),t.flags|=98560,o=!1;else if(o=Yi(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[xt]=t}else Or(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Le(t),o=!1}else ht!==null&&(Fu(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):ql())),t.updateQueue!==null&&(t.flags|=4),Le(t),null);case 4:return Pr(),Pu(e,t),e===null&&yi(t.stateNode.containerInfo),Le(t),null;case 10:return Cl(t.type._context),Le(t),null;case 17:return Be(t.type)&&$o(),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)Vr(o,!1);else{if(Ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Wo(e),a!==null){for(t.flags|=128,Vr(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()>kr&&(t.flags|=128,r=!0,Vr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!le)return Le(t),null}else 2*ve()-o.renderingStartTime>kr&&n!==1073741824&&(t.flags|=128,r=!0,Vr(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 Ul(),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 Ag(e,t){switch(El(t),t.tag){case 1:return Be(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pr(),ue(qe),ue(Ne),Ll(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Il(t),null;case 13:if(ue(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(fe),null;case 4:return Pr(),null;case 10:return Cl(t.type._context),null;case 22:case 23:return Ul(),null;case 24:return null;default:return null}}var Xi=!1,Re=!1,zg=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 Tu(e,t,n){try{n()}catch(r){me(e,t,r)}}var _f=!1;function $g(e,t){if(fu=Mo,e=gp(),wl(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(du={focusedElem:e,selectionRange:n},Mo=!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=_f,_f=!1,p}function ii(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&&Tu(t,n,o)}i=i.next}while(i!==r)}}function Ia(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 ku(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 hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xt],delete t[gi],delete t[mu],delete t[Eg],delete t[bg])),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 mh(e){return e.tag===5||e.tag===3||e.tag===4}function wf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(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 Iu(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=zo));else if(r!==4&&(e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}function Lu(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(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}var Ce=null,pt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)yh(e,t,n),n=n.sibling}function yh(e,t,n){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(Ea,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?ys(e.parentNode,n):e.nodeType===1&&ys(e,n),pi(e)):ys(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)&&Tu(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 Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zg),t.forEach(function(r){var i=Kg.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));yh(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;)vh(t,e),t=t.sibling}function vh(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{ii(3,e,e.return),Ia(3,e)}catch(v){me(e,e.return,v)}try{ii(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{li(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&&zd(i,o),tu(u,a);var s=tu(u,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?Bd(i,d):c==="dangerouslySetInnerHTML"?Ud(i,d):c==="children"?li(i,d):sl(i,c,d,s)}switch(u){case"input":Qs(i,o);break;case"textarea":$d(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?ur(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?ur(i,!!o.multiple,o.defaultValue,!0):ur(i,!!o.multiple,o.multiple?[]:"",!1))}i[gi]=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{pi(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||($l=ve())),r&4&&Sf(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:ii(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){bf(d);continue}}h!==null?(h.return=f,F=h):bf(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=qd("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&&Sf(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(mh(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&&(li(i,""),r.flags&=-33);var o=wf(e);Lu(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,u=wf(e);Iu(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 Vg(e,t,n){F=e,gh(e)}function gh(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||Xi;if(!a){var u=i.alternate,l=u!==null&&u.memoizedState!==null||Re;u=Xi;var s=Re;if(Xi=a,(Re=l)&&!s)for(F=i;F!==null;)a=F,l=a.child,a.tag===22&&a.memoizedState!==null?xf(i):l!==null?(l.return=a,F=l):xf(i);for(;o!==null;)F=o,gh(o),o=o.sibling;F=i,Xi=u,Re=s}Ef(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,F=o):Ef(e)}}function Ef(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||Ia(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&&af(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}af(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&&pi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Re||t.flags&512&&ku(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 bf(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 xf(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ia(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{ku(t)}catch(l){me(t,o,l)}break;case 5:var a=t.return;try{ku(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 Ug=Math.ceil,Qo=Yt.ReactCurrentDispatcher,Al=Yt.ReactCurrentOwner,ut=Yt.ReactCurrentBatchConfig,Q=0,xe=null,we=null,Te=0,We=0,ar=yn(0),Ee=0,xi=null,$n=0,La=0,zl=0,oi=null,Ve=null,$l=0,kr=1/0,Ft=null,Xo=!1,ju=null,cn=null,Ji=!1,rn=null,Jo=0,ai=0,Ru=null,So=-1,Eo=0;function De(){return Q&6?ve():So!==-1?So:So=ve()}function fn(e){return e.mode&1?Q&2&&Te!==0?Te&-Te:Og.transition!==null?(Eo===0&&(Eo=np()),Eo):(e=te,e!==0||(e=window.event,e=e===void 0?16:lp(e.type)),e):1}function vt(e,t,n,r){if(50<ai)throw ai=0,Ru=null,Error(L(185));Li(e,n,r),(!(Q&2)||e!==xe)&&(e===xe&&(!(Q&2)&&(La|=n),Ee===4&&tn(e,Te)),He(e,r),n===1&&Q===0&&!(t.mode&1)&&(kr=ve()+500,Pa&&vn()))}function He(e,t){var n=e.callbackNode;Ov(e,t);var r=Fo(e,e===xe?Te:0);if(r===0)n!==null&&jc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jc(n),t===1)e.tag===0?xg(Of.bind(null,e)):Tp(Of.bind(null,e)),wg(function(){!(Q&6)&&vn()}),n=null;else{switch(rp(r)){case 1:n=dl;break;case 4:n=ep;break;case 16:n=No;break;case 536870912:n=tp;break;default:n=No}n=Ch(n,_h.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _h(e,t){if(So=-1,Eo=0,Q&6)throw Error(L(327));var n=e.callbackNode;if(pr()&&e.callbackNode!==n)return null;var r=Fo(e,e===xe?Te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zo(e,r);else{t=r;var i=Q;Q|=2;var o=Sh();(xe!==e||Te!==t)&&(Ft=null,kr=ve()+500,jn(e,t));do try{Hg();break}catch(u){wh(e,u)}while(!0);Ol(),Qo.current=o,Q=i,we!==null?t=0:(xe=null,Te=0,t=Ee)}if(t!==0){if(t===2&&(i=au(e),i!==0&&(r=i,t=Nu(e,i))),t===1)throw n=xi,jn(e,0),tn(e,r),He(e,ve()),n;if(t===6)tn(e,r);else{if(i=e.current.alternate,!(r&30)&&!qg(i)&&(t=Zo(e,r),t===2&&(o=au(e),o!==0&&(r=o,t=Nu(e,o))),t===1))throw n=xi,jn(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:xn(e,Ve,Ft);break;case 3:if(tn(e,r),(r&130023424)===r&&(t=$l+500-ve(),10<t)){if(Fo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hu(xn.bind(null,e,Ve,Ft),t);break}xn(e,Ve,Ft);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*Ug(r/1960))-r,10<r){e.timeoutHandle=hu(xn.bind(null,e,Ve,Ft),r);break}xn(e,Ve,Ft);break;case 5:xn(e,Ve,Ft);break;default:throw Error(L(329))}}}return He(e,ve()),e.callbackNode===n?_h.bind(null,e):null}function Nu(e,t){var n=oi;return e.current.memoizedState.isDehydrated&&(jn(e,t).flags|=256),e=Zo(e,t),e!==2&&(t=Ve,Ve=n,t!==null&&Fu(t)),e}function Fu(e){Ve===null?Ve=e:Ve.push.apply(Ve,e)}function qg(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&=~zl,t&=~La,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 Of(e){if(Q&6)throw Error(L(327));pr();var t=Fo(e,0);if(!(t&1))return He(e,ve()),null;var n=Zo(e,t);if(e.tag!==0&&n===2){var r=au(e);r!==0&&(t=r,n=Nu(e,r))}if(n===1)throw n=xi,jn(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,xn(e,Ve,Ft),He(e,ve()),null}function Vl(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(kr=ve()+500,Pa&&vn())}}function Vn(e){rn!==null&&rn.tag===0&&!(Q&6)&&pr();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 Ul(){We=ar.current,ue(ar)}function jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_g(n)),we!==null)for(n=we.return;n!==null;){var r=n;switch(El(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$o();break;case 3:Pr(),ue(qe),ue(Ne),Ll();break;case 5:Il(r);break;case 4:Pr();break;case 13:ue(fe);break;case 19:ue(fe);break;case 10:Cl(r.type._context);break;case 22:case 23:Ul()}n=n.return}if(xe=e,we=e=dn(e.current,null),Te=We=t,Ee=0,xi=null,zl=La=$n=0,Ve=oi=null,Tn!==null){for(t=0;t<Tn.length;t++)if(n=Tn[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}Tn=null}return e}function wh(e,t){do{var n=we;try{if(Ol(),go.current=Ko,Yo){for(var r=de.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Yo=!1}if(zn=0,be=Se=de=null,ri=!1,Si=0,Al.current=null,n===null||n.return===null){Ee=1,xi=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=df(a);if(h!==null){h.flags&=-257,pf(h,a,u,o,t),h.mode&1&&ff(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)){ff(o,s,t),ql();break e}l=Error(L(426))}}else if(le&&u.mode&1){var E=df(a);if(E!==null){!(E.flags&65536)&&(E.flags|=256),pf(E,a,u,o,t),bl(Tr(l,u));break e}}o=l=Tr(l,u),Ee!==4&&(Ee=2),oi===null?oi=[o]:oi.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=rh(o,l,t);of(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=ih(o,u,t);of(o,w);break e}}o=o.return}while(o!==null)}bh(n)}catch(O){t=O,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function Sh(){var e=Qo.current;return Qo.current=Ko,e===null?Ko:e}function ql(){(Ee===0||Ee===3||Ee===2)&&(Ee=4),xe===null||!($n&268435455)&&!(La&268435455)||tn(xe,Te)}function Zo(e,t){var n=Q;Q|=2;var r=Sh();(xe!==e||Te!==t)&&(Ft=null,jn(e,t));do try{Bg();break}catch(i){wh(e,i)}while(!0);if(Ol(),Q=n,Qo.current=r,we!==null)throw Error(L(261));return xe=null,Te=0,Ee}function Bg(){for(;we!==null;)Eh(we)}function Hg(){for(;we!==null&&!yv();)Eh(we)}function Eh(e){var t=Oh(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?bh(e):we=t,Al.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ag(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=Dg(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 xn(e,t,n){var r=te,i=ut.transition;try{ut.transition=null,te=1,Gg(e,t,n,r)}finally{ut.transition=i,te=r}return null}function Gg(e,t,n,r){do pr();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(Cv(e,o),e===xe&&(we=xe=null,Te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ji||(Ji=!0,Ch(No,function(){return pr(),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,Al.current=null,$g(e,n),vh(n,e),dg(du),Mo=!!fu,du=fu=null,e.current=n,Vg(n),vv(),Q=u,te=a,ut.transition=o}else e.current=n;if(Ji&&(Ji=!1,rn=e,Jo=i),o=e.pendingLanes,o===0&&(cn=null),wv(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(Xo)throw Xo=!1,e=ju,ju=null,e;return Jo&1&&e.tag!==0&&pr(),o=e.pendingLanes,o&1?e===Ru?ai++:(ai=0,Ru=e):ai=0,vn(),null}function pr(){if(rn!==null){var e=rp(Jo),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,Jo=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:ii(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(hh(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:ii(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:Ia(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(Ea,e)}catch{}r=!0}return r}finally{te=n,ut.transition=t}}return!1}function Cf(e,t,n){t=Tr(n,t),t=rh(e,t,1),e=ln(e,t,1),t=De(),e!==null&&(Li(e,1,t),He(e,t))}function me(e,t,n){if(e.tag===3)Cf(e,e,n);else for(;t!==null;){if(t.tag===3){Cf(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=Tr(n,e),e=ih(t,e,1),t=ln(t,e,1),e=De(),t!==null&&(Li(t,1,e),He(t,e));break}}t=t.return}}function Wg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,xe===e&&(Te&n)===n&&(Ee===4||Ee===3&&(Te&130023424)===Te&&500>ve()-$l?jn(e,0):zl|=n),He(e,t)}function xh(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=De();e=Bt(e,t),e!==null&&(Li(e,t,n),He(e,n))}function Yg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xh(e,n)}function Kg(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),xh(e,n)}var Oh;Oh=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,Mg(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,le&&t.flags&1048576&&kp(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wo(e,t),e=t.pendingProps;var i=xr(t,Ne.current);dr(t,n),i=Rl(null,t,r,e,i,n);var o=Nl();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,Vo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Tl(t),i.updater=ka,t.stateNode=i,i._reactInternals=t,Su(t,r,e,n),t=xu(null,t,r,!0,o,n)):(t.tag=0,le&&o&&Sl(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Xg(r),e=dt(r,e),i){case 0:t=bu(null,t,r,e,n);break e;case 1:t=yf(null,t,r,e,n);break e;case 11:t=hf(null,t,r,e,n);break e;case 14:t=mf(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),bu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),yf(e,t,r,i,n);case 3:e:{if(uh(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Fp(e,t),Go(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=Tr(Error(L(423)),t),t=vf(e,t,r,n,i);break e}else if(r!==i){i=Tr(Error(L(424)),t),t=vf(e,t,r,n,i);break e}else for(Ye=un(t.stateNode.containerInfo.firstChild),Ke=t,le=!0,ht=null,n=Rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Or(),r===i){t=Ht(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Mp(t),e===null&&gu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,pu(r,i)?a=null:o!==null&&pu(r,o)&&(t.flags|=32),sh(e,t),Me(e,t,a,n),t.child;case 6:return e===null&&gu(t),null;case 13:return lh(e,t,n);case 4:return kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(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),hf(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(Bo,r._currentValue),r._currentValue=a,o!==null)if(gt(o.value,a)){if(o.children===i.children&&!qe.current){t=Ht(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=$t(-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),_u(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),_u(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,dr(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),mf(e,t,r,i,n);case 15:return oh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),wo(e,t),t.tag=1,Be(r)?(e=!0,Vo(t)):e=!1,dr(t,n),nh(t,r,i),Su(t,r,i,n),xu(null,t,r,!0,e,n);case 19:return ch(e,t,n);case 22:return ah(e,t,n)}throw Error(L(156,t.tag))};function Ch(e,t){return Zd(e,t)}function Qg(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 Qg(e,t,n,r)}function Bl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xg(e){if(typeof e=="function")return Bl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ll)return 11;if(e===cl)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 bo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Bl(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qn:return Rn(n.children,i,o,t);case ul:a=8,i|=8;break;case Hs:return e=st(12,n,t,i|2),e.elementType=Hs,e.lanes=o,e;case Gs:return e=st(13,n,t,i),e.elementType=Gs,e.lanes=o,e;case Ws:return e=st(19,n,t,i),e.elementType=Ws,e.lanes=o,e;case Md:return ja(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nd:a=10;break e;case Fd:a=9;break e;case ll:a=11;break e;case cl: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 Rn(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function ja(e,t,n,r){return e=st(22,e,r,t),e.elementType=Md,e.lanes=n,e.stateNode={isHidden:!1},e}function xs(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Os(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 Jg(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=os(0),this.expirationTimes=os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hl(e,t,n,r,i,o,a,u,l){return e=new Jg(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},Tl(o),e}function Zg(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 Ph(e){if(!e)return hn;e=e._reactInternals;e:{if(Hn(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 Pp(e,n,t)}return t}function Th(e,t,n,r,i,o,a,u,l){return e=Hl(n,r,!0,e,i,o,a,u,l),e.context=Ph(null),n=e.current,r=De(),i=fn(n),o=$t(r,i),o.callback=t??null,ln(n,o,i),e.current.lanes=i,Li(e,i,r),He(e,r),e}function Ra(e,t,n,r){var i=t.current,o=De(),a=fn(i);return n=Ph(n),t.context===null?t.context=n:t.pendingContext=n,t=$t(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),vo(e,i,a)),a}function ea(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 Pf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gl(e,t){Pf(e,t),(e=e.alternate)&&Pf(e,t)}function e_(){return null}var kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}Na.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Ra(e,t,null,null)};Na.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vn(function(){Ra(null,e,null,null)}),t[qt]=null}};function Na(e){this._internalRoot=e}Na.prototype.unstable_scheduleHydration=function(e){if(e){var t=ap();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&&up(e)}};function Yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tf(){}function t_(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var s=ea(a);o.call(s)}}var a=Th(t,r,e,0,null,!1,!1,"",Tf);return e._reactRootContainer=a,e[qt]=a.current,yi(e.nodeType===8?e.parentNode:e),Vn(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var s=ea(l);u.call(s)}}var l=Hl(e,0,!1,null,null,!1,!1,"",Tf);return e._reactRootContainer=l,e[qt]=l.current,yi(e.nodeType===8?e.parentNode:e),Vn(function(){Ra(t,l,n,r)}),l}function Ma(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=ea(a);u.call(l)}}Ra(t,a,e,i)}else a=t_(n,t,e,i,r);return ea(a)}ip=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kr(t.pendingLanes);n!==0&&(pl(t,n|1),He(t,ve()),!(Q&6)&&(kr=ve()+500,vn()))}break;case 13:Vn(function(){var r=Bt(e,1);if(r!==null){var i=De();vt(r,e,1,i)}}),Gl(e,1)}};hl=function(e){if(e.tag===13){var t=Bt(e,134217728);if(t!==null){var n=De();vt(t,e,134217728,n)}Gl(e,134217728)}};op=function(e){if(e.tag===13){var t=fn(e),n=Bt(e,t);if(n!==null){var r=De();vt(n,e,t,r)}Gl(e,t)}};ap=function(){return te};sp=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};ru=function(e,t,n){switch(t){case"input":if(Qs(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=Ca(r);if(!i)throw Error(L(90));Ad(r),Qs(r,i)}}}break;case"textarea":$d(e,n);break;case"select":t=n.value,t!=null&&ur(e,!!n.multiple,t,!1)}};Wd=Vl;Yd=Vn;var n_={usingClientEntryPoint:!1,Events:[Ri,er,Ca,Hd,Gd,Vl]},Ur={findFiberByHostInstance:Pn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r_={bundleType:Ur.bundleType,version:Ur.version,rendererPackageName:Ur.rendererPackageName,rendererConfig:Ur.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=Xd(e),e===null?null:e.stateNode},findFiberByHostInstance:Ur.findFiberByHostInstance||e_,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 Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{Ea=Zi.inject(r_),Pt=Zi}catch{}}Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n_;Je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yl(t))throw Error(L(200));return Zg(e,t,null,n)};Je.createRoot=function(e,t){if(!Yl(e))throw Error(L(299));var n=!1,r="",i=kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Hl(e,1,!1,null,null,n,!1,r,i),e[qt]=t.current,yi(e.nodeType===8?e.parentNode:e),new Wl(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=Xd(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return Vn(e)};Je.hydrate=function(e,t,n){if(!Fa(t))throw Error(L(200));return Ma(null,e,t,!0,n)};Je.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=kh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Th(t,null,e,1,n??null,i,!1,o,a),e[qt]=t.current,yi(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 Na(t)};Je.render=function(e,t,n){if(!Fa(t))throw Error(L(200));return Ma(null,e,t,!1,n)};Je.unmountComponentAtNode=function(e){if(!Fa(e))throw Error(L(40));return e._reactRootContainer?(Vn(function(){Ma(null,null,e,!1,function(){e._reactRootContainer=null,e[qt]=null})}),!0):!1};Je.unstable_batchedUpdates=Vl;Je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fa(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return Ma(e,t,n,!1,r)};Je.version="18.3.1-next-f1338f8080-20240426";function Ih(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ih)}catch(e){console.error(e)}}Ih(),Id.exports=Je;var Lh=Id.exports;const i_="_fieldError_qi0xk_1",o_={fieldError:i_};function jh(e){var t=e.children;return H.createElement("div",{className:o_.fieldError},t)}const a_="_FieldGroup_uz9ju_1",s_="_FieldGroup__item_uz9ju_5",kf={FieldGroup:a_,FieldGroup__item:s_};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)},u_=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 qr(e){var t=e.children,n=e.className,r=u_(e,["children","className"]),i=It(kf.FieldGroup,n);return H.createElement("div",Mu({},r,{className:i}),H.Children.map(t,function(o){return H.createElement("div",{className:kf.FieldGroup__item},o)}))}const l_="_fieldHint_1avon_1",c_={fieldHint:l_};function Rh(e){var t=e.children;return H.createElement("div",{className:c_.fieldHint},t)}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)};function Nh(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(Fh,Du({},a,{htmlFor:t,required:o,error:!!i}),n),u,i&&H.createElement(jh,null,i),r&&H.createElement(Rh,null,r))}const f_="_Form_5qspp_1",d_="_Form__item_5qspp_5",Cs={Form:f_,Form__item:d_,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var 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)},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},h_=function(e){var t=e.children,n=e.className,r=e.onSubmit,i=e.spacing,o=i===void 0?"default":i,a=p_(e,["children","className","onSubmit","spacing"]),u=It(Cs.Form,n),l=It(Cs.Form__item,Cs["Form__item--".concat(o)]),s=k.useCallback(function(c){c.preventDefault(),r&&r(c)},[r]);return H.createElement("form",Au({className:u,onSubmit:s},a),k.Children.map(t,function(c){return c?H.createElement("div",{className:l},c):null}))};const m_="_formLabel_tcjrv_1",y_="_formLabel__code_tcjrv_8",v_="_formLabel__label_tcjrv_18",g_="_formLabel__required_tcjrv_30",Br={formLabel:m_,formLabel__code:y_,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:v_,formLabel__required:g_};var zu=function(){return zu=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},zu.apply(this,arguments)},__=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},Fh=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=__(e,["children","className","htmlFor","code","required","error"]),d=It(Br.formLabel,r,(t={},t[Br["formLabel--error"]]=s,t));return H.createElement("label",zu({className:d,htmlFor:i},c),H.createElement("span",{className:Br.formLabel__label},n,u&&H.createElement("span",{className:Br.formLabel__required},"*")),o&&H.createElement("span",{className:Br.formLabel__code},o))},$u=function(){return $u=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},$u.apply(this,arguments)};function w_(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(Nh,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},H.createElement(_S,$u({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}function Un(e){"@babel/helpers - typeof";return Un=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},Un(e)}function S_(e,t){if(Un(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Un(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mh(e){var t=S_(e,"string");return Un(t)=="symbol"?t:t+""}function Xr(e,t,n){return(t=Mh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function If(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?If(Object(n),!0).forEach(function(r){Xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E_(e){if(Array.isArray(e))return e}function b_(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 Vu(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 Dh(e,t){if(e){if(typeof e=="string")return Vu(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)?Vu(e,t):void 0}}function x_(){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 Vt(e,t){return E_(e)||b_(e,t)||Dh(e,t)||x_()}function O_(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=O_(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 C_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function P_(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,C_),v=k.useState(u!==void 0?u:n),E=Vt(v,2),m=E[0],y=E[1],g=k.useState(l!==void 0?l:i),w=Vt(g,2),O=w[0],b=w[1],x=k.useState(h!==void 0?h:a),P=Vt(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 T_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lf(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,Mh(r.key),r)}}function k_(e,t,n){return t&&Lf(e.prototype,t),n&&Lf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uu(e,t){return Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Uu(e,t)}function I_(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&&Uu(e,t)}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ta(e)}function Ah(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ah=function(){return!!e})()}function L_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j_(e,t){if(t&&(Un(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L_(e)}function R_(e){var t=Ah();return function(){var n,r=ta(e);if(t){var i=ta(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return j_(this,n)}}function N_(e){if(Array.isArray(e))return Vu(e)}function F_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M_(){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 Kl(e){return N_(e)||F_(e)||Dh(e)||M_()}function D_(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 A_(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 z_=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(A_(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=D_(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-",na="-moz-",J="-webkit-",zh="comm",Ql="rule",Xl="decl",$_="@import",$h="@keyframes",V_="@layer",U_=Math.abs,Da=String.fromCharCode,q_=Object.assign;function B_(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 Vh(e){return e.trim()}function H_(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,n){return e.replace(t,n)}function qu(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Oi(e,t,n){return e.slice(t,n)}function Et(e){return e.length}function Jl(e){return e.length}function eo(e,t){return t.push(e),e}function G_(e,t){return e.map(t).join("")}var Aa=1,Ir=1,Uh=0,Ge=0,_e=0,Nr="";function za(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Aa,column:Ir,length:a,return:""}}function Hr(e,t){return q_(za("",null,null,"",null,null,0),e,{length:-e.length},t)}function W_(){return _e}function Y_(){return _e=Ge>0?Pe(Nr,--Ge):0,Ir--,_e===10&&(Ir=1,Aa--),_e}function Qe(){return _e=Ge<Uh?Pe(Nr,Ge++):0,Ir++,_e===10&&(Ir=1,Aa++),_e}function kt(){return Pe(Nr,Ge)}function xo(){return Ge}function Fi(e,t){return Oi(Nr,e,t)}function Ci(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 qh(e){return Aa=Ir=1,Uh=Et(Nr=e),Ge=0,[]}function Bh(e){return Nr="",e}function Oo(e){return Vh(Fi(Ge-1,Bu(e===91?e+2:e===40?e+1:e)))}function K_(e){for(;(_e=kt())&&_e<33;)Qe();return Ci(e)>2||Ci(_e)>3?"":" "}function Q_(e,t){for(;--t&&Qe()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Fi(e,xo()+(t<6&&kt()==32&&Qe()==32))}function Bu(e){for(;Qe();)switch(_e){case e:return Ge;case 34:case 39:e!==34&&e!==39&&Bu(_e);break;case 40:e===41&&Bu(e);break;case 92:Qe();break}return Ge}function X_(e,t){for(;Qe()&&e+_e!==57;)if(e+_e===84&&kt()===47)break;return"/*"+Fi(t,Ge-1)+"*"+Da(e===47?e:Qe())}function J_(e){for(;!Ci(kt());)Qe();return Fi(e,Ge)}function Z_(e){return Bh(Co("",null,null,null,[""],e=qh(e),0,[0],e))}function Co(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){qu(x+=Z(Oo(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:x+=Oo(y);break;case 9:case 10:case 13:case 32:x+=K_(p);break;case 92:x+=Q_(xo()-1,7);continue;case 47:switch(kt()){case 42:case 47:eo(e0(X_(Qe(),xo()),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&&eo(h>32?Rf(x+";",r,n,d-1):Rf(Z(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(eo(b=jf(x,t,n,s,c,i,u,g,w=[],O=[],d),o),y===123)if(c===0)Co(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:Co(e,b,b,r&&eo(jf(e,b,b,0,0,i,u,g,i,w=[],d),O),i,O,d,u,r?w:O);break;default:Co(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&&Y_()==125)continue}switch(x+=Da(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+=Oo(Qe())),f=kt(),c=d=Et(g=x+=J_(xo())),y++;break;case 45:p===45&&Et(x)==2&&(v=0)}}return o}function jf(e,t,n,r,i,o,a,u,l,s,c){for(var d=i-1,f=i===0?o:[""],h=Jl(f),p=0,v=0,E=0;p<r;++p)for(var m=0,y=Oi(e,d+1,d=U_(v=a[p])),g=e;m<h;++m)(g=Vh(v>0?f[m]+" "+y:Z(y,/&\f/g,f[m])))&&(l[E++]=g);return za(e,t,n,i===0?Ql:u,l,s,c)}function e0(e,t,n){return za(e,t,n,zh,Da(W_()),Oi(e,2,-2),0)}function Rf(e,t,n,r){return za(e,t,n,Xl,Oi(e,0,r),Oi(e,r+1,-1),r)}function hr(e,t){for(var n="",r=Jl(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function t0(e,t,n,r){switch(e.type){case V_:if(e.children.length)break;case $_:case Xl:return e.return=e.return||e.value;case zh:return"";case $h:return e.return=e.value+"{"+hr(e.children,r)+"}";case Ql:e.value=e.props.join(",")}return Et(n=hr(e.children,r))?e.return=e.value+"{"+n+"}":""}function n0(e){var t=Jl(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 r0(e){return function(t){t.root||(t=t.return)&&e(t)}}function i0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var o0=function(t,n,r){for(var i=0,o=0;i=o,o=kt(),i===38&&o===12&&(n[r]=1),!Ci(o);)Qe();return Fi(t,Ge)},a0=function(t,n){var r=-1,i=44;do switch(Ci(i)){case 0:i===38&&kt()===12&&(n[r]=1),t[r]+=o0(Ge-1,n,r);break;case 2:t[r]+=Oo(i);break;case 4:if(i===44){t[++r]=kt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Da(i)}while(i=Qe());return t},s0=function(t,n){return Bh(a0(qh(t),n))},Nf=new WeakMap,u0=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&&!Nf.get(r))&&!i){Nf.set(t,!0);for(var o=[],a=s0(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]}}},l0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hh(e,t){switch(B_(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+na+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"+na+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qu(e,"stretch")?Hh(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-(~qu(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 c0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Xl:t.return=Hh(t.value,t.length);break;case $h:return hr([Hr(t,{value:Z(t.value,"@","@"+J)})],i);case Ql:if(t.length)return G_(t.props,function(o){switch(H_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Hr(t,{props:[Z(o,/:(read-\w+)/,":"+na+"$1")]})],i);case"::placeholder":return hr([Hr(t,{props:[Z(o,/:(plac\w+)/,":"+J+"input-$1")]}),Hr(t,{props:[Z(o,/:(plac\w+)/,":"+na+"$1")]}),Hr(t,{props:[Z(o,/:(plac\w+)/,je+"input-$1")]})],i)}return""})}},f0=[c0],d0=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||f0,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=[u0,l0];{var c,d=[t0,r0(function(v){c.insert(v)})],f=n0(s.concat(i,d)),h=function(E){return hr(Z_(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 z_({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},Gh={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,Zl=Oe?Symbol.for("react.element"):60103,ec=Oe?Symbol.for("react.portal"):60106,$a=Oe?Symbol.for("react.fragment"):60107,Va=Oe?Symbol.for("react.strict_mode"):60108,Ua=Oe?Symbol.for("react.profiler"):60114,qa=Oe?Symbol.for("react.provider"):60109,Ba=Oe?Symbol.for("react.context"):60110,tc=Oe?Symbol.for("react.async_mode"):60111,Ha=Oe?Symbol.for("react.concurrent_mode"):60111,Ga=Oe?Symbol.for("react.forward_ref"):60112,Wa=Oe?Symbol.for("react.suspense"):60113,p0=Oe?Symbol.for("react.suspense_list"):60120,Ya=Oe?Symbol.for("react.memo"):60115,Ka=Oe?Symbol.for("react.lazy"):60116,h0=Oe?Symbol.for("react.block"):60121,m0=Oe?Symbol.for("react.fundamental"):60117,y0=Oe?Symbol.for("react.responder"):60118,v0=Oe?Symbol.for("react.scope"):60119;function et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zl:switch(e=e.type,e){case tc:case Ha:case $a:case Ua:case Va:case Wa:return e;default:switch(e=e&&e.$$typeof,e){case Ba:case Ga:case Ka:case Ya:case qa:return e;default:return t}}case ec:return t}}}function Wh(e){return et(e)===Ha}ne.AsyncMode=tc;ne.ConcurrentMode=Ha;ne.ContextConsumer=Ba;ne.ContextProvider=qa;ne.Element=Zl;ne.ForwardRef=Ga;ne.Fragment=$a;ne.Lazy=Ka;ne.Memo=Ya;ne.Portal=ec;ne.Profiler=Ua;ne.StrictMode=Va;ne.Suspense=Wa;ne.isAsyncMode=function(e){return Wh(e)||et(e)===tc};ne.isConcurrentMode=Wh;ne.isContextConsumer=function(e){return et(e)===Ba};ne.isContextProvider=function(e){return et(e)===qa};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zl};ne.isForwardRef=function(e){return et(e)===Ga};ne.isFragment=function(e){return et(e)===$a};ne.isLazy=function(e){return et(e)===Ka};ne.isMemo=function(e){return et(e)===Ya};ne.isPortal=function(e){return et(e)===ec};ne.isProfiler=function(e){return et(e)===Ua};ne.isStrictMode=function(e){return et(e)===Va};ne.isSuspense=function(e){return et(e)===Wa};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$a||e===Ha||e===Ua||e===Va||e===Wa||e===p0||typeof e=="object"&&e!==null&&(e.$$typeof===Ka||e.$$typeof===Ya||e.$$typeof===qa||e.$$typeof===Ba||e.$$typeof===Ga||e.$$typeof===m0||e.$$typeof===y0||e.$$typeof===v0||e.$$typeof===h0)};ne.typeOf=et;Gh.exports=ne;var g0=Gh.exports,Yh=g0,_0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kh={};Kh[Yh.ForwardRef]=_0;Kh[Yh.Memo]=w0;var S0=!0;function E0(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Qh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||S0===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},b0=function(t,n,r){Qh(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 x0(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 O0={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},C0=/[A-Z]|^ms/g,P0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xh=function(t){return t.charCodeAt(1)===45},Ff=function(t){return t!=null&&typeof t!="boolean"},Ps=i0(function(e){return Xh(e)?e:e.replace(C0,"-$&").toLowerCase()}),Mf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(P0,function(r,i,o){return bt={name:i,styles:o,next:bt},i})}return O0[t]!==1&&!Xh(t)&&typeof n=="number"&&n!==0?n+"px":n};function Pi(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 bt={name:i.name,styles:i.styles,next:bt},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)bt={name:a.name,styles:a.styles,next:bt},a=a.next;var u=o.styles+";";return u}return T0(e,t,n)}case"function":{if(e!==void 0){var l=bt,s=n(e);return bt=l,Pi(e,t,s)}break}}var c=n;return c}function T0(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Pi(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var u=a;Ff(u)&&(r+=Ps(o)+":"+Mf(o,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Ff(a[l])&&(r+=Ps(o)+":"+Mf(o,a[l])+";");else{var s=Pi(e,t,a);switch(o){case"animation":case"animationName":{r+=Ps(o)+":"+s+";";break}default:r+=o+"{"+s+"}"}}}return r}var Df=/label:\s*([^\s;{]+)\s*(;|$)/g,bt;function Jh(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="";bt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Pi(n,t,o);else{var a=o;i+=a[0]}for(var u=1;u<e.length;u++)if(i+=Pi(n,t,e[u]),r){var l=o;i+=l[u]}Df.lastIndex=0;for(var s="",c;(c=Df.exec(i))!==null;)s+="-"+c[1];var d=x0(i)+s;return{name:d,styles:i,next:bt}}var k0=function(t){return t()},I0=gc.useInsertionEffect?gc.useInsertionEffect:!1,L0=I0||k0,Zh=k.createContext(typeof HTMLElement<"u"?d0({key:"css"}):null);Zh.Provider;var j0=function(t){return k.forwardRef(function(n,r){var i=k.useContext(Zh);return t(n,i,r)})},R0=k.createContext({}),nc={}.hasOwnProperty,Hu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",N0=function(t,n){var r={};for(var i in n)nc.call(n,i)&&(r[i]=n[i]);return r[Hu]=t,r},F0=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Qh(n,r,i),L0(function(){return b0(n,r,i)}),null},M0=j0(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Hu],o=[r],a="";typeof e.className=="string"?a=E0(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var u=Jh(o,void 0,k.useContext(R0));a+=t.key+"-"+u.name;var l={};for(var s in e)nc.call(e,s)&&s!=="css"&&s!==Hu&&(l[s]=e[s]);return l.className=a,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(F0,{cache:t,serialized:u,isStringTag:typeof i=="string"}),k.createElement(i,l))}),D0=M0,A=function(t,n){var r=arguments;if(n==null||!nc.call(n,"css"))return k.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=D0,o[1]=N0(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 rc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Jh(t)}function A0(){var e=rc.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 z0(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const $0=Math.min,V0=Math.max,ra=Math.round,to=Math.floor,ia=e=>({x:e,y:e});function U0(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 Qa(){return typeof window<"u"}function em(e){return nm(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tm(e){var t;return(t=(nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nm(e){return Qa()?e instanceof Node||e instanceof Gt(e).Node:!1}function q0(e){return Qa()?e instanceof Element||e instanceof Gt(e).Element:!1}function ic(e){return Qa()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function Af(e){return!Qa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function rm(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=oc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function B0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function H0(e){return["html","body","#document"].includes(em(e))}function oc(e){return Gt(e).getComputedStyle(e)}function G0(e){if(em(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Af(e)&&e.host||tm(e);return Af(t)?t.host:t}function im(e){const t=G0(e);return H0(t)?e.ownerDocument?e.ownerDocument.body:e.body:ic(t)&&rm(t)?t:im(t)}function oa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=im(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(i);if(o){const u=Gu(a);return t.concat(a,a.visualViewport||[],rm(i)?i:[],u&&n?oa(u):[])}return t.concat(i,oa(i,[],n))}function Gu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function W0(e){const t=oc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ic(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=ra(n)!==o||ra(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function ac(e){return q0(e)?e:e.contextElement}function zf(e){const t=ac(e);if(!ic(t))return ia(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=W0(t);let a=(o?ra(n.width):n.width)/r,u=(o?ra(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const Y0=ia(0);function K0(e){const t=Gt(e);return!B0()||!t.visualViewport?Y0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q0(e,t,n){return!1}function $f(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ac(e);let a=ia(1);t&&(a=zf(e));const u=Q0()?K0(o):ia(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=Gt(o),h=r;let p=f,v=Gu(p);for(;v&&r&&h!==p;){const E=zf(v),m=v.getBoundingClientRect(),y=oc(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=Gt(v),v=Gu(p)}}return U0({width:c,height:d,x:l,y:s})}function om(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function X0(e,t){let n=null,r;const i=tm(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=to(d),v=to(i.clientWidth-(c+f)),E=to(i.clientHeight-(d+h)),m=to(c),g={rootMargin:-p+"px "+-v+"px "+-E+"px "+-m+"px",threshold:V0(0,$0(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&&!om(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 J0(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=ac(e),c=i||o?[...s?oa(s):[],...oa(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=s&&u?X0(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?$f(e):null;l&&E();function E(){const m=$f(e);v&&!om(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 Wu=k.useLayoutEffect,Z0=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],aa=function(){};function ew(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function tw(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(ew(e,a)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var Vf=function(t){return cw(t)?t.filter(Boolean):Un(t)==="object"&&t!==null?[t]:[]},am=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,Z0);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 Xa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function nw(e){return Xa(e)?window.innerHeight:e.clientHeight}function sm(e){return Xa(e)?window.pageYOffset:e.scrollTop}function sa(e,t){if(Xa(e)){window.scrollTo(0,t);return}e.scrollTop=t}function rw(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 iw(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function no(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:aa,i=sm(e),o=t-i,a=10,u=0;function l(){u+=a;var s=iw(u,i,o,n);sa(e,s),u<n?window.requestAnimationFrame(l):r(e)}l()}function Uf(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?sa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&sa(e,Math.max(t.offsetTop-i,0))}function ow(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 qf(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function aw(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var um=!1,sw={get passive(){return um=!0}},ro=typeof window<"u"?window:{};ro.addEventListener&&ro.removeEventListener&&(ro.addEventListener("p",aa,sw),ro.removeEventListener("p",aa,!1));var uw=um;function lw(e){return e!=null}function cw(e){return Array.isArray(e)}function io(e,t,n){return e?t:n}var fw=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=Vt(a,1),l=u[0];return!r.includes(l)});return o.reduce(function(a,u){var l=Vt(u,2),s=l[0],c=l[1];return a[s]=c,a},{})},dw=["children","innerProps"],pw=["children","innerProps"];function hw(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,l=rw(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:nw(l),g=sm(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&&no(l,j,q),{placement:"bottom",maxHeight:t};if(!a&&R>=r||a&&x>=r){o&&no(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&&sa(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(b>=p)return{placement:"top",maxHeight:t};if(P>=p&&!a)return o&&no(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&&no(l,V,q),{placement:"top",maxHeight:K}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}function mw(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var lm=function(t){return t==="auto"?"bottom":t},yw=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"},Xr(r,mw(i),"100%"),Xr(r,"position","absolute"),Xr(r,"width","100%"),Xr(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})},cm=k.createContext(null),vw=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(cm)||{},c=s.setPortalPlacement,d=k.useRef(null),f=k.useState(i),h=Vt(f,2),p=h[0],v=h[1],E=k.useState(null),m=Vt(E,2),y=m[0],g=m[1],w=l.spacing.controlHeight;return Wu(function(){var O=d.current;if(O){var b=a==="fixed",x=u&&!b,P=hw({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||lm(o),maxHeight:p})})},gw=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return A("div",$({},ye(t,"menu",{menu:!0}),{ref:r},i),n)},_w=gw,ww=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})},Sw=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)},fm=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")})},Ew=fm,bw=fm,xw=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Kt(t,dw);return A("div",$({},ye(z(z({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Ow=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Kt(t,pw);return A("div",$({},ye(z(z({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Cw=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}},Pw=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(lm(a)),d=Vt(c,2),f=d[0],h=d[1],p=k.useMemo(function(){return{setPortalPlacement:h}},[]),v=k.useState(null),E=Vt(v,2),m=E[0],y=E[1],g=k.useCallback(function(){if(i){var x=ow(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]);Wu(function(){g()},[g]);var w=k.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),i&&l.current&&(s.current=J0(i,l.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Wu(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(cm.Provider,{value:p},n?Lh.createPortal(b,n):b)},Tw=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},kw=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)},Iw=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")})},Lw=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)},jw=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Rw=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"indicatorsContainer",{indicators:!0}),r),n)},Bf,Nw=["size"],Fw=["innerProps","isRtl","size"],Mw={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},dm=function(t){var n=t.size,r=Kt(t,Nw);return A("svg",$({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Mw},r))},sc=function(t){return A(dm,$({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"}))},pm=function(t){return A(dm,$({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"}))},hm=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}})},Dw=hm,Aw=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||A(pm,null))},zw=hm,$w=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||A(sc,null))},Vw=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})},Uw=function(t){var n=t.innerProps;return A("span",$({},n,ye(t,"indicatorSeparator",{"indicator-separator":!0})))},qw=A0(Bf||(Bf=z0([`
54
+ 0%, 80%, 100% { opacity: 0; }
55
+ 40% { opacity: 1; }
56
+ `]))),Bw=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})},Ts=function(t){var n=t.delay,r=t.offset;return A("span",{css:rc({animation:"".concat(qw," 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"},"","")})},Hw=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=Kt(t,Fw);return A("div",$({},ye(z(z({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),A(Ts,{delay:0,offset:r}),A(Ts,{delay:160,offset:!0}),A(Ts,{delay:320,offset:!r}))},Gw=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}})},Ww=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)},Yw=Ww,Kw=["data"],Qw=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Xw=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))},Jw=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"})},Zw=function(t){var n=am(t);n.data;var r=Kt(n,Kw);return A("div",$({},ye(t,"groupHeading",{"group-heading":!0}),r))},e1=Xw,t1=["innerRef","isDisabled","isHidden","inputClassName"],n1=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)":""},r1),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},mm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},r1={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"},mm)},i1=function(t){return z({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mm)},o1=function(t){var n=t.cx,r=t.value,i=am(t),o=i.innerRef,a=i.isDisabled,u=i.isHidden,l=i.inputClassName,s=Kt(i,t1);return A("div",$({},ye(t,"input",{"input-container":!0}),{"data-value":r||""}),A("input",$({className:n({input:!0},l),ref:o,style:i1(u),disabled:a},s)))},a1=o1,s1=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})},u1=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})},l1=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}})},ym=function(t){var n=t.children,r=t.innerProps;return A("div",r,n)},c1=ym,f1=ym;function d1(e){var t=e.children,n=e.innerProps;return A("div",$({role:"button"},n),t||A(sc,{size:14}))}var p1=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}))},h1=p1,m1=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}})},y1=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)},v1=y1,g1=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})},_1=function(t){var n=t.children,r=t.innerProps;return A("div",$({},ye(t,"placeholder",{placeholder:!0}),r),n)},w1=_1,S1=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})},E1=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)},b1=E1,x1={ClearIndicator:$w,Control:Yw,DropdownIndicator:Aw,DownChevron:pm,CrossIcon:sc,Group:e1,GroupHeading:Zw,IndicatorsContainer:Rw,IndicatorSeparator:Uw,Input:a1,LoadingIndicator:Hw,Menu:_w,MenuList:Sw,MenuPortal:Pw,LoadingMessage:Ow,NoOptionsMessage:xw,MultiValue:h1,MultiValueContainer:c1,MultiValueLabel:f1,MultiValueRemove:d1,Option:v1,Placeholder:w1,SelectContainer:kw,SingleValue:b1,ValueContainer:Lw},O1=function(t){return z(z({},x1),t.components)},Hf=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function C1(e,t){return!!(e===t||Hf(e)&&Hf(t))}function P1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!C1(e[n],t[n]))return!1;return!0}function T1(e,t){t===void 0&&(t=P1);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 k1={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"},I1=function(t){return A("span",$({css:k1},t))},Gf=I1,L1={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:"",".")}},j1=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({},L1),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(jt){return Array.isArray(jt)?null:jt},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(Gf,{id:s},q&&ee),A(Gf,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!q&&ee))},R1=j1,Yu=[{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źẑżžẓẕƶȥɀⱬꝣ"}],N1=new RegExp("["+Yu.map(function(e){return e.letters}).join("")+"]","g"),vm={};for(var ks=0;ks<Yu.length;ks++)for(var Is=Yu[ks],Ls=0;Ls<Is.letters.length;Ls++)vm[Is.letters[Ls]]=Is.base;var gm=function(t){return t.replace(N1,function(n){return vm[n]})},F1=T1(gm),Wf=function(t){return t.replace(/^\s+|\s+$/g,"")},M1=function(t){return"".concat(t.label," ").concat(t.value)},D1=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=z({ignoreCase:!0,ignoreAccents:!0,stringify:M1,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,u=i.stringify,l=i.trim,s=i.matchFrom,c=l?Wf(r):r,d=l?Wf(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=F1(c),d=gm(d)),s==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},A1=["innerRef"];function z1(e){var t=e.innerRef,n=Kt(e,A1),r=fw(n,"onExited","in","enter","exit","appear");return A("input",$({ref:t},r,{css:rc({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 $1=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function V1(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&&$1(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=uw?{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 Yf=["boxSizing","height","overflow","paddingRight","position"],Kf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qf(e){e.cancelable&&e.preventDefault()}function Xf(e){e.stopPropagation()}function Jf(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Zf(){return"ontouchstart"in window||navigator.maxTouchPoints}var ed=!!(typeof window<"u"&&window.document&&window.document.createElement),Gr=0,Wn={capture:!1,passive:!1};function U1(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(ed){var s=document.body,c=s&&s.style;if(r&&Yf.forEach(function(p){var v=c&&c[p];i.current[p]=v}),r&&Gr<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(Kf).forEach(function(p){var v=Kf[p];c&&(c[p]=v)}),c&&(c.paddingRight="".concat(h,"px"))}s&&Zf()&&(s.addEventListener("touchmove",Qf,Wn),l&&(l.addEventListener("touchstart",Jf,Wn),l.addEventListener("touchmove",Xf,Wn))),Gr+=1}},[r]),u=k.useCallback(function(l){if(ed){var s=document.body,c=s&&s.style;Gr=Math.max(Gr-1,0),r&&Gr<1&&Yf.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),s&&Zf()&&(s.removeEventListener("touchmove",Qf,Wn),l&&(l.removeEventListener("touchstart",Jf,Wn),l.removeEventListener("touchmove",Xf,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 q1=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},B1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function H1(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=V1({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:u,onTopLeave:l}),c=U1({isEnabled:n}),d=function(h){s(h),c(h)};return A(k.Fragment,null,n&&A("div",{onClick:q1,css:B1}),t(d))}var G1={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},W1=function(t){var n=t.name,r=t.onFocus;return A("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:G1,value:"",onChange:function(){}})},Y1=W1;function uc(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 K1(){return uc(/^iPhone/i)}function _m(){return uc(/^Mac/i)}function Q1(){return uc(/^iPad/i)||_m()&&navigator.maxTouchPoints>1}function X1(){return K1()||Q1()}function J1(){return _m()||X1()}var Z1=function(t){return t.label},eS=function(t){return t.label},tS=function(t){return t.value},nS=function(t){return!!t.isDisabled},rS={clearIndicator:zw,container:Tw,control:Gw,dropdownIndicator:Dw,group:Qw,groupHeading:Jw,indicatorsContainer:jw,indicatorSeparator:Vw,input:n1,loadingIndicator:Bw,loadingMessage:bw,menu:yw,menuList:ww,menuPortal:Cw,multiValue:s1,multiValueLabel:u1,multiValueRemove:l1,noOptionsMessage:Ew,option:m1,placeholder:g1,singleValue:S1,valueContainer:Iw},iS={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%)"},oS=4,wm=4,aS=38,sS=wm*2,uS={baseUnit:wm,controlHeight:aS,menuGutter:sS},js={borderRadius:oS,colors:iS,spacing:uS},lS={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:qf(),captureMenuScroll:!qf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:D1(),formatGroupLabel:Z1,getOptionLabel:eS,getOptionValue:tS,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nS,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!aw(),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 td(e,t,n,r){var i=bm(e,t,n),o=xm(e,t,n),a=Em(e,t),u=ua(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:u,index:r}}function Po(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,u){return td(e,a,t,u)}).filter(function(a){return rd(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=td(e,n,t,r);return rd(e,o)?o:void 0}).filter(lw)}function Sm(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Kl(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function nd(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Kl(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 cS(e,t){return Sm(Po(e,t))}function rd(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,u=t.value;return(!Cm(e)||!o)&&Om(e,{label:a,value:u,data:i},r)}function fS(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 dS(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Rs=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},Em=function(t,n){return t.getOptionLabel(n)},ua=function(t,n){return t.getOptionValue(n)};function bm(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function xm(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=ua(e,t);return n.some(function(i){return ua(e,i)===r})}function Om(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Cm=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},pS=1,Pm=function(e){I_(n,e);var t=R_(n);function n(r){var i;if(T_(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=J1(),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(Kl(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=io(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(io(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=io(l,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Rs(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return nd(Po(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 tw.apply(void 0,[i.props.classNamePrefix].concat(s))},i.getOptionLabel=function(l){return Em(i.props,l)},i.getOptionValue=function(l){return ua(i.props,l)},i.getStyles=function(l,s){var c=i.props.unstyled,d=rS[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 O1(i.props)},i.buildCategorizedOptions=function(){return Po(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Sm(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&&Xa(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 Cm(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||++pS),i.state.selectValue=Vf(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=Rs(o,a[u])}return i}return k_(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&&Uf(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&&(Uf(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(js):z(z({},js),this.props.theme):js}},{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 bm(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return xm(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Om(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(z1,$({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:aa,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,jt=he.isSelected,Mi=he.label,Fm=he.value,dc=v===oe,pc=Fe?void 0:function(){return i.onOptionHover(oe)},Mm=Fe?void 0:function(){return i.selectOption(oe)},hc="".concat(i.getElementId("option"),"-").concat(ce),Dm={id:hc,onClick:Mm,onMouseMove:pc,onMouseOver:pc,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:jt};return k.createElement(h,$({},p,{innerProps:Dm,data:oe,isDisabled:Fe,isSelected:jt,key:hc,label:Mi,type:$e,value:Fm,isFocused:dc,innerRef:dc?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(jt){return K(jt,"".concat($e,"-").concat(jt.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(vw,$({},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(H1,{captureEnabled:m,onTopArrive:ee,onBottomArrive:X,lockEnabled:V},function(Fe){return k.createElement(s,$({},p,{innerRef:function(Mi){i.getMenuListRef(Mi),Fe(Mi)},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(Y1,{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(R1,$({},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=Vf(p),g={};if(a&&(p!==a.value||h!==a.options||v!==a.menuIsOpen||E!==a.inputValue)){var w=v?cS(i,y):[],O=v?nd(Po(i,y),"".concat(f,"-option")):[],b=u?fS(o,y):null,x=dS(o,w),P=Rs(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:io(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);Pm.defaultProps=lS;var hS=k.forwardRef(function(e,t){var n=P_(e);return k.createElement(Pm,$({ref:t},n))}),mS=hS,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)},yS=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},vS=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)"})})},gS=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 _S(e){var t=e.isDisabled,n=e.error,r=yS(e,["isDisabled","error"]),i=gS(t,n);return H.createElement(mS,ie({},r,{isDisabled:t,theme:vS,styles:i}))}const wS="_Spinner__bar_oumod_13",Ns={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:wS};var 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)};function SS(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:Ns.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[Ns["Spinner--inline"]]=o==="inline",t[Ns["Spinner--centered"]]=o==="centered",t)),style:la(la({},u),d)},l)}const ES="_switchField__flex_16z4j_1",bS="_switchField__switchInput_16z4j_6",xS="_switchField__label_16z4j_10",OS="_switchField__below_16z4j_22",oo={switchField__flex:ES,switchField__switchInput:bS,switchField__label:xS,switchField__below:OS};var 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)};function Sn(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:oo.switchField__flex},H.createElement("div",{className:oo.switchField__switchInput},H.createElement(LS,ca({},c,{name:n,value:l,onChange:s}))),H.createElement(Fh,ca({},u,{htmlFor:t,required:a,className:It(oo.switchField__label,u==null?void 0:u.className),error:!!o}),r)),(i||o)&&H.createElement("div",{className:oo.switchField__below},o&&H.createElement(jh,null,o),i&&H.createElement(Rh,null,i)))}const CS="_switchInput__inner_1knbg_1",PS="_switchInput_1knbg_1",TS="_switchInput__checked_1knbg_47",kS="_switchInput__disabled_1knbg_60",ao={switchInput__inner:CS,switchInput:PS,switchInput__checked:TS,switchInput__disabled:kS};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)},IS=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 LS(e){var t,n=e.className,r=e.value,i=e.disabled,o=e.onClick,a=e.onChange,u=e.onKeyDown,l=IS(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(ao.switchInput,n,(t={},t[ao.switchInput__checked]=r,t[ao.switchInput__disabled]=i,t));return H.createElement("button",Ku({},l,{type:"button",role:"switch","aria-checked":r,disabled:i,className:f,onKeyDown:c,onClick:d}),H.createElement("span",{className:ao.switchInput__inner}))}var Qu=function(){return Qu=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},Qu.apply(this,arguments)};function En(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(Nh,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},H.createElement(NS,Qu({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}const jS="_TextInput_x2oj2_1",so={TextInput:jS,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};var Xu=function(){return Xu=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},Xu.apply(this,arguments)},RS=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},NS=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=RS(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(so.TextInput,n,(t={},t[so["TextInput--disabled"]]=i,t[so["TextInput--error"]]=o,t[so["TextInput--monospaced"]]=y,t));return H.createElement("input",Xu({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 FS({ctx:e}){return _.jsx(kd,{ctx:e,children:_.jsx(Ln,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>e.navigateTo(`/configuration/p/${e.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}var On=function(){return On=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},On.apply(this,arguments)};function MS(e){return typeof e=="object"&&!!e&&"data"in e}function Lt(e){var t=e.id,n=e.type,r=e.attributes,i=e.relationships,o=e.meta;return On(On(On(On(On({},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(!MS(e))throw new Error("Invalid body!");return Array.isArray(e.data)?e.data.map(Lt):Lt(e.data)}var Tm=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 DS(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 AS=function(e){Tm(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,si):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),si=function(e){Tm(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 DS(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),zS=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)}}(),Ti=function(e){zS(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 ki(e,t){var n=null,r=new Promise(function(i,o){n=function(){try{t&&t(),o(new Ti)}catch(u){o(u)}};var a=typeof e=="function"?e():e;a.then(i,o)});return n&&(r.cancel=n),r}function To(e){return new Promise(function(t){setTimeout(t,e)})}var $S=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())})},VS=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 US(e){return $S(this,void 0,void 0,function(){var t,n,r;return VS(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,To(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 si)||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 km={},lc={},cc={};(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={}))})(cc);var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});class qS{constructor(t,n){this._code=t,this._message=n}get code(){return this._code}get message(){return this._message}}Ja.default=qS;var qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.mutexEquality=qn.mutexBitwiseAnd=void 0;function BS(e,t){return(e&t)!==0}qn.mutexBitwiseAnd=BS;function HS(e,t){return e===t}qn.mutexEquality=HS;var fc={};Object.defineProperty(fc,"__esModule",{value:!0});class GS{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})}}fc.default=GS;var WS=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())})},Im=Ot&&Ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lc,"__esModule",{value:!0});const wt=cc,YS=Im(Ja),KS=qn,QS=Im(fc);var rt;(function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"})(rt||(rt={}));function id(e,t){for(let n of e.listeners)n.reject(t)}class XS{constructor(t,n={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=t,this._samePriorityMutex=!!n.samePriorityMutex,this._mutexStrategy=n.mutexStrategy||KS.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 QS.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 YS.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 WS(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--),id(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--),id(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}]}}}}lc.default=XS;(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(lc);e.Scheduler=n.default;const r=cc;Object.defineProperty(e,"TaskCollisionStrategy",{enumerable:!0,get:function(){return r.TaskCollisionStrategy}});const i=t(Ja);e.SchedulerError=i.default;const o=qn;Object.defineProperty(e,"mutexBitwiseAnd",{enumerable:!0,get:function(){return o.mutexBitwiseAnd}}),Object.defineProperty(e,"mutexEquality",{enumerable:!0,get:function(){return o.mutexEquality}})})(km);var JS=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}}},In=function(e){return this instanceof In?(this.v=e,this):new In(e)},ZS=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 In?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 gn(e,t,n){return ZS(this,arguments,function(){var i,o,a,u,l,m,s,c,d,f,h,p,v,E,m;return JS(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,In(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,In(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 km.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,In(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,In(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 _n(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var uo=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))},Lm="__ARRAY_INDEX__";function eE(e){return e.reduce(function(t,n,r){return r===0?n:n===Lm?"".concat(t,"[]"):"".concat(t,"[").concat(n,"]")},"")}function tE(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 Ju(e,t){t===void 0&&(t=[]);var n=[];if(typeof e=="number"||typeof e=="string"||typeof e=="boolean")n.push([eE(t),tE(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=Ju(o,uo(uo([],t,!0),[Lm],!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=Ju(o,uo(uo([],t,!0),[f],!1));h<p.length;h++){var l=p[h];n.push(l)}}return n}var Mt=function(){return Mt=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},Mt.apply(this,arguments)},nE=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())})},rE=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}}},iE=typeof window<"u"&&typeof window.document<"u",oE=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 aE(e){var t={};return e.forEach(function(n,r){t[r]=n}),t}function od(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:aE(i.headers),body:o},preCallStack:a}}function sE(e,t,n,r,i){return{request:{url:t,method:e,headers:n,body:r},preCallStack:i}}function uE(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 lE(e){return typeof e=="object"&&!!e&&"code"in e}function cE(e){return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n.toLowerCase(),r]}))}var ad=1;function ko(e){var t;return nE(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 rE(this,function(I){switch(I.label){case 0:if(n=ad,ad+=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=Mt({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?cE(e.extraHeaders):{}),iE&&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(Ju(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=ki(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 si(od(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,To(x*1e3)];case 3:return I.sent(),[2,ko(Mt(Mt({},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 si(uE(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 si(od(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,To(a*1e3)]):[3,11]);case 10:return I.sent(),[2,ko(Mt(Mt({},e),{retryCount:a+1}))];case 11:throw X;case 12:return re=I.sent(),re instanceof Ti||lE(re)&&re.code.includes("ETIMEDOUT")?l&&a<oE?(u>=it.BASIC&&s("[".concat(n,"] Timeout error, wait ").concat(a," seconds then retry...")),[4,To(a*1e3)]):[3,14]:[3,15];case 13:return I.sent(),[2,ko(Mt(Mt({},e),{retryCount:a+1}))];case 14:throw new AS(sE(e.method,p,c,e.body,i));case 15:throw re;case 16:return[2]}})})}var Cn=function(){return Cn=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},Cn.apply(this,arguments)},fE=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 Io(e){return typeof e=="object"&&!!e&&"id"in e&&"type"in e}function Fs(e){return Array.isArray(e)&&e.every(Io)}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=fE(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(Io(h)){var p=h.id,v=h.type;l[f]={data:{id:p,type:v}}}else Fs(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(Io(h)){var g=h.id,v=h.type;l[f]={data:{id:g,type:v}}}else Fs(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(Io(h)){var x=h.id,v=h.type;l[f]={data:{id:x,type:v}}}else Fs(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:Cn(Cn(Cn(Cn(Cn({},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}(),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)}}(),pE=function(e){dE(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),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)}}(),Nn=function(){return Nn=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},Nn.apply(this,arguments)},mE=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())})},yE=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}}},sd=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 ud(e,t){return e==null&&t==null?!0:e===t}function vE(e,t){for(var n in e)if(!ud(e[n],t[n]))return!1;for(var n in t)if(!ud(e[n],t[n]))return!1;return!0}function lo(e,t,n,r){if(!t)return e;var i=t.add,o=t.remove;return sd(sd([],o?o.reduce(function(a,u){var l=Nn(Nn({},u),{environment:n}),s=a.find(function(c){return vE(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 Nn({environment:n},a)}):[],!0)}var gE=function(e){hE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.updateCurrentEnvironmentPermissions=function(n,r){return mE(this,void 0,void 0,function(){var i,o,a,u,l,s;return yE(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=Nn(Nn({},u?{positive_item_type_permissions:lo(a.positive_item_type_permissions,r.positive_item_type_permissions,i,"positive_item_type_permissions"),negative_item_type_permissions:lo(a.negative_item_type_permissions,r.negative_item_type_permissions,i,"negative_item_type_permissions")}:{}),l?{positive_upload_permissions:lo(a.positive_upload_permissions,r.positive_upload_permissions,i,"positive_upload_permissions"),negative_upload_permissions:lo(a.negative_upload_permissions,r.negative_upload_permissions,i,"negative_upload_permissions")}:{}),[2,this.update(n,s)]}})})},t}(pE),_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.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),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.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),bE=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)}}(),xE=function(e){bE(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),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){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),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){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),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){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),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,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),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,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),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,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),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.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),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.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),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.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),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.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),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)}}(),GE=function(e){HE(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),WE=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){WE(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),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)}}(),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)},QE=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}}},XE=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)},JE=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])}},ZE=function(e){KE(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:"/build-events",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return JE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return QE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=XE(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,mr(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,mr(Lt(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,mr(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 _n(n),gn({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:"/build-events/".concat(n)})},t.TYPE="build_event",t}(B),eb=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)},tb=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}}},nb=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)},rb=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])}},ib=function(e){eb(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 rb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return tb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=nb(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(Lt(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 _n(n),gn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(da(da({},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),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)}}(),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)},ab=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}}},sb=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)},ub=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])}},lb=function(e){ob(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 ub(this,arguments,function(){var a,u,l,s,c,d,f,h,p;return ab(this,function(v){switch(v.label){case 0:v.trys.push([0,9,10,15]),a=!0,u=sb(this.rawListPagedIterator(C(n),r,i)),v.label=1;case 1:return[4,vr(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,vr(Lt(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,vr(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 _n(r),gn({defaultLimit:15,maxLimit:50},function(a){return o.rawList(n,pa(pa({},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),cb=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)}}(),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)},fb=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}}},db=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)},pb=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])}},jm=function(e){cb(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 pb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return fb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=db(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(Lt(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 _n(n),gn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(ha(ha({},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),hb=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)}}(),mb=function(e){hb(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),yb=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)}}(),vb=function(e){yb(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),gb=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)}}(),_b=function(e){gb(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),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)}}(),Sb=function(e){wb(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),Eb=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)},bb=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){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)},Ob=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])}},Cb=function(e){Eb(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 Ob(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return bb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=xb(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(Lt(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 _n(n),gn({defaultLimit:20,maxLimit:100},function(o){return i.rawList(ma(ma({},n),{page:o}))},r)},t.TYPE="search_result",t}(B),Pb=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)}}(),Tb=function(e){Pb(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),kb=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)}}(),Ib=function(e){kb(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),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)}}(),jb=function(e){Lb(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),Rb=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(){return ya=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},ya.apply(this,arguments)},Nb=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}}},Fb=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)},Mb=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])}},Db=function(e){Rb(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 Mb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return Nb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=Fb(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(Lt(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 _n(n),gn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(ya(ya({},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),Ab=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)}}(),zb=function(e){Ab(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),$b=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)}}(),Vb=function(e){$b(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),Ub=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)}}(),qb=function(e){Ub(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),Bb=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)}}(),Hb=function(e){Bb(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),Gb=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)}}(),Wb=function(e){Gb(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),Yb=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)}}(),Kb=function(e){Yb(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),Qb=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)}}(),Xb=function(e){Qb(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),Jb=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)}}(),Zb=function(e){Jb(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),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)}}(),tx=function(e){ex(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),nx=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)}}(),rx=function(e){nx(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),ix=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)}}(),ox=function(e){ix(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),ax=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){ax(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),ux=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)}}(),va=function(){return va=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},va.apply(this,arguments)},lx=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)}},Sr=function(e){return this instanceof Sr?(this.v=e,this):new Sr(e)},fx=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 Sr?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])}},dx=function(e){ux(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 fx(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return lx(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,Sr(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,Sr(Lt(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,Sr(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 _n(n),gn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(va(va({},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),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)}}(),ga=function(){return ga=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},ga.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)}},Er=function(e){return this instanceof Er?(this.v=e,this):new Er(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 Er?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:"/upload-smart-tags",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,Er(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,Er(Lt(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,Er(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 _n(n),gn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(ga(ga({},n),{page:o}))},r)},t.TYPE="upload_smart_tag",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.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),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.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)},Ex=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())})},bx=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}}},xx=function(){function e(t){this.config=t,this.roles=new gE(this),this.users=new wE(this),this.ssoUsers=new EE(this),this.auditLogEvents=new xE(this),this.menuItems=new CE(this),this.schemaMenuItems=new TE(this),this.uploadCollections=new IE(this),this.itemTypes=new jE(this),this.fields=new NE(this),this.fieldsets=new ME(this),this.session=new AE(this),this.accessTokens=new $E(this),this.plugins=new UE(this),this.jobResults=new BE(this),this.subscriptionLimits=new GE(this),this.subscriptionFeatures=new YE(this),this.buildEvents=new ZE(this),this.items=new ib(this),this.itemVersions=new lb(this),this.uploads=new jm(this),this.uploadRequest=new mb(this),this.uploadTracks=new vb(this),this.scheduledPublication=new _b(this),this.scheduledUnpublishing=new Sb(this),this.searchResults=new Cb(this),this.environments=new Tb(this),this.maintenanceMode=new Ib(this),this.webhooks=new jb(this),this.webhookCalls=new Db(this),this.buildTriggers=new zb(this),this.itemTypeFilters=new Vb(this),this.uploadFilters=new qb(this),this.siteInvitations=new Hb(this),this.editingSessions=new Wb(this),this.ssoGroups=new Kb(this),this.ssoSettings=new Xb(this),this.emojiSuggestions=new Zb(this),this.whiteLabelSettings=new tx(this),this.publicInfo=new rx(this),this.dailyUsages=new ox(this),this.usageCounters=new sx(this),this.uploadTags=new dx(this),this.uploadSmartTags=new vx(this),this.site=new _x(this),this.workflows=new Sx(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 ko(Zt(Zt(Zt({},this.config),t),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v4.0.1",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):US(function(){return n.jobResults.find(r)})}}))},e.prototype.eventsChannelName=function(){return Ex(this,void 0,void 0,function(){var t;return bx(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 Ox(e,t,n){var r=n===void 0?{}:n,i=r.onProgress,o=r.additionalHeaders,a=new XMLHttpRequest;return ki(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 _a=function(){return _a=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},_a.apply(this,arguments)},Cx=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())})},Px=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 ld(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 ki(function(){return Cx(r,void 0,void 0,function(){var u,l,s,c;return Px(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 Ti;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=Ox(t,s,_a(_a({},n),{additionalHeaders:c})),[4,a];case 2:return d.sent(),[2,l]}})})},function(){a?a.cancel():o=!0})}var 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)}}(),sr=function(){return sr=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},sr.apply(this,arguments)},cd=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())})},fd=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}}},dd=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},kx=function(e){Tx(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 ki(function(){return cd(r,void 0,void 0,function(){var a,u,l,s,c;return fd(this,function(d){switch(d.label){case 0:if(i)throw new Ti;return a=n.fileOrBlob,u=n.filename,l=n.onProgress,s=dd(n,["fileOrBlob","filename","onProgress"]),o=ld(this.client,a,{filename:u,onProgress:l}),[4,o];case 1:return c=d.sent(),l&&l({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(sr(sr({},s),{path:c}))]}})})},function(){o?o.cancel():i=!0})},t.prototype.updateFromFileOrBlob=function(n,r){var i=this,o=!1,a;return ki(function(){return cd(i,void 0,void 0,function(){var u,l,s,c,d;return fd(this,function(f){switch(f.label){case 0:if(o)throw new Ti;return u=r.fileOrBlob,l=r.filename,s=r.onProgress,c=dd(r,["fileOrBlob","filename","onProgress"]),a=ld(this.client,u,{filename:l,onProgress:s}),[4,a];case 1:return d=f.sent(),s&&s({type:"CREATING_UPLOAD_OBJECT"}),[2,this.update(n,sr(sr({},c),{path:d}))]}})})},function(){a?a.cancel():o=!0})},t}(jm),Ix=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)}}(),Lx=function(e){Ix(t,e);function t(n){var r=e.call(this,n)||this;return r.uploads=new kx(r),r}return t}(xx);function jx(e){return new Lx(e)}const Rx="_assetListCard_1g8hn_23",Nx="_assetListHeader_1g8hn_43",Fx="_assetListHeaderTitle_1g8hn_52",Mx="_categoryBadge_1g8hn_67",Dx="_badgeGreen_1g8hn_81",Ax="_badgeRed_1g8hn_85",zx="_badgeGray_1g8hn_89",$x="_badgeBlue_1g8hn_93",Vx="_noAssetsMessage_1g8hn_97",Ux="_assetList_1g8hn_23",qx="_assetListItem_1g8hn_112",Bx="_assetItemContent_1g8hn_126",Hx="_assetIcon_1g8hn_132",Gx="_fileIconWrapper_1g8hn_136",Wx="_assetDetails_1g8hn_149",Yx="_assetPath_1g8hn_154",Kx="_optimizationStats_1g8hn_161",Qx="_sizeInfo_1g8hn_169",Xx="_sizeBefore_1g8hn_176",Jx="_sizeAfter_1g8hn_176",Zx="_sizeLabel_1g8hn_182",eO="_sizeValue_1g8hn_187",tO="_sizeArrow_1g8hn_200",nO="_savingsBadge_1g8hn_205",rO="_assetActions_1g8hn_215",iO="_container_1g8hn_226",oO="_optimizingContainer_1g8hn_290",aO="_statusText_1g8hn_302",sO="_percentageText_1g8hn_308",uO="_progressBar_1g8hn_315",lO="_progressBarFill_1g8hn_326",cO="_logWrapper_1g8hn_359",fO="_logHeader_1g8hn_369",dO="_logsContainer_1g8hn_381",pO="_logs_1g8hn_381",hO="_logEntry_1g8hn_397",mO="_sizeComparison_1g8hn_410",yO="_originalSize_1g8hn_568",vO="_optimizedSize_1g8hn_578",gO="_sizeSavings_1g8hn_583",_O="_settingsContainer_1g8hn_628",wO="_settingsForm_1g8hn_634",SO="_fieldRow_1g8hn_659",EO="_field_1g8hn_659",bO="_formActionContainer_1g8hn_670",xO="_buttonGroup_1g8hn_674",OO="_resultsContainer_1g8hn_718",CO="_optimizationSummaryTitle_1g8hn_727",PO="_statsCardGrid_1g8hn_735",TO="_statsCard_1g8hn_735",kO="_clickableStatsCard_1g8hn_752",IO="_statsCardTitle_1g8hn_792",LO="_statsCardValue_1g8hn_800",jO="_optimizedValue_1g8hn_806",RO="_skippedValue_1g8hn_810",NO="_failedValue_1g8hn_814",FO="_statsCardLabel_1g8hn_818",MO="_savingsSummary_1g8hn_823",DO="_savingsCard_1g8hn_827",AO="_savingsRow_1g8hn_834",zO="_savingsLabel_1g8hn_846",$O="_savingsValue_1g8hn_851",VO="_actionsContainer_1g8hn_857",UO="_infoText_1g8hn_866",qO="_hintWithDoc_1g8hn_882",BO="_plainHint_1g8hn_896",HO="_docLinkIcon_1g8hn_909",GO="_currentAssetPreview_1g8hn_973",WO="_assetPreviewImage_1g8hn_984",YO="_assetPreviewInfo_1g8hn_1001",KO="_assetPreviewTitle_1g8hn_1006",QO="_assetPreviewMeta_1g8hn_1016",XO="_advancedOptionsGroup_1g8hn_1025",JO="_optionsGrid_1g8hn_1035",ZO="_optionItem_1g8hn_1042",eC="_paramTooltip_1g8hn_1049",tC="_tooltipText_1g8hn_1054",T={assetListCard:Rx,assetListHeader:Nx,assetListHeaderTitle:Fx,categoryBadge:Mx,badgeGreen:Dx,badgeRed:Ax,badgeGray:zx,badgeBlue:$x,noAssetsMessage:Vx,assetList:Ux,assetListItem:qx,assetItemContent:Bx,assetIcon:Hx,fileIconWrapper:Gx,assetDetails:Wx,assetPath:Yx,optimizationStats:Kx,sizeInfo:Qx,sizeBefore:Xx,sizeAfter:Jx,sizeLabel:Zx,sizeValue:eO,sizeArrow:tO,savingsBadge:nO,assetActions:rO,container:iO,optimizingContainer:oO,statusText:aO,percentageText:sO,progressBar:uO,progressBarFill:lO,logWrapper:cO,logHeader:fO,logsContainer:dO,logs:pO,logEntry:hO,sizeComparison:mO,originalSize:yO,optimizedSize:vO,sizeSavings:gO,settingsContainer:_O,settingsForm:wO,fieldRow:SO,field:EO,formActionContainer:bO,buttonGroup:xO,resultsContainer:OO,optimizationSummaryTitle:CO,statsCardGrid:PO,statsCard:TO,clickableStatsCard:kO,statsCardTitle:IO,statsCardValue:LO,optimizedValue:jO,skippedValue:RO,failedValue:NO,statsCardLabel:FO,savingsSummary:MO,savingsCard:DO,savingsRow:AO,savingsLabel:zO,savingsValue:$O,actionsContainer:VO,infoText:UO,hintWithDoc:qO,plainHint:BO,docLinkIcon:HO,currentAssetPreview:GO,assetPreviewImage:WO,assetPreviewInfo:YO,assetPreviewTitle:KO,assetPreviewMeta:QO,advancedOptionsGroup:XO,optionsGrid:JO,optionItem:ZO,paramTooltip:eC,tooltipText:tC},Rm={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 nC(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 rC="Expected a function",pd=NaN,iC="[object Symbol]",oC=/^\s+|\s+$/g,aC=/^[-+]0x[0-9a-f]+$/i,sC=/^0b[01]+$/i,uC=/^0o[0-7]+$/i,lC=parseInt,cC=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot,fC=typeof self=="object"&&self&&self.Object===Object&&self,dC=cC||fC||Function("return this")(),pC=Object.prototype,hC=pC.toString,mC=Math.max,yC=Math.min,Ms=function(){return dC.Date.now()};function vC(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(rC);t=hd(t)||0,Zu(n)&&(c=!!n.leading,d="maxWait"in n,o=d?mC(hd(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?yC(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=Ms();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(Ms())}function O(){var b=Ms(),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 Zu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function gC(e){return!!e&&typeof e=="object"}function _C(e){return typeof e=="symbol"||gC(e)&&hC.call(e)==iC}function hd(e){if(typeof e=="number")return e;if(_C(e))return pd;if(Zu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(oC,"");var n=sC.test(e);return n||uC.test(e)?lC(e.slice(2),n?2:8):aC.test(e)?pd:+e}var wC=vC;const SC=wa(wC),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})},Rt=({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})}),Nt={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"},EC=({settings:e,onSettingsChange:t,onStartOptimization:n,ctx:r})=>{const i=k.useRef(null);k.useEffect(()=>(i.current=SC(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(h_,{className:T.settingsForm,children:[_.jsxs(qr,{children:[_.jsx("h4",{children:"Size Thresholds"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(En,{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(En,{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(En,{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(qr,{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(Sn,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:e.preserveOriginalFormat,onChange:a("preserveOriginalFormat")})}),_.jsx(Rt,{hint:"Keep original image format (JPG, PNG, etc.)",url:Nt.format})]}),_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"auto",paramValue:"compress",children:_.jsx(Sn,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:e.useAutoCompress,onChange:a("useAutoCompress")})}),_.jsx(Rt,{hint:"Use Imgix's auto compression features",url:Nt.auto})]})]}),!e.preserveOriginalFormat&&_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"fm",paramValue:e.targetFormat,children:_.jsx(w_,{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(Sn,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:e.resizeLargeImages,onChange:a("resizeLargeImages")})}),_.jsx(Rt,{hint:"Reduce image dimensions to save space",url:Nt.resize})]})})]}),e.resizeLargeImages&&_.jsxs(qr,{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(En,{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(En,{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(qr,{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(En,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:e.qualityLarge.toString(),onChange:o("qualityLarge")})}),_.jsx(Rt,{hint:"Quality for large images (0-100)",url:Nt.quality})]}),_.jsxs("div",{className:T.field,children:[_.jsx(tt,{paramName:"q",paramValue:e.qualityVeryLarge,children:_.jsx(En,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:e.qualityVeryLarge.toString(),onChange:o("qualityVeryLarge")})}),_.jsx(Rt,{hint:"Quality for very large images (0-100)",url:Nt.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(qr,{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(Sn,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:e.useLossless,onChange:a("useLossless")})}),_.jsx(Rt,{hint:"Use lossless compression when possible",url:Nt.lossless})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"dpr",paramValue:e.useDpr?2:void 0,children:_.jsx(Sn,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:e.useDpr,onChange:a("useDpr")})}),_.jsx(Rt,{hint:"Optimize for high-resolution displays (Retina)",url:Nt.dpr})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"chromasub",paramValue:e.useChromaSubsampling?444:void 0,children:_.jsx(Sn,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:e.useChromaSubsampling,onChange:a("useChromaSubsampling")})}),_.jsx(Rt,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:Nt.chroma})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(tt,{paramName:"cs",paramValue:e.preserveColorProfile?"origin":void 0,children:_.jsx(Sn,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:e.preserveColorProfile,onChange:a("preserveColorProfile")})}),_.jsx(Rt,{hint:"Maintain accurate colors from original image",url:Nt.colorSpace})]})]})]}),_.jsx("div",{className:T.formActionContainer,children:_.jsxs("div",{className:T.buttonGroup,children:[_.jsx(Ln,{buttonType:"muted",buttonSize:"l",onClick:()=>t({...Rm}),children:"Restore Defaults"}),_.jsx(Ln,{buttonType:"primary",buttonSize:"l",onClick:n,fullWidth:!0,children:"Start Optimization"})]})})]})};function Fn(e){return e<1024?`${e} bytes`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const bC=({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:Fn(n.originalSize)}),_.jsx("span",{className:T.sizeArrow,children:"→"}),_.jsx("span",{className:T.optimizedSize,children:Fn(n.optimizedSize)}),_.jsxs("span",{className:T.sizeSavings,children:["(-",n.savingsPercentage,"%)"]})]})]},`log-${r}-${n.text.substring(0,10)}`))})})]})},xC=({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(SS,{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}%`}})})]})},OC=({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(Ln,{buttonType:"primary",buttonSize:"l",onClick:h,fullWidth:!0,children:"New Optimization"})})]})},CC=({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(Ln,{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:Fn(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:Fn(a.optimizedSize)})]})]}),u&&_.jsxs("div",{className:`${T.savingsBadge} ${T.badgeGreen}`,children:[u,"% savings"]})]})]}),_.jsxs("div",{className:T.assetActions,children:[_.jsx(Ln,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(a.url,"_blank"),children:"View Asset"}),_.jsx(Ln,{buttonSize:"xxs",buttonType:"muted",style:{marginLeft:"8px"},onClick:()=>window.open(`https://${r.site.attributes.internal_domain}/environments/${r.environment}/media/assets/${a.id}`,"_blank"),children:"Media Area"})]})]})},a.id)})})]})};async function PC(e,t,n,r=60,i=2e3){const o="https://site-api.datocms.com",a={Authorization:`Bearer ${t}`,"Content-Type":"application/json",Accept:"application/json","X-Api-Version":"3","X-Environment":n};let u=0;for(;u<r;){u++;try{console.log(`Checking job status (attempt ${u}/${r}): ${e}`);const l=await fetch(`${o}/job-results/${e}`,{method:"GET",headers:a});if(!l.ok){const c=await l.text();throw new Error(`API error: ${l.status} ${c}`)}const s=await l.json();if(s.data.attributes&&s.data.attributes.status===200)return console.log(`Job completed successfully: ${e}`),s;console.log(`Job in progress (${u}/${r}), waiting ${i}ms...`),await new Promise(c=>setTimeout(c,i))}catch(l){console.error(`Error checking job status: ${l instanceof Error?l.message:String(l)}`),await new Promise(s=>setTimeout(s,i))}}throw new Error(`Job timed out after ${r} attempts: ${e}`)}async function TC(e,t,n,r,i){var o,a;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 u="https://site-api.datocms.com",l={Authorization:`Bearer ${n}`,"Content-Type":"application/json",Accept:"application/json","X-Api-Version":"3","X-Environment":r},s=await fetch(`${u}/upload-requests`,{method:"POST",headers:l,body:JSON.stringify({data:{type:"upload_request",attributes:{filename:i||"optimized-image.jpg"}}})});if(!s.ok){const O=await s.text();throw new Error(`Failed to create upload request: ${s.status} ${O}`)}const c=await s.json(),{id:d,attributes:{url:f,request_headers:h}}=c.data,p=await fetch(t);if(!p.ok)throw new Error(`Failed to fetch image from URL: ${p.status} ${p.statusText}`);const E=await(await p.blob()).arrayBuffer(),m=new Uint8Array(E),y=await fetch(f,{method:"PUT",headers:{...h,"Content-Length":m.length.toString()},body:m});if(!y.ok)throw new Error(`Failed to upload file to S3: ${y.status} ${y.statusText}`);const g=await fetch(`${u}/uploads/${e}`,{method:"PUT",headers:l,body:JSON.stringify({data:{id:e,type:"upload",attributes:{path:d}}})});if(!g.ok){const O=await g.text();throw new Error(`Failed to update asset metadata: ${g.status} ${O}`)}const w=await g.json();if(w.data&&w.data.type==="job"){const O=w.data.id;console.log(`Asset update initiated as job ${O}, waiting for completion...`);const b=await PC(O,n,r);if(((o=b.data.attributes)==null?void 0:o.status)!==200)throw new Error(`Job completed with error status: ${(a=b.data.attributes)==null?void 0:a.status}`);return b.data.attributes.payload}return console.log("Asset replaced successfully:",w),w}catch(u){throw console.error("Error replacing asset:",u),u}}function kC(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 co(e){return{id:e.id,path:e.path,url:e.url}}function IC(e,t,n){return{id:e.id,path:e.path,url:e.url,originalSize:t,optimizedSize:n}}const LC=({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({...Rm}),[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.
63
+
64
+ We STRONGLY RECOMMEND testing this first in a sandbox environment, so you can fine-tune the thresholds and optimization settings to your liking, make sure everything works with your project, and then promote the sandbox environment once you are satisfied with the results.`,choices:[{label:"Yes, Replace My Assets",value:"confirm",intent:"positive"}],cancel:{label:"No, Cancel Operation",value:!1}})!=="confirm")return;w(),n(!0),m("Starting asset optimization process...");const x=jx({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(kC(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} (${Fn(N.size)})`),re+=N.size;const Y=nC(N,d);if(!Y){m(`Skipping asset ${N.path}: No suitable optimization parameters found.`),X.push(co(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: ${Fn(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(co(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 TC(N.id,Fe,oe,e.environment,N.basename),ee.push(IC(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(co(N)),U++}}catch(Y){m(`Error optimizing asset ${N.path}: ${Y instanceof Error?Y.message:String(Y)}`),K.push(co(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: ${Fn(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(kd,{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(EC,{settings:d,onSettingsChange:f,onStartOptimization:g,ctx:e})}),_.jsx(xC,{current:r,total:o,isVisible:t,assetSizeCategory:d.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:h}),u&&_.jsxs(_.Fragment,{children:[_.jsx(OC,{result:u,setSelectedCategory:E,resetState:w,largeAssetThreshold:d.largeAssetThreshold}),v&&_.jsx(CC,{assets:v==="optimized"?u.optimizedAssets:v==="skipped"?u.skippedAssets:u.failedAssets,category:v,onClose:()=>E(null),ctx:e})]}),_.jsx(bC,{log:s})]})})};var Nm,md=Lh;Nm=md.createRoot,md.hydrateRoot;const jC=document.getElementById("root"),RC=Nm(jC);function yd(e){RC.render(_.jsx(k.StrictMode,{children:e}))}qy({renderConfigScreen(e){return yd(_.jsx(FS,{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 yd(_.jsx(LC,{ctx:t}))}}});