datocms-plugin-asset-optimization 0.4.0 → 0.6.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 Vm(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 Tt=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 Sd={exports:{}},Sa={},xd={exports:{}},Q={};/**
|
|
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 Li=Symbol.for("react.element"),Um=Symbol.for("react.portal"),qm=Symbol.for("react.fragment"),Bm=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),Gm=Symbol.for("react.provider"),Wm=Symbol.for("react.context"),Ym=Symbol.for("react.forward_ref"),Km=Symbol.for("react.suspense"),Qm=Symbol.for("react.memo"),Xm=Symbol.for("react.lazy"),vc=Symbol.iterator;function Jm(e){return e===null||typeof e!="object"?null:(e=vc&&e[vc]||e["@@iterator"],typeof e=="function"?e:null)}var Ed={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bd=Object.assign,Od={};function Rr(e,t,n){this.props=e,this.context=t,this.refs=Od,this.updater=n||Ed}Rr.prototype.isReactComponent={};Rr.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")};Rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cd(){}Cd.prototype=Rr.prototype;function nl(e,t,n){this.props=e,this.context=t,this.refs=Od,this.updater=n||Ed}var rl=nl.prototype=new Cd;rl.constructor=nl;bd(rl,Rr.prototype);rl.isPureReactComponent=!0;var yc=Array.isArray,Pd=Object.prototype.hasOwnProperty,il={current:null},Td={key:!0,ref:!0,__self:!0,__source:!0};function kd(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)Pd.call(t,r)&&!Td.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:Li,type:e,key:o,ref:a,props:i,_owner:il.current}}function Zm(e,t){return{$$typeof:Li,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ol(e){return typeof e=="object"&&e!==null&&e.$$typeof===Li}function ev(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var gc=/\/+/g;function es(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ev(""+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 Li:case Um:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+es(a,0):r,yc(i)?(n="",e!=null&&(n=e.replace(gc,"$&/")+"/"),fo(i,t,n,"",function(s){return s})):i!=null&&(ol(i)&&(i=Zm(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(gc,"$&/")+"/")+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+es(o,u);a+=fo(o,t,n,l,i)}else if(l=Jm(e),typeof l=="function")for(e=l.call(e),u=0;!(o=e.next()).done;)o=o.value,l=r+es(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 Ai(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 tv(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 De={current:null},po={transition:null},nv={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:po,ReactCurrentOwner:il};function Id(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:Ai,forEach:function(e,t,n){Ai(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ai(e,function(){t++}),t},toArray:function(e){return Ai(e,function(t){return t})||[]},only:function(e){if(!ol(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Rr;Q.Fragment=qm;Q.Profiler=Hm;Q.PureComponent=nl;Q.StrictMode=Bm;Q.Suspense=Km;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nv;Q.act=Id;Q.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=bd({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=il.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)Pd.call(t,l)&&!Td.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:Li,type:e.type,key:i,ref:o,props:r,_owner:a}};Q.createContext=function(e){return e={$$typeof:Wm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gm,_context:e},e.Consumer=e};Q.createElement=kd;Q.createFactory=function(e){var t=kd.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Ym,render:e}};Q.isValidElement=ol;Q.lazy=function(e){return{$$typeof:Xm,_payload:{_status:-1,_result:e},_init:tv}};Q.memo=function(e,t){return{$$typeof:Qm,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=po.transition;po.transition={};try{e()}finally{po.transition=t}};Q.unstable_act=Id;Q.useCallback=function(e,t){return De.current.useCallback(e,t)};Q.useContext=function(e){return De.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return De.current.useDeferredValue(e)};Q.useEffect=function(e,t){return De.current.useEffect(e,t)};Q.useId=function(){return De.current.useId()};Q.useImperativeHandle=function(e,t,n){return De.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return De.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return De.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return De.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return De.current.useReducer(e,t,n)};Q.useRef=function(e){return De.current.useRef(e)};Q.useState=function(e){return De.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return De.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return De.current.useTransition()};Q.version="18.3.1";xd.exports=Q;var k=xd.exports;const W=wa(k),_c=Vm({__proto__:null,default:W},[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 rv=k,iv=Symbol.for("react.element"),ov=Symbol.for("react.fragment"),av=Object.prototype.hasOwnProperty,sv=rv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uv={key:!0,ref:!0,__self:!0,__source:!0};function jd(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)av.call(t,r)&&!uv.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:iv,type:e,key:o,ref:a,props:i,_owner:sv.current}}Sa.Fragment=ov;Sa.jsx=jd;Sa.jsxs=jd;Sd.exports=Sa;var _=Sd.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 lv="handshake";ge.HANDSHAKE=lv;const cv="handshake-reply";ge.HANDSHAKE_REPLY=cv;const fv="call";ge.CALL=fv;const dv="reply";ge.REPLY=dv;const pv="fulfilled";ge.FULFILLED=pv;const hv="rejected";ge.REJECTED=hv;const mv="message";ge.MESSAGE=mv;const vv="DataCloneError";ge.DATA_CLONE_ERROR=vv;var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.ERR_NO_IFRAME_SRC=gt.ERR_NOT_IN_IFRAME=gt.ERR_CONNECTION_TIMEOUT=gt.ERR_CONNECTION_DESTROYED=void 0;const yv="ConnectionDestroyed";gt.ERR_CONNECTION_DESTROYED=yv;const gv="ConnectionTimeout";gt.ERR_CONNECTION_TIMEOUT=gv;const _v="NotInIframe";gt.ERR_NOT_IN_IFRAME=_v;const wv="NoIframeSrc";gt.ERR_NO_IFRAME_SRC=wv;var $s={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})($s,$s.exports);var Sv=$s.exports,Vs={exports:{}},An={};Object.defineProperty(An,"__esModule",{value:!0});An.deserializeError=An.serializeError=void 0;const xv=e=>{let t=e.name,n=e.message,r=e.stack;return{name:t,message:n,stack:r}};An.serializeError=xv;const Ev=e=>{const t=new Error;return Object.keys(e).forEach(n=>t[n]=e[n]),t};An.deserializeError=Ev;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=An,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=y=>{if(y.source!==c||y.data.penpal!==n.CALL)return;if(y.origin!==f){u(`${l} received message from origin ${y.origin} which did not match expected origin ${f}`);return}const x=y.data,m=x.methodName,v=x.args,g=x.id;u(`${l}: Received ${m}() call`);const w=O=>E=>{if(u(`${l}: Sending ${m}() reply`),h){u(`${l}: Unable to send ${m}() reply due to destroyed connection`);return}const b={penpal:n.REPLY,id:g,resolution:O,returnValue:E};O===n.REJECTED&&E instanceof Error&&(b.returnValue=(0,r.serializeError)(E),b.returnValueIsError=!0);try{c.postMessage(b,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,v))).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})(Vs,Vs.exports);var bv=Vs.exports,Us={exports:{}},qs={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})(qs,qs.exports);var Ov=qs.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=gt,i=a(Ov),o=An;function a(l){return l&&l.__esModule?l:{default:l}}var u=(l,s,c,d,f)=>{const h=s.localName,p=s.local,y=s.remote,x=s.originForSending,m=s.originForReceiving;let v=!1;f(`${h}: Connecting call sender`);const g=w=>function(){for(var O=arguments.length,E=new Array(O),b=0;b<O;b++)E[b]=arguments[b];f(`${h}: Sending ${w}() call`);let P;try{y.closed&&(P=!0)}catch{P=!0}if(P&&d(),v){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,L)=>{const B=(0,i.default)(),N=F=>{if(F.source!==y||F.data.penpal!==n.REPLY||F.data.id!==B)return;if(F.origin!==m){f(`${h} received message from origin ${F.origin} which did not match expected origin ${m}`);return}f(`${h}: Received ${w}() reply`),p.removeEventListener(n.MESSAGE,N);let H=F.data.returnValue;F.data.returnValueIsError&&(H=(0,o.deserializeError)(H)),(F.data.resolution===n.FULFILLED?R:L)(H)};p.addEventListener(n.MESSAGE,N),y.postMessage({penpal:n.CALL,id:B,methodName:w,args:E},x)})};return c.reduce((w,O)=>(w[O]=g(O),w),l),()=>{v=!0}};t.default=u,e.exports=t.default})(Us,Us.exports);var Cv=Us.exports,Bs={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})(Bs,Bs.exports);var Pv=Bs.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=ge,r=gt,i=l(Sv),o=l(bv),a=l(Cv),u=l(Pv);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,y=p===void 0?{}:p,x=d.timeout,m=d.debug;const v=(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,E=window,b=E.parent;return{promise:new Promise((R,L)=>{let B;x!==void 0&&(B=setTimeout(()=>{const F=new Error(`Connection to parent timed out after ${x}ms`);F.code=r.ERR_CONNECTION_TIMEOUT,L(F),w()},x));const N=F=>{try{clearTimeout()}catch{return}if(F.source!==b||F.data.penpal!==n.HANDSHAKE_REPLY)return;if(h!=="*"&&h!==F.origin){v(`Child received handshake reply from origin ${F.origin} which did not match expected origin ${h}`);return}v("Child: Received handshake reply"),E.removeEventListener(n.MESSAGE,N);const H={localName:"Child",local:E,remote:b,originForSending:F.origin==="null"?"*":F.origin,originForReceiving:F.origin},K={},$=(0,o.default)(H,y,v);O($);const X=(0,a.default)(K,H,F.data.methodNames,w,v);O(X),clearTimeout(B),R(K)};E.addEventListener(n.MESSAGE,N),O(()=>{E.removeEventListener(n.MESSAGE,N);const F=new Error("Connection destroyed");F.code=r.ERR_CONNECTION_DESTROYED,L(F)}),v("Child: Sending handshake"),b.postMessage({penpal:n.HANDSHAKE,methodNames:Object.keys(y)},h)}),destroy:w}};t.default=s,e.exports=t.default})(Ds,Ds.exports);var Tv=Ds.exports;const kv=wa(Tv);var kt=function(){return kt=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},kt.apply(this,arguments)};function wc(e,t){for(var n=kt({},e),r=0,i=t;r<i.length;r++){var o=i[r];delete n[o]}return n}function ts(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,kt(kt({},n),{itemType:u}))}return r}}}function Kt(e,t){var n=function(r,i,o){if(o.mode===e){var a=jv(i),u=function(l){t(r,kt(kt(kt({},i),l),a))};return u(o),u}};return n.mode=e,n}function al(e,t){var n=function(r,i,o){if(o.mode===e){var a=function(u){t(r,kt(kt({},i),u))};return a(o),a}};return n.mode=e,n}function Iv(){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 jv=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,Iv()):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}},Lv=Kt("renderAssetSource",function(e,t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,t)}),Rv=Kt("renderConfigScreen",function(e,t){e.renderConfigScreen&&e.renderConfigScreen(t)}),Nv=Kt("renderFieldExtension",function(e,t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,t)}),zv=Kt("renderItemCollectionOutlet",function(e,t){e.renderItemCollectionOutlet&&e.renderItemCollectionOutlet(t.itemCollectionOutletId,t)}),Mv=Kt("renderItemFormOutlet",function(e,t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,t)}),Fv=al("renderItemFormSidebar",function(e,t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,t)}),Av=Kt("renderItemFormSidebarPanel",function(e,t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,t)}),Dv=Kt("renderManualFieldExtensionConfigScreen",function(e,t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,t)}),$v=Kt("renderModal",function(e,t){e.renderModal&&e.renderModal(t.modalId,t)}),Vv=al("renderPage",function(e,t){e.renderPage&&e.renderPage(t.pageId,t)}),Uv=al("renderUploadSidebar",function(e,t){e.renderUploadSidebar&&e.renderUploadSidebar(t.sidebarId,t)}),qv=Kt("renderUploadSidebarPanel",function(e,t){e.renderUploadSidebarPanel&&e.renderUploadSidebarPanel(t.sidebarPaneId,t)}),ot=function(){return ot=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},ot.apply(this,arguments)},Bv=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())})},Hv=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}}},Sc=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 Gv(){return Bv(this,arguments,void 0,function(e){var t,n,r,i,o,a,u,l,s,c,d,f;return e===void 0&&(e={}),Hv(this,function(h){switch(h.label){case 0:return t=null,n=null,r=ot(ot({},e),{overrideFieldExtensions:ts(e.overrideFieldExtensions),customMarksForStructuredTextField:ts(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:ts(e.customBlockStylesForStructuredTextField)}),i=kv({methods:ot(ot({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 y=p[0];return!y.startsWith("render")}))),{onChange:function(p){t&&t(p)},callMethodMergingBootCtx:function(p,y,x,m,v){return n?n(p,y,x,m,v):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,y,x,m,v){var g;if(p in r)return(g=r)[p].apply(g,Sc(Sc([],y,!1),[ot(ot(ot(ot({},wc(o,["getSettings","setHeight"])),wc(u,["mode","bodyPadding"])),Object.fromEntries(m.map(function(w){return[w,function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];return o.callAdditionalCtxMethod(v,w,E)}]}))),x)],!1))},r.onBoot&&r.onBoot(ot(ot({},o),u))),l={renderAssetSource:Lv,renderConfigScreen:Rv,renderFieldExtension:Nv,renderItemCollectionOutlet:zv,renderItemFormOutlet:Mv,renderItemFormSidebar:Fv,renderItemFormSidebarPanel:Av,renderManualFieldExtensionConfigScreen:Dv,renderModal:$v,renderPage:Vv,renderUploadSidebar:Uv,renderUploadSidebarPanel:qv},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 Ld={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})()})(Ld);var Wv=Ld.exports;const Rt=wa(Wv),Yv="_button_474wk_1",Kv="_disabled_474wk_30",Qv="_fullWidth_474wk_118",Xv="_button__leftIcon_474wk_124",Jv="_button__rightIcon_474wk_125",bn={button:Yv,disabled:Kv,"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:Qv,button__leftIcon:Xv,button__rightIcon:Jv};function sn(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,y=p===void 0?"button":p;return W.createElement("button",{type:y,className:Rt(bn.button,bn["buttonType-".concat(a)],bn["buttonSize-".concat(l)],(t={},t[bn.disabled]=i,t[bn.fullWidth]=s,t),r),disabled:i,onClick:c,style:d},f&&W.createElement("span",{className:bn.button__leftIcon},f),n&&W.createElement("span",null,n),h&&W.createElement("span",{className:bn.button__rightIcon},h))}var Hs=function(){return Hs=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},Hs.apply(this,arguments)};function xc(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())})}function Zv(e,t){return t===void 0&&(t=!1),Hs({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(xc(i)),o],["--".concat(xc("".concat(i,"RgbComponents"))),((r=o.match(/rgb\((\d+, \d+, \d+)\)/))===null||r===void 0?void 0:r[1])||void 0]]})))}const ey="_themeVariables_ovgoa_1",ty="_canvas_ovgoa_68",Ec={themeVariables:ey,canvas:ty};var ny=k.createContext(null);function Rd(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]),W.createElement(ny.Provider,{value:t},W.createElement("div",{className:Rt(Ec.themeVariables,Ec.canvas),style:Zv(t)},n))}var Nd={exports:{}},Ze={},zd={exports:{}},Md={};/**
|
|
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,A){var V=I.length;I.push(A);e:for(;0<V;){var te=V-1>>>1,Y=I[te];if(0<i(Y,A))I[te]=A,I[V]=Y,V=te;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var A=I[0],V=I.pop();if(V!==A){I[0]=V;e:for(var te=0,Y=I.length,de=Y>>>1;te<de;){var pe=2*(te+1)-1,Ve=I[pe],ve=pe+1,Ie=I[ve];if(0>i(Ve,V))ve<Y&&0>i(Ie,Ve)?(I[te]=Ie,I[ve]=V,te=ve):(I[te]=Ve,I[pe]=V,te=pe);else if(ve<Y&&0>i(Ie,V))I[te]=Ie,I[ve]=V,te=ve;else break e}}return A}function i(I,A){var V=I.sortIndex-A.sortIndex;return V!==0?V:I.id-A.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,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=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 A=n(s);A!==null;){if(A.callback===null)r(s);else if(A.startTime<=I)r(s),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(s)}}function w(I){if(y=!1,g(I),!p)if(n(l)!==null)p=!0,$(O);else{var A=n(s);A!==null&&X(w,A.startTime-I)}}function O(I,A){p=!1,y&&(y=!1,m(P),P=-1),h=!0;var V=f;try{for(g(A),d=n(l);d!==null&&(!(d.expirationTime>A)||I&&!B());){var te=d.callback;if(typeof te=="function"){d.callback=null,f=d.priorityLevel;var Y=te(d.expirationTime<=A);A=e.unstable_now(),typeof Y=="function"?d.callback=Y:d===n(l)&&r(l),g(A)}else r(l);d=n(l)}if(d!==null)var de=!0;else{var pe=n(s);pe!==null&&X(w,pe.startTime-A),de=!1}return de}finally{d=null,f=V,h=!1}}var E=!1,b=null,P=-1,R=5,L=-1;function B(){return!(e.unstable_now()-L<R)}function N(){if(b!==null){var I=e.unstable_now();L=I;var A=!0;try{A=b(!0,I)}finally{A?F():(E=!1,b=null)}}else E=!1}var F;if(typeof v=="function")F=function(){v(N)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,K=H.port2;H.port1.onmessage=N,F=function(){K.postMessage(null)}}else F=function(){x(N,0)};function $(I){b=I,E||(E=!0,F())}function X(I,A){P=x(function(){I(e.unstable_now())},A)}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,$(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 A=3;break;default:A=f}var V=f;f=A;try{return I()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,A){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var V=f;f=I;try{return A()}finally{f=V}},e.unstable_scheduleCallback=function(I,A,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,I){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=V+Y,I={id:c++,callback:A,priorityLevel:I,startTime:V,expirationTime:Y,sortIndex:-1},V>te?(I.sortIndex=V,t(s,I),n(l)===null&&I===n(s)&&(y?(m(P),P=-1):y=!0,X(w,V-te))):(I.sortIndex=Y,t(l,I),p||h||(p=!0,$(O))),I},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(I){var A=f;return function(){var V=f;f=A;try{return I.apply(this,arguments)}finally{f=V}}}})(Md);zd.exports=Md;var ry=zd.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 iy=k,Je=ry;function j(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 Fd=new Set,ci={};function Gn(e,t){Or(e,t),Or(e+"Capture",t)}function Or(e,t){for(ci[e]=t,e=0;e<t.length;e++)Fd.add(t[e])}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=Object.prototype.hasOwnProperty,oy=/^[: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={},Oc={};function ay(e){return Gs.call(Oc,e)?!0:Gs.call(bc,e)?!1:oy.test(e)?Oc[e]=!0:(bc[e]=!0,!1)}function sy(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 uy(e,t,n,r){if(t===null||typeof t>"u"||sy(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 $e(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 $e(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 $e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new $e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new $e(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 $e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new $e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new $e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new $e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new $e(e,5,!1,e.toLowerCase(),null,!1,!1)});var sl=/[\-:]([a-z])/g;function ul(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(sl,ul);ke[t]=new $e(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(sl,ul);ke[t]=new $e(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(sl,ul);ke[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)});function ll(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")&&(uy(t,n,i,r)&&(n=null),r||i===null?ay(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 Qt=iy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Di=Symbol.for("react.element"),Xn=Symbol.for("react.portal"),Jn=Symbol.for("react.fragment"),cl=Symbol.for("react.strict_mode"),Ws=Symbol.for("react.profiler"),Ad=Symbol.for("react.provider"),Dd=Symbol.for("react.context"),fl=Symbol.for("react.forward_ref"),Ys=Symbol.for("react.suspense"),Ks=Symbol.for("react.suspense_list"),dl=Symbol.for("react.memo"),Zt=Symbol.for("react.lazy"),$d=Symbol.for("react.offscreen"),Cc=Symbol.iterator;function Fr(e){return e===null||typeof e!="object"?null:(e=Cc&&e[Cc]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Object.assign,ns;function Kr(e){if(ns===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ns=t&&t[1]||""}return`
|
|
38
|
+
`+ns+e}var rs=!1;function is(e,t){if(!e||rs)return"";rs=!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{rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Kr(e):""}function ly(e){switch(e.tag){case 5:return Kr(e.type);case 16:return Kr("Lazy");case 13:return Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 2:case 15:return e=is(e.type,!1),e;case 11:return e=is(e.type.render,!1),e;case 1:return e=is(e.type,!0),e;default:return""}}function Qs(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 Jn:return"Fragment";case Xn:return"Portal";case Ws:return"Profiler";case cl:return"StrictMode";case Ys:return"Suspense";case Ks:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dd:return(e.displayName||"Context")+".Consumer";case Ad:return(e._context.displayName||"Context")+".Provider";case fl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dl:return t=e.displayName||null,t!==null?t:Qs(e.type)||"Memo";case Zt:t=e._payload,e=e._init;try{return Qs(e(t))}catch{}}return null}function cy(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 Qs(t);case 8:return t===cl?"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 vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fy(e){var t=Vd(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 $i(e){e._valueTracker||(e._valueTracker=fy(e))}function Ud(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jo(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 Xs(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vn(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 qd(e,t){t=t.checked,t!=null&&ll(e,"checked",t,!1)}function Js(e,t){qd(e,t);var n=vn(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")?Zs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zs(e,t.type,vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(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 Zs(e,t,n){(t!=="number"||jo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function cr(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=""+vn(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 eu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Qr(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vn(n)}}function Bd(e,t){var n=vn(t.value),r=vn(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 Ic(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hd(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 tu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vi,Gd=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(Vi=Vi||document.createElement("div"),Vi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ei={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},dy=["Webkit","ms","Moz","O"];Object.keys(ei).forEach(function(e){dy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ei[t]=ei[e]})});function Wd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ei.hasOwnProperty(e)&&ei[e]?(""+t).trim():t+"px"}function Yd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var py=fe({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 nu(e,t){if(t){if(py[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ru(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 iu=null;function pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ou=null,fr=null,dr=null;function jc(e){if(e=zi(e)){if(typeof ou!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ca(t),ou(e.stateNode,e.type,t))}}function Kd(e){fr?dr?dr.push(e):dr=[e]:fr=e}function Qd(){if(fr){var e=fr,t=dr;if(dr=fr=null,jc(e),t)for(e=0;e<t.length;e++)jc(t[e])}}function Xd(e,t){return e(t)}function Jd(){}var os=!1;function Zd(e,t,n){if(os)return e(t,n);os=!0;try{return Xd(e,t,n)}finally{os=!1,(fr!==null||dr!==null)&&(Jd(),Qd())}}function di(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(j(231,t,typeof n));return n}var au=!1;if(Bt)try{var Ar={};Object.defineProperty(Ar,"passive",{get:function(){au=!0}}),window.addEventListener("test",Ar,Ar),window.removeEventListener("test",Ar,Ar)}catch{au=!1}function hy(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 ti=!1,Lo=null,Ro=!1,su=null,my={onError:function(e){ti=!0,Lo=e}};function vy(e,t,n,r,i,o,a,u,l){ti=!1,Lo=null,hy.apply(my,arguments)}function yy(e,t,n,r,i,o,a,u,l){if(vy.apply(this,arguments),ti){if(ti){var s=Lo;ti=!1,Lo=null}else throw Error(j(198));Ro||(Ro=!0,su=s)}}function Wn(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 ep(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(Wn(e)!==e)throw Error(j(188))}function gy(e){var t=e.alternate;if(!t){if(t=Wn(e),t===null)throw Error(j(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(j(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(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function tp(e){return e=gy(e),e!==null?np(e):null}function np(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=np(e);if(t!==null)return t;e=e.sibling}return null}var rp=Je.unstable_scheduleCallback,Rc=Je.unstable_cancelCallback,_y=Je.unstable_shouldYield,wy=Je.unstable_requestPaint,ye=Je.unstable_now,Sy=Je.unstable_getCurrentPriorityLevel,hl=Je.unstable_ImmediatePriority,ip=Je.unstable_UserBlockingPriority,No=Je.unstable_NormalPriority,xy=Je.unstable_LowPriority,op=Je.unstable_IdlePriority,xa=null,It=null;function Ey(e){if(It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(xa,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:Cy,by=Math.log,Oy=Math.LN2;function Cy(e){return e>>>=0,e===0?32:31-(by(e)/Oy|0)|0}var Ui=64,qi=4194304;function Xr(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 zo(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=Xr(u):(o&=a,o!==0&&(r=Xr(o)))}else a=n&~i,a!==0?r=Xr(a):o!==0&&(r=Xr(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-_t(t),i=1<<n,r|=e[n],t&=~i;return r}function Py(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 Ty(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-_t(o),u=1<<a,l=i[a];l===-1?(!(u&n)||u&r)&&(i[a]=Py(u,t)):l<=t&&(e.expiredLanes|=u),o&=~u}}function uu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ap(){var e=Ui;return Ui<<=1,!(Ui&4194240)&&(Ui=64),e}function as(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function ky(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-_t(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function ml(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ne=0;function sp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var up,vl,lp,cp,fp,lu=!1,Bi=[],un=null,ln=null,cn=null,pi=new Map,hi=new Map,nn=[],Iy="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 Nc(e,t){switch(e){case"focusin":case"focusout":un=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":cn=null;break;case"pointerover":case"pointerout":pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.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=zi(t),t!==null&&vl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jy(e,t,n,r,i){switch(t){case"focusin":return un=Dr(un,e,t,n,r,i),!0;case"dragenter":return ln=Dr(ln,e,t,n,r,i),!0;case"mouseover":return cn=Dr(cn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return pi.set(o,Dr(pi.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,hi.set(o,Dr(hi.get(o)||null,e,t,n,r,i)),!0}return!1}function dp(e){var t=jn(e.target);if(t!==null){var n=Wn(t);if(n!==null){if(t=n.tag,t===13){if(t=ep(n),t!==null){e.blockedOn=t,fp(e.priority,function(){lp(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=cu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);iu=r,n.target.dispatchEvent(r),iu=null}else return t=zi(n),t!==null&&vl(t),e.blockedOn=n,!1;t.shift()}return!0}function zc(e,t,n){ho(e)&&n.delete(t)}function Ly(){lu=!1,un!==null&&ho(un)&&(un=null),ln!==null&&ho(ln)&&(ln=null),cn!==null&&ho(cn)&&(cn=null),pi.forEach(zc),hi.forEach(zc)}function $r(e,t){e.blockedOn===t&&(e.blockedOn=null,lu||(lu=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,Ly)))}function mi(e){function t(i){return $r(i,e)}if(0<Bi.length){$r(Bi[0],e);for(var n=1;n<Bi.length;n++){var r=Bi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(un!==null&&$r(un,e),ln!==null&&$r(ln,e),cn!==null&&$r(cn,e),pi.forEach(t),hi.forEach(t),n=0;n<nn.length;n++)r=nn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nn.length&&(n=nn[0],n.blockedOn===null);)dp(n),n.blockedOn===null&&nn.shift()}var pr=Qt.ReactCurrentBatchConfig,Mo=!0;function Ry(e,t,n,r){var i=ne,o=pr.transition;pr.transition=null;try{ne=1,yl(e,t,n,r)}finally{ne=i,pr.transition=o}}function Ny(e,t,n,r){var i=ne,o=pr.transition;pr.transition=null;try{ne=4,yl(e,t,n,r)}finally{ne=i,pr.transition=o}}function yl(e,t,n,r){if(Mo){var i=cu(e,t,n,r);if(i===null)vs(e,t,r,Fo,n),Nc(e,r);else if(jy(i,e,t,n,r))r.stopPropagation();else if(Nc(e,r),t&4&&-1<Iy.indexOf(e)){for(;i!==null;){var o=zi(i);if(o!==null&&up(o),o=cu(e,t,n,r),o===null&&vs(e,t,r,Fo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else vs(e,t,r,null,n)}}var Fo=null;function cu(e,t,n,r){if(Fo=null,e=pl(r),e=jn(e),e!==null)if(t=Wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ep(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 Fo=e,null}function pp(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(Sy()){case hl:return 1;case ip:return 4;case No:case xy:return 16;case op:return 536870912;default:return 16}default:return 16}}var on=null,gl=null,mo=null;function hp(){if(mo)return mo;var e,t=gl,n=t.length,r,i="value"in on?on.value:on.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 vo(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 Hi(){return!0}function Mc(){return!1}function et(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)?Hi:Mc,this.isPropagationStopped=Mc,this}return fe(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=Hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),t}var Nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_l=et(Nr),Ni=fe({},Nr,{view:0,detail:0}),zy=et(Ni),ss,us,Vr,Ea=fe({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,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!==Vr&&(Vr&&e.type==="mousemove"?(ss=e.screenX-Vr.screenX,us=e.screenY-Vr.screenY):us=ss=0,Vr=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:us}}),Fc=et(Ea),My=fe({},Ea,{dataTransfer:0}),Fy=et(My),Ay=fe({},Ni,{relatedTarget:0}),ls=et(Ay),Dy=fe({},Nr,{animationName:0,elapsedTime:0,pseudoElement:0}),$y=et(Dy),Vy=fe({},Nr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=et(Vy),qy=fe({},Nr,{data:0}),Ac=et(qy),By={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},Gy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gy[e])?!!t[e]:!1}function wl(){return Wy}var Yy=fe({},Ni,{key:function(e){if(e.key){var t=By[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ky=et(Yy),Qy=fe({},Ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dc=et(Qy),Xy=fe({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),Jy=et(Xy),Zy=fe({},Nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),eg=et(Zy),tg=fe({},Ea,{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}),ng=et(tg),rg=[9,13,27,32],Sl=Bt&&"CompositionEvent"in window,ni=null;Bt&&"documentMode"in document&&(ni=document.documentMode);var ig=Bt&&"TextEvent"in window&&!ni,mp=Bt&&(!Sl||ni&&8<ni&&11>=ni),$c=" ",Vc=!1;function vp(e,t){switch(e){case"keyup":return rg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function og(e,t){switch(e){case"compositionend":return yp(t);case"keypress":return t.which!==32?null:(Vc=!0,$c);case"textInput":return e=t.data,e===$c&&Vc?null:e;default:return null}}function ag(e,t){if(Zn)return e==="compositionend"||!Sl&&vp(e,t)?(e=hp(),mo=gl=on=null,Zn=!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 mp&&t.locale!=="ko"?null:t.data;default:return null}}var sg={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 Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sg[e.type]:t==="textarea"}function gp(e,t,n,r){Kd(r),t=Ao(t,"onChange"),0<t.length&&(n=new _l("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ri=null,vi=null;function ug(e){kp(e,0)}function ba(e){var t=nr(e);if(Ud(t))return e}function lg(e,t){if(e==="change")return t}var _p=!1;if(Bt){var cs;if(Bt){var fs="oninput"in document;if(!fs){var qc=document.createElement("div");qc.setAttribute("oninput","return;"),fs=typeof qc.oninput=="function"}cs=fs}else cs=!1;_p=cs&&(!document.documentMode||9<document.documentMode)}function Bc(){ri&&(ri.detachEvent("onpropertychange",wp),vi=ri=null)}function wp(e){if(e.propertyName==="value"&&ba(vi)){var t=[];gp(t,vi,e,pl(e)),Zd(ug,t)}}function cg(e,t,n){e==="focusin"?(Bc(),ri=t,vi=n,ri.attachEvent("onpropertychange",wp)):e==="focusout"&&Bc()}function fg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ba(vi)}function dg(e,t){if(e==="click")return ba(t)}function pg(e,t){if(e==="input"||e==="change")return ba(t)}function hg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:hg;function yi(e,t){if(St(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(!Gs.call(t,i)||!St(e[i],t[i]))return!1}return!0}function Hc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gc(e,t){var n=Hc(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=Hc(n)}}function Sp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xp(){for(var e=window,t=jo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jo(e.document)}return t}function xl(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 mg(e){var t=xp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sp(n.ownerDocument.documentElement,n)){if(r!==null&&xl(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=Gc(n,o);var a=Gc(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 vg=Bt&&"documentMode"in document&&11>=document.documentMode,er=null,fu=null,ii=null,du=!1;function Wc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;du||er==null||er!==jo(r)||(r=er,"selectionStart"in r&&xl(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}),ii&&yi(ii,r)||(ii=r,r=Ao(fu,"onSelect"),0<r.length&&(t=new _l("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=er)))}function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tr={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionend:Gi("Transition","TransitionEnd")},ds={},Ep={};Bt&&(Ep=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function Oa(e){if(ds[e])return ds[e];if(!tr[e])return e;var t=tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ep)return ds[e]=t[n];return e}var bp=Oa("animationend"),Op=Oa("animationiteration"),Cp=Oa("animationstart"),Pp=Oa("transitionend"),Tp=new Map,Yc="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 _n(e,t){Tp.set(e,t),Gn(t,[e])}for(var ps=0;ps<Yc.length;ps++){var hs=Yc[ps],yg=hs.toLowerCase(),gg=hs[0].toUpperCase()+hs.slice(1);_n(yg,"on"+gg)}_n(bp,"onAnimationEnd");_n(Op,"onAnimationIteration");_n(Cp,"onAnimationStart");_n("dblclick","onDoubleClick");_n("focusin","onFocus");_n("focusout","onBlur");_n(Pp,"onTransitionEnd");Or("onMouseEnter",["mouseout","mouseover"]);Or("onMouseLeave",["mouseout","mouseover"]);Or("onPointerEnter",["pointerout","pointerover"]);Or("onPointerLeave",["pointerout","pointerover"]);Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="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(" "),_g=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function Kc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yy(r,t,void 0,e),e.currentTarget=null}function kp(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;Kc(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;Kc(i,u,s),o=l}}}if(Ro)throw e=su,Ro=!1,su=null,e}function ae(e,t){var n=t[yu];n===void 0&&(n=t[yu]=new Set);var r=e+"__bubble";n.has(r)||(Ip(t,e,2,!1),n.add(r))}function ms(e,t,n){var r=0;t&&(r|=4),Ip(n,e,r,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function gi(e){if(!e[Wi]){e[Wi]=!0,Fd.forEach(function(n){n!=="selectionchange"&&(_g.has(n)||ms(n,!1,e),ms(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,ms("selectionchange",!1,t))}}function Ip(e,t,n,r){switch(pp(t)){case 1:var i=Ry;break;case 4:i=Ny;break;default:i=yl}n=i.bind(null,t,n,e),i=void 0,!au||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 vs(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=jn(u),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}u=u.parentNode}}r=r.return}Zd(function(){var s=o,c=pl(n),d=[];e:{var f=Tp.get(e);if(f!==void 0){var h=_l,p=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":h=Ky;break;case"focusin":p="focus",h=ls;break;case"focusout":p="blur",h=ls;break;case"beforeblur":case"afterblur":h=ls;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=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Jy;break;case bp:case Op:case Cp:h=$y;break;case Pp:h=eg;break;case"scroll":h=zy;break;case"wheel":h=ng;break;case"copy":case"cut":case"paste":h=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Dc}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var v=s,g;v!==null;){g=v;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,m!==null&&(w=di(v,m),w!=null&&y.push(_i(v,w,g)))),x)break;v=v.return}0<y.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==iu&&(p=n.relatedTarget||n.fromElement)&&(jn(p)||p[Ht]))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?jn(p):null,p!==null&&(x=Wn(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=s),h!==p)){if(y=Fc,w="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Dc,w="onPointerLeave",m="onPointerEnter",v="pointer"),x=h==null?f:nr(h),g=p==null?f:nr(p),f=new y(w,v+"leave",h,n,c),f.target=x,f.relatedTarget=g,w=null,jn(c)===s&&(y=new y(m,v+"enter",p,n,c),y.target=g,y.relatedTarget=x,w=y),x=w,h&&p)t:{for(y=h,m=p,v=0,g=y;g;g=Yn(g))v++;for(g=0,w=m;w;w=Yn(w))g++;for(;0<v-g;)y=Yn(y),v--;for(;0<g-v;)m=Yn(m),g--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=Yn(y),m=Yn(m)}y=null}else y=null;h!==null&&Qc(d,f,h,y,!1),p!==null&&x!==null&&Qc(d,x,p,y,!0)}}e:{if(f=s?nr(s):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var O=lg;else if(Uc(f))if(_p)O=pg;else{O=fg;var E=cg}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(O=dg);if(O&&(O=O(e,s))){gp(d,O,n,c);break e}E&&E(e,f,s),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Zs(f,"number",f.value)}switch(E=s?nr(s):window,e){case"focusin":(Uc(E)||E.contentEditable==="true")&&(er=E,fu=s,ii=null);break;case"focusout":ii=fu=er=null;break;case"mousedown":du=!0;break;case"contextmenu":case"mouseup":case"dragend":du=!1,Wc(d,n,c);break;case"selectionchange":if(vg)break;case"keydown":case"keyup":Wc(d,n,c)}var b;if(Sl)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 Zn?vp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(mp&&n.locale!=="ko"&&(Zn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Zn&&(b=hp()):(on=c,gl="value"in on?on.value:on.textContent,Zn=!0)),E=Ao(s,P),0<E.length&&(P=new Ac(P,e,null,n,c),d.push({event:P,listeners:E}),b?P.data=b:(b=yp(n),b!==null&&(P.data=b)))),(b=ig?og(e,n):ag(e,n))&&(s=Ao(s,"onBeforeInput"),0<s.length&&(c=new Ac("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:s}),c.data=b))}kp(d,t)})}function _i(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=di(e,n),o!=null&&r.unshift(_i(e,o,i)),o=di(e,t),o!=null&&r.push(_i(e,o,i))),e=e.return}return r}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qc(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=di(n,o),l!=null&&a.unshift(_i(n,l,u))):i||(l=di(n,o),l!=null&&a.push(_i(n,l,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var wg=/\r\n?/g,Sg=/\u0000|\uFFFD/g;function Xc(e){return(typeof e=="string"?e:""+e).replace(wg,`
|
|
42
|
+
`).replace(Sg,"")}function Yi(e,t,n){if(t=Xc(t),Xc(e)!==t&&n)throw Error(j(425))}function Do(){}var pu=null,hu=null;function mu(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 vu=typeof setTimeout=="function"?setTimeout:void 0,xg=typeof clearTimeout=="function"?clearTimeout:void 0,Jc=typeof Promise=="function"?Promise:void 0,Eg=typeof queueMicrotask=="function"?queueMicrotask:typeof Jc<"u"?function(e){return Jc.resolve(null).then(e).catch(bg)}:vu;function bg(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),mi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);mi(t)}function fn(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 Zc(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 zr=Math.random().toString(36).slice(2),Pt="__reactFiber$"+zr,wi="__reactProps$"+zr,Ht="__reactContainer$"+zr,yu="__reactEvents$"+zr,Og="__reactListeners$"+zr,Cg="__reactHandles$"+zr;function jn(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ht]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zc(e);e!==null;){if(n=e[Pt])return n;e=Zc(e)}return t}e=n,n=e.parentNode}return null}function zi(e){return e=e[Pt]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ca(e){return e[wi]||null}var gu=[],rr=-1;function wn(e){return{current:e}}function se(e){0>rr||(e.current=gu[rr],gu[rr]=null,rr--)}function oe(e,t){rr++,gu[rr]=e.current,e.current=t}var yn={},ze=wn(yn),Be=wn(!1),Dn=yn;function Cr(e,t){var n=e.type.contextTypes;if(!n)return yn;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 He(e){return e=e.childContextTypes,e!=null}function $o(){se(Be),se(ze)}function ef(e,t,n){if(ze.current!==yn)throw Error(j(168));oe(ze,t),oe(Be,n)}function jp(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(j(108,cy(e)||"Unknown",i));return fe({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,Dn=ze.current,oe(ze,e),oe(Be,Be.current),!0}function tf(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=jp(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,se(Be),se(ze),oe(ze,e)):se(Be),oe(Be,n)}var Dt=null,Pa=!1,gs=!1;function Lp(e){Dt===null?Dt=[e]:Dt.push(e)}function Pg(e){Pa=!0,Lp(e)}function Sn(){if(!gs&&Dt!==null){gs=!0;var e=0,t=ne;try{var n=Dt;for(ne=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)),rp(hl,Sn),i}finally{ne=t,gs=!1}}return null}var ir=[],or=0,Uo=null,qo=0,ut=[],lt=0,$n=null,$t=1,Vt="";function Pn(e,t){ir[or++]=qo,ir[or++]=Uo,Uo=e,qo=t}function Rp(e,t,n){ut[lt++]=$t,ut[lt++]=Vt,ut[lt++]=$n,$n=e;var r=$t;e=Vt;var i=32-_t(r)-1;r&=~(1<<i),n+=1;var o=32-_t(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,$t=1<<32-_t(t)+i|n<<i|r,Vt=o+e}else $t=1<<o|n<<i|r,Vt=e}function El(e){e.return!==null&&(Pn(e,1),Rp(e,1,0))}function bl(e){for(;e===Uo;)Uo=ir[--or],ir[or]=null,qo=ir[--or],ir[or]=null;for(;e===$n;)$n=ut[--lt],ut[lt]=null,Vt=ut[--lt],ut[lt]=null,$t=ut[--lt],ut[lt]=null}var Qe=null,Ke=null,ue=!1,yt=null;function Np(e,t){var n=ct(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 nf(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,Qe=e,Ke=fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$n!==null?{id:$t,overflow:Vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,Ke=null,!0):!1;default:return!1}}function _u(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wu(e){if(ue){var t=Ke;if(t){var n=t;if(!nf(e,t)){if(_u(e))throw Error(j(418));t=fn(n.nextSibling);var r=Qe;t&&nf(e,t)?Np(r,n):(e.flags=e.flags&-4097|2,ue=!1,Qe=e)}}else{if(_u(e))throw Error(j(418));e.flags=e.flags&-4097|2,ue=!1,Qe=e}}}function rf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Ki(e){if(e!==Qe)return!1;if(!ue)return rf(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mu(e.type,e.memoizedProps)),t&&(t=Ke)){if(_u(e))throw zp(),Error(j(418));for(;t;)Np(e,t),t=fn(t.nextSibling)}if(rf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=fn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Qe?fn(e.stateNode.nextSibling):null;return!0}function zp(){for(var e=Ke;e;)e=fn(e.nextSibling)}function Pr(){Ke=Qe=null,ue=!1}function Ol(e){yt===null?yt=[e]:yt.push(e)}var Tg=Qt.ReactCurrentBatchConfig;function Ur(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(j(309));var r=n.stateNode}if(!r)throw Error(j(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(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Qi(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function of(e){var t=e._init;return t(e._payload)}function Mp(e){function t(m,v){if(e){var g=m.deletions;g===null?(m.deletions=[v],m.flags|=16):g.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=mn(m,v),m.index=0,m.sibling=null,m}function o(m,v,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<v?(m.flags|=2,v):g):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function u(m,v,g,w){return v===null||v.tag!==6?(v=Os(g,m.mode,w),v.return=m,v):(v=i(v,g),v.return=m,v)}function l(m,v,g,w){var O=g.type;return O===Jn?c(m,v,g.props.children,w,g.key):v!==null&&(v.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Zt&&of(O)===v.type)?(w=i(v,g.props),w.ref=Ur(m,v,g),w.return=m,w):(w=Eo(g.type,g.key,g.props,null,m.mode,w),w.ref=Ur(m,v,g),w.return=m,w)}function s(m,v,g,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==g.containerInfo||v.stateNode.implementation!==g.implementation?(v=Cs(g,m.mode,w),v.return=m,v):(v=i(v,g.children||[]),v.return=m,v)}function c(m,v,g,w,O){return v===null||v.tag!==7?(v=Mn(g,m.mode,w,O),v.return=m,v):(v=i(v,g),v.return=m,v)}function d(m,v,g){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Os(""+v,m.mode,g),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Di:return g=Eo(v.type,v.key,v.props,null,m.mode,g),g.ref=Ur(m,null,v),g.return=m,g;case Xn:return v=Cs(v,m.mode,g),v.return=m,v;case Zt:var w=v._init;return d(m,w(v._payload),g)}if(Qr(v)||Fr(v))return v=Mn(v,m.mode,g,null),v.return=m,v;Qi(m,v)}return null}function f(m,v,g,w){var O=v!==null?v.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return O!==null?null:u(m,v,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Di:return g.key===O?l(m,v,g,w):null;case Xn:return g.key===O?s(m,v,g,w):null;case Zt:return O=g._init,f(m,v,O(g._payload),w)}if(Qr(g)||Fr(g))return O!==null?null:c(m,v,g,w,null);Qi(m,g)}return null}function h(m,v,g,w,O){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(g)||null,u(v,m,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Di:return m=m.get(w.key===null?g:w.key)||null,l(v,m,w,O);case Xn:return m=m.get(w.key===null?g:w.key)||null,s(v,m,w,O);case Zt:var E=w._init;return h(m,v,g,E(w._payload),O)}if(Qr(w)||Fr(w))return m=m.get(g)||null,c(v,m,w,O,null);Qi(v,w)}return null}function p(m,v,g,w){for(var O=null,E=null,b=v,P=v=0,R=null;b!==null&&P<g.length;P++){b.index>P?(R=b,b=null):R=b.sibling;var L=f(m,b,g[P],w);if(L===null){b===null&&(b=R);break}e&&b&&L.alternate===null&&t(m,b),v=o(L,v,P),E===null?O=L:E.sibling=L,E=L,b=R}if(P===g.length)return n(m,b),ue&&Pn(m,P),O;if(b===null){for(;P<g.length;P++)b=d(m,g[P],w),b!==null&&(v=o(b,v,P),E===null?O=b:E.sibling=b,E=b);return ue&&Pn(m,P),O}for(b=r(m,b);P<g.length;P++)R=h(b,m,P,g[P],w),R!==null&&(e&&R.alternate!==null&&b.delete(R.key===null?P:R.key),v=o(R,v,P),E===null?O=R:E.sibling=R,E=R);return e&&b.forEach(function(B){return t(m,B)}),ue&&Pn(m,P),O}function y(m,v,g,w){var O=Fr(g);if(typeof O!="function")throw Error(j(150));if(g=O.call(g),g==null)throw Error(j(151));for(var E=O=null,b=v,P=v=0,R=null,L=g.next();b!==null&&!L.done;P++,L=g.next()){b.index>P?(R=b,b=null):R=b.sibling;var B=f(m,b,L.value,w);if(B===null){b===null&&(b=R);break}e&&b&&B.alternate===null&&t(m,b),v=o(B,v,P),E===null?O=B:E.sibling=B,E=B,b=R}if(L.done)return n(m,b),ue&&Pn(m,P),O;if(b===null){for(;!L.done;P++,L=g.next())L=d(m,L.value,w),L!==null&&(v=o(L,v,P),E===null?O=L:E.sibling=L,E=L);return ue&&Pn(m,P),O}for(b=r(m,b);!L.done;P++,L=g.next())L=h(b,m,P,L.value,w),L!==null&&(e&&L.alternate!==null&&b.delete(L.key===null?P:L.key),v=o(L,v,P),E===null?O=L:E.sibling=L,E=L);return e&&b.forEach(function(N){return t(m,N)}),ue&&Pn(m,P),O}function x(m,v,g,w){if(typeof g=="object"&&g!==null&&g.type===Jn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Di:e:{for(var O=g.key,E=v;E!==null;){if(E.key===O){if(O=g.type,O===Jn){if(E.tag===7){n(m,E.sibling),v=i(E,g.props.children),v.return=m,m=v;break e}}else if(E.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Zt&&of(O)===E.type){n(m,E.sibling),v=i(E,g.props),v.ref=Ur(m,E,g),v.return=m,m=v;break e}n(m,E);break}else t(m,E);E=E.sibling}g.type===Jn?(v=Mn(g.props.children,m.mode,w,g.key),v.return=m,m=v):(w=Eo(g.type,g.key,g.props,null,m.mode,w),w.ref=Ur(m,v,g),w.return=m,m=w)}return a(m);case Xn:e:{for(E=g.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){n(m,v.sibling),v=i(v,g.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Cs(g,m.mode,w),v.return=m,m=v}return a(m);case Zt:return E=g._init,x(m,v,E(g._payload),w)}if(Qr(g))return p(m,v,g,w);if(Fr(g))return y(m,v,g,w);Qi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,g),v.return=m,m=v):(n(m,v),v=Os(g,m.mode,w),v.return=m,m=v),a(m)):n(m,v)}return x}var Tr=Mp(!0),Fp=Mp(!1),Bo=wn(null),Ho=null,ar=null,Cl=null;function Pl(){Cl=ar=Ho=null}function Tl(e){var t=Bo.current;se(Bo),e._currentValue=t}function Su(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 hr(e,t){Ho=e,Cl=ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(Cl!==e)if(e={context:e,memoizedValue:t,next:null},ar===null){if(Ho===null)throw Error(j(308));ar=e,Ho.dependencies={lanes:0,firstContext:e}}else ar=ar.next=e;return t}var Ln=null;function kl(e){Ln===null?Ln=[e]:Ln.push(e)}function Ap(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,kl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Gt(e,r)}function Gt(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 en=!1;function Il(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dp(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,n)}return i=r.interleaved,i===null?(t.next=t,kl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,n)}function yo(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,ml(e,n)}}function af(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;en=!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,y=u;switch(f=t,h=n,y.tag){case 1:if(p=y.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=y.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=fe({},d,f);break e;case 2:en=!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);Un|=a,e.lanes=a,e.memoizedState=d}}function sf(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(j(191,i));i.call(r)}}}var Mi={},jt=wn(Mi),Si=wn(Mi),xi=wn(Mi);function Rn(e){if(e===Mi)throw Error(j(174));return e}function jl(e,t){switch(oe(xi,t),oe(Si,e),oe(jt,Mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tu(t,e)}se(jt),oe(jt,t)}function kr(){se(jt),se(Si),se(xi)}function $p(e){Rn(xi.current);var t=Rn(jt.current),n=tu(t,e.type);t!==n&&(oe(Si,e),oe(jt,n))}function Ll(e){Si.current===e&&(se(jt),se(Si))}var le=wn(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 _s=[];function Rl(){for(var e=0;e<_s.length;e++)_s[e]._workInProgressVersionPrimary=null;_s.length=0}var go=Qt.ReactCurrentDispatcher,ws=Qt.ReactCurrentBatchConfig,Vn=0,ce=null,Se=null,Ee=null,Yo=!1,oi=!1,Ei=0,kg=0;function je(){throw Error(j(321))}function Nl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function zl(e,t,n,r,i,o){if(Vn=o,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,go.current=e===null||e.memoizedState===null?Rg:Ng,e=n(r,i),oi){o=0;do{if(oi=!1,Ei=0,25<=o)throw Error(j(301));o+=1,Ee=Se=null,t.updateQueue=null,go.current=zg,e=n(r,i)}while(oi)}if(go.current=Ko,t=Se!==null&&Se.next!==null,Vn=0,Ee=Se=ce=null,Yo=!1,t)throw Error(j(300));return e}function Ml(){var e=Ei!==0;return Ei=0,e}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?ce.memoizedState=Ee=e:Ee=Ee.next=e,Ee}function pt(){if(Se===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Ee===null?ce.memoizedState:Ee.next;if(t!==null)Ee=t,Se=e;else{if(e===null)throw Error(j(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Ee===null?ce.memoizedState=Ee=e:Ee=Ee.next=e}return Ee}function bi(e,t){return typeof t=="function"?t(e):t}function Ss(e){var t=pt(),n=t.queue;if(n===null)throw Error(j(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((Vn&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,ce.lanes|=c,Un|=c}s=s.next}while(s!==null&&s!==o);l===null?a=r:l.next=u,St(r,t.memoizedState)||(qe=!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,ce.lanes|=o,Un|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xs(e){var t=pt(),n=t.queue;if(n===null)throw Error(j(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);St(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vp(){}function Up(e,t){var n=ce,r=pt(),i=t(),o=!St(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,Fl(Hp.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ee!==null&&Ee.memoizedState.tag&1){if(n.flags|=2048,Oi(9,Bp.bind(null,n,r,i,t),void 0,null),be===null)throw Error(j(349));Vn&30||qp(n,t,i)}return i}function qp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t={lastEffect:null,stores:null},ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bp(e,t,n,r){t.value=n,t.getSnapshot=r,Gp(t)&&Wp(e)}function Hp(e,t,n){return n(function(){Gp(t)&&Wp(e)})}function Gp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function Wp(e){var t=Gt(e,1);t!==null&&wt(t,e,1,-1)}function uf(e){var t=bt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},t.queue=e,e=e.dispatch=Lg.bind(null,ce,e),[t.memoizedState,e]}function Oi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ce.updateQueue,t===null?(t={lastEffect:null,stores:null},ce.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 Yp(){return pt().memoizedState}function _o(e,t,n,r){var i=bt();ce.flags|=e,i.memoizedState=Oi(1|t,n,void 0,r===void 0?null:r)}function Ta(e,t,n,r){var i=pt();r=r===void 0?null:r;var o=void 0;if(Se!==null){var a=Se.memoizedState;if(o=a.destroy,r!==null&&Nl(r,a.deps)){i.memoizedState=Oi(t,n,o,r);return}}ce.flags|=e,i.memoizedState=Oi(1|t,n,o,r)}function lf(e,t){return _o(8390656,8,e,t)}function Fl(e,t){return Ta(2048,8,e,t)}function Kp(e,t){return Ta(4,2,e,t)}function Qp(e,t){return Ta(4,4,e,t)}function Xp(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 Jp(e,t,n){return n=n!=null?n.concat([e]):null,Ta(4,4,Xp.bind(null,t,e),n)}function Al(){}function Zp(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eh(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function th(e,t,n){return Vn&21?(St(n,t)||(n=ap(),ce.lanes|=n,Un|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Ig(e,t){var n=ne;ne=n!==0&&4>n?n:4,e(!0);var r=ws.transition;ws.transition={};try{e(!1),t()}finally{ne=n,ws.transition=r}}function nh(){return pt().memoizedState}function jg(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rh(e))ih(t,n);else if(n=Ap(e,t,n,r),n!==null){var i=Ae();wt(n,e,r,i),oh(n,t,r)}}function Lg(e,t,n){var r=hn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rh(e))ih(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,St(u,a)){var l=t.interleaved;l===null?(i.next=i,kl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ap(e,t,i,r),n!==null&&(i=Ae(),wt(n,e,r,i),oh(n,t,r))}}function rh(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function ih(e,t){oi=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ml(e,n)}}var Ko={readContext:dt,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},Rg={readContext:dt,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:lf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_o(4194308,4,Xp.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=bt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bt();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=jg.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:uf,useDebugValue:Al,useDeferredValue:function(e){return bt().memoizedState=e},useTransition:function(){var e=uf(!1),t=e[0];return e=Ig.bind(null,e[1]),bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,i=bt();if(ue){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),be===null)throw Error(j(349));Vn&30||qp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,lf(Hp.bind(null,r,o,e),[e]),r.flags|=2048,Oi(9,Bp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=bt(),t=be.identifierPrefix;if(ue){var n=Vt,r=$t;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ng={readContext:dt,useCallback:Zp,useContext:dt,useEffect:Fl,useImperativeHandle:Jp,useInsertionEffect:Kp,useLayoutEffect:Qp,useMemo:eh,useReducer:Ss,useRef:Yp,useState:function(){return Ss(bi)},useDebugValue:Al,useDeferredValue:function(e){var t=pt();return th(t,Se.memoizedState,e)},useTransition:function(){var e=Ss(bi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Vp,useSyncExternalStore:Up,useId:nh,unstable_isNewReconciler:!1},zg={readContext:dt,useCallback:Zp,useContext:dt,useEffect:Fl,useImperativeHandle:Jp,useInsertionEffect:Kp,useLayoutEffect:Qp,useMemo:eh,useReducer:xs,useRef:Yp,useState:function(){return xs(bi)},useDebugValue:Al,useDeferredValue:function(e){var t=pt();return Se===null?t.memoizedState=e:th(t,Se.memoizedState,e)},useTransition:function(){var e=xs(bi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Vp,useSyncExternalStore:Up,useId:nh,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ka={isMounted:function(e){return(e=e._reactInternals)?Wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=hn(e),o=Ut(r,i);o.payload=t,n!=null&&(o.callback=n),t=dn(e,o,i),t!==null&&(wt(t,e,i,r),yo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=hn(e),o=Ut(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=dn(e,o,i),t!==null&&(wt(t,e,i,r),yo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=hn(e),i=Ut(n,r);i.tag=2,t!=null&&(i.callback=t),t=dn(e,i,r),t!==null&&(wt(t,e,r,n),yo(t,e,r))}};function cf(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?!yi(n,r)||!yi(i,o):!0}function ah(e,t,n){var r=!1,i=yn,o=t.contextType;return typeof o=="object"&&o!==null?o=dt(o):(i=He(t)?Dn:ze.current,r=t.contextTypes,o=(r=r!=null)?Cr(e,i):yn),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 ff(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 Eu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Il(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=dt(o):(o=He(t)?Dn:ze.current,i.context=Cr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xu(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 Ir(e,t){try{var n="",r=t;do n+=ly(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 bu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Mg=typeof WeakMap=="function"?WeakMap:Map;function sh(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xo||(Xo=!0,Nu=r),bu(e,t)},n}function uh(e,t,n){n=Ut(-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(){bu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bu(e,t),typeof r!="function"&&(pn===null?pn=new Set([this]):pn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function df(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Mg;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=Qg.bind(null,e,t,n),t.then(e,e))}function pf(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 hf(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=Ut(-1,1),t.tag=2,dn(n,t,1))),n.lanes|=1),e)}var Fg=Qt.ReactCurrentOwner,qe=!1;function Fe(e,t,n,r){t.child=e===null?Fp(t,null,n,r):Tr(t,e.child,n,r)}function mf(e,t,n,r,i){n=n.render;var o=t.ref;return hr(t,i),r=zl(e,t,n,r,o,i),n=Ml(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wt(e,t,i)):(ue&&n&&El(t),t.flags|=1,Fe(e,t,r,i),t.child)}function vf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Gl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,lh(e,t,o,r,i)):(e=Eo(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:yi,n(a,r)&&e.ref===t.ref)return Wt(e,t,i)}return t.flags|=1,e=mn(o,r),e.ref=t.ref,e.return=t,t.child=e}function lh(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(yi(o,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,Wt(e,t,i)}return Ou(e,t,n,r,i)}function ch(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},oe(ur,Ye),Ye|=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,oe(ur,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,oe(ur,Ye),Ye|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,oe(ur,Ye),Ye|=r;return Fe(e,t,i,n),t.child}function fh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ou(e,t,n,r,i){var o=He(n)?Dn:ze.current;return o=Cr(t,o),hr(t,i),n=zl(e,t,n,r,o,i),r=Ml(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wt(e,t,i)):(ue&&r&&El(t),t.flags|=1,Fe(e,t,n,i),t.child)}function yf(e,t,n,r,i){if(He(n)){var o=!0;Vo(t)}else o=!1;if(hr(t,i),t.stateNode===null)wo(e,t),ah(t,n,r),Eu(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=dt(s):(s=He(n)?Dn:ze.current,s=Cr(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)&&ff(t,a,r,s),en=!1;var f=t.memoizedState;a.state=f,Go(t,r,a,i),l=t.memoizedState,u!==r||f!==l||Be.current||en?(typeof c=="function"&&(xu(t,n,c,r),l=t.memoizedState),(u=en||cf(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,Dp(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:mt(t.type,u),a.props=s,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=dt(l):(l=He(n)?Dn:ze.current,l=Cr(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)&&ff(t,a,r,l),en=!1,f=t.memoizedState,a.state=f,Go(t,r,a,i);var p=t.memoizedState;u!==d||f!==p||Be.current||en?(typeof h=="function"&&(xu(t,n,h,r),p=t.memoizedState),(s=en||cf(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 Cu(e,t,n,r,o,i)}function Cu(e,t,n,r,i,o){fh(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&tf(t,n,!1),Wt(e,t,o);r=t.stateNode,Fg.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Tr(t,e.child,null,o),t.child=Tr(t,null,u,o)):Fe(e,t,u,o),t.memoizedState=r.state,i&&tf(t,n,!0),t.child}function dh(e){var t=e.stateNode;t.pendingContext?ef(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ef(e,t.context,!1),jl(e,t.containerInfo)}function gf(e,t,n,r,i){return Pr(),Ol(i),t.flags|=256,Fe(e,t,n,r),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0};function Tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function ph(e,t,n){var r=t.pendingProps,i=le.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),oe(le,i&1),e===null)return wu(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=La(a,r,0,null),e=Mn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Tu(n),t.memoizedState=Pu,e):Dl(t,a));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Ag(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=mn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=mn(u,o):(o=Mn(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?Tu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Pu,r}return o=e.child,e=o.sibling,r=mn(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=La({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xi(e,t,n,r){return r!==null&&Ol(r),Tr(t,e.child,null,n),e=Dl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ag(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Es(Error(j(422))),Xi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=La({mode:"visible",children:r.children},i,0,null),o=Mn(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Tr(t,e.child,null,a),t.child.memoizedState=Tu(a),t.memoizedState=Pu,o);if(!(t.mode&1))return Xi(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(j(419)),r=Es(o,r,void 0),Xi(e,t,a,r)}if(u=(a&e.childLanes)!==0,qe||u){if(r=be,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Gt(e,i),wt(r,e,i,-1))}return Hl(),r=Es(Error(j(421))),Xi(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Xg.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ke=fn(i.nextSibling),Qe=t,ue=!0,yt=null,e!==null&&(ut[lt++]=$t,ut[lt++]=Vt,ut[lt++]=$n,$t=e.id,Vt=e.overflow,$n=t),t=Dl(t,r.children),t.flags|=4096,t)}function _f(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Su(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 hh(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Fe(e,t,r.children,n),r=le.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&&_f(e,n,t);else if(e.tag===19)_f(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(oe(le,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 Wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dg(e,t,n){switch(t.tag){case 3:dh(t),Pr();break;case 5:$p(t);break;case 1:He(t.type)&&Vo(t);break;case 4:jl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;oe(Bo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(oe(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?ph(e,t,n):(oe(le,le.current&1),e=Wt(e,t,n),e!==null?e.sibling:null);oe(le,le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),oe(le,le.current),r)break;return null;case 22:case 23:return t.lanes=0,ch(e,t,n)}return Wt(e,t,n)}var mh,ku,vh,yh;mh=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}};ku=function(){};vh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Rn(jt.current);var o=null;switch(n){case"input":i=Xs(e,i),r=Xs(e,r),o=[];break;case"select":i=fe({},i,{value:void 0}),r=fe({},r,{value:void 0}),o=[];break;case"textarea":i=eu(e,i),r=eu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Do)}nu(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"&&(ci.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"&&(ci.hasOwnProperty(s)?(l!=null&&s==="onScroll"&&ae("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)}};yh=function(e,t,n,r){n!==r&&(t.flags|=4)};function qr(e,t){if(!ue)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 $g(e,t,n){var r=t.pendingProps;switch(bl(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 He(t.type)&&$o(),Le(t),null;case 3:return r=t.stateNode,kr(),se(Be),se(ze),Rl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ki(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(Fu(yt),yt=null))),ku(e,t),Le(t),null;case 5:Ll(t);var i=Rn(xi.current);if(n=t.type,e!==null&&t.stateNode!=null)vh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return Le(t),null}if(e=Rn(jt.current),Ki(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Pt]=t,r[wi]=o,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(i=0;i<Jr.length;i++)ae(Jr[i],r);break;case"source":ae("error",r);break;case"img":case"image":case"link":ae("error",r),ae("load",r);break;case"details":ae("toggle",r);break;case"input":Pc(r,o),ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ae("invalid",r);break;case"textarea":kc(r,o),ae("invalid",r)}nu(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&&Yi(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Yi(r.textContent,u,e),i=["children",""+u]):ci.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&ae("scroll",r)}switch(n){case"input":$i(r),Tc(r,o,!0);break;case"textarea":$i(r),Ic(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Do)}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=Hd(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[Pt]=t,e[wi]=r,mh(e,t,!1,!1),t.stateNode=e;e:{switch(a=ru(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;i<Jr.length;i++)ae(Jr[i],e);i=r;break;case"source":ae("error",e),i=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),i=r;break;case"details":ae("toggle",e),i=r;break;case"input":Pc(e,r),i=Xs(e,r),ae("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=fe({},r,{value:void 0}),ae("invalid",e);break;case"textarea":kc(e,r),i=eu(e,r),ae("invalid",e);break;default:i=r}nu(n,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var l=u[o];o==="style"?Yd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Gd(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&fi(e,l):typeof l=="number"&&fi(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ci.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ae("scroll",e):l!=null&&ll(e,o,l,a))}switch(n){case"input":$i(e),Tc(e,r,!1);break;case"textarea":$i(e),Ic(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?cr(e,!!r.multiple,o,!1):r.defaultValue!=null&&cr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Do)}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)yh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Rn(xi.current),Rn(jt.current),Ki(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pt]=t,(o=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:Yi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pt]=t,t.stateNode=r}return Le(t),null;case 13:if(se(le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&Ke!==null&&t.mode&1&&!(t.flags&128))zp(),Pr(),t.flags|=98560,o=!1;else if(o=Ki(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(j(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(j(317));o[Pt]=t}else Pr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Le(t),o=!1}else yt!==null&&(Fu(yt),yt=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||le.current&1?xe===0&&(xe=3):Hl())),t.updateQueue!==null&&(t.flags|=4),Le(t),null);case 4:return kr(),ku(e,t),e===null&&gi(t.stateNode.containerInfo),Le(t),null;case 10:return Tl(t.type._context),Le(t),null;case 17:return He(t.type)&&$o(),Le(t),null;case 19:if(se(le),o=t.memoizedState,o===null)return Le(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)qr(o,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Wo(e),a!==null){for(t.flags|=128,qr(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 oe(le,le.current&1|2),t.child}e=e.sibling}o.tail!==null&&ye()>jr&&(t.flags|=128,r=!0,qr(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),qr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ue)return Le(t),null}else 2*ye()-o.renderingStartTime>jr&&n!==1073741824&&(t.flags|=128,r=!0,qr(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=ye(),t.sibling=null,n=le.current,oe(le,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return Bl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Vg(e,t){switch(bl(t),t.tag){case 1:return He(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),se(Be),se(ze),Rl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ll(t),null;case 13:if(se(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(le),null;case 4:return kr(),null;case 10:return Tl(t.type._context),null;case 22:case 23:return Bl(),null;case 24:return null;default:return null}}var Ji=!1,Ne=!1,Ug=typeof WeakSet=="function"?WeakSet:Set,z=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function Iu(e,t,n){try{n()}catch(r){he(e,t,r)}}var wf=!1;function qg(e,t){if(pu=Mo,e=xp(),xl(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(hu={focusedElem:e,selectionRange:n},Mo=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;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 y=p.memoizedProps,x=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:mt(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=v}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(j(163))}}catch(w){he(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return p=wf,wf=!1,p}function ai(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&&Iu(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 ju(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 gh(e){var t=e.alternate;t!==null&&(e.alternate=null,gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[wi],delete t[yu],delete t[Og],delete t[Cg])),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 _h(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_h(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 Lu(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=Do));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}function Ru(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(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}var Ce=null,vt=!1;function Jt(e,t,n){for(n=n.child;n!==null;)wh(e,t,n),n=n.sibling}function wh(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(xa,n)}catch{}switch(n.tag){case 5:Ne||sr(n,t);case 6:var r=Ce,i=vt;Ce=null,Jt(e,t,n),Ce=r,vt=i,Ce!==null&&(vt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(vt?(e=Ce,n=n.stateNode,e.nodeType===8?ys(e.parentNode,n):e.nodeType===1&&ys(e,n),mi(e)):ys(Ce,n.stateNode));break;case 4:r=Ce,i=vt,Ce=n.stateNode.containerInfo,vt=!0,Jt(e,t,n),Ce=r,vt=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(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)&&Iu(n,t,a),i=i.next}while(i!==r)}Jt(e,t,n);break;case 1:if(!Ne&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){he(n,t,u)}Jt(e,t,n);break;case 21:Jt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Jt(e,t,n),Ne=r):Jt(e,t,n);break;default:Jt(e,t,n)}}function xf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ug),t.forEach(function(r){var i=Jg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ht(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,vt=!1;break e;case 3:Ce=u.stateNode.containerInfo,vt=!0;break e;case 4:Ce=u.stateNode.containerInfo,vt=!0;break e}u=u.return}if(Ce===null)throw Error(j(160));wh(o,a,i),Ce=null,vt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(s){he(i,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sh(t,e),t=t.sibling}function Sh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),xt(e),r&4){try{ai(3,e,e.return),Ia(3,e)}catch(y){he(e,e.return,y)}try{ai(5,e,e.return)}catch(y){he(e,e.return,y)}}break;case 1:ht(t,e),xt(e),r&512&&n!==null&&sr(n,n.return);break;case 5:if(ht(t,e),xt(e),r&512&&n!==null&&sr(n,n.return),e.flags&32){var i=e.stateNode;try{fi(i,"")}catch(y){he(e,e.return,y)}}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&&qd(i,o),ru(u,a);var s=ru(u,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?Yd(i,d):c==="dangerouslySetInnerHTML"?Gd(i,d):c==="children"?fi(i,d):ll(i,c,d,s)}switch(u){case"input":Js(i,o);break;case"textarea":Bd(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?cr(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?cr(i,!!o.multiple,o.defaultValue,!0):cr(i,!!o.multiple,o.multiple?[]:"",!1))}i[wi]=o}catch(y){he(e,e.return,y)}}break;case 6:if(ht(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(j(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){he(e,e.return,y)}}break;case 3:if(ht(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{mi(t.containerInfo)}catch(y){he(e,e.return,y)}break;case 4:ht(t,e),xt(e);break;case 13:ht(t,e),xt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ul=ye())),r&4&&xf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(s=Ne)||c,ht(t,e),Ne=s):ht(t,e),xt(e),r&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(f=z,h=f.child,f.tag){case 0:case 11:case 14:case 15:ai(4,f,f.return);break;case 1:sr(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(y){he(r,n,y)}}break;case 5:sr(f,f.return);break;case 22:if(f.memoizedState!==null){bf(d);continue}}h!==null?(h.return=f,z=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=Wd("display",a))}catch(y){he(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(y){he(e,e.return,y)}}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:ht(t,e),xt(e),r&4&&xf(e);break;case 21:break;default:ht(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_h(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(fi(i,""),r.flags&=-33);var o=Sf(e);Ru(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,u=Sf(e);Lu(e,u,a);break;default:throw Error(j(161))}}catch(l){he(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bg(e,t,n){z=e,xh(e)}function xh(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Ji;if(!a){var u=i.alternate,l=u!==null&&u.memoizedState!==null||Ne;u=Ji;var s=Ne;if(Ji=a,(Ne=l)&&!s)for(z=i;z!==null;)a=z,l=a.child,a.tag===22&&a.memoizedState!==null?Of(i):l!==null?(l.return=a,z=l):Of(i);for(;o!==null;)z=o,xh(o),o=o.sibling;z=i,Ji=u,Ne=s}Ef(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,z=o):Ef(e)}}function Ef(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||Ia(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&sf(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}sf(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&&mi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Ne||t.flags&512&&ju(t)}catch(f){he(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function bf(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Of(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ia(4,t)}catch(l){he(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){he(t,i,l)}}var o=t.return;try{ju(t)}catch(l){he(t,o,l)}break;case 5:var a=t.return;try{ju(t)}catch(l){he(t,a,l)}}}catch(l){he(t,t.return,l)}if(t===e){z=null;break}var u=t.sibling;if(u!==null){u.return=t.return,z=u;break}z=t.return}}var Hg=Math.ceil,Qo=Qt.ReactCurrentDispatcher,$l=Qt.ReactCurrentOwner,ft=Qt.ReactCurrentBatchConfig,J=0,be=null,we=null,Te=0,Ye=0,ur=wn(0),xe=0,Ci=null,Un=0,ja=0,Vl=0,si=null,Ue=null,Ul=0,jr=1/0,Ft=null,Xo=!1,Nu=null,pn=null,Zi=!1,an=null,Jo=0,ui=0,zu=null,So=-1,xo=0;function Ae(){return J&6?ye():So!==-1?So:So=ye()}function hn(e){return e.mode&1?J&2&&Te!==0?Te&-Te:Tg.transition!==null?(xo===0&&(xo=ap()),xo):(e=ne,e!==0||(e=window.event,e=e===void 0?16:pp(e.type)),e):1}function wt(e,t,n,r){if(50<ui)throw ui=0,zu=null,Error(j(185));Ri(e,n,r),(!(J&2)||e!==be)&&(e===be&&(!(J&2)&&(ja|=n),xe===4&&rn(e,Te)),Ge(e,r),n===1&&J===0&&!(t.mode&1)&&(jr=ye()+500,Pa&&Sn()))}function Ge(e,t){var n=e.callbackNode;Ty(e,t);var r=zo(e,e===be?Te:0);if(r===0)n!==null&&Rc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Rc(n),t===1)e.tag===0?Pg(Cf.bind(null,e)):Lp(Cf.bind(null,e)),Eg(function(){!(J&6)&&Sn()}),n=null;else{switch(sp(r)){case 1:n=hl;break;case 4:n=ip;break;case 16:n=No;break;case 536870912:n=op;break;default:n=No}n=Ih(n,Eh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Eh(e,t){if(So=-1,xo=0,J&6)throw Error(j(327));var n=e.callbackNode;if(mr()&&e.callbackNode!==n)return null;var r=zo(e,e===be?Te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zo(e,r);else{t=r;var i=J;J|=2;var o=Oh();(be!==e||Te!==t)&&(Ft=null,jr=ye()+500,zn(e,t));do try{Yg();break}catch(u){bh(e,u)}while(!0);Pl(),Qo.current=o,J=i,we!==null?t=0:(be=null,Te=0,t=xe)}if(t!==0){if(t===2&&(i=uu(e),i!==0&&(r=i,t=Mu(e,i))),t===1)throw n=Ci,zn(e,0),rn(e,r),Ge(e,ye()),n;if(t===6)rn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Gg(i)&&(t=Zo(e,r),t===2&&(o=uu(e),o!==0&&(r=o,t=Mu(e,o))),t===1))throw n=Ci,zn(e,0),rn(e,r),Ge(e,ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:Tn(e,Ue,Ft);break;case 3:if(rn(e,r),(r&130023424)===r&&(t=Ul+500-ye(),10<t)){if(zo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=vu(Tn.bind(null,e,Ue,Ft),t);break}Tn(e,Ue,Ft);break;case 4:if(rn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-_t(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hg(r/1960))-r,10<r){e.timeoutHandle=vu(Tn.bind(null,e,Ue,Ft),r);break}Tn(e,Ue,Ft);break;case 5:Tn(e,Ue,Ft);break;default:throw Error(j(329))}}}return Ge(e,ye()),e.callbackNode===n?Eh.bind(null,e):null}function Mu(e,t){var n=si;return e.current.memoizedState.isDehydrated&&(zn(e,t).flags|=256),e=Zo(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&Fu(t)),e}function Fu(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function Gg(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(!St(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 rn(e,t){for(t&=~Vl,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Cf(e){if(J&6)throw Error(j(327));mr();var t=zo(e,0);if(!(t&1))return Ge(e,ye()),null;var n=Zo(e,t);if(e.tag!==0&&n===2){var r=uu(e);r!==0&&(t=r,n=Mu(e,r))}if(n===1)throw n=Ci,zn(e,0),rn(e,t),Ge(e,ye()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tn(e,Ue,Ft),Ge(e,ye()),null}function ql(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(jr=ye()+500,Pa&&Sn())}}function qn(e){an!==null&&an.tag===0&&!(J&6)&&mr();var t=J;J|=1;var n=ft.transition,r=ne;try{if(ft.transition=null,ne=1,e)return e()}finally{ne=r,ft.transition=n,J=t,!(J&6)&&Sn()}}function Bl(){Ye=ur.current,se(ur)}function zn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xg(n)),we!==null)for(n=we.return;n!==null;){var r=n;switch(bl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$o();break;case 3:kr(),se(Be),se(ze),Rl();break;case 5:Ll(r);break;case 4:kr();break;case 13:se(le);break;case 19:se(le);break;case 10:Tl(r.type._context);break;case 22:case 23:Bl()}n=n.return}if(be=e,we=e=mn(e.current,null),Te=Ye=t,xe=0,Ci=null,Vl=ja=Un=0,Ue=si=null,Ln!==null){for(t=0;t<Ln.length;t++)if(n=Ln[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}Ln=null}return e}function bh(e,t){do{var n=we;try{if(Pl(),go.current=Ko,Yo){for(var r=ce.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Yo=!1}if(Vn=0,Ee=Se=ce=null,oi=!1,Ei=0,$l.current=null,n===null||n.return===null){xe=1,Ci=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=pf(a);if(h!==null){h.flags&=-257,hf(h,a,u,o,t),h.mode&1&&df(o,s,t),t=h,l=s;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){df(o,s,t),Hl();break e}l=Error(j(426))}}else if(ue&&u.mode&1){var x=pf(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),hf(x,a,u,o,t),Ol(Ir(l,u));break e}}o=l=Ir(l,u),xe!==4&&(xe=2),si===null?si=[o]:si.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=sh(o,l,t);af(o,m);break e;case 1:u=l;var v=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(pn===null||!pn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=uh(o,u,t);af(o,w);break e}}o=o.return}while(o!==null)}Ph(n)}catch(O){t=O,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function Oh(){var e=Qo.current;return Qo.current=Ko,e===null?Ko:e}function Hl(){(xe===0||xe===3||xe===2)&&(xe=4),be===null||!(Un&268435455)&&!(ja&268435455)||rn(be,Te)}function Zo(e,t){var n=J;J|=2;var r=Oh();(be!==e||Te!==t)&&(Ft=null,zn(e,t));do try{Wg();break}catch(i){bh(e,i)}while(!0);if(Pl(),J=n,Qo.current=r,we!==null)throw Error(j(261));return be=null,Te=0,xe}function Wg(){for(;we!==null;)Ch(we)}function Yg(){for(;we!==null&&!_y();)Ch(we)}function Ch(e){var t=kh(e.alternate,e,Ye);e.memoizedProps=e.pendingProps,t===null?Ph(e):we=t,$l.current=null}function Ph(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Vg(n,t),n!==null){n.flags&=32767,we=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,we=null;return}}else if(n=$g(n,t,Ye),n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);xe===0&&(xe=5)}function Tn(e,t,n){var r=ne,i=ft.transition;try{ft.transition=null,ne=1,Kg(e,t,n,r)}finally{ft.transition=i,ne=r}return null}function Kg(e,t,n,r){do mr();while(an!==null);if(J&6)throw Error(j(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(j(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ky(e,o),e===be&&(we=be=null,Te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zi||(Zi=!0,Ih(No,function(){return mr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ft.transition,ft.transition=null;var a=ne;ne=1;var u=J;J|=4,$l.current=null,qg(e,n),Sh(n,e),mg(hu),Mo=!!pu,hu=pu=null,e.current=n,Bg(n),wy(),J=u,ne=a,ft.transition=o}else e.current=n;if(Zi&&(Zi=!1,an=e,Jo=i),o=e.pendingLanes,o===0&&(pn=null),Ey(n.stateNode),Ge(e,ye()),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=Nu,Nu=null,e;return Jo&1&&e.tag!==0&&mr(),o=e.pendingLanes,o&1?e===zu?ui++:(ui=0,zu=e):ui=0,Sn(),null}function mr(){if(an!==null){var e=sp(Jo),t=ft.transition,n=ne;try{if(ft.transition=null,ne=16>e?16:e,an===null)var r=!1;else{if(e=an,an=null,Jo=0,J&6)throw Error(j(331));var i=J;for(J|=4,z=e.current;z!==null;){var o=z,a=o.child;if(z.flags&16){var u=o.deletions;if(u!==null){for(var l=0;l<u.length;l++){var s=u[l];for(z=s;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:ai(8,c,o)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var f=c.sibling,h=c.return;if(gh(c),c===s){z=null;break}if(f!==null){f.return=h,z=f;break}z=h}}}var p=o.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}z=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,z=a;else e:for(;z!==null;){if(o=z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ai(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,z=m;break e}z=o.return}}var v=e.current;for(z=v;z!==null;){a=z;var g=a.child;if(a.subtreeFlags&2064&&g!==null)g.return=a,z=g;else e:for(a=v;z!==null;){if(u=z,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Ia(9,u)}}catch(O){he(u,u.return,O)}if(u===a){z=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,z=w;break e}z=u.return}}if(J=i,Sn(),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(xa,e)}catch{}r=!0}return r}finally{ne=n,ft.transition=t}}return!1}function Pf(e,t,n){t=Ir(n,t),t=sh(e,t,1),e=dn(e,t,1),t=Ae(),e!==null&&(Ri(e,1,t),Ge(e,t))}function he(e,t,n){if(e.tag===3)Pf(e,e,n);else for(;t!==null;){if(t.tag===3){Pf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pn===null||!pn.has(r))){e=Ir(n,e),e=uh(t,e,1),t=dn(t,e,1),e=Ae(),t!==null&&(Ri(t,1,e),Ge(t,e));break}}t=t.return}}function Qg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,be===e&&(Te&n)===n&&(xe===4||xe===3&&(Te&130023424)===Te&&500>ye()-Ul?zn(e,0):Vl|=n),Ge(e,t)}function Th(e,t){t===0&&(e.mode&1?(t=qi,qi<<=1,!(qi&130023424)&&(qi=4194304)):t=1);var n=Ae();e=Gt(e,t),e!==null&&(Ri(e,t,n),Ge(e,n))}function Xg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Th(e,n)}function Jg(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(j(314))}r!==null&&r.delete(t),Th(e,n)}var kh;kh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Dg(e,t,n);qe=!!(e.flags&131072)}else qe=!1,ue&&t.flags&1048576&&Rp(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wo(e,t),e=t.pendingProps;var i=Cr(t,ze.current);hr(t,n),i=zl(null,t,r,e,i,n);var o=Ml();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,He(r)?(o=!0,Vo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Il(t),i.updater=ka,t.stateNode=i,i._reactInternals=t,Eu(t,r,e,n),t=Cu(null,t,r,!0,o,n)):(t.tag=0,ue&&o&&El(t),Fe(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=e_(r),e=mt(r,e),i){case 0:t=Ou(null,t,r,e,n);break e;case 1:t=yf(null,t,r,e,n);break e;case 11:t=mf(null,t,r,e,n);break e;case 14:t=vf(null,t,r,mt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Ou(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),yf(e,t,r,i,n);case 3:e:{if(dh(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Dp(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=Ir(Error(j(423)),t),t=gf(e,t,r,n,i);break e}else if(r!==i){i=Ir(Error(j(424)),t),t=gf(e,t,r,n,i);break e}else for(Ke=fn(t.stateNode.containerInfo.firstChild),Qe=t,ue=!0,yt=null,n=Fp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pr(),r===i){t=Wt(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return $p(t),e===null&&wu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,mu(r,i)?a=null:o!==null&&mu(r,o)&&(t.flags|=32),fh(e,t),Fe(e,t,a,n),t.child;case 6:return e===null&&wu(t),null;case 13:return ph(e,t,n);case 4:return jl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),mf(e,t,r,i,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(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,oe(Bo,r._currentValue),r._currentValue=a,o!==null)if(St(o.value,a)){if(o.children===i.children&&!Be.current){t=Wt(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=Ut(-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),Su(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(j(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Su(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}Fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hr(t,n),i=dt(i),r=r(i),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),vf(e,t,r,i,n);case 15:return lh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),wo(e,t),t.tag=1,He(r)?(e=!0,Vo(t)):e=!1,hr(t,n),ah(t,r,i),Eu(t,r,i,n),Cu(null,t,r,!0,e,n);case 19:return hh(e,t,n);case 22:return ch(e,t,n)}throw Error(j(156,t.tag))};function Ih(e,t){return rp(e,t)}function Zg(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 ct(e,t,n,r){return new Zg(e,t,n,r)}function Gl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e_(e){if(typeof e=="function")return Gl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fl)return 11;if(e===dl)return 14}return 2}function mn(e,t){var n=e.alternate;return n===null?(n=ct(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 Eo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Gl(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Jn:return Mn(n.children,i,o,t);case cl:a=8,i|=8;break;case Ws:return e=ct(12,n,t,i|2),e.elementType=Ws,e.lanes=o,e;case Ys:return e=ct(13,n,t,i),e.elementType=Ys,e.lanes=o,e;case Ks:return e=ct(19,n,t,i),e.elementType=Ks,e.lanes=o,e;case $d:return La(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ad:a=10;break e;case Dd:a=9;break e;case fl:a=11;break e;case dl:a=14;break e;case Zt:a=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=ct(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function La(e,t,n,r){return e=ct(22,e,r,t),e.elementType=$d,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Cs(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t_(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=as(0),this.expirationTimes=as(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=as(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wl(e,t,n,r,i,o,a,u,l){return e=new t_(e,t,n,u,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Il(o),e}function n_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jh(e){if(!e)return yn;e=e._reactInternals;e:{if(Wn(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(He(n))return jp(e,n,t)}return t}function Lh(e,t,n,r,i,o,a,u,l){return e=Wl(n,r,!0,e,i,o,a,u,l),e.context=jh(null),n=e.current,r=Ae(),i=hn(n),o=Ut(r,i),o.callback=t??null,dn(n,o,i),e.current.lanes=i,Ri(e,i,r),Ge(e,r),e}function Ra(e,t,n,r){var i=t.current,o=Ae(),a=hn(i);return n=jh(n),t.context===null?t.context=n:t.pendingContext=n,t=Ut(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dn(i,t,a),e!==null&&(wt(e,i,a,o),yo(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 Tf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yl(e,t){Tf(e,t),(e=e.alternate)&&Tf(e,t)}function r_(){return null}var Rh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Kl(e){this._internalRoot=e}Na.prototype.render=Kl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Ra(e,t,null,null)};Na.prototype.unmount=Kl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qn(function(){Ra(null,e,null,null)}),t[Ht]=null}};function Na(e){this._internalRoot=e}Na.prototype.unstable_scheduleHydration=function(e){if(e){var t=cp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nn.length&&t!==0&&t<nn[n].priority;n++);nn.splice(n,0,e),n===0&&dp(e)}};function Ql(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kf(){}function i_(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=Lh(t,r,e,0,null,!1,!1,"",kf);return e._reactRootContainer=a,e[Ht]=a.current,gi(e.nodeType===8?e.parentNode:e),qn(),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=Wl(e,0,!1,null,null,!1,!1,"",kf);return e._reactRootContainer=l,e[Ht]=l.current,gi(e.nodeType===8?e.parentNode:e),qn(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=i_(n,t,e,i,r);return ea(a)}up=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xr(t.pendingLanes);n!==0&&(ml(t,n|1),Ge(t,ye()),!(J&6)&&(jr=ye()+500,Sn()))}break;case 13:qn(function(){var r=Gt(e,1);if(r!==null){var i=Ae();wt(r,e,1,i)}}),Yl(e,1)}};vl=function(e){if(e.tag===13){var t=Gt(e,134217728);if(t!==null){var n=Ae();wt(t,e,134217728,n)}Yl(e,134217728)}};lp=function(e){if(e.tag===13){var t=hn(e),n=Gt(e,t);if(n!==null){var r=Ae();wt(n,e,t,r)}Yl(e,t)}};cp=function(){return ne};fp=function(e,t){var n=ne;try{return ne=e,t()}finally{ne=n}};ou=function(e,t,n){switch(t){case"input":if(Js(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(j(90));Ud(r),Js(r,i)}}}break;case"textarea":Bd(e,n);break;case"select":t=n.value,t!=null&&cr(e,!!n.multiple,t,!1)}};Xd=ql;Jd=qn;var o_={usingClientEntryPoint:!1,Events:[zi,nr,Ca,Kd,Qd,ql]},Br={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},a_={bundleType:Br.bundleType,version:Br.version,rendererPackageName:Br.rendererPackageName,rendererConfig:Br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tp(e),e===null?null:e.stateNode},findFiberByHostInstance:Br.findFiberByHostInstance||r_,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 eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{xa=eo.inject(a_),It=eo}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o_;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ql(t))throw Error(j(200));return n_(e,t,null,n)};Ze.createRoot=function(e,t){if(!Ql(e))throw Error(j(299));var n=!1,r="",i=Rh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Wl(e,1,!1,null,null,n,!1,r,i),e[Ht]=t.current,gi(e.nodeType===8?e.parentNode:e),new Kl(t)};Ze.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(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=tp(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return qn(e)};Ze.hydrate=function(e,t,n){if(!za(t))throw Error(j(200));return Ma(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!Ql(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Rh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Lh(t,null,e,1,n??null,i,!1,o,a),e[Ht]=t.current,gi(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)};Ze.render=function(e,t,n){if(!za(t))throw Error(j(200));return Ma(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!za(e))throw Error(j(40));return e._reactRootContainer?(qn(function(){Ma(null,null,e,!1,function(){e._reactRootContainer=null,e[Ht]=null})}),!0):!1};Ze.unstable_batchedUpdates=ql;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!za(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Ma(e,t,n,!1,r)};Ze.version="18.3.1-next-f1338f8080-20240426";function Nh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nh)}catch(e){console.error(e)}}Nh(),Nd.exports=Ze;var zh=Nd.exports;const s_="_fieldError_qi0xk_1",u_={fieldError:s_};function Mh(e){var t=e.children;return W.createElement("div",{className:u_.fieldError},t)}const l_="_FieldGroup_uz9ju_1",c_="_FieldGroup__item_uz9ju_5",If={FieldGroup:l_,FieldGroup__item:c_};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)},f_=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 Hr(e){var t=e.children,n=e.className,r=f_(e,["children","className"]),i=Rt(If.FieldGroup,n);return W.createElement("div",Au({},r,{className:i}),W.Children.map(t,function(o){return W.createElement("div",{className:If.FieldGroup__item},o)}))}const d_="_fieldHint_1avon_1",p_={fieldHint:d_};function Fh(e){var t=e.children;return W.createElement("div",{className:p_.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 Ah(e){var t=e.id,n=e.label,r=e.hint,i=e.error,o=e.required,a=e.formLabelProps,u=e.children;return W.createElement(W.Fragment,null,W.createElement(Dh,Du({},a,{htmlFor:t,required:o,error:!!i}),n),u,i&&W.createElement(Mh,null,i),r&&W.createElement(Fh,null,r))}const h_="_Form_5qspp_1",m_="_Form__item_5qspp_5",Ps={Form:h_,Form__item:m_,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var $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)},v_=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},y_=function(e){var t=e.children,n=e.className,r=e.onSubmit,i=e.spacing,o=i===void 0?"default":i,a=v_(e,["children","className","onSubmit","spacing"]),u=Rt(Ps.Form,n),l=Rt(Ps.Form__item,Ps["Form__item--".concat(o)]),s=k.useCallback(function(c){c.preventDefault(),r&&r(c)},[r]);return W.createElement("form",$u({className:u,onSubmit:s},a),k.Children.map(t,function(c){return c?W.createElement("div",{className:l},c):null}))};const g_="_formLabel_tcjrv_1",__="_formLabel__code_tcjrv_8",w_="_formLabel__label_tcjrv_18",S_="_formLabel__required_tcjrv_30",Gr={formLabel:g_,formLabel__code:__,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:w_,formLabel__required:S_};var Vu=function(){return Vu=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},Vu.apply(this,arguments)},x_=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},Dh=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=x_(e,["children","className","htmlFor","code","required","error"]),d=Rt(Gr.formLabel,r,(t={},t[Gr["formLabel--error"]]=s,t));return W.createElement("label",Vu({className:d,htmlFor:i},c),W.createElement("span",{className:Gr.formLabel__label},n,u&&W.createElement("span",{className:Gr.formLabel__required},"*")),o&&W.createElement("span",{className:Gr.formLabel__code},o))},Uu=function(){return Uu=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},Uu.apply(this,arguments)};function E_(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 W.createElement(Ah,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},W.createElement(xS,Uu({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function b_(e,t){if(Bn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $h(e){var t=b_(e,"string");return Bn(t)=="symbol"?t:t+""}function Zr(e,t,n){return(t=$h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jf(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 U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(r){Zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O_(e){if(Array.isArray(e))return e}function C_(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 qu(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 Vh(e,t){if(e){if(typeof e=="string")return qu(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)?qu(e,t):void 0}}function P_(){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 qt(e,t){return O_(e)||C_(e,t)||Vh(e,t)||P_()}function T_(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 Xt(e,t){if(e==null)return{};var n,r,i=T_(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 k_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I_(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=Xt(e,k_),y=k.useState(u!==void 0?u:n),x=qt(y,2),m=x[0],v=x[1],g=k.useState(l!==void 0?l:i),w=qt(g,2),O=w[0],E=w[1],b=k.useState(h!==void 0?h:a),P=qt(b,2),R=P[0],L=P[1],B=k.useCallback(function(I,A){typeof s=="function"&&s(I,A),L(I)},[s]),N=k.useCallback(function(I,A){var V;typeof c=="function"&&(V=c(I,A)),v(V!==void 0?V:I)},[c]),F=k.useCallback(function(){typeof f=="function"&&f(),E(!0)},[f]),H=k.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),K=u!==void 0?u:m,$=l!==void 0?l:O,X=h!==void 0?h:R;return U(U({},p),{},{inputValue:K,menuIsOpen:$,onChange:B,onInputChange:N,onMenuClose:H,onMenuOpen:F,value:X})}function q(){return q=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},q.apply(null,arguments)}function j_(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,$h(r.key),r)}}function L_(e,t,n){return t&&Lf(e.prototype,t),n&&Lf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bu(e,t){return Bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bu(e,t)}function R_(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&&Bu(e,t)}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ta(e)}function Uh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uh=function(){return!!e})()}function N_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z_(e,t){if(t&&(Bn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N_(e)}function M_(e){var t=Uh();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 z_(this,n)}}function F_(e){if(Array.isArray(e))return qu(e)}function A_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function D_(){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 Xl(e){return F_(e)||A_(e)||Vh(e)||D_()}function $_(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 V_(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 U_=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(V_(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=$_(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}(),Re="-ms-",na="-moz-",Z="-webkit-",qh="comm",Jl="rule",Zl="decl",q_="@import",Bh="@keyframes",B_="@layer",H_=Math.abs,Fa=String.fromCharCode,G_=Object.assign;function W_(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 Hh(e){return e.trim()}function Y_(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,n){return e.replace(t,n)}function Hu(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Pi(e,t,n){return e.slice(t,n)}function Ot(e){return e.length}function ec(e){return e.length}function to(e,t){return t.push(e),e}function K_(e,t){return e.map(t).join("")}var Aa=1,Lr=1,Gh=0,We=0,_e=0,Mr="";function Da(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Aa,column:Lr,length:a,return:""}}function Wr(e,t){return G_(Da("",null,null,"",null,null,0),e,{length:-e.length},t)}function Q_(){return _e}function X_(){return _e=We>0?Pe(Mr,--We):0,Lr--,_e===10&&(Lr=1,Aa--),_e}function Xe(){return _e=We<Gh?Pe(Mr,We++):0,Lr++,_e===10&&(Lr=1,Aa++),_e}function Lt(){return Pe(Mr,We)}function bo(){return We}function Fi(e,t){return Pi(Mr,e,t)}function Ti(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 Wh(e){return Aa=Lr=1,Gh=Ot(Mr=e),We=0,[]}function Yh(e){return Mr="",e}function Oo(e){return Hh(Fi(We-1,Gu(e===91?e+2:e===40?e+1:e)))}function J_(e){for(;(_e=Lt())&&_e<33;)Xe();return Ti(e)>2||Ti(_e)>3?"":" "}function Z_(e,t){for(;--t&&Xe()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Fi(e,bo()+(t<6&&Lt()==32&&Xe()==32))}function Gu(e){for(;Xe();)switch(_e){case e:return We;case 34:case 39:e!==34&&e!==39&&Gu(_e);break;case 40:e===41&&Gu(e);break;case 92:Xe();break}return We}function e0(e,t){for(;Xe()&&e+_e!==57;)if(e+_e===84&&Lt()===47)break;return"/*"+Fi(t,We-1)+"*"+Fa(e===47?e:Xe())}function t0(e){for(;!Ti(Lt());)Xe();return Fi(e,We)}function n0(e){return Yh(Co("",null,null,null,[""],e=Wh(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,y=1,x=1,m=1,v=0,g="",w=i,O=o,E=r,b=g;x;)switch(p=v,v=Xe()){case 40:if(p!=108&&Pe(b,d-1)==58){Hu(b+=ee(Oo(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Oo(v);break;case 9:case 10:case 13:case 32:b+=J_(p);break;case 92:b+=Z_(bo()-1,7);continue;case 47:switch(Lt()){case 42:case 47:to(r0(e0(Xe(),bo()),t,n),l);break;default:b+="/"}break;case 123*y:u[s++]=Ot(b)*m;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:m==-1&&(b=ee(b,/\f/g,"")),h>0&&Ot(b)-d&&to(h>32?Nf(b+";",r,n,d-1):Nf(ee(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(to(E=Rf(b,t,n,s,c,i,u,g,w=[],O=[],d),o),v===123)if(c===0)Co(b,t,E,E,w,o,d,u,O);else switch(f===99&&Pe(b,3)===110?100:f){case 100:case 108:case 109:case 115:Co(e,E,E,r&&to(Rf(e,E,E,0,0,i,u,g,i,w=[],d),O),i,O,d,u,r?w:O);break;default:Co(b,E,E,E,[""],O,0,u,O)}}s=c=h=0,y=m=1,g=b="",d=a;break;case 58:d=1+Ot(b),h=p;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&X_()==125)continue}switch(b+=Fa(v),v*y){case 38:m=c>0?1:(b+="\f",-1);break;case 44:u[s++]=(Ot(b)-1)*m,m=1;break;case 64:Lt()===45&&(b+=Oo(Xe())),f=Lt(),c=d=Ot(g=b+=t0(bo())),v++;break;case 45:p===45&&Ot(b)==2&&(y=0)}}return o}function Rf(e,t,n,r,i,o,a,u,l,s,c){for(var d=i-1,f=i===0?o:[""],h=ec(f),p=0,y=0,x=0;p<r;++p)for(var m=0,v=Pi(e,d+1,d=H_(y=a[p])),g=e;m<h;++m)(g=Hh(y>0?f[m]+" "+v:ee(v,/&\f/g,f[m])))&&(l[x++]=g);return Da(e,t,n,i===0?Jl:u,l,s,c)}function r0(e,t,n){return Da(e,t,n,qh,Fa(Q_()),Pi(e,2,-2),0)}function Nf(e,t,n,r){return Da(e,t,n,Zl,Pi(e,0,r),Pi(e,r+1,-1),r)}function vr(e,t){for(var n="",r=ec(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function i0(e,t,n,r){switch(e.type){case B_:if(e.children.length)break;case q_:case Zl:return e.return=e.return||e.value;case qh:return"";case Bh:return e.return=e.value+"{"+vr(e.children,r)+"}";case Jl:e.value=e.props.join(",")}return Ot(n=vr(e.children,r))?e.return=e.value+"{"+n+"}":""}function o0(e){var t=ec(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 a0(e){return function(t){t.root||(t=t.return)&&e(t)}}function s0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var u0=function(t,n,r){for(var i=0,o=0;i=o,o=Lt(),i===38&&o===12&&(n[r]=1),!Ti(o);)Xe();return Fi(t,We)},l0=function(t,n){var r=-1,i=44;do switch(Ti(i)){case 0:i===38&&Lt()===12&&(n[r]=1),t[r]+=u0(We-1,n,r);break;case 2:t[r]+=Oo(i);break;case 4:if(i===44){t[++r]=Lt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fa(i)}while(i=Xe());return t},c0=function(t,n){return Yh(l0(Wh(t),n))},zf=new WeakMap,f0=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&&!zf.get(r))&&!i){zf.set(t,!0);for(var o=[],a=c0(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]}}},d0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Kh(e,t){switch(W_(e,t)){case 5103:return Z+"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 Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+na+e+Re+e+e;case 6828:case 4268:return Z+e+Re+e+e;case 6165:return Z+e+Re+"flex-"+e+e;case 5187:return Z+e+ee(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return Z+e+Re+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return Z+e+Re+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+Re+ee(e,"shrink","negative")+e;case 5292:return Z+e+Re+ee(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ee(e,"-grow","")+Z+e+Re+ee(e,"grow","positive")+e;case 4554:return Z+ee(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,Z+"$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(Ot(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+na+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hu(e,"stretch")?Kh(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,Ot(e)-3-(~Hu(e,"!important")&&10))){case 107:return ee(e,":",":"+Z)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Pe(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return Z+e+Re+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+Re+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+Re+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+Re+e+e}return e}var p0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Zl:t.return=Kh(t.value,t.length);break;case Bh:return vr([Wr(t,{value:ee(t.value,"@","@"+Z)})],i);case Jl:if(t.length)return K_(t.props,function(o){switch(Y_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vr([Wr(t,{props:[ee(o,/:(read-\w+)/,":"+na+"$1")]})],i);case"::placeholder":return vr([Wr(t,{props:[ee(o,/:(plac\w+)/,":"+Z+"input-$1")]}),Wr(t,{props:[ee(o,/:(plac\w+)/,":"+na+"$1")]}),Wr(t,{props:[ee(o,/:(plac\w+)/,Re+"input-$1")]})],i)}return""})}},h0=[p0],m0=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(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||h0,o={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),m=1;m<x.length;m++)o[x[m]]=!0;u.push(y)});var l,s=[f0,d0];{var c,d=[i0,a0(function(y){c.insert(y)})],f=o0(s.concat(i,d)),h=function(x){return vr(n0(x),f)};l=function(x,m,v,g){c=v,h(x?x+"{"+m.styles+"}":m.styles),g&&(p.inserted[m.name]=!0)}}var p={key:n,sheet:new U_({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},Qh={exports:{}},re={};/** @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,tc=Oe?Symbol.for("react.element"):60103,nc=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,rc=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,v0=Oe?Symbol.for("react.suspense_list"):60120,Ya=Oe?Symbol.for("react.memo"):60115,Ka=Oe?Symbol.for("react.lazy"):60116,y0=Oe?Symbol.for("react.block"):60121,g0=Oe?Symbol.for("react.fundamental"):60117,_0=Oe?Symbol.for("react.responder"):60118,w0=Oe?Symbol.for("react.scope"):60119;function tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tc:switch(e=e.type,e){case rc: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 nc:return t}}}function Xh(e){return tt(e)===Ha}re.AsyncMode=rc;re.ConcurrentMode=Ha;re.ContextConsumer=Ba;re.ContextProvider=qa;re.Element=tc;re.ForwardRef=Ga;re.Fragment=$a;re.Lazy=Ka;re.Memo=Ya;re.Portal=nc;re.Profiler=Ua;re.StrictMode=Va;re.Suspense=Wa;re.isAsyncMode=function(e){return Xh(e)||tt(e)===rc};re.isConcurrentMode=Xh;re.isContextConsumer=function(e){return tt(e)===Ba};re.isContextProvider=function(e){return tt(e)===qa};re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tc};re.isForwardRef=function(e){return tt(e)===Ga};re.isFragment=function(e){return tt(e)===$a};re.isLazy=function(e){return tt(e)===Ka};re.isMemo=function(e){return tt(e)===Ya};re.isPortal=function(e){return tt(e)===nc};re.isProfiler=function(e){return tt(e)===Ua};re.isStrictMode=function(e){return tt(e)===Va};re.isSuspense=function(e){return tt(e)===Wa};re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$a||e===Ha||e===Ua||e===Va||e===Wa||e===v0||typeof e=="object"&&e!==null&&(e.$$typeof===Ka||e.$$typeof===Ya||e.$$typeof===qa||e.$$typeof===Ba||e.$$typeof===Ga||e.$$typeof===g0||e.$$typeof===_0||e.$$typeof===w0||e.$$typeof===y0)};re.typeOf=tt;Qh.exports=re;var S0=Qh.exports,Jh=S0,x0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zh={};Zh[Jh.ForwardRef]=x0;Zh[Jh.Memo]=E0;var b0=!0;function O0(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var em=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||b0===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},C0=function(t,n,r){em(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 P0(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 T0={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},k0=/[A-Z]|^ms/g,I0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tm=function(t){return t.charCodeAt(1)===45},Mf=function(t){return t!=null&&typeof t!="boolean"},Ts=s0(function(e){return tm(e)?e:e.replace(k0,"-$&").toLowerCase()}),Ff=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(I0,function(r,i,o){return Ct={name:i,styles:o,next:Ct},i})}return T0[t]!==1&&!tm(t)&&typeof n=="number"&&n!==0?n+"px":n};function ki(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 Ct={name:i.name,styles:i.styles,next:Ct},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ct={name:a.name,styles:a.styles,next:Ct},a=a.next;var u=o.styles+";";return u}return j0(e,t,n)}case"function":{if(e!==void 0){var l=Ct,s=n(e);return Ct=l,ki(e,t,s)}break}}var c=n;return c}function j0(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ki(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var u=a;Mf(u)&&(r+=Ts(o)+":"+Ff(o,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Mf(a[l])&&(r+=Ts(o)+":"+Ff(o,a[l])+";");else{var s=ki(e,t,a);switch(o){case"animation":case"animationName":{r+=Ts(o)+":"+s+";";break}default:r+=o+"{"+s+"}"}}}return r}var Af=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function nm(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="";Ct=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=ki(n,t,o);else{var a=o;i+=a[0]}for(var u=1;u<e.length;u++)if(i+=ki(n,t,e[u]),r){var l=o;i+=l[u]}Af.lastIndex=0;for(var s="",c;(c=Af.exec(i))!==null;)s+="-"+c[1];var d=P0(i)+s;return{name:d,styles:i,next:Ct}}var L0=function(t){return t()},R0=_c.useInsertionEffect?_c.useInsertionEffect:!1,N0=R0||L0,rm=k.createContext(typeof HTMLElement<"u"?m0({key:"css"}):null);rm.Provider;var z0=function(t){return k.forwardRef(function(n,r){var i=k.useContext(rm);return t(n,i,r)})},M0=k.createContext({}),ic={}.hasOwnProperty,Wu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",F0=function(t,n){var r={};for(var i in n)ic.call(n,i)&&(r[i]=n[i]);return r[Wu]=t,r},A0=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return em(n,r,i),N0(function(){return C0(n,r,i)}),null},D0=z0(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Wu],o=[r],a="";typeof e.className=="string"?a=O0(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var u=nm(o,void 0,k.useContext(M0));a+=t.key+"-"+u.name;var l={};for(var s in e)ic.call(e,s)&&s!=="css"&&s!==Wu&&(l[s]=e[s]);return l.className=a,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(A0,{cache:t,serialized:u,isStringTag:typeof i=="string"}),k.createElement(i,l))}),$0=D0,D=function(t,n){var r=arguments;if(n==null||!ic.call(n,"css"))return k.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=$0,o[1]=F0(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={}))})(D||(D={}));function oc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nm(t)}function V0(){var e=oc.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 U0(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const q0=Math.min,B0=Math.max,ra=Math.round,no=Math.floor,ia=e=>({x:e,y:e});function H0(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 im(e){return am(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function om(e){var t;return(t=(am(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function am(e){return Qa()?e instanceof Node||e instanceof Yt(e).Node:!1}function G0(e){return Qa()?e instanceof Element||e instanceof Yt(e).Element:!1}function ac(e){return Qa()?e instanceof HTMLElement||e instanceof Yt(e).HTMLElement:!1}function Df(e){return!Qa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function sm(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=sc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function W0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Y0(e){return["html","body","#document"].includes(im(e))}function sc(e){return Yt(e).getComputedStyle(e)}function K0(e){if(im(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Df(e)&&e.host||om(e);return Df(t)?t.host:t}function um(e){const t=K0(e);return Y0(t)?e.ownerDocument?e.ownerDocument.body:e.body:ac(t)&&sm(t)?t:um(t)}function oa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=um(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Yt(i);if(o){const u=Yu(a);return t.concat(a,a.visualViewport||[],sm(i)?i:[],u&&n?oa(u):[])}return t.concat(i,oa(i,[],n))}function Yu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q0(e){const t=sc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ac(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 uc(e){return G0(e)?e:e.contextElement}function $f(e){const t=uc(e);if(!ac(t))return ia(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Q0(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 X0=ia(0);function J0(e){const t=Yt(e);return!W0()||!t.visualViewport?X0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z0(e,t,n){return!1}function Vf(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=uc(e);let a=ia(1);t&&(a=$f(e));const u=Z0()?J0(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=Yt(o),h=r;let p=f,y=Yu(p);for(;y&&r&&h!==p;){const x=$f(y),m=y.getBoundingClientRect(),v=sc(y),g=m.left+(y.clientLeft+parseFloat(v.paddingLeft))*x.x,w=m.top+(y.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,s*=x.y,c*=x.x,d*=x.y,l+=g,s+=w,p=Yt(y),y=Yu(p)}}return H0({width:c,height:d,x:l,y:s})}function lm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ew(e,t){let n=null,r;const i=om(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=no(d),y=no(i.clientWidth-(c+f)),x=no(i.clientHeight-(d+h)),m=no(c),g={rootMargin:-p+"px "+-y+"px "+-x+"px "+-m+"px",threshold:B0(0,q0(1,l))||1};let w=!0;function O(E){const b=E[0].intersectionRatio;if(b!==l){if(!w)return a();b?a(!1,b):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b===1&&!lm(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 tw(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=uc(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?ew(s,n):null;let f=-1,h=null;a&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.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,y=l?Vf(e):null;l&&x();function x(){const m=Vf(e);y&&!lm(y,m)&&n(),y=m,p=requestAnimationFrame(x)}return n(),()=>{var m;c.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Ku=k.useLayoutEffect,nw=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],aa=function(){};function rw(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function iw(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(rw(e,a)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var Uf=function(t){return pw(t)?t.filter(Boolean):Bn(t)==="object"&&t!==null?[t]:[]},cm=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=Xt(t,nw);return U({},n)},me=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 ow(e){return Xa(e)?window.innerHeight:e.clientHeight}function fm(e){return Xa(e)?window.pageYOffset:e.scrollTop}function sa(e,t){if(Xa(e)){window.scrollTo(0,t);return}e.scrollTop=t}function aw(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 sw(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ro(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=fm(e),o=t-i,a=10,u=0;function l(){u+=a;var s=sw(u,i,o,n);sa(e,s),u<n?window.requestAnimationFrame(l):r(e)}l()}function qf(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 uw(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 Bf(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function lw(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var dm=!1,cw={get passive(){return dm=!0}},io=typeof window<"u"?window:{};io.addEventListener&&io.removeEventListener&&(io.addEventListener("p",aa,cw),io.removeEventListener("p",aa,!1));var fw=dm;function dw(e){return e!=null}function pw(e){return Array.isArray(e)}function oo(e,t,n){return e?t:n}var hw=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=qt(a,1),l=u[0];return!r.includes(l)});return o.reduce(function(a,u){var l=qt(u,2),s=l[0],c=l[1];return a[s]=c,a},{})},mw=["children","innerProps"],vw=["children","innerProps"];function yw(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,l=aw(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,y=f.top,x=n.offsetParent.getBoundingClientRect(),m=x.top,v=a?window.innerHeight:ow(l),g=fm(l),w=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),E=m-O,b=v-y,P=E+g,R=d-g-y,L=h-v+g+w,B=g+y-O,N=160;switch(i){case"auto":case"bottom":if(b>=p)return{placement:"bottom",maxHeight:t};if(R>=p&&!a)return o&&ro(l,L,N),{placement:"bottom",maxHeight:t};if(!a&&R>=r||a&&b>=r){o&&ro(l,L,N);var F=a?b-w:R-w;return{placement:"bottom",maxHeight:F}}if(i==="auto"||a){var H=t,K=a?E:P;return K>=r&&(H=Math.min(K-w-u,t)),{placement:"top",maxHeight:H}}if(i==="bottom")return o&&sa(l,L),{placement:"bottom",maxHeight:t};break;case"top":if(E>=p)return{placement:"top",maxHeight:t};if(P>=p&&!a)return o&&ro(l,B,N),{placement:"top",maxHeight:t};if(!a&&P>=r||a&&E>=r){var $=t;return(!a&&P>=r||a&&E>=r)&&($=a?E-O:P-O),o&&ro(l,B,N),{placement:"top",maxHeight:$}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}function gw(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var pm=function(t){return t==="auto"?"bottom":t},_w=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,u=o.spacing,l=o.colors;return U((r={label:"menu"},Zr(r,gw(i),"100%"),Zr(r,"position","absolute"),Zr(r,"width","100%"),Zr(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})},hm=k.createContext(null),ww=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(hm)||{},c=s.setPortalPlacement,d=k.useRef(null),f=k.useState(i),h=qt(f,2),p=h[0],y=h[1],x=k.useState(null),m=qt(x,2),v=m[0],g=m[1],w=l.spacing.controlHeight;return Ku(function(){var O=d.current;if(O){var E=a==="fixed",b=u&&!E,P=yw({maxHeight:i,menuEl:O,minHeight:r,placement:o,shouldScroll:b,isFixedPosition:E,controlHeight:w});y(P.maxHeight),g(P.placement),c==null||c(P.placement)}},[i,o,a,u,r,c,w]),n({ref:d,placerProps:U(U({},t),{},{placement:v||pm(o),maxHeight:p})})},Sw=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return D("div",q({},me(t,"menu",{menu:!0}),{ref:r},i),n)},xw=Sw,Ew=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return U({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},bw=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return D("div",q({},me(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},mm=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return U({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Ow=mm,Cw=mm,Pw=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Xt(t,mw);return D("div",q({},me(U(U({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Tw=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Xt(t,vw);return D("div",q({},me(U(U({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},kw=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}},Iw=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(pm(a)),d=qt(c,2),f=d[0],h=d[1],p=k.useMemo(function(){return{setPortalPlacement:h}},[]),y=k.useState(null),x=qt(y,2),m=x[0],v=x[1],g=k.useCallback(function(){if(i){var b=uw(i),P=u==="fixed"?0:window.pageYOffset,R=b[f]+P;(R!==(m==null?void 0:m.offset)||b.left!==(m==null?void 0:m.rect.left)||b.width!==(m==null?void 0:m.rect.width))&&v({offset:R,rect:b})}},[i,u,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Ku(function(){g()},[g]);var w=k.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),i&&l.current&&(s.current=tw(i,l.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Ku(function(){w()},[w]);var O=k.useCallback(function(b){l.current=b,w()},[w]);if(!n&&u!=="fixed"||!m)return null;var E=D("div",q({ref:O},me(U(U({},t),{},{offset:m.offset,position:u,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),r);return D(hm.Provider,{value:p},n?zh.createPortal(E,n):E)},jw=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Lw=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return D("div",q({},me(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Rw=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return U({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")})},Nw=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return D("div",q({},me(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},zw=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Mw=function(t){var n=t.children,r=t.innerProps;return D("div",q({},me(t,"indicatorsContainer",{indicators:!0}),r),n)},Hf,Fw=["size"],Aw=["innerProps","isRtl","size"],Dw={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},vm=function(t){var n=t.size,r=Xt(t,Fw);return D("svg",q({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Dw},r))},lc=function(t){return D(vm,q({size:20},t),D("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"}))},ym=function(t){return D(vm,q({size:20},t),D("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"}))},gm=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return U({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},$w=gm,Vw=function(t){var n=t.children,r=t.innerProps;return D("div",q({},me(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||D(ym,null))},Uw=gm,qw=function(t){var n=t.children,r=t.innerProps;return D("div",q({},me(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||D(lc,null))},Bw=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return U({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},Hw=function(t){var n=t.innerProps;return D("span",q({},n,me(t,"indicatorSeparator",{"indicator-separator":!0})))},Gw=V0(Hf||(Hf=U0([`
|
|
54
|
+
0%, 80%, 100% { opacity: 0; }
|
|
55
|
+
40% { opacity: 1; }
|
|
56
|
+
`]))),Ww=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,u=o.spacing.baseUnit;return U({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})},ks=function(t){var n=t.delay,r=t.offset;return D("span",{css:oc({animation:"".concat(Gw," 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"},"","")})},Yw=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=Xt(t,Aw);return D("div",q({},me(U(U({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),D(ks,{delay:0,offset:r}),D(ks,{delay:160,offset:!0}),D(ks,{delay:320,offset:!r}))},Kw=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,u=o.borderRadius,l=o.spacing;return U({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}})},Qw=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,u=t.menuIsOpen;return D("div",q({ref:o},me(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),a,{"aria-disabled":r||void 0}),n)},Xw=Qw,Jw=["data"],Zw=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},e1=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 D("div",q({},me(t,"group",{group:!0}),l),D(a,q({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),s),D("div",null,n))},t1=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return U({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"})},n1=function(t){var n=cm(t);n.data;var r=Xt(n,Jw);return D("div",q({},me(t,"groupHeading",{"group-heading":!0}),r))},r1=e1,i1=["innerRef","isDisabled","isHidden","inputClassName"],o1=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,u=o.colors;return U(U({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},a1),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},_m={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},a1={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":U({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},_m)},s1=function(t){return U({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},_m)},u1=function(t){var n=t.cx,r=t.value,i=cm(t),o=i.innerRef,a=i.isDisabled,u=i.isHidden,l=i.inputClassName,s=Xt(i,i1);return D("div",q({},me(t,"input",{"input-container":!0}),{"data-value":r||""}),D("input",q({className:n({input:!0},l),ref:o,style:s1(u),disabled:a},s)))},l1=u1,c1=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return U({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},f1=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return U({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})},d1=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,u=t.isFocused;return U({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}})},wm=function(t){var n=t.children,r=t.innerProps;return D("div",r,n)},p1=wm,h1=wm;function m1(e){var t=e.children,n=e.innerProps;return D("div",q({role:"button"},n),t||D(lc,{size:14}))}var v1=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 D(s,{data:i,innerProps:U(U({},me(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},D(c,{data:i,innerProps:U({},me(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),D(d,{data:i,innerProps:U(U({},me(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:l}))},y1=v1,g1=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,u=a.spacing,l=a.colors;return U({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}})},_1=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,u=t.innerProps;return D("div",q({},me(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},u),n)},w1=_1,S1=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return U({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},x1=function(t){var n=t.children,r=t.innerProps;return D("div",q({},me(t,"placeholder",{placeholder:!0}),r),n)},E1=x1,b1=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return U({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})},O1=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return D("div",q({},me(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},C1=O1,P1={ClearIndicator:qw,Control:Xw,DropdownIndicator:Vw,DownChevron:ym,CrossIcon:lc,Group:r1,GroupHeading:n1,IndicatorsContainer:Mw,IndicatorSeparator:Hw,Input:l1,LoadingIndicator:Yw,Menu:xw,MenuList:bw,MenuPortal:Iw,LoadingMessage:Tw,NoOptionsMessage:Pw,MultiValue:y1,MultiValueContainer:p1,MultiValueLabel:h1,MultiValueRemove:m1,Option:w1,Placeholder:E1,SelectContainer:Lw,SingleValue:C1,ValueContainer:Nw},T1=function(t){return U(U({},P1),t.components)},Gf=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function k1(e,t){return!!(e===t||Gf(e)&&Gf(t))}function I1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!k1(e[n],t[n]))return!1;return!0}function j1(e,t){t===void 0&&(t=I1);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 L1={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"},R1=function(t){return D("span",q({css:L1},t))},Wf=R1,N1={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(y,x){return y&&y.length?"".concat(y.indexOf(x)+1," of ").concat(y.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:"",".")}},z1=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,y=l.isOptionDisabled,x=l.isSearchable,m=l.menuIsOpen,v=l.options,g=l.screenReaderStatus,w=l.tabSelectsValue,O=l.isLoading,E=l["aria-label"],b=l["aria-live"],P=k.useMemo(function(){return U(U({},N1),d||{})},[d]),R=k.useMemo(function(){var K="";if(n&&P.onChange){var $=n.option,X=n.options,I=n.removedValue,A=n.removedValues,V=n.value,te=function(nt){return Array.isArray(nt)?null:nt},Y=I||$||te(V),de=Y?f(Y):"",pe=X||A||void 0,Ve=pe?pe.map(f):[],ve=U({isDisabled:Y&&y(Y,u),label:de,labels:Ve},n);K=P.onChange(ve)}return K},[n,P,y,u,f]),L=k.useMemo(function(){var K="",$=r||i,X=!!(r&&u&&u.includes(r));if($&&P.onFocus){var I={focused:$,label:f($),isDisabled:y($,u),isSelected:X,options:o,context:$===r?"menu":"value",selectValue:u,isAppleDevice:c};K=P.onFocus(I)}return K},[r,i,f,y,P,o,u,c]),B=k.useMemo(function(){var K="";if(m&&v.length&&!O&&P.onFilter){var $=g({count:o.length});K=P.onFilter({inputValue:h,resultsMessage:$})}return K},[o,h,m,P,v,g,O]),N=(n==null?void 0:n.action)==="initial-input-focus",F=k.useMemo(function(){var K="";if(P.guidance){var $=i?"value":m?"menu":"input";K=P.guidance({"aria-label":E,context:$,isDisabled:r&&y(r,u),isMulti:p,isSearchable:x,tabSelectsValue:w,isInitialFocus:N})}return K},[E,r,i,p,y,x,m,P,u,w,N]),H=D(k.Fragment,null,D("span",{id:"aria-selection"},R),D("span",{id:"aria-focused"},L),D("span",{id:"aria-results"},B),D("span",{id:"aria-guidance"},F));return D(k.Fragment,null,D(Wf,{id:s},N&&H),D(Wf,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&H))},M1=z1,Qu=[{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źẑżžẓẕƶȥɀⱬꝣ"}],F1=new RegExp("["+Qu.map(function(e){return e.letters}).join("")+"]","g"),Sm={};for(var Is=0;Is<Qu.length;Is++)for(var js=Qu[Is],Ls=0;Ls<js.letters.length;Ls++)Sm[js.letters[Ls]]=js.base;var xm=function(t){return t.replace(F1,function(n){return Sm[n]})},A1=j1(xm),Yf=function(t){return t.replace(/^\s+|\s+$/g,"")},D1=function(t){return"".concat(t.label," ").concat(t.value)},$1=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=U({ignoreCase:!0,ignoreAccents:!0,stringify:D1,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,u=i.stringify,l=i.trim,s=i.matchFrom,c=l?Yf(r):r,d=l?Yf(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=A1(c),d=xm(d)),s==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},V1=["innerRef"];function U1(e){var t=e.innerRef,n=Xt(e,V1),r=hw(n,"onExited","in","enter","exit","appear");return D("input",q({ref:t},r,{css:oc({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 q1=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function B1(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(x,m){if(s.current!==null){var v=s.current,g=v.scrollTop,w=v.scrollHeight,O=v.clientHeight,E=s.current,b=m>0,P=w-O-g,R=!1;P>m&&a.current&&(r&&r(x),a.current=!1),b&&u.current&&(o&&o(x),u.current=!1),b&&m>P?(n&&!a.current&&n(x),E.scrollTop=w,R=!0,a.current=!0):!b&&-m>g&&(i&&!u.current&&i(x),E.scrollTop=0,R=!0,u.current=!0),R&&q1(x)}},[n,r,i,o]),d=k.useCallback(function(x){c(x,x.deltaY)},[c]),f=k.useCallback(function(x){l.current=x.changedTouches[0].clientY},[]),h=k.useCallback(function(x){var m=l.current-x.changedTouches[0].clientY;c(x,m)},[c]),p=k.useCallback(function(x){if(x){var m=fw?{passive:!1}:!1;x.addEventListener("wheel",d,m),x.addEventListener("touchstart",f,m),x.addEventListener("touchmove",h,m)}},[h,f,d]),y=k.useCallback(function(x){x&&(x.removeEventListener("wheel",d,!1),x.removeEventListener("touchstart",f,!1),x.removeEventListener("touchmove",h,!1))},[h,f,d]);return k.useEffect(function(){if(t){var x=s.current;return p(x),function(){y(x)}}},[t,p,y]),function(x){s.current=x}}var Kf=["boxSizing","height","overflow","paddingRight","position"],Qf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Xf(e){e.cancelable&&e.preventDefault()}function Jf(e){e.stopPropagation()}function Zf(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ed(){return"ontouchstart"in window||navigator.maxTouchPoints}var td=!!(typeof window<"u"&&window.document&&window.document.createElement),Yr=0,Kn={capture:!1,passive:!1};function H1(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(td){var s=document.body,c=s&&s.style;if(r&&Kf.forEach(function(p){var y=c&&c[p];i.current[p]=y}),r&&Yr<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(Qf).forEach(function(p){var y=Qf[p];c&&(c[p]=y)}),c&&(c.paddingRight="".concat(h,"px"))}s&&ed()&&(s.addEventListener("touchmove",Xf,Kn),l&&(l.addEventListener("touchstart",Zf,Kn),l.addEventListener("touchmove",Jf,Kn))),Yr+=1}},[r]),u=k.useCallback(function(l){if(td){var s=document.body,c=s&&s.style;Yr=Math.max(Yr-1,0),r&&Yr<1&&Kf.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),s&&ed()&&(s.removeEventListener("touchmove",Xf,Kn),l&&(l.removeEventListener("touchstart",Zf,Kn),l.removeEventListener("touchmove",Jf,Kn)))}},[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 G1=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},W1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Y1(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=B1({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:u,onTopLeave:l}),c=H1({isEnabled:n}),d=function(h){s(h),c(h)};return D(k.Fragment,null,n&&D("div",{onClick:G1,css:W1}),t(d))}var K1={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Q1=function(t){var n=t.name,r=t.onFocus;return D("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:K1,value:"",onChange:function(){}})},X1=Q1;function cc(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 J1(){return cc(/^iPhone/i)}function Em(){return cc(/^Mac/i)}function Z1(){return cc(/^iPad/i)||Em()&&navigator.maxTouchPoints>1}function eS(){return J1()||Z1()}function tS(){return Em()||eS()}var nS=function(t){return t.label},rS=function(t){return t.label},iS=function(t){return t.value},oS=function(t){return!!t.isDisabled},aS={clearIndicator:Uw,container:jw,control:Kw,dropdownIndicator:$w,group:Zw,groupHeading:t1,indicatorsContainer:zw,indicatorSeparator:Bw,input:o1,loadingIndicator:Ww,loadingMessage:Cw,menu:_w,menuList:Ew,menuPortal:kw,multiValue:c1,multiValueLabel:f1,multiValueRemove:d1,noOptionsMessage:Ow,option:g1,placeholder:S1,singleValue:b1,valueContainer:Rw},sS={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%)"},uS=4,bm=4,lS=38,cS=bm*2,fS={baseUnit:bm,controlHeight:lS,menuGutter:cS},Rs={borderRadius:uS,colors:sS,spacing:fS},dS={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Bf(),captureMenuScroll:!Bf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:$1(),formatGroupLabel:nS,getOptionLabel:rS,getOptionValue:iS,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oS,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!lw(),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 nd(e,t,n,r){var i=Pm(e,t,n),o=Tm(e,t,n),a=Cm(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 nd(e,a,t,u)}).filter(function(a){return id(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=nd(e,n,t,r);return id(e,o)?o:void 0}).filter(dw)}function Om(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Xl(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function rd(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Xl(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 pS(e,t){return Om(Po(e,t))}function id(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,u=t.value;return(!Im(e)||!o)&&km(e,{label:a,value:u,data:i},r)}function hS(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 mS(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ns=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},Cm=function(t,n){return t.getOptionLabel(n)},ua=function(t,n){return t.getOptionValue(n)};function Pm(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Tm(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 km(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Im=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},vS=1,jm=function(e){R_(n,e);var t=M_(n);function n(r){var i;if(j_(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=tS(),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),y=i.isOptionDisabled(l,h);if(p){var x=i.getOptionValue(l);i.setValue(h.filter(function(m){return i.getOptionValue(m)!==x}),"deselect-option",l)}else if(!y)d?i.setValue([].concat(Xl(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=oo(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(oo(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=oo(l,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Ns(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return rd(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 iw.apply(void 0,[i.props.classNamePrefix].concat(s))},i.getOptionLabel=function(l){return Cm(i.props,l)},i.getOptionValue=function(l){return ua(i.props,l)},i.getStyles=function(l,s){var c=i.props.unstyled,d=aS[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 T1(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 Om(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,s){i.setState({ariaSelection:U({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 Im(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,y=s.isDisabled,x=s.menuIsOpen,m=s.onKeyDown,v=s.tabSelectsValue,g=s.openMenuOnFocus,w=i.state,O=w.focusedOption,E=w.focusedValue,b=w.selectValue;if(!y&&!(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(E)i.removeValue(E);else{if(!d)return;c?i.popValue():p&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!x||!v||!O||g&&i.isOptionSelected(O,b))return;i.selectOption(O);break;case"Enter":if(l.keyCode===229)break;if(x){if(!O||i.isComposing)return;i.selectOption(O);break}return;case"Escape":x?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):p&&f&&i.clearValue();break;case" ":if(h)return;if(!x){i.openMenu("first");break}if(!O)return;i.selectOption(O);break;case"ArrowUp":x?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":x?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!x)return;i.focusOption("pageup");break;case"PageDown":if(!x)return;i.focusOption("pagedown");break;case"Home":if(!x)return;i.focusOption("first");break;case"End":if(!x)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++vS),i.state.selectValue=Uf(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=Ns(o,a[u])}return i}return L_(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&&qf(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&&(qf(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(Rs):U(U({},Rs),this.props.theme):Rs}},{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,y=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:u,getValue:l,hasValue:y,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 Pm(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Tm(this.props,i,o)}},{key:"filterOption",value:function(i,o){return km(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,y=this.state,x=y.inputIsHidden,m=y.ariaSelection,v=this.commonProps,g=u||this.getElementId("input"),w=U(U(U({"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,q({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:o,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:l},w)):k.createElement(U1,q({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,y=h.isDisabled,x=h.isMulti,m=h.inputValue,v=h.placeholder,g=this.state,w=g.selectValue,O=g.focusedValue,E=g.isFocused;if(!this.hasValue()||!p)return m?null:k.createElement(d,q({},f,{key:"placeholder",isDisabled:y,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),v);if(x)return w.map(function(P,R){var L=P===O,B="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return k.createElement(a,q({},f,{components:{Container:u,Label:l,Remove:s},isFocused:L,isDisabled:y,key:B,index:R,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(F){F.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(m)return null;var b=w[0];return k.createElement(c,q({},f,{data:b,isDisabled:y}),this.formatOptionLabel(b,"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,q({},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,q({},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,q({},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,q({},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,y=this.state.focusedOption,x=this.props,m=x.captureMenuScroll,v=x.inputValue,g=x.isLoading,w=x.loadingMessage,O=x.minMenuHeight,E=x.maxMenuHeight,b=x.menuIsOpen,P=x.menuPlacement,R=x.menuPosition,L=x.menuPortalTarget,B=x.menuShouldBlockScroll,N=x.menuShouldScrollIntoView,F=x.noOptionsMessage,H=x.onMenuScrollToTop,K=x.onMenuScrollToBottom;if(!b)return null;var $=function(de,pe){var Ve=de.type,ve=de.data,Ie=de.isDisabled,nt=de.isSelected,Me=de.label,Za=de.value,rt=y===ve,hc=Ie?void 0:function(){return i.onOptionHover(ve)},Dm=Ie?void 0:function(){return i.selectOption(ve)},mc="".concat(i.getElementId("option"),"-").concat(pe),$m={id:mc,onClick:Dm,onMouseMove:hc,onMouseOver:hc,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:nt};return k.createElement(h,q({},p,{innerProps:$m,data:ve,isDisabled:Ie,isSelected:nt,key:mc,label:Me,type:Ve,value:Za,isFocused:rt,innerRef:rt?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(de.data,"menu"))},X;if(this.hasOptions())X=this.getCategorizedOptions().map(function(Y){if(Y.type==="group"){var de=Y.data,pe=Y.options,Ve=Y.index,ve="".concat(i.getElementId("group"),"-").concat(Ve),Ie="".concat(ve,"-heading");return k.createElement(a,q({},p,{key:ve,data:de,options:pe,Heading:u,headingProps:{id:Ie,data:Y.data},label:i.formatGroupLabel(Y.data)}),Y.options.map(function(nt){return $(nt,"".concat(Ve,"-").concat(nt.index))}))}else if(Y.type==="option")return $(Y,"".concat(Y.index))});else if(g){var I=w({inputValue:v});if(I===null)return null;X=k.createElement(d,p,I)}else{var A=F({inputValue:v});if(A===null)return null;X=k.createElement(f,p,A)}var V={minMenuHeight:O,maxMenuHeight:E,menuPlacement:P,menuPosition:R,menuShouldScrollIntoView:N},te=k.createElement(ww,q({},p,V),function(Y){var de=Y.ref,pe=Y.placerProps,Ve=pe.placement,ve=pe.maxHeight;return k.createElement(l,q({},p,V,{innerRef:de,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:g,placement:Ve}),k.createElement(Y1,{captureEnabled:m,onTopArrive:H,onBottomArrive:K,lockEnabled:B},function(Ie){return k.createElement(s,q({},p,{innerRef:function(Me){i.getMenuListRef(Me),Ie(Me)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:i.getElementId("listbox")},isLoading:g,maxHeight:ve,focusedOption:y}),X)}))});return L||R==="fixed"?k.createElement(c,q({},p,{appendTo:L,controlElement:this.controlRef,menuPlacement:P,menuPosition:R}),te):te}},{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(X1,{name:s,onFocus:this.onValueInputFocus});if(!(!s||u))if(l)if(a){var f=d.map(function(y){return i.getOptionValue(y)}).join(a);return k.createElement("input",{name:s,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(y,x){return k.createElement("input",{key:"i-".concat(x),name:s,type:"hidden",value:i.getOptionValue(y)})}):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(M1,q({},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,y=this.commonProps=this.getCommonProps();return k.createElement(u,q({},y,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:p}),this.renderLiveRegion(),k.createElement(o,q({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:p,menuIsOpen:h}),k.createElement(l,q({},y,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(a,q({},y,{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,y=i.menuIsOpen,x=i.inputValue,m=i.isMulti,v=Uf(p),g={};if(a&&(p!==a.value||h!==a.options||y!==a.menuIsOpen||x!==a.inputValue)){var w=y?pS(i,v):[],O=y?rd(Po(i,v),"".concat(f,"-option")):[],E=u?hS(o,v):null,b=mS(o,w),P=Ns(O,b);g={selectValue:v,focusedOption:b,focusedOptionId:P,focusableOptionsWithIds:O,focusedValue:E,clearFocusValueOnUpdate:!1}}var R=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},L=s,B=c&&d;return c&&!B&&(L={value:oo(m,v,v[0]||null),options:v,action:"initial-input-focus"},B=!d),(s==null?void 0:s.action)==="initial-input-focus"&&(L=null),U(U(U({},g),R),{},{prevProps:i,ariaSelection:L,prevWasFocused:B})}}]),n}(k.Component);jm.defaultProps=dS;var yS=k.forwardRef(function(e,t){var n=I_(e);return k.createElement(jm,q({ref:t},n))}),gS=yS,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)},_S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},wS=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)"})})},SS=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 xS(e){var t=e.isDisabled,n=e.error,r=_S(e,["isDisabled","error"]),i=SS(t,n);return W.createElement(gS,ie({},r,{isDisabled:t,theme:wS,styles:i}))}const ES="_Spinner__bar_oumod_13",zs={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:ES};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 bS(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(W.createElement("div",{style:c,className:zs.Spinner__bar,key:s}))}var d={width:r*.5,height:r*.5};return o==="inline"&&(d.marginLeft=r*.5,d.transform="translateY(33%)"),W.createElement("div",{className:Rt((t={},t[zs["Spinner--inline"]]=o==="inline",t[zs["Spinner--centered"]]=o==="centered",t)),style:la(la({},u),d)},l)}const OS="_switchField__flex_16z4j_1",CS="_switchField__switchInput_16z4j_6",PS="_switchField__label_16z4j_10",TS="_switchField__below_16z4j_22",ao={switchField__flex:OS,switchField__switchInput:CS,switchField__label:PS,switchField__below:TS};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 On(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 W.createElement(W.Fragment,null,W.createElement("div",{className:ao.switchField__flex},W.createElement("div",{className:ao.switchField__switchInput},W.createElement(NS,ca({},c,{name:n,value:l,onChange:s}))),W.createElement(Dh,ca({},u,{htmlFor:t,required:a,className:Rt(ao.switchField__label,u==null?void 0:u.className),error:!!o}),r)),(i||o)&&W.createElement("div",{className:ao.switchField__below},o&&W.createElement(Mh,null,o),i&&W.createElement(Fh,null,i)))}const kS="_switchInput__inner_1knbg_1",IS="_switchInput_1knbg_1",jS="_switchInput__checked_1knbg_47",LS="_switchInput__disabled_1knbg_60",so={switchInput__inner:kS,switchInput:IS,switchInput__checked:jS,switchInput__disabled:LS};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};function NS(e){var t,n=e.className,r=e.value,i=e.disabled,o=e.onClick,a=e.onChange,u=e.onKeyDown,l=RS(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=Rt(so.switchInput,n,(t={},t[so.switchInput__checked]=r,t[so.switchInput__disabled]=i,t));return W.createElement("button",Xu({},l,{type:"button",role:"switch","aria-checked":r,disabled:i,className:f,onKeyDown:c,onClick:d}),W.createElement("span",{className:so.switchInput__inner}))}var Ju=function(){return Ju=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},Ju.apply(this,arguments)};function Cn(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 W.createElement(Ah,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},W.createElement(FS,Ju({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}const zS="_TextInput_x2oj2_1",uo={TextInput:zS,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};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)},MS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},FS=function(e){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,y=p===void 0?!1:p,x=e.type,m=e.value,v=e.monospaced,g=MS(e,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),w=k.useCallback(function(E){f&&f(E.target.value,E)},[f]),O=Rt(uo.TextInput,n,(t={},t[uo["TextInput--disabled"]]=i,t[uo["TextInput--error"]]=o,t[uo["TextInput--monospaced"]]=v,t));return W.createElement("input",Zu({className:O,"aria-label":c,id:a,name:s,required:y,placeholder:h,maxLength:l,disabled:i,onBlur:d,onChange:w,value:m,type:x,ref:u},g))};function AS({ctx:e}){return _.jsx(Rd,{ctx:e,children:_.jsx(sn,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>e.navigateTo(`/configuration/p/${e.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}const DS="modulepreload",$S=function(e,t){return new URL(e,t).href},od={},VS=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),l=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=Promise.allSettled(n.map(s=>{if(s=$S(s,r),s in od)return;od[s]=!0;const c=s.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!r)for(let p=a.length-1;p>=0;p--){const y=a[p];if(y.href===s&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":DS,c||(h.as="script"),h.crossOrigin="",h.href=s,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((p,y)=>{h.addEventListener("load",p),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${s}`)))})}))}function o(a){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return i.then(a=>{for(const u of a||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})};var kn=function(){return kn=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},kn.apply(this,arguments)};function US(e){return typeof e=="object"&&!!e&&"data"in e}function Nt(e){var t=e.id,n=e.type,r=e.attributes,i=e.relationships,o=e.meta;return kn(kn(kn(kn(kn({},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(!US(e))throw new Error("Invalid body!");return Array.isArray(e.data)?e.data.map(Nt):Nt(e.data)}var Lm=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 qS(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 BS=function(e){Lm(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,li):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),li=function(e){Lm(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 qS(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),HS=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)}}(),Ii=function(e){HS(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 ji(e,t){var n=null,r=new Promise(function(i,o){n=function(){try{t&&t(),o(new Ii)}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 GS=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())})},WS=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 YS(e){return GS(this,void 0,void 0,function(){var t,n,r;return WS(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 li)||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 Rm={},fc={},dc={};(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={}))})(dc);var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});class KS{constructor(t,n){this._code=t,this._message=n}get code(){return this._code}get message(){return this._message}}Ja.default=KS;var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.mutexEquality=Hn.mutexBitwiseAnd=void 0;function QS(e,t){return(e&t)!==0}Hn.mutexBitwiseAnd=QS;function XS(e,t){return e===t}Hn.mutexEquality=XS;var pc={};Object.defineProperty(pc,"__esModule",{value:!0});class JS{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})}}pc.default=JS;var ZS=Tt&&Tt.__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())})},Nm=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fc,"__esModule",{value:!0});const Et=dc,ex=Nm(Ja),tx=Hn,nx=Nm(pc);var at;(function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"})(at||(at={}));function ad(e,t){for(let n of e.listeners)n.reject(t)}class rx{constructor(t,n={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=t,this._samePriorityMutex=!!n.samePriorityMutex,this._mutexStrategy=n.mutexStrategy||tx.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 nx.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===at.EXECUTING?t+1:t,0)}createCanceledError(){return new ex.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(t=>t.state===at.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(t=>t.state!==at.TERMINATED)}_removeTaskAt(t){this._queue.splice(t,1)}_executeTask(t){return ZS(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=at.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=at.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===at.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===Et.TaskCollisionStrategy.KEEP_OTHER&&o.state!==at.EXECUTING){this._removeTaskAt(i--),ad(o,this.createCanceledError());continue}else{if(a===Et.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(a===Et.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(i--),{canceled:!1,task:{task:t,state:at.PENDING,listeners:[{resolve:n,reject:r},...o.listeners]}};if(a===Et.TaskCollisionStrategy.RESOLVE_THIS)return o.listeners=[...o.listeners,{resolve:n,reject:r}],{canceled:!1}}if(t.onTaskCollision){if(u=t.onTaskCollision(o.task),u===Et.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(u===Et.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(i--),ad(o,this.createCanceledError());continue}else{if(u===Et.TaskCollisionStrategy.RESOLVE_OTHER)return o.listeners=[...o.listeners,{resolve:n,reject:r}],{canceled:!1};if(u===Et.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(i--),{canceled:!1,task:{task:t,state:at.PENDING,listeners:[{resolve:n,reject:r},...o.listeners]}}}}if(!(a===Et.TaskCollisionStrategy.KEEP_BOTH&&u===Et.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:t,state:at.PENDING,listeners:[{resolve:n,reject:r}]}}}}fc.default=rx;(function(e){var t=Tt&&Tt.__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(fc);e.Scheduler=n.default;const r=dc;Object.defineProperty(e,"TaskCollisionStrategy",{enumerable:!0,get:function(){return r.TaskCollisionStrategy}});const i=t(Ja);e.SchedulerError=i.default;const o=Hn;Object.defineProperty(e,"mutexBitwiseAnd",{enumerable:!0,get:function(){return o.mutexBitwiseAnd}}),Object.defineProperty(e,"mutexEquality",{enumerable:!0,get:function(){return o.mutexEquality}})})(Rm);var ix=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}}},Nn=function(e){return this instanceof Nn?(this.v=e,this):new Nn(e)},ox=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,y){o.push([f,h,p,y])>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 Nn?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 xn(e,t,n){return ox(this,arguments,function(){var i,o,a,u,l,m,s,c,d,f,h,p,y,x,m;return ix(this,function(v){switch(v.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,Nn(t({limit:i,offset:0}))];case 1:a=v.sent(),u=0,l=a.data,v.label=2;case 2:return u<l.length?(m=l[u],[4,Nn(m)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return u++,[3,2];case 6:for(s=a.meta.total_count,c=new Rm.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);v.label=7;case 7:return d.length>0?[4,Nn(d.shift())]:[3,14];case 8:p=v.sent(),y=0,x=p.data,v.label=9;case 9:return y<x.length?(m=x[y],[4,Nn(m)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return y++,[3,9];case 13:return[3,7];case 14:return[2]}})})}function En(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var lo=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))},zm="__ARRAY_INDEX__";function ax(e){return e.reduce(function(t,n,r){return r===0?n:n===zm?"".concat(t,"[]"):"".concat(t,"[").concat(n,"]")},"")}function sx(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 el(e,t){t===void 0&&(t=[]);var n=[];if(typeof e=="number"||typeof e=="string"||typeof e=="boolean")n.push([ax(t),sx(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=el(o,lo(lo([],t,!0),[zm],!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=el(o,lo(lo([],t,!0),[f],!1));h<p.length;h++){var l=p[h];n.push(l)}}return n}var At=function(){return At=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},At.apply(this,arguments)},ux=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())})},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=typeof window<"u"&&typeof window.document<"u",fx=5,st;(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"})(st||(st={}));function dx(e){var t={};return e.forEach(function(n,r){t[r]=n}),t}function sd(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:dx(i.headers),body:o},preCallStack:a}}function px(e,t,n,r,i){return{request:{url:t,method:e,headers:n,body:r},preCallStack:i}}function hx(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 mx(e){return typeof e=="object"&&!!e&&"code"in e}function vx(e){return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n.toLowerCase(),r]}))}var ud=1;function ko(e){var t;return ux(this,void 0,void 0,function(){var n,r,i,o,a,u,l,s,c,d,f,h,p,y,x,m,L,B,v,g,w,O,E,b,P,R,L,B,N,F,H,K,$,X;return lx(this,function(I){switch(I.label){case 0:if(n=ud,ud+=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||st.NONE,l="autoRetry"in e?e.autoRetry:!0,s=e.logFn||function(){return!0},c=At({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?vx(e.extraHeaders):{}),cx&&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(el(e.queryParams)).toString()):"",p="".concat(d).concat(e.url).concat(h),u>=st.BASIC){if(s("[".concat(n,"] ").concat(e.method," ").concat(p)),u>=st.BODY_AND_HEADERS)for(y=0,x=Object.entries(c||{});y<x.length;y++)m=x[y],L=m[0],B=m[1],s("[".concat(n,"] ").concat(L,": ").concat(B));u>=st.BODY&&f&&s("[".concat(n,"] ").concat(f))}I.label=1;case 1:return I.trys.push([1,12,,16]),v=ji(r(p,{method:e.method,headers:c,body:f})),g=setTimeout(function(){v.cancel()},e.requestTimeout||3e4),[4,v];case 2:if(w=I.sent(),clearTimeout(g),O=w.headers.get("Content-Type"),E=O&&!O.includes("application/json"),!(w.status===429||E))return[3,4];if(!l||E&&e.method!=="GET")throw new li(sd(e.method,p,c,e.body,w,void 0,i));return b=w.headers.has("X-RateLimit-Reset")?Number.parseInt(w.headers.get("X-RateLimit-Reset"),10):a,u>=st.BASIC&&(w.status===429?s("[".concat(n,"] Rate limit exceeded, wait ").concat(b," seconds then retry...")):s("[".concat(n,'] Invalid response content type "').concat(O,'" (status ').concat(w.status,"). Wait ").concat(b," seconds then retry..."))),[4,To(b*1e3)];case 3:return I.sent(),[2,ko(At(At({},e),{retryCount:a+1}))];case 4:if(u>=st.BASIC&&(s("[".concat(n,"] Status: ").concat(w.status," (").concat(w.statusText,")")),u>=st.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++)L=R[P],B=w.headers.get(L),B&&s("[".concat(n,"] ").concat(L,": ").concat(B));return w.status!==204?[3,5]:(F=void 0,[3,7]);case 5:return[4,w.json()];case 6:F=I.sent(),I.label=7;case 7:return N=F,u>=st.BODY&&N&&s("[".concat(n,"] ").concat(JSON.stringify(N,null,2))),w.status!==202?[3,9]:[4,e.fetchJobResult(N.data.id)];case 8:if(H=I.sent(),H.status<200||H.status>=300)throw new li(hx(e.method,p,c,e.body,H.status,H.payload,i));N=H.payload,I.label=9;case 9:return w.status>=200&&w.status<300?[2,N]:(K=new li(sd(e.method,p,c,e.body,w,N,i)),$=(t=K.errors.find(function(A){return A.attributes.transient}))===null||t===void 0?void 0:t.attributes.code,l&&$?(u>=st.BASIC&&s("[".concat(n,"] ").concat($,", wait ").concat(a," seconds then retry...")),[4,To(a*1e3)]):[3,11]);case 10:return I.sent(),[2,ko(At(At({},e),{retryCount:a+1}))];case 11:throw K;case 12:return X=I.sent(),X instanceof Ii||mx(X)&&X.code.includes("ETIMEDOUT")?l&&a<fx?(u>=st.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(At(At({},e),{retryCount:a+1}))];case 14:throw new BS(px(e.method,p,c,e.body,i));case 15:throw X;case 16:return[2]}})})}var In=function(){return In=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},In.apply(this,arguments)},yx=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 Ms(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=yx(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,y=h.type;l[f]={data:{id:p,type:y}}}else Ms(h)?l[f]={data:h.map(function(P){var R=P.id,L=P.type;return{id:R,type:L}})}:l[f]={data:null};else u[f]=h}else if(t.relationships==="*")for(var x=0,m=Object.entries(a);x<m.length;x++){var v=m[x],f=v[0],h=v[1];if(t.attributes.includes(f))u[f]=h;else if(Io(h)){var g=h.id,y=h.type;l[f]={data:{id:g,type:y}}}else Ms(h)?l[f]={data:h.map(function(L){var B=L.id,N=L.type;return{id:B,type:N}})}:l[f]={data:null}}else{for(var w=0,O=Object.entries(a);w<O.length;w++){var E=O[w],f=E[0],h=E[1];if(t.attributes.includes(f))u[f]=h;else if(t.relationships.includes(f))if(Io(h)){var b=h.id,y=h.type;l[f]={data:{id:b,type:y}}}else Ms(h)?l[f]={data:h.map(function(L){var B=L.id,N=L.type;return{id:B,type:N}})}:l[f]={data:null}}t.attributes.includes("type")&&(u.type=i)}return{data:In(In(In(In(In({},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 G=function(){function e(t){this.client=t}return e}(),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.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}(G),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)}}(),Fn=function(){return Fn=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},Fn.apply(this,arguments)},Sx=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())})},xx=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}}},ld=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 cd(e,t){return e==null&&t==null?!0:e===t}function Ex(e,t){for(var n in e)if(!cd(e[n],t[n]))return!1;for(var n in t)if(!cd(e[n],t[n]))return!1;return!0}function co(e,t,n,r){if(!t)return e;var i=t.add,o=t.remove;return ld(ld([],o?o.reduce(function(a,u){var l=Fn(Fn({},u),{environment:n}),s=a.find(function(c){return Ex(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 Fn({environment:n},a)}):[],!0)}var bx=function(e){wx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.updateCurrentEnvironmentPermissions=function(n,r){return Sx(this,void 0,void 0,function(){var i,o,a,u,l,s;return xx(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=Fn(Fn({},u?{positive_item_type_permissions:co(a.positive_item_type_permissions,r.positive_item_type_permissions,i,"positive_item_type_permissions"),negative_item_type_permissions:co(a.negative_item_type_permissions,r.negative_item_type_permissions,i,"negative_item_type_permissions")}:{}),l?{positive_upload_permissions:co(a.positive_upload_permissions,r.positive_upload_permissions,i,"positive_upload_permissions"),negative_upload_permissions:co(a.negative_upload_permissions,r.negative_upload_permissions,i,"negative_upload_permissions")}:{}),[2,this.update(n,s)]}})})},t}(_x),Ox=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cx=function(e){Ox(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}(G),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)}}(),Tx=function(e){Px(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}(G),kx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ix=function(e){kx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),jx=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){jx(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}(G),Rx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nx=function(e){Rx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"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}(G),zx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mx=function(e){zx(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}(G),Fx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ax=function(e){Fx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(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}(G),Dx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$x=function(e){Dx(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}(G),Vx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ux=function(e){Vx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),qx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bx=function(e){qx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),Hx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gx=function(e){Hx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),Wx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yx=function(e){Wx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),Kx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qx=function(e){Kx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),Xx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jx=function(e){Xx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.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}(G),Zx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eE=function(e){Zx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(G),tE=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)},nE=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}}},rE=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)},iE=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,y){o.push([f,h,p,y])>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])}},oE=function(e){tE(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 iE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return nE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=rE(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(Nt(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 En(n),xn({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}(G),aE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),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)},sE=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}}},uE=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)},lE=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,y){o.push([f,h,p,y])>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])}},cE=function(e){aE(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 lE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return sE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=uE(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(Nt(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 En(n),xn({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}(G),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)}}(),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)},dE=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}}},pE=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)},hE=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,y){o.push([f,h,p,y])>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])}},mE=function(e){fE(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 hE(this,arguments,function(){var a,u,l,s,c,d,f,h,p;return dE(this,function(y){switch(y.label){case 0:y.trys.push([0,9,10,15]),a=!0,u=pE(this.rawListPagedIterator(C(n),r,i)),y.label=1;case 1:return[4,_r(u.next())];case 2:if(l=y.sent(),d=l.done,!!d)return[3,8];p=l.value,a=!1,y.label=3;case 3:return y.trys.push([3,,6,7]),s=p,[4,_r(Nt(s))];case 4:return[4,y.sent()];case 5:return y.sent(),[3,7];case 6:return a=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return c=y.sent(),f={error:c},[3,15];case 10:return y.trys.push([10,,13,14]),!a&&!d&&(h=u.return)?[4,_r(h.call(u))]:[3,12];case 11:y.sent(),y.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 En(r),xn({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}(G),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)}}(),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)},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}}},gE=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)},_E=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,y){o.push([f,h,p,y])>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])}},Mm=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:"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 _E(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return yE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=gE(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(Nt(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 En(n),xn({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}(G),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)}}(),SE=function(e){wE(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}(G),xE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),EE=function(e){xE(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}(G),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)}}(),OE=function(e){bE(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}(G),CE=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){CE(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}(G),TE=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)},kE=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=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)},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,y){o.push([f,h,p,y])>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])}},LE=function(e){TE(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 jE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return kE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=IE(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(Nt(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 En(n),xn({defaultLimit:20,maxLimit:100},function(o){return i.rawList(ma(ma({},n),{page:o}))},r)},t.TYPE="search_result",t}(G),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.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}(G),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)}}(),ME=function(e){zE(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}(G),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)}}(),AE=function(e){FE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"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}(G),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)}}(),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)},$E=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}}},VE=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)}},xr=function(e){return this instanceof xr?(this.v=e,this):new xr(e)},UE=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,y){o.push([f,h,p,y])>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 xr?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])}},qE=function(e){DE(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 UE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return $E(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=VE(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,xr(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,xr(Nt(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,xr(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 En(n),xn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(va(va({},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}(G),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)}}(),HE=function(e){BE(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}(G),GE=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){GE(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}(G),YE=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)}}(),KE=function(e){YE(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}(G),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)}}(),XE=function(e){QE(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}(G),JE=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)}}(),ZE=function(e){JE(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}(G),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)}}(),tb=function(e){eb(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}(G),nb=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)}}(),rb=function(e){nb(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}(G),ib=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ob=function(e){ib(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}(G),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)}}(),sb=function(e){ab(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}(G),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)}}(),lb=function(e){ub(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}(G),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)}}(),fb=function(e){cb(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}(G),db=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)}}(),pb=function(e){db(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}(G),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)}}(),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)},mb=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}}},vb=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)},yb=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,y){o.push([f,h,p,y])>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])}},gb=function(e){hb(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 yb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return mb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=vb(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(Nt(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 En(n),xn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(ya(ya({},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}(G),_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)}}(),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)},wb=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)}},br=function(e){return this instanceof br?(this.v=e,this):new br(e)},xb=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,y){o.push([f,h,p,y])>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 br?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])}},Eb=function(e){_b(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 xb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return wb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=Sb(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,br(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,br(Nt(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,br(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 En(n),xn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(ga(ga({},n),{page:o}))},r)},t.TYPE="upload_smart_tag",t}(G),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)}}(),Ob=function(e){bb(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}(G),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)}}(),Pb=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:"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}(G),tn=function(){return tn=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},tn.apply(this,arguments)},Tb=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())})},kb=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}}},Ib=function(){function e(t){this.config=t,this.roles=new bx(this),this.users=new Cx(this),this.ssoUsers=new Tx(this),this.auditLogEvents=new Ix(this),this.menuItems=new Lx(this),this.schemaMenuItems=new Nx(this),this.uploadCollections=new Mx(this),this.itemTypes=new Ax(this),this.fields=new $x(this),this.fieldsets=new Ux(this),this.session=new Bx(this),this.accessTokens=new Gx(this),this.plugins=new Yx(this),this.jobResults=new Qx(this),this.subscriptionLimits=new Jx(this),this.subscriptionFeatures=new eE(this),this.buildEvents=new oE(this),this.items=new cE(this),this.itemVersions=new mE(this),this.uploads=new Mm(this),this.uploadRequest=new SE(this),this.uploadTracks=new EE(this),this.scheduledPublication=new OE(this),this.scheduledUnpublishing=new PE(this),this.searchResults=new LE(this),this.environments=new NE(this),this.maintenanceMode=new ME(this),this.webhooks=new AE(this),this.webhookCalls=new qE(this),this.buildTriggers=new HE(this),this.itemTypeFilters=new WE(this),this.uploadFilters=new KE(this),this.siteInvitations=new XE(this),this.editingSessions=new ZE(this),this.ssoGroups=new tb(this),this.ssoSettings=new rb(this),this.emojiSuggestions=new ob(this),this.whiteLabelSettings=new sb(this),this.publicInfo=new lb(this),this.dailyUsages=new fb(this),this.usageCounters=new pb(this),this.uploadTags=new gb(this),this.uploadSmartTags=new Eb(this),this.site=new Ob(this),this.workflows=new Pb(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(tn(tn(tn({},this.config),t),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v4.0.1",baseUrl:this.baseUrl,preCallStack:new Error().stack,extraHeaders:tn(tn(tn({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(r){return n.jobResultsFetcher?n.jobResultsFetcher(r):YS(function(){return n.jobResults.find(r)})}}))},e.prototype.eventsChannelName=function(){return Tb(this,void 0,void 0,function(){var t;return kb(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 jb(e,t,n){var r=n===void 0?{}:n,i=r.onProgress,o=r.additionalHeaders,a=new XMLHttpRequest;return ji(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)},Lb=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())})},Rb=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 fd(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 ji(function(){return Lb(r,void 0,void 0,function(){var u,l,s,c;return Rb(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 Ii;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=jb(t,s,_a(_a({},n),{additionalHeaders:c})),[4,a];case 2:return d.sent(),[2,l]}})})},function(){a?a.cancel():o=!0})}var Nb=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)}}(),lr=function(){return lr=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},lr.apply(this,arguments)},dd=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())})},pd=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}}},hd=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},zb=function(e){Nb(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 ji(function(){return dd(r,void 0,void 0,function(){var a,u,l,s,c;return pd(this,function(d){switch(d.label){case 0:if(i)throw new Ii;return a=n.fileOrBlob,u=n.filename,l=n.onProgress,s=hd(n,["fileOrBlob","filename","onProgress"]),o=fd(this.client,a,{filename:u,onProgress:l}),[4,o];case 1:return c=d.sent(),l&&l({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(lr(lr({},s),{path:c}))]}})})},function(){o?o.cancel():i=!0})},t.prototype.updateFromFileOrBlob=function(n,r){var i=this,o=!1,a;return ji(function(){return dd(i,void 0,void 0,function(){var u,l,s,c,d;return pd(this,function(f){switch(f.label){case 0:if(o)throw new Ii;return u=r.fileOrBlob,l=r.filename,s=r.onProgress,c=hd(r,["fileOrBlob","filename","onProgress"]),a=fd(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,lr(lr({},c),{path:d}))]}})})},function(){a?a.cancel():o=!0})},t}(Mm),Mb=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)}}(),Fb=function(e){Mb(t,e);function t(n){var r=e.call(this,n)||this;return r.uploads=new zb(r),r}return t}(Ib);function md(e){return new Fb(e)}const Ab="_assetListCard_jv9xn_23",Db="_assetListHeader_jv9xn_43",$b="_assetListHeaderTitle_jv9xn_52",Vb="_categoryBadge_jv9xn_67",Ub="_badgeGreen_jv9xn_81",qb="_badgeRed_jv9xn_85",Bb="_badgeGray_jv9xn_89",Hb="_badgeBlue_jv9xn_93",Gb="_noAssetsMessage_jv9xn_97",Wb="_assetList_jv9xn_23",Yb="_assetListItem_jv9xn_112",Kb="_assetItemContent_jv9xn_126",Qb="_assetIcon_jv9xn_132",Xb="_fileIconWrapper_jv9xn_136",Jb="_assetDetails_jv9xn_149",Zb="_assetPath_jv9xn_154",eO="_optimizationStats_jv9xn_161",tO="_sizeInfo_jv9xn_169",nO="_sizeBefore_jv9xn_176",rO="_sizeAfter_jv9xn_176",iO="_sizeLabel_jv9xn_182",oO="_sizeValue_jv9xn_187",aO="_sizeArrow_jv9xn_200",sO="_savingsBadge_jv9xn_205",uO="_assetActions_jv9xn_215",lO="_container_jv9xn_226",cO="_optimizingContainer_jv9xn_290",fO="_statusText_jv9xn_302",dO="_percentageText_jv9xn_308",pO="_progressBar_jv9xn_315",hO="_progressBarFill_jv9xn_326",mO="_logWrapper_jv9xn_359",vO="_logHeader_jv9xn_369",yO="_logsContainer_jv9xn_381",gO="_logs_jv9xn_381",_O="_logEntry_jv9xn_397",wO="_sizeComparison_jv9xn_410",SO="_originalSize_jv9xn_568",xO="_optimizedSize_jv9xn_578",EO="_sizeSavings_jv9xn_583",bO="_settingsContainer_jv9xn_628",OO="_settingsForm_jv9xn_634",CO="_fieldRow_jv9xn_659",PO="_field_jv9xn_659",TO="_formActionContainer_jv9xn_670",kO="_buttonGroup_jv9xn_674",IO="_resultsContainer_jv9xn_724",jO="_optimizationSummaryTitle_jv9xn_733",LO="_statsCardGrid_jv9xn_741",RO="_statsCard_jv9xn_741",NO="_clickableStatsCard_jv9xn_758",zO="_statsCardTitle_jv9xn_798",MO="_statsCardValue_jv9xn_806",FO="_optimizedValue_jv9xn_812",AO="_skippedValue_jv9xn_816",DO="_failedValue_jv9xn_820",$O="_statsCardLabel_jv9xn_824",VO="_savingsSummary_jv9xn_829",UO="_savingsCard_jv9xn_833",qO="_savingsRow_jv9xn_840",BO="_savingsLabel_jv9xn_852",HO="_savingsValue_jv9xn_857",GO="_actionsContainer_jv9xn_863",WO="_infoText_jv9xn_872",YO="_hintWithDoc_jv9xn_888",KO="_plainHint_jv9xn_902",QO="_docLinkIcon_jv9xn_915",XO="_currentAssetPreview_jv9xn_979",JO="_assetPreviewImage_jv9xn_990",ZO="_assetPreviewInfo_jv9xn_1007",eC="_assetPreviewTitle_jv9xn_1012",tC="_assetPreviewMeta_jv9xn_1022",nC="_advancedOptionsGroup_jv9xn_1031",rC="_optionsGrid_jv9xn_1041",iC="_optionItem_jv9xn_1048",oC="_paramTooltip_jv9xn_1055",aC="_tooltipText_jv9xn_1060",sC="_buttonTooltip_jv9xn_1098",uC="_previewInfoBox_jv9xn_1141",T={assetListCard:Ab,assetListHeader:Db,assetListHeaderTitle:$b,categoryBadge:Vb,badgeGreen:Ub,badgeRed:qb,badgeGray:Bb,badgeBlue:Hb,noAssetsMessage:Gb,assetList:Wb,assetListItem:Yb,assetItemContent:Kb,assetIcon:Qb,fileIconWrapper:Xb,assetDetails:Jb,assetPath:Zb,optimizationStats:eO,sizeInfo:tO,sizeBefore:nO,sizeAfter:rO,sizeLabel:iO,sizeValue:oO,sizeArrow:aO,savingsBadge:sO,assetActions:uO,container:lO,optimizingContainer:cO,statusText:fO,percentageText:dO,progressBar:pO,progressBarFill:hO,logWrapper:mO,logHeader:vO,logsContainer:yO,logs:gO,logEntry:_O,sizeComparison:wO,originalSize:SO,optimizedSize:xO,sizeSavings:EO,settingsContainer:bO,settingsForm:OO,fieldRow:CO,field:PO,formActionContainer:TO,buttonGroup:kO,resultsContainer:IO,optimizationSummaryTitle:jO,statsCardGrid:LO,statsCard:RO,clickableStatsCard:NO,statsCardTitle:zO,statsCardValue:MO,optimizedValue:FO,skippedValue:AO,failedValue:DO,statsCardLabel:$O,savingsSummary:VO,savingsCard:UO,savingsRow:qO,savingsLabel:BO,savingsValue:HO,actionsContainer:GO,infoText:WO,hintWithDoc:YO,plainHint:KO,docLinkIcon:QO,currentAssetPreview:XO,assetPreviewImage:JO,assetPreviewInfo:ZO,assetPreviewTitle:eC,assetPreviewMeta:tC,advancedOptionsGroup:nC,optionsGrid:rC,optionItem:iC,paramTooltip:oC,tooltipText:aC,buttonTooltip:sC,previewInfoBox:uC},Fm={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 lC(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 cC="Expected a function",vd=NaN,fC="[object Symbol]",dC=/^\s+|\s+$/g,pC=/^[-+]0x[0-9a-f]+$/i,hC=/^0b[01]+$/i,mC=/^0o[0-7]+$/i,vC=parseInt,yC=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,gC=typeof self=="object"&&self&&self.Object===Object&&self,_C=yC||gC||Function("return this")(),wC=Object.prototype,SC=wC.toString,xC=Math.max,EC=Math.min,Fs=function(){return _C.Date.now()};function bC(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(cC);t=yd(t)||0,tl(n)&&(c=!!n.leading,d="maxWait"in n,o=d?xC(yd(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(E){var b=r,P=i;return r=i=void 0,s=E,a=e.apply(P,b),a}function p(E){return s=E,u=setTimeout(m,t),c?h(E):a}function y(E){var b=E-l,P=E-s,R=t-b;return d?EC(R,o-P):R}function x(E){var b=E-l,P=E-s;return l===void 0||b>=t||b<0||d&&P>=o}function m(){var E=Fs();if(x(E))return v(E);u=setTimeout(m,y(E))}function v(E){return u=void 0,f&&r?h(E):(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:v(Fs())}function O(){var E=Fs(),b=x(E);if(r=arguments,i=this,l=E,b){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 tl(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function OC(e){return!!e&&typeof e=="object"}function CC(e){return typeof e=="symbol"||OC(e)&&SC.call(e)==fC}function yd(e){if(typeof e=="number")return e;if(CC(e))return vd;if(tl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(dC,"");var n=hC.test(e);return n||mC.test(e)?vC(e.slice(2),n?2:8):pC.test(e)?vd:+e}var PC=bC;const TC=wa(PC),it=({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})},kC=({children:e,tooltip:t})=>t?_.jsxs("div",{className:T.buttonTooltip,children:[e,_.jsx("span",{className:T.tooltipText,children:t})]}):_.jsx(_.Fragment,{children:e}),zt=({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:"ℹ"})]})},Qn=({hint:e})=>_.jsx("div",{className:T.plainHint,children:_.jsx("span",{children:e})}),Mt={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"},IC=({settings:e,onSettingsChange:t,onStartOptimization:n,onPreviewOptimization:r,ctx:i})=>{const o=k.useRef(null);k.useEffect(()=>(o.current=TC(async d=>{try{await i.updatePluginParameters({optimization_settings:JSON.stringify(d)}),console.log("Settings saved to plugin parameters:",d)}catch(f){console.error("Error saving settings:",f)}},500),()=>{o.current&&o.current.cancel()}),[i]),k.useEffect(()=>{o.current&&o.current(e)},[e]);const a=d=>f=>{const h=Number.parseFloat(f);if(!Number.isNaN(h)){let p=h;(d==="qualityLarge"||d==="qualityVeryLarge")&&(p=Math.min(Math.max(0,h),100)),d==="minimumReduction"&&(p=Math.min(Math.max(0,h),100)),(d==="largeAssetThreshold"||d==="veryLargeAssetThreshold")&&(p=Math.max(.1,h)),(d==="resizeDimensionLarge"||d==="resizeDimensionVeryLarge")&&(p=Math.max(1,h)),t({...e,[d]:p})}},u=d=>f=>{t({...e,[d]:f})},l=d=>(f,h)=>{f&&typeof f=="object"&&!Array.isArray(f)&&"value"in f&&t({...e,[d]:f.value})},s=[{label:"WebP",value:"webp"},{label:"AVIF",value:"avif"}],c=s.find(d=>d.value===e.targetFormat)||s[0];return _.jsxs(y_,{className:T.settingsForm,children:[_.jsxs(Hr,{children:[_.jsx("h4",{children:"Size Thresholds"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(Cn,{id:"largeAssetThreshold",name:"largeAssetThreshold",label:"Large Asset (MB)",value:e.largeAssetThreshold.toString(),onChange:a("largeAssetThreshold")}),_.jsx(Qn,{hint:`Assets above ${e.largeAssetThreshold}MB will be optimized`})]}),_.jsxs("div",{className:T.field,children:[_.jsx(Cn,{id:"veryLargeAssetThreshold",name:"veryLargeAssetThreshold",label:"Very Large Asset (MB)",value:e.veryLargeAssetThreshold.toString(),onChange:a("veryLargeAssetThreshold")}),_.jsx(Qn,{hint:`Assets above ${e.veryLargeAssetThreshold}MB get stronger optimization`})]})]}),_.jsxs("div",{className:T.field,children:[_.jsx(Cn,{id:"minimumReduction",name:"minimumReduction",label:"Minimum Size Reduction (%)",value:e.minimumReduction.toString(),onChange:a("minimumReduction")}),_.jsx(Qn,{hint:"Only replace if reduced by at least this percentage"})]})]}),_.jsxs(Hr,{children:[_.jsx("h4",{children:"Basic Optimization"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"fm",paramValue:e.preserveOriginalFormat?void 0:e.targetFormat,children:_.jsx(On,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:e.preserveOriginalFormat,onChange:u("preserveOriginalFormat")})}),_.jsx(zt,{hint:"Keep original image format (JPG, PNG, etc.)",url:Mt.format})]}),_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"auto",paramValue:"compress",children:_.jsx(On,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:e.useAutoCompress,onChange:u("useAutoCompress")})}),_.jsx(zt,{hint:"Use Imgix's auto compression features",url:Mt.auto})]})]}),!e.preserveOriginalFormat&&_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"fm",paramValue:e.targetFormat,children:_.jsx(E_,{id:"targetFormat",name:"targetFormat",label:"Target Format",value:c,onChange:l("targetFormat"),selectInputProps:{options:s}})}),_.jsx(Qn,{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(it,{paramName:"max-w",paramValue:e.resizeLargeImages?"value":void 0,children:_.jsx(On,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:e.resizeLargeImages,onChange:u("resizeLargeImages")})}),_.jsx(zt,{hint:"Reduce image dimensions to save space",url:Mt.resize})]})})]}),e.resizeLargeImages&&_.jsxs(Hr,{children:[_.jsx("h4",{children:"Resize Dimensions"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"max-w",paramValue:e.resizeDimensionLarge,children:_.jsx(Cn,{id:"resizeDimensionLarge",name:"resizeDimensionLarge",label:"Large Image Max Width (px)",value:e.resizeDimensionLarge.toString(),onChange:a("resizeDimensionLarge")})}),_.jsx(Qn,{hint:"Max dimension for large images"})]}),_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"max-w",paramValue:e.resizeDimensionVeryLarge,children:_.jsx(Cn,{id:"resizeDimensionVeryLarge",name:"resizeDimensionVeryLarge",label:"Very Large Image Max Width (px)",value:e.resizeDimensionVeryLarge.toString(),onChange:a("resizeDimensionVeryLarge")})}),_.jsx(Qn,{hint:"Max dimension for very large images"})]})]})]}),_.jsxs(Hr,{children:[_.jsx("h4",{children:"Compression Settings"}),!e.useLossless&&_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"q",paramValue:e.qualityLarge,children:_.jsx(Cn,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:e.qualityLarge.toString(),onChange:a("qualityLarge")})}),_.jsx(zt,{hint:"Quality for large images (0-100)",url:Mt.quality})]}),_.jsxs("div",{className:T.field,children:[_.jsx(it,{paramName:"q",paramValue:e.qualityVeryLarge,children:_.jsx(Cn,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:e.qualityVeryLarge.toString(),onChange:a("qualityVeryLarge")})}),_.jsx(zt,{hint:"Quality for very large images (0-100)",url:Mt.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(Hr,{className:T.advancedOptionsGroup,children:[_.jsx("h4",{children:"Advanced Options"}),_.jsxs("div",{className:T.optionsGrid,children:[_.jsxs("div",{className:T.optionItem,children:[_.jsx(it,{paramName:"lossless",paramValue:e.useLossless?1:void 0,children:_.jsx(On,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:e.useLossless,onChange:u("useLossless")})}),_.jsx(zt,{hint:"Use lossless compression when possible",url:Mt.lossless})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(it,{paramName:"dpr",paramValue:e.useDpr?2:void 0,children:_.jsx(On,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:e.useDpr,onChange:u("useDpr")})}),_.jsx(zt,{hint:"Optimize for high-resolution displays (Retina)",url:Mt.dpr})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(it,{paramName:"chromasub",paramValue:e.useChromaSubsampling?444:void 0,children:_.jsx(On,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:e.useChromaSubsampling,onChange:u("useChromaSubsampling")})}),_.jsx(zt,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:Mt.chroma})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(it,{paramName:"cs",paramValue:e.preserveColorProfile?"origin":void 0,children:_.jsx(On,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:e.preserveColorProfile,onChange:u("preserveColorProfile")})}),_.jsx(zt,{hint:"Maintain accurate colors from original image",url:Mt.colorSpace})]})]})]}),_.jsx("div",{className:T.formActionContainer,children:_.jsxs("div",{className:T.buttonGroup,children:[_.jsx(sn,{buttonType:"muted",buttonSize:"l",onClick:()=>t({...Fm}),children:"Restore Defaults"}),_.jsx(kC,{tooltip:"Calculate potential improvements with current settings without replacing any assets",children:_.jsx(sn,{buttonType:"muted",buttonSize:"l",onClick:r,children:"Preview Optimization"})}),_.jsx(sn,{buttonType:"primary",buttonSize:"l",onClick:n,fullWidth:!0,children:"Start Optimization"})]})})]})};function gn(e){return e<1024?`${e} bytes`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const jC=({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:gn(n.originalSize)}),_.jsx("span",{className:T.sizeArrow,children:"→"}),_.jsx("span",{className:T.optimizedSize,children:gn(n.optimizedSize)}),_.jsxs("span",{className:T.sizeSavings,children:["(-",n.savingsPercentage,"%)"]})]})]},`log-${r}-${n.text.substring(0,10)}`))})})]})},LC=({current:e,total:t,isVisible:n,assetSizeCategory:r="large",currentAsset:i,isPreview:o})=>{var u;if(!n)return null;const a=t>0?Math.min(100,Math.max(0,Math.round(e/t*100))):0;return _.jsxs("div",{className:T.optimizingContainer,children:[o&&_.jsxs("div",{className:T.previewInfoBox,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",{children:[_.jsx("strong",{children:"Preview Mode"})," - This will calculate potential savings without modifying any assets."]})]}),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:[(u=i.path.split(".").pop())==null?void 0:u.toUpperCase()," • ",(i.size/(1024*1024)).toFixed(2)," MB • ",i.width,"×",i.height,"px"]})]})]}),_.jsxs("div",{className:T.statusText,children:[_.jsx(bS,{size:16})," ",_.jsxs("span",{children:["Processing ",r," assets: ",e," of ",t]})]}),_.jsx("div",{className:T.percentageText,children:_.jsxs("span",{children:[a,"%"]})}),_.jsx("div",{className:T.progressBar,children:_.jsx("div",{className:T.progressBarFill,style:{width:`${a}%`}})})]})},RC=({result:e,setSelectedCategory:t,resetState:n,largeAssetThreshold:r,isPreview:i})=>{if(!e)return null;const{optimized:o,skipped:a,failed:u,totalAssets:l,optimizedAssets:s}=e,c=s.reduce((y,x)=>y+(x.originalSize-x.optimizedSize),0),d=s.length>0?Math.round(s.reduce((y,x)=>y+(x.originalSize-x.optimizedSize)/x.originalSize*100,0)/s.length):0,f=()=>c<1024?`${c} bytes`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:`${(c/(1024*1024)).toFixed(1)} MB`,h=(y,x)=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),t(x))},p=()=>{n?n():t(null)};return _.jsxs("div",{className:T.resultsContainer,children:[_.jsx("h2",{className:T.optimizationSummaryTitle,children:i?"Preview Summary":"Optimization Summary"}),i&&_.jsxs("div",{className:T.previewInfoBox,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",{children:[_.jsx("strong",{children:"Preview Mode"})," - This is an estimation of potential savings. No assets have been modified."]})]}),l===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:l}),_.jsx("div",{className:T.statsCardLabel,children:l>0?"Total":"No assets found"})]}),_.jsxs("div",{className:`${T.statsCard} ${o>0?T.clickableStatsCard:""}`,onClick:()=>o>0?t("optimized"):null,onKeyDown:y=>o>0?h(y,"optimized"):null,role:o>0?"button":void 0,tabIndex:o>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Optimized"}),_.jsx("div",{className:`${T.statsCardValue} ${T.optimizedValue}`,children:o}),_.jsx("div",{className:T.statsCardLabel,children:o>0?"Click to view":"No optimized assets"})]}),_.jsxs("div",{className:`${T.statsCard} ${a>0?T.clickableStatsCard:""}`,onClick:()=>a>0?t("skipped"):null,onKeyDown:y=>a>0?h(y,"skipped"):null,role:a>0?"button":void 0,tabIndex:a>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Skipped"}),_.jsx("div",{className:`${T.statsCardValue} ${T.skippedValue}`,children:a}),_.jsx("div",{className:T.statsCardLabel,children:a>0?"Click to view":"No skipped assets"})]}),_.jsxs("div",{className:`${T.statsCard} ${u>0?T.clickableStatsCard:""}`,onClick:()=>u>0?t("failed"):null,onKeyDown:y=>u>0?h(y,"failed"):null,role:u>0?"button":void 0,tabIndex:u>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Failed"}),_.jsx("div",{className:`${T.statsCardValue} ${T.failedValue}`,children:u}),_.jsx("div",{className:T.statsCardLabel,children:u>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:f()})]}),_.jsxs("div",{className:T.savingsRow,children:[_.jsx("div",{className:T.savingsLabel,children:"Average Optimization per Asset"}),_.jsxs("div",{className:T.savingsValue,children:[d,"%"]})]})]})}),_.jsx("div",{className:T.actionsContainer,children:_.jsx(sn,{buttonType:"primary",buttonSize:"l",onClick:p,fullWidth:!0,children:i?"New Preview":"New Optimization"})})]})},NC=({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(sn,{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:gn(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:gn(a.optimizedSize)})]})]}),u&&_.jsxs("div",{className:`${T.savingsBadge} ${T.badgeGreen}`,children:[u,"% savings"]})]})]}),_.jsxs("div",{className:T.assetActions,children:[_.jsx(sn,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(a.url,"_blank"),children:"View Asset"}),_.jsx(sn,{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)})})]})};function gd(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 As(e){return{id:e.id,path:e.path,url:e.url}}function zC(e,t,n){return{id:e.id,path:e.path,url:e.url,originalSize:t,optimizedSize:n}}const MC=e=>new Promise(t=>setTimeout(t,e));async function FC(e,t,n,r,i,o,a){try{n(`Processing asset: ${e.path} (${gn(e.size)})`);const u=lC(e,t);if(!u)return n(`Skipping asset ${e.path}: No suitable optimization parameters found.`),{status:"skipped",asset:e};const l=`${e.url}${u}`;n(`Optimizing with parameters: ${u}`);const s=await fetch(l);if(!s.ok)throw new Error(`Failed to fetch optimized image: ${s.statusText}`);const c=await s.blob();n(`Optimized image size: ${gn(c.size)}`);const d=e.size*(1-t.minimumReduction/100);if(c.size>d)return n(`Optimization not significant enough for ${e.path}. Skipping.`),{status:"skipped",asset:e};if(i)return r(e.path,e.size,c.size),{status:"optimized",asset:e,optimizedSize:c.size};if(!o)throw new Error("API token is required for asset replacement");n(`Replacing asset ${e.path}...`);const{default:f}=await VS(async()=>{const{default:h}=await import("./assetReplacer-CJGOVBH3.js");return{default:h}},[],import.meta.url);return await f(e.id,l,o,a||"master",e.basename),r(e.path,e.size,c.size),n(`Successfully replaced asset ${e.path}`),{status:"optimized",asset:e,optimizedSize:c.size}}catch(u){return n(`Error ${i?"optimizing":"replacing"} asset ${e.path}: ${u instanceof Error?u.message:String(u)}`),{status:"failed",asset:e,error:u instanceof Error?u.message:String(u)}}}const AC=({ctx:e})=>{const[t,n]=k.useState(!1),[r,i]=k.useState(!1),[o,a]=k.useState(!1),[u,l]=k.useState(0),[s,c]=k.useState(0),[d,f]=k.useState(null),[h,p]=k.useState([]),[y,x]=k.useState({...Fm}),[m,v]=k.useState(void 0),[g,w]=k.useState(null),O=10;k.useEffect(()=>{(async()=>{try{const F=e.plugin.attributes.parameters;if(F&&typeof F.optimization_settings=="string")try{const H=JSON.parse(F.optimization_settings);x(H),console.log("Loaded settings from plugin parameters:",H)}catch(H){console.error("Error parsing saved settings:",H)}else console.log("No saved settings found, using defaults")}catch(F){console.error("Error accessing plugin parameters:",F)}})()},[e]),k.useEffect(()=>{const N=F=>{if(t){const H="Optimization is in progress. Leaving the page now may cause you to lose assets! Are you sure you want to leave?";return F.preventDefault(),F.returnValue=H,H}};return window.addEventListener("beforeunload",N),()=>{window.removeEventListener("beforeunload",N)}},[t]);const E=N=>{p(F=>[{text:`[${new Date().toISOString()}] ${N}`},...F])},b=(N,F,H)=>{const K=F-H,$=Math.round(K/F*100);p(X=>[{text:`[${new Date().toISOString()}] Successfully optimized asset: ${N} `,originalSize:F,optimizedSize:H,savingsPercentage:$},...X])},P=async(N,F)=>{let H=0,K=0,$=0,X=0;const I=[],A=[],V=[];let te=0,Y=0;c(N.length),l(0);const de=[...N];let pe=0;const Ve=F?void 0:e.currentUserAccessToken,ve=()=>{X++,l(X)},Ie=async()=>{const nt=[];for(;de.length>0&&pe<O;){const Me=de.shift();if(!Me)continue;pe++,te+=Me.size,v(Me);const Za=(async()=>{try{pe>1&&await MC(300);const rt=await FC(Me,y,E,b,F,Ve||void 0,e.environment);rt.status==="optimized"&&rt.optimizedSize?(I.push(zC(Me,Me.size,rt.optimizedSize)),Y+=rt.optimizedSize,H++):rt.status==="skipped"?(A.push(As(Me)),K++):(V.push(As(Me)),$++)}catch(rt){E(`Unexpected error processing ${Me.path}: ${rt instanceof Error?rt.message:String(rt)}`),V.push(As(Me)),$++}finally{ve(),pe--}})();nt.push(Za)}if(await Promise.all(nt),de.length>0)return Ie()};return await Ie(),{optimized:H,skipped:K,failed:$,totalAssets:N.length,optimizedAssets:I,skippedAssets:A,failedAssets:V,originalSizeTotal:te,optimizedSizeTotal:Y}},R=async()=>{try{B(),i(!0),a(!0),E("Starting asset optimization preview...");const N=md({apiToken:e.currentUserAccessToken??"",environment:e.environment});E("Fetching assets from DatoCMS for preview...");const F=y.largeAssetThreshold*1024*1024,H=[];let K=0;for await(const X of N.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:F}}}}))K++,H.push(gd(X));E(`Found ${K} assets larger than ${y.largeAssetThreshold}MB.`),E(`Found ${H.length} optimizable images.`);const $=await P(H,!0);if(f({optimized:$.optimized,skipped:$.skipped,failed:$.failed,totalAssets:K,optimizedAssets:$.optimizedAssets,skippedAssets:$.skippedAssets,failedAssets:$.failedAssets}),E(`Optimization preview complete. Optimized: ${$.optimized}, Skipped: ${$.skipped}, Failed: ${$.failed}`),$.optimized>0){const X=$.originalSizeTotal-$.optimizedSizeTotal,I=Math.round(X/$.originalSizeTotal*100);E(`Total size savings: ${gn(X)} (${I}%)`)}E("Asset optimization preview completed!"),e.notice("Asset optimization preview completed!")}catch(N){E(`Error during optimization preview: ${N instanceof Error?N.message:String(N)}`),e.alert(`Error during optimization preview: ${N instanceof Error?N.message:String(N)}`),i(!1)}finally{a(!1)}},L=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;B(),n(!0),a(!0),E("Starting asset optimization process...");const H=md({apiToken:e.currentUserAccessToken??"",environment:e.environment});E("Fetching assets from DatoCMS...");const K=y.largeAssetThreshold*1024*1024,$=[];let X=0;for await(const A of H.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:K}}}}))X++,$.push(gd(A));E(`Found ${X} assets larger than ${y.largeAssetThreshold}MB.`),E(`Found ${$.length} optimizable images.`);const I=await P($,!1);if(f({optimized:I.optimized,skipped:I.skipped,failed:I.failed,totalAssets:X,optimizedAssets:I.optimizedAssets,skippedAssets:I.skippedAssets,failedAssets:I.failedAssets}),E(`Optimization complete. Optimized: ${I.optimized}, Skipped: ${I.skipped}, Failed: ${I.failed}`),I.optimized>0){const A=I.originalSizeTotal-I.optimizedSizeTotal,V=Math.round(A/I.originalSizeTotal*100);E(`Total size savings: ${gn(A)} (${V}%)`)}E("Asset optimization process completed!"),e.notice("Asset optimization process completed!")}catch(N){E(`Error during optimization process: ${N instanceof Error?N.message:String(N)}`),e.alert(`Error during optimization process: ${N instanceof Error?N.message:String(N)}`)}finally{n(!1),a(!1)}},B=()=>{n(!1),i(!1),a(!1),f(null),p([]),l(0),c(0),v(void 0)};return _.jsx(Rd,{ctx:e,children:_.jsxs("div",{className:T.container,children:[_.jsx("h1",{className:T.title,children:"Asset Optimization"}),!o&&!d&&_.jsx("div",{className:T.settingsContainer,children:_.jsx(IC,{settings:y,onSettingsChange:x,onStartOptimization:L,onPreviewOptimization:R,ctx:e})}),_.jsx(LC,{current:u,total:s,isVisible:o,assetSizeCategory:y.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:m,isPreview:r}),d&&_.jsxs(_.Fragment,{children:[_.jsx(RC,{result:d,setSelectedCategory:w,resetState:B,largeAssetThreshold:y.largeAssetThreshold,isPreview:r}),g&&_.jsx(NC,{assets:g==="optimized"?d.optimizedAssets:g==="skipped"?d.skippedAssets:d.failedAssets,category:g,onClose:()=>w(null),ctx:e})]}),_.jsx(jC,{log:h})]})})};var Am,_d=zh;Am=_d.createRoot,_d.hydrateRoot;const DC=document.getElementById("root"),$C=Am(DC);function wd(e){$C.render(_.jsx(k.StrictMode,{children:e}))}Gv({renderConfigScreen(e){return wd(_.jsx(AS,{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 wd(_.jsx(AC,{ctx:t}))}}});
|