/home/vianto5/duettowers.mx/wp-content/plugins/code-snippets/dist
NameSizeModeActions
editor-themes/-0755rm
77309b6c62059751c2c4.svg7650644editdlrm
admin-bar.css28800644editdlrm
admin-bar.js132230644editdlrm
admin-bar.js.LICENSE.txt1630644editdlrm
edit.css586140644editdlrm
edit.js2200580644editdlrm
edit.js.LICENSE.txt5240644editdlrm
editor.js1333610644editdlrm
editor.js.LICENSE.txt2850644editdlrm
import.css302460644editdlrm
import.js984990644editdlrm
import.js.LICENSE.txt2850644editdlrm
manage.css682440644editdlrm
manage.js1755750644editdlrm
manage.js.LICENSE.txt2850644editdlrm
mce.js44160644editdlrm
menu.css10610644editdlrm
prism.css85900644editdlrm
prism.js535370644editdlrm
prism.js.LICENSE.txt1930644editdlrm
settings.css289910644editdlrm
settings.js345840644editdlrm
settings.js.LICENSE.txt2850644editdlrm
welcome.css266910644editdlrm
welcome.js233840644editdlrm
welcome.js.LICENSE.txt1210644editdlrm
Edit: /home/vianto5/duettowers.mx/wp-content/plugins/code-snippets/dist/edit.js (220058B)
/*! For license information please see edit.js.LICENSE.txt */ (self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[]).push([[8739],{5896(e,t,n){"use strict";n.d(t,{M:()=>E});var r=n(3453),o=n(4467),i=n(7723),s=n(6942),a=n.n(s),c=n(1609),l=n(6492),u=n(6842),p=n(6788),d=n(8586),f=n(3028),h=n(3780),m=n(401),b=n(7882),v=n(790);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;ta});var r=n(6087),o=(n(1609),n(7723)),i=n(6427),s=n(790),a=function(e){var t,n=e.isOpen,r=e.setIsOpen;return n?(0,s.jsxs)(i.Modal,{"aria-labelledby":"code-snippets-upsell-dialog-title",className:"code-snippets-upsell code-snippets-upsell-dialog",onRequestClose:function(){r(!1)},children:[(0,s.jsx)("img",{src:"".concat(null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.plugin,"/assets/icon.svg"),alt:(0,o.__)("Code Snippets logo","code-snippets")}),(0,s.jsx)(c,{})]}):null},c=function(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{id:"code-snippets-upsell-dialog-title",children:(0,r.createInterpolateElement)((0,o.__)("Unlock all cloud sync features and many more, with Code Snippets Pro","code-snippets"),{span:(0,s.jsx)("span",{})})}),(0,s.jsx)("p",{children:(0,r.createInterpolateElement)((0,o.__)("With Code Snippets Pro you can connect your WordPress sites to the code snippets cloud platform and be able to backup, synchronise, collaborate, and deploy your snippets from one central location.","code-snippets"),{strong:(0,s.jsx)("strong",{})})}),(0,s.jsx)("a",{href:"https://codesnippets.pro/pricing/",className:"button button-primary button-large",rel:"noreferrer",target:"_blank",children:(0,o.__)("Explore Code Snippets Pro","code-snippets")}),(0,s.jsx)("p",{children:(0,o.__)("Here's what else you get with Pro:","code-snippets")}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,o.__)("Create, explain and verify snippets with AI","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("Control when snippets run with Conditions","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("CSS stylesheet snippets","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("Minified JavaScript snippets","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("Editor blocks and Elementor widgets","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("Cloud sync and backup","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("Cloud share and deploy","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("Cloud bundles and teams","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("WP-CLI commands","code-snippets")}),(0,s.jsx)("li",{children:(0,o.__)("And much more!","code-snippets")})]})]})}},6788(e,t,n){"use strict";n.d(t,{J:()=>a});var r=n(4467),o=(n(1609),n(790));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;ta});var r=n(4467),o=(n(1609),n(790));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;ta});var r=n(4467),o=(n(1609),n(790));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;ta});var r=n(4467),o=(n(1609),n(790));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;ta});var r=n(4467),o=(n(1609),n(790));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;tOe,hasStandardBrowserEnv:()=>xe,hasStandardBrowserWebWorkerEnv:()=>je,navigator:()=>we,origin:()=>Se});var o=n(1609),i=n(3453),s=n(6942),a=n.n(s),c=n(7723),l=n(3145),u=n(7800);function p(e){return function(e){if(Array.isArray(e))return(0,l.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,u.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(467),f=n(4756),h=n.n(f);function m(e,t){return function(){return e.apply(t,arguments)}}const{toString:b}=Object.prototype,{getPrototypeOf:v}=Object,{iterator:g,toStringTag:y}=Symbol,O=(w=Object.create(null),e=>{const t=b.call(e);return w[t]||(w[t]=t.slice(8,-1).toLowerCase())});var w;const x=e=>(e=e.toLowerCase(),t=>O(t)===e),j=e=>t=>typeof t===e,{isArray:S}=Array,_=j("undefined");function C(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E=x("ArrayBuffer"),P=j("string"),k=j("function"),A=j("number"),D=e=>null!==e&&"object"==typeof e,R=e=>{if("object"!==O(e))return!1;const t=v(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||y in e||g in e)},I=x("Date"),T=x("File"),N=x("Blob"),L=x("FileList"),M=x("URLSearchParams"),[F,V,U,B]=["ReadableStream","Request","Response","Headers"].map(x);function H(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),S(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,$=e=>!_(e)&&e!==W,q=(G="undefined"!=typeof Uint8Array&&v(Uint8Array),e=>G&&e instanceof G);var G;const X=x("HTMLFormElement"),J=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),K=x("RegExp"),Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},Z=x("AsyncFunction"),Q=(ee="function"==typeof setImmediate,te=k(W.postMessage),ee?setImmediate:te?((e,t)=>(W.addEventListener("message",({source:n,data:r})=>{n===W&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),W.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ee,te;const ne="undefined"!=typeof queueMicrotask?queueMicrotask.bind(W):"undefined"!=typeof process&&process.nextTick||Q,re={isArray:S,isArrayBuffer:E,isBuffer:C,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=O(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&E(e.buffer),t},isString:P,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:D,isPlainObject:R,isEmptyObject:e=>{if(!D(e)||C(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:F,isRequest:V,isResponse:U,isHeaders:B,isUndefined:_,isDate:I,isFile:T,isBlob:N,isRegExp:K,isFunction:k,isStream:e=>D(e)&&k(e.pipe),isURLSearchParams:M,isTypedArray:q,isFileList:L,forEach:H,merge:function e(){const{caseless:t,skipUndefined:n}=$(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=t&&z(r,i)||i;R(r[s])&&R(o)?r[s]=e(r[s],o):R(o)?r[s]=e({},o):S(o)?r[s]=o.slice():n&&_(o)||(r[s]=o)};for(let e=0,t=arguments.length;e(H(t,(t,r)=>{n&&k(t)?Object.defineProperty(e,r,{value:m(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:x,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(S(e))return e;let t=e.length;if(!A(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[g]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:X,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:Y,freezeMethods:e=>{Y(e,(t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];k(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return S(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:z,global:W,isContextDefined:$,isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[y]&&e[g])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(D(e)){if(t.indexOf(e)>=0)return;if(C(e))return e;if(!("toJSON"in e)){t[r]=e;const o=S(e)?[]:{};return H(e,(e,t)=>{const i=n(e,r+1);!_(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(D(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:Q,asap:ne,isIterable:e=>null!=e&&k(e[g])};class oe extends Error{static from(e,t,n,r,o,i){const s=new oe(e.message,t||e.code,n,r,o);return s.cause=e,s.name=e.name,i&&Object.assign(s,i),s}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}}oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",oe.ERR_BAD_OPTION="ERR_BAD_OPTION",oe.ECONNABORTED="ECONNABORTED",oe.ETIMEDOUT="ETIMEDOUT",oe.ERR_NETWORK="ERR_NETWORK",oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",oe.ERR_DEPRECATED="ERR_DEPRECATED",oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",oe.ERR_CANCELED="ERR_CANCELED",oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",oe.ERR_INVALID_URL="ERR_INVALID_URL";const ie=oe;function se(e){return re.isPlainObject(e)||re.isArray(e)}function ae(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,n){return e?e.concat(t).map(function(e,t){return e=ae(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const le=re.toFlatObject(re,{},null,function(e){return/^is[A-Z]/.test(e)}),ue=function(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!re.isUndefined(t[e])})).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(re.isDate(e))return e.toISOString();if(re.isBoolean(e))return e.toString();if(!a&&re.isBlob(e))throw new ie("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(e)||re.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(re.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(re.isArray(e)&&function(e){return re.isArray(e)&&!e.some(se)}(e)||(re.isFileList(e)||re.endsWith(n,"[]"))&&(a=re.toArray(e)))return n=ae(n),a.forEach(function(e,r){!re.isUndefined(e)&&null!==e&&t.append(!0===s?ce([n],r,i):null===s?n:n+"[]",c(e))}),!1;return!!se(e)||(t.append(ce(o,n,i),c(e)),!1)}const u=[],p=Object.assign(le,{defaultVisitor:l,convertValue:c,isVisitable:se});if(!re.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!re.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),re.forEach(n,function(n,i){!0===(!(re.isUndefined(n)||null===n)&&o.call(t,n,re.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function de(e,t){this._pairs=[],e&&ue(e,this,t)}const fe=de.prototype;fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){const t=e?function(t){return e.call(this,t,pe)}:pe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const he=de;function me(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function be(e,t,n){if(!t)return e;const r=n&&n.encode||me,o=re.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let s;if(s=i?i(t,o):re.isURLSearchParams(t)?t.toString():new he(t,o).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const ve=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){re.forEach(this.handlers,function(t){null!==t&&e(t)})}},ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ye={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Oe="undefined"!=typeof window&&"undefined"!=typeof document,we="object"==typeof navigator&&navigator||void 0,xe=Oe&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),je="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Se=Oe&&window.location.href||"http://localhost",_e={...r,...ye},Ce=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&re.isArray(r)?r.length:i,a?(re.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&re.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&re.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Ee={transitional:ge,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=re.isObject(e);if(o&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return r?JSON.stringify(Ce(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ue(e,new _e.classes.URLSearchParams,{visitor:function(e,t,n,r){return _e.isNode&&re.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=re.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ue(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(re.isString(e))try{return(0,JSON.parse)(e),re.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw ie.from(e,ie.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_e.classes.FormData,Blob:_e.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{Ee.headers[e]={}});const Pe=Ee,ke=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ae=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:re.isArray(e)?e.map(Re):String(e)}function Ie(e,t,n,r,o){return re.isFunction(r)?r.call(this,t,n):(o&&(t=n),re.isString(t)?re.isString(r)?-1!==t.indexOf(r):re.isRegExp(r)?r.test(t):void 0:void 0)}class Te{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=De(t);if(!o)throw new Error("header name must be a non-empty string");const i=re.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Re(e))}const i=(e,t)=>re.forEach(e,(e,n)=>o(e,n,t));if(re.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(re.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ke[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(re.isObject(e)&&re.isIterable(e)){let n,r,o={};for(const t of e){if(!re.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?re.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=De(e)){const n=re.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(re.isFunction(t))return t.call(this,e,n);if(re.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const n=re.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ie(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=De(e)){const o=re.findKey(n,e);!o||t&&!Ie(0,n[o],o,t)||(delete n[o],r=!0)}}return re.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ie(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return re.forEach(this,(r,o)=>{const i=re.findKey(n,o);if(i)return t[i]=Re(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();s!==o&&delete t[o],t[s]=Re(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return re.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&re.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ae]=this[Ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=De(e);t[r]||(function(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return re.isArray(e)?e.forEach(r):r(e),this}}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors(Te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),re.freezeMethods(Te);const Ne=Te;function Le(e,t){const n=this||Pe,r=t||n,o=Ne.from(r.headers);let i=r.data;return re.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Me(e){return!(!e||!e.__CANCEL__)}const Fe=class extends ie{constructor(e,t,n){super(null==e?"canceled":e,ie.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ve(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ue=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let u=s,p=0;for(;u!==i;)p+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},i-a)))},()=>n&&s(n)]}(n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Be=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},He=e=>(...t)=>re.asap(()=>e(...t)),ze=_e.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_e.origin),_e.navigator&&/(msie|trident)/i.test(_e.navigator.userAgent)):()=>!0,We=_e.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];re.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),re.isString(r)&&a.push(`path=${r}`),re.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),re.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function $e(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qe=e=>e instanceof Ne?{...e}:e;function Ge(e,t){t=t||{};const n={};function r(e,t,n,r){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge.call({caseless:r},e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function o(e,t,n,o){return re.isUndefined(t)?re.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!re.isUndefined(t))return r(void 0,t)}function s(e,t){return re.isUndefined(t)?re.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(qe(e),qe(t),0,!0)};return re.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=re.hasOwnProp(c,r)?c[r]:o,s=i(e[r],t[r],r);re.isUndefined(s)&&i!==a||(n[r]=s)}),n}const Xe=e=>{const t=Ge({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Ne.from(s),t.url=be($e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),re.isFormData(n))if(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(re.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(_e.hasStandardBrowserEnv&&(r&&re.isFunction(r)&&(r=r(t)),r||!1!==r&&ze(t.url))){const e=o&&i&&We.read(i);e&&s.set(o,e)}return t},Je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Xe(e);let o=r.data;const i=Ne.from(r.headers).normalize();let s,a,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Ne.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ve(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new ie("Request aborted",ie.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ie(r,ie.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ge;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ie(t,o.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&re.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),re.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,u]=Ue(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Ue(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Fe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===_e.protocols.indexOf(v)?n(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e)):m.send(o||null)})},Ke=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ie?t:new Fe(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ie(`timeout of ${t}ms exceeded`,ie.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>re.asap(s),a}},Ye=function*(e,t){let n=e.byteLength;if(!t||n{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Ye(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Qe}=re,et=(({Request:e,Response:t})=>({Request:e,Response:t}))(re.global),{ReadableStream:tt,TextEncoder:nt}=re.global,rt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ot=e=>{e=re.merge.call({skipUndefined:!0},et,e);const{fetch:t,Request:n,Response:r}=e,o=t?Qe(t):"function"==typeof fetch,i=Qe(n),s=Qe(r);if(!o)return!1;const a=o&&Qe(tt),c=o&&("function"==typeof nt?(l=new nt,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=i&&a&&rt(()=>{let e=!1;const t=new n(_e.origin,{body:new tt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p=s&&a&&rt(()=>re.isReadableStream(new r("").body)),d={stream:p&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ie(`Response type '${e}' is not supported`,ie.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:s,data:a,signal:l,cancelToken:f,timeout:h,onDownloadProgress:m,onUploadProgress:b,responseType:v,headers:g,withCredentials:y="same-origin",fetchOptions:O}=Xe(e),w=t||fetch;v=v?(v+"").toLowerCase():"text";let x=Ke([l,f&&f.toAbortSignal()],h),j=null;const S=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let _;try{if(b&&u&&"get"!==s&&"head"!==s&&0!==(_=await(async(e,t)=>{const r=re.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(re.isBlob(e))return e.size;if(re.isSpecCompliantForm(e)){const t=new n(_e.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return re.isArrayBufferView(e)||re.isArrayBuffer(e)?e.byteLength:(re.isURLSearchParams(e)&&(e+=""),re.isString(e)?(await c(e)).byteLength:void 0)})(t):r})(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(re.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=Be(_,Ue(He(b)));a=Ze(t.body,65536,e,n)}}re.isString(y)||(y=y?"include":"omit");const t=i&&"credentials"in n.prototype,l={...O,signal:x,method:s.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?y:void 0};j=i&&new n(o,l);let f=await(i?w(j,O):w(o,l));const h=p&&("stream"===v||"response"===v);if(p&&(m||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=re.toFiniteNumber(f.headers.get("content-length")),[n,o]=m&&Be(t,Ue(He(m),!0))||[];f=new r(Ze(f.body,65536,n,()=>{o&&o(),S&&S()}),e)}v=v||"text";let C=await d[re.findKey(d,v)||"text"](f,e);return!h&&S&&S(),await new Promise((t,n)=>{Ve(t,n,{data:C,headers:Ne.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:j})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,j,t&&t.response),{cause:t.cause||t});throw ie.from(t,t&&t.code,e,j,t&&t.response)}}},it=new Map,st=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s,a,c=i.length,l=it;for(;c--;)s=i[c],a=l.get(s),void 0===a&&l.set(s,a=c?new Map:ot(t)),l=a;return a},at=(st(),{http:null,xhr:Je,fetch:{get:st}});re.forEach(at,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const ct=e=>`- ${e}`,lt=e=>re.isFunction(e)||null===e||!1===e,ut=function(e,t){e=re.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(ct).join("\n"):" "+ct(e[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function pt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function dt(e){return pt(e),e.headers=Ne.from(e.headers),e.data=Le.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ut(e.adapter||Pe.adapter,e)(e).then(function(t){return pt(e),t.data=Le.call(e,e.transformResponse,t),t.headers=Ne.from(t.headers),t},function(t){return Me(t)||(pt(e),t&&t.response&&(t.response.data=Le.call(e,e.transformResponse,t.response),t.response.headers=Ne.from(t.response.headers))),Promise.reject(t)})}const ft="1.13.5",ht={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ht[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mt={};ht.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ft+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ie(r(o," has been removed"+(t?" in "+t:"")),ie.ERR_DEPRECATED);return t&&!mt[o]&&(mt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ht.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const bt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ie("option "+i+" must be "+n,ie.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}},validators:ht},vt=bt.validators;class gt{constructor(e){this.defaults=e||{},this.interceptors={request:new ve,response:new ve}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ge(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&bt.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean),legacyInterceptorReqResOrdering:vt.transitional(vt.boolean)},!1),null!=r&&(re.isFunction(r)?t.paramsSerializer={serialize:r}:bt.assertOptions(r,{encode:vt.function,serialize:vt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&re.merge(o.common,o[t.method]);o&&re.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ne.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||ge;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[dt.bind(this),void 0];for(e.unshift(...s),e.push(...c),u=e.length,l=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Fe(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ot(function(t){e=t}),cancel:e}}}const wt=Ot,xt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xt).forEach(([e,t])=>{xt[t]=e});const jt=xt,St=function e(t){const n=new yt(t),r=m(yt.prototype.request,n);return re.extend(r,yt.prototype,n,{allOwnKeys:!0}),re.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ge(t,n))},r}(Pe);St.Axios=yt,St.CanceledError=Fe,St.CancelToken=wt,St.isCancel=Me,St.VERSION=ft,St.toFormData=ue,St.AxiosError=ie,St.Cancel=St.CanceledError,St.all=function(e){return Promise.all(e)},St.spread=function(e){return function(t){return e.apply(null,t)}},St.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError},St.mergeConfig=Ge,St.AxiosHeaders=Ne,St.formToJSON=e=>Ce(re.isHTMLForm(e)?new FormData(e):e),St.getAdapter=ut,St.HttpStatusCode=jt,St.default=St;const _t=St;var Ct,Et,Pt,kt,At,Dt,Rt,It,Tt=n(9028),Nt=function(e){return"/".includes((t=null!=e?e:"").charAt(t.length-1))?t.slice(0,-1):t;var t},Lt={snippets:Nt(null===(Ct=window.CODE_SNIPPETS)||void 0===Ct?void 0:Ct.restAPI.snippets),recentlyActive:Nt(null===(Et=window.CODE_SNIPPETS)||void 0===Et?void 0:Et.restAPI.recentlyActive),preferences:Nt(null===(Pt=window.CODE_SNIPPETS)||void 0===Pt?void 0:Pt.restAPI.preferences),importPlugins:Nt(null===(kt=window.CODE_SNIPPETS)||void 0===kt?void 0:kt.restAPI.importPlugins),importFiles:Nt(null===(At=window.CODE_SNIPPETS)||void 0===At?void 0:At.restAPI.importFiles),cloud:{snippets:Nt(null===(Dt=window.CODE_SNIPPETS)||void 0===Dt?void 0:Dt.restAPI.cloud.snippets)}},Mt=["delete","put","patch"],Ft=function(e){var t,n=null===(t=e.method)||void 0===t?void 0:t.toLowerCase();return n&&Mt.includes(n)?(e.headers.set("X-HTTP-Method-Override",n.toUpperCase()),e.method="post",e):e},Vt=null===(Rt=window.CODE_SNIPPETS)||void 0===Rt?void 0:Rt.restAPI.nonce,Ut=function(e){return Vt&&e.headers.set("X-WP-Nonce",Vt),e},Bt={headers:{"Access-Control":null===(It=window.CODE_SNIPPETS)||void 0===It?void 0:It.restAPI.cloud.token}},Ht=n(790),zt=function(){var e=(0,d.A)(h().mark(function e(t,n,r,o){var i,s,a;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(i=window.CODE_SNIPPETS)||void 0===i||!i.debug){e.next=9;break}return(s=console).debug.apply(s,["".concat(t," ").concat(n)].concat(p(o?[o]:[]))),e.next=4,r;case 4:return a=e.sent,console.debug("Response",a),e.abrupt("return",a);case 9:return e.next=11,r;case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),Wt=(0,Tt.h)("useRestAPI"),$t=(0,i.A)(Wt,2),qt=$t[0],Gt=$t[1],Xt=function(e){var t=e.children,n=(0,o.useMemo)(function(){var e,t=_t.create(Bt);return t.interceptors.request.use(Ut),t.interceptors.request.use(Ft),null===(e=window.wp.hooks)||void 0===e||e.addAction("heartbeat.tick","code-snippets/refresh-rest-nonce",function(e){e.rest_nonce&&(Vt=e.rest_nonce)}),t},[]),r=(0,o.useMemo)(function(){return function(e){return{getResponse:function(t){return zt("GET",t,e.get(t))},get:function(t){return zt("GET",t,e.get(t)).then(function(e){return e.data})},post:function(t,n,r){return zt("POST",t,e.post(t,n,r),n).then(function(e){return e.data})},del:function(t){return zt("DELETE",t,e.delete(t)).then(function(e){return e.data})},put:function(t,n){return zt("PUT",t,e.put(t,n),n).then(function(e){return e.data})}}}(n)},[n]),i={api:r,axiosInstance:n};return(0,Ht.jsx)(qt.Provider,{value:i,children:t})},Jt=n(6842),Kt=n(2284),Yt=n(4467),Zt={php:["global","admin","front-end","single-use"],html:["content","head-content","body-content","footer-content"],css:["admin-css","site-css"],js:["site-head-js","site-footer-js"],cond:["condition"]},Qt=n(6492);function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;tcreated.","code-snippets"),updated:(0,c.__)("Snippet updated.","code-snippets"),createdActivated:(0,c.__)("Snippet created and activated.","code-snippets"),updatedActivated:(0,c.__)("Snippet updated and activated.","code-snippets"),updatedDeactivated:(0,c.__)("Snippet updated and deactivated"),updatedExecuted:(0,c.__)("Snippet updated and executed.","code-snippets"),failedCreate:(0,c.__)("Could not create snippet.","code-snippets"),failedUpdate:(0,c.__)("Could not update snippet.","code-snippets")},Zn=(0,c.__)("Condition created.","code-snippets"),Qn=(0,c.__)("Condition updated.","code-snippets"),er={addNew:(0,c.__)("Create New Condition","code-snippets"),edit:(0,c.__)("Edit Condition","code-snippets"),created:Zn,updated:Qn,createdActivated:Zn,updatedActivated:Qn,updatedDeactivated:Qn,updatedExecuted:Qn,failedCreate:(0,c.__)("Could not create condition.","code-snippets"),failedUpdate:(0,c.__)("Could not update condition.","code-snippets")},tr=function(e){return e.SAVE="save_snippet",e.SAVE_AND_ACTIVATE="save_snippet_activate",e.SAVE_AND_EXECUTE="save_snippet_execute",e.SAVE_AND_DEACTIVATE="save_snippet_deactivate",e}({}),nr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tr.SAVE,r="condition"===e.scope?er:Yn,o=0===e.id;switch(n){case tr.SAVE:return o?r.created:r.updated;case tr.SAVE_AND_EXECUTE:return r.updatedExecuted;case tr.SAVE_AND_ACTIVATE:return"single-use"===t.scope?r.updatedExecuted:o?r.createdActivated:r.updatedActivated;case tr.SAVE_AND_DEACTIVATE:return r.updatedDeactivated}},rr=function(e){var t,n,r;return["error",(0,c.__)("Snippet could not be activated.","code-snippets"),(0,Ht.jsxs)("span",{children:[(0,c.__)("The snippet was saved, but remains inactive due to this error:","code-snippets")," ",(0,Ht.jsx)("strong",{children:null!==(t=null===(n=e.code_error)||void 0===n?void 0:n[0])&&void 0!==t?t:""})]},"code-snippets-activation-error"),null!==(r=e.code_error_trace)&&void 0!==r?r:void 0]},or=function(){var e=vn(),t=qn(),n=t.acceptSnippet,r=t.setIsWorking,i=t.setCurrentNotice,s=(0,o.useCallback)(function(){var t=(0,d.A)(h().mark(function t(o,s){var a,l,u,p,f;return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i(void 0),r(!0),a=Kn({},o),tr.SAVE_AND_ACTIVATE===s?a.active=!0:tr.SAVE_AND_DEACTIVATE===s&&(a.active=!1),t.next=6,(0,d.A)(h().mark(function t(){var n,o;return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=a.id,t.next=4,void 0===n||0===n?e.create(a):e.update(Kn(Kn({},a),{},{id:n}));case 4:return o=t.sent,t.abrupt("return",o.id?cn(o):void 0);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",Rn(t.t0)?Hn(t.t0):void 0);case 11:return t.prev=11,r(!1),t.finish(11);case 14:case"end":return t.stop()}},t,null,[[0,8,11,14]])}))();case 6:if(l=t.sent,u=un(o)?er:Yn,void 0!==l&&"string"!=typeof l){t.next=12;break}return p=[a.id?u.failedUpdate:u.failedCreate,null!=l?l:(0,c.__)("The server did not send a valid response.","code-snippets")],i(["error",p.filter(Boolean).join(" ")]),t.abrupt("return",void 0);case 12:return n(l),l.code_error&&tr.SAVE_AND_ACTIVATE===s?i(rr(l)):i(["updated",nr(o,l,s)]),a.id&&l.id&&(window.document.title=window.document.title.replace(Yn.addNew,u.edit),window.history.replaceState({},"",(0,Jt.c$)(null===(f=window.CODE_SNIPPETS)||void 0===f?void 0:f.urls.edit,{id:l.id}))),t.abrupt("return",l);case 16:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}(),[n,e,r,i]);return{submitSnippet:s}},ir=n(6427),sr=function(e){var t=e.open,n=e.title,r=e.onConfirm,o=e.onCancel,i=e.children,s=e.confirmLabel,a=void 0===s?(0,c.__)("OK","code-snippets"):s,l=e.cancelLabel,u=void 0===l?(0,c.__)("Cancel","code-snippets"):l,p=e.confirmButtonClassName;return t?(0,Ht.jsxs)(ir.Modal,{title:n,onRequestClose:o,closeButtonLabel:(0,c.__)("Close dialog","code-snippets"),isDismissible:!0,children:[i,(0,Ht.jsxs)(ir.Flex,{direction:"row",justify:"flex-end",children:[(0,Ht.jsx)(ir.Button,{variant:"tertiary",onClick:o,children:u}),(0,Ht.jsx)(ir.Button,{variant:"primary",onClick:r,className:p,children:a})]})]}):null},ar=n(5896),cr=n(6087);function lr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;rcloud sync, snippet conditions, AI features and much more with Code Snippets Pro.","code-snippets"),{strong:(0,Ht.jsx)("strong",{})})}),(0,Ht.jsx)(ir.ExternalLink,{className:"button button-primary",href:"https://codesnippets.pro/pricing/",children:(0,c.__)("Get Started","code-snippets")}),(0,Ht.jsx)(fr,{small:!0,link:!0,onClick:function(){return s(!0)},"aria-label":(0,c.__)("Dismiss upsell banner","code-snippets"),children:(0,Ht.jsx)("span",{className:"dashicons dashicons-no-alt","aria-hidden":"true"})})]})},mr=n(7882),br=function(){return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("p",{style:{marginBlockStart:0},children:(0,cr.createInterpolateElement)((0,c.__)("This snippet is currently active.","code-snippets"),{strong:(0,Ht.jsx)("strong",{})})}),(0,Ht.jsx)("p",{children:(0,c.__)("Moving it to the trash will also deactivate it.","code-snippets")})]})},vr=function(){return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("p",{style:{marginBlockStart:0},children:(0,cr.createInterpolateElement)((0,c.__)("The snippet will be permanently deleted.","code-snippets"),{strong:(0,Ht.jsx)("strong",{})})}),(0,Ht.jsx)("p",{children:(0,c.__)("This action cannot be undone.","code-snippets")})]})},gr=function(e){var t=e.snippet,n=e.isDialogOpen,r=e.setIsDialogOpen,o=e.makeDeleteRequest;return(0,Ht.jsx)(sr,{open:n,title:(0,c.__)("Are you sure?","code-snippets"),confirmLabel:t.trashed?(0,c.__)("Delete","code-snippets"):(0,c.__)("Trash","code-snippets"),confirmButtonClassName:"is-destructive",onCancel:function(){return r(!1)},onConfirm:function(){r(!1),o()},children:t.trashed?(0,Ht.jsx)(vr,{}):(0,Ht.jsx)(br,{})})},yr={cond:"randomize",cloud:"cloud",bundles:"screenoptions",cloud_search:"search"},Or=function(e){var t=e.name,n=e.small,r=e.inverted,o=e.children;return(0,Ht.jsx)("span",{className:a()("badge","".concat(t,"-badge"),{"small-badge":n,"inverted-badge":r}),children:yr[t]?(0,Ht.jsx)("span",{className:"dashicons dashicons-".concat(yr[t]),"aria-hidden":"true"}):null!=o?o:t})},wr=function(e){var t=e.setIsDialogOpen,n=qn(),r=n.snippet,o=n.isReadOnly,i=0!==r.conditionId;return(0,Ht.jsx)("div",{className:a()("conditions-editor-open block-form-field",i?"has-condition":"no-condition"),children:un(r)?null:(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("div",{className:"conditions-editor-header",children:[(0,Ht.jsx)("strong",{children:(0,c.__)("Conditions","code-snippets")}),!(0,Qt.QX)()&&(0,Ht.jsx)(Or,{name:"pro",small:!0,children:(0,c.__)("Pro","code-snippets")})]}),(0,Ht.jsxs)(fr,{large:!0,disabled:o,onClick:function(){return t(!0)},children:[(0,Ht.jsx)(Or,{name:"cond",small:!0}),i?(0,c.__)("Edit Conditions","code-snippets"):(0,c.__)("Add Conditions","code-snippets")]})]})})};function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t0?Fr(Xr,--qr):0,Wr--,10===Gr&&(Wr=1,zr--),Gr}function Zr(){return Gr=qr<$r?Fr(Xr,qr++):0,Wr++,10===Gr&&(Wr=1,zr++),Gr}function Qr(){return Fr(Xr,qr)}function eo(){return qr}function to(e,t){return Vr(Xr,e,t)}function no(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 ro(e){return zr=Wr=1,$r=Ur(Xr=e),qr=0,[]}function oo(e){return Xr="",e}function io(e){return Nr(to(qr-1,co(91===e?e+2:40===e?e+1:e)))}function so(e){for(;(Gr=Qr())&&Gr<33;)Zr();return no(e)>2||no(Gr)>3?"":" "}function ao(e,t){for(;--t&&Zr()&&!(Gr<48||Gr>102||Gr>57&&Gr<65||Gr>70&&Gr<97););return to(e,eo()+(t<6&&32==Qr()&&32==Zr()))}function co(e){for(;Zr();)switch(Gr){case e:return qr;case 34:case 39:34!==e&&39!==e&&co(Gr);break;case 40:41===e&&co(e);break;case 92:Zr()}return qr}function lo(e,t){for(;Zr()&&e+Gr!==57&&(e+Gr!==84||47!==Qr()););return"/*"+to(t,qr-1)+"*"+Ir(47===e?e:Zr())}function uo(e){for(;!no(Qr());)Zr();return to(e,qr)}var po="-ms-",fo="-moz-",ho="-webkit-",mo="comm",bo="rule",vo="decl",go="@keyframes";function yo(e,t){for(var n="",r=Br(e),o=0;o0&&Ur(j)-p&&Hr(f>32?_o(j+";",r,n,p-1):_o(Lr(j," ","")+";",r,n,p-2),c);break;case 59:j+=";";default:if(Hr(x=jo(j,t,n,l,u,o,a,y,O=[],w=[],p),i),123===g)if(0===u)xo(j,t,x,x,O,i,p,a,w);else switch(99===d&&110===Fr(j,3)?100:d){case 100:case 108:case 109:case 115:xo(e,x,x,r&&Hr(jo(e,x,x,0,0,o,a,y,o,O=[],p),w),o,w,p,a,r?O:w);break;default:xo(j,x,x,x,[""],w,0,a,w)}}l=u=f=0,m=v=1,y=j="",p=s;break;case 58:p=1+Ur(j),f=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Yr())continue;switch(j+=Ir(g),g*m){case 38:v=u>0?1:(j+="\f",-1);break;case 44:a[l++]=(Ur(j)-1)*v,v=1;break;case 64:45===Qr()&&(j+=io(Zr())),d=Qr(),u=p=Ur(y=j+=uo(eo())),g++;break;case 45:45===h&&2==Ur(j)&&(m=0)}}return i}function jo(e,t,n,r,o,i,s,a,c,l,u){for(var p=o-1,d=0===o?i:[""],f=Br(d),h=0,m=0,b=0;h0?d[v]+" "+g:Lr(g,/&\f/g,d[v])))&&(c[b++]=y);return Jr(e,t,n,0===o?bo:a,c,l,u)}function So(e,t,n){return Jr(e,t,n,mo,Ir(Gr),Vr(e,2,-2),0)}function _o(e,t,n,r){return Jr(e,t,n,vo,Vr(e,0,r),Vr(e,r+1,-1),r)}var Co=function(e,t,n){for(var r=0,o=0;r=o,o=Qr(),38===r&&12===o&&(t[n]=1),!no(o);)Zr();return to(e,qr)},Eo=new WeakMap,Po=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Eo.get(n))&&!r){Eo.set(e,!0);for(var o=[],i=function(e,t){return oo(function(e,t){var n=-1,r=44;do{switch(no(r)){case 0:38===r&&12===Qr()&&(t[n]=1),e[n]+=Co(qr-1,t,n);break;case 2:e[n]+=io(r);break;case 4:if(44===r){e[++n]=58===Qr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ir(r)}}while(r=Zr());return e}(ro(e),t))}(t,o),s=n.props,a=0,c=0;a6)switch(Fr(e,t+1)){case 109:if(45!==Fr(e,t+4))break;case 102:return Lr(e,/(.+:)(.+)-([^]+)/,"$1"+ho+"$2-$3$1"+fo+(108==Fr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Mr(e,"stretch")?Ao(Lr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Fr(e,t+1))break;case 6444:switch(Fr(e,Ur(e)-3-(~Mr(e,"!important")&&10))){case 107:return Lr(e,":",":"+ho)+e;case 101:return Lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ho+(45===Fr(e,14)?"inline-":"")+"box$3$1"+ho+"$2$3$1"+po+"$2box$3")+e}break;case 5936:switch(Fr(e,t+11)){case 114:return ho+e+po+Lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ho+e+po+Lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ho+e+po+Lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ho+e+po+e+e}return e}var Do=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vo:e.return=Ao(e.value,e.length);break;case go:return yo([Kr(e,{value:Lr(e.value,"@","@"+ho)})],r);case bo:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return yo([Kr(e,{props:[Lr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yo([Kr(e,{props:[Lr(t,/:(plac\w+)/,":"+ho+"input-$1")]}),Kr(e,{props:[Lr(t,/:(plac\w+)/,":-moz-$1")]}),Kr(e,{props:[Lr(t,/:(plac\w+)/,po+"input-$1")]})],r)}return""})}}],Ro=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Do,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:zo}}var qo,Go,Xo=!!o.useInsertionEffect&&o.useInsertionEffect,Jo=Xo||function(e){return e()},Ko=(Xo||o.useLayoutEffect,o.createContext("undefined"!=typeof HTMLElement?Ro({key:"css"}):null)),Yo=(Ko.Provider,function(e){return(0,o.forwardRef)(function(t,n){var r=(0,o.useContext)(Ko);return e(t,r,n)})}),Zo=o.createContext({}),Qo={}.hasOwnProperty,ei="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ti=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Io(t,n,r),Jo(function(){return function(e,t,n){Io(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}),null},ni=Yo(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[ei],s=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var c=$o(s,void 0,o.useContext(Zo));a+=t.key+"-"+c.name;var l={};for(var u in e)Qo.call(e,u)&&"css"!==u&&u!==ei&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),o.createElement(o.Fragment,null,o.createElement(ti,{cache:t,serialized:c,isStringTag:"string"==typeof i}),o.createElement(i,l))}),ri=ni,oi=(n(4146),function(e,t){var n=arguments;if(null==t||!Qo.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=ri,i[1]=function(e,t){var n={};for(var r in t)Qo.call(t,r)&&(n[r]=t[r]);return n[ei]=e,n}(e,t);for(var s=2;s({x:e,y:e});function di(e){return mi(e)?(e.nodeName||"").toLowerCase():"#document"}function fi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hi(e){var t;return null==(t=(mi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mi(e){return e instanceof Node||e instanceof fi(e).Node}function bi(e){return e instanceof Element||e instanceof fi(e).Element}function vi(e){return e instanceof HTMLElement||e instanceof fi(e).HTMLElement}function gi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof fi(e).ShadowRoot)}function yi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Oi(e){return fi(e).getComputedStyle(e)}function wi(e){const t=function(e){if("html"===di(e))return e;const t=e.assignedSlot||e.parentNode||gi(e)&&e.host||hi(e);return gi(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(di(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:vi(t)&&yi(t)?t:wi(t)}function xi(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=wi(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=fi(o);return i?t.concat(s,s.visualViewport||[],yi(o)?o:[],s.frameElement&&n?xi(s.frameElement):[]):t.concat(o,xi(o,[],n))}function ji(e){return bi(e)?e:e.contextElement}function Si(e){const t=ji(e);if(!vi(t))return pi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Oi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vi(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=li(n)!==i||li(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?li(n.width):n.width)/r,a=(i?li(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const _i=pi(0);function Ci(e){const t=fi(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_i}function Ei(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ji(e);let s=pi(1);t&&(r?bi(r)&&(s=Si(r)):s=Si(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==fi(e))&&t}(i,n,r)?Ci(i):pi(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(i){const e=fi(i),t=r&&bi(r)?fi(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Si(n),t=n.getBoundingClientRect(),r=Oi(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,p*=e.y,c+=o,l+=i,n=fi(n).frameElement}}return d={width:u,height:p,x:c,y:l},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}var Pi=o.useLayoutEffect,ki=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ai=function(){};function Di(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ri(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function Mi(e){return Li(e)?window.pageYOffset:e.scrollTop}function Fi(e,t){Li(e)?window.scrollTo(0,t):e.scrollTop=t}function Vi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ai,o=Mi(e),i=t-o,s=0;!function t(){var a,c=i*((a=(a=s+=10)/n-1)*a*a+1)+o;Fi(e,c),sn.bottom?Fi(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!s)return i&&Vi(c,_,E),{placement:"bottom",maxHeight:t};if(!s&&S>=r||s&&x>=r)return i&&Vi(c,_,E),{placement:"bottom",maxHeight:s?x-y:S-y};if("auto"===o||s){var P=t,k=s?w:j;return k>=r&&(P=Math.min(k-y-a,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Fi(c,_),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(j>=h&&!s)return i&&Vi(c,C,E),{placement:"top",maxHeight:t};if(!s&&j>=r||s&&w>=r){var A=t;return(!s&&j>=r||s&&w>=r)&&(A=s?w-O:j-O),i&&Vi(c,C,E),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:s,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:O});m(o.maxHeight),y(o.placement),null==u||u(o.placement)}},[r,s,a,c,n,u,O]),t({ref:p,placerProps:jr(jr({},e),{},{placement:g||Qi(s),maxHeight:h})})},ns=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return jr({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},rs=ns,os=ns,is=["size"],ss=["innerProps","isRtl","size"],as={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},cs=function(e){var t=e.size,n=lr(e,is);return oi("svg",_r({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:as},n))},ls=function(e){return oi(cs,_r({size:20},e),oi("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"}))},us=function(e){return oi(cs,_r({size:20},e),oi("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"}))},ps=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return jr({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ds=ps,fs=ps,hs=function(){var e=ii.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_"}}}(Ki||(Yi=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Zi||(Zi=Yi.slice(0)),Ki=Object.freeze(Object.defineProperties(Yi,{raw:{value:Object.freeze(Zi)}})))),ms=function(e){var t=e.delay,n=e.offset;return oi("span",{css:ii({animation:"".concat(hs," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},bs=["data"],vs=["innerRef","isDisabled","isHidden","inputClassName"],gs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ys={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":jr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},gs)},Os=function(e){return jr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},gs)},ws=function(e){var t=e.children,n=e.innerProps;return oi("div",n,t)},xs={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return oi("div",_r({},Ni(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||oi(ls,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return oi("div",_r({ref:o},Ni(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return oi("div",_r({},Ni(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||oi(us,null))},DownChevron:us,CrossIcon:ls,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return oi("div",_r({},Ni(e,"group",{group:!0}),a),oi(i,_r({},s,{selectProps:u,theme:l,getStyles:r,getClassNames:o,cx:n}),c),oi("div",null,t))},GroupHeading:function(e){var t=Ti(e);t.data;var n=lr(t,bs);return oi("div",_r({},Ni(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return oi("div",_r({},Ni(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return oi("span",_r({},t,Ni(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ti(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,c=lr(r,vs);return oi("div",_r({},Ni(e,"input",{"input-container":!0}),{"data-value":n||""}),oi("input",_r({className:t({input:!0},a),ref:o,style:Os(s),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=lr(e,ss);return oi("div",_r({},Ni(jr(jr({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),oi(ms,{delay:0,offset:n}),oi(ms,{delay:160,offset:!0}),oi(ms,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return oi("div",_r({},Ni(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return oi("div",_r({},Ni(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,s=e.innerProps,a=e.menuPlacement,c=e.menuPosition,l=(0,o.useRef)(null),u=(0,o.useRef)(null),p=(0,o.useState)(Qi(a)),d=(0,i.A)(p,2),f=d[0],h=d[1],m=(0,o.useMemo)(function(){return{setPortalPlacement:h}},[]),b=(0,o.useState)(null),v=(0,i.A)(b,2),g=v[0],y=v[1],O=(0,o.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===c?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}},[r,c,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);Pi(function(){O()},[O]);var w=(0,o.useCallback)(function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=ji(e),u=o||i?[...l?xi(l):[],...xi(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const p=l&&a?function(e,t){let n,r=null;const o=hi(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:p,height:d}=e.getBoundingClientRect();if(a||t(),!p||!d)return;const f={rootMargin:-ui(u)+"px "+-ui(o.clientWidth-(l+p))+"px "+-ui(o.clientHeight-(u+d))+"px "+-ui(l)+"px",threshold:ci(0,ai(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(l,n):null;let d,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m=c?Ei(e):null;return c&&function t(){const r=Ei(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(d)}}(r,l.current,O,{elementResize:"ResizeObserver"in window}))},[r,O]);Pi(function(){w()},[w]);var x=(0,o.useCallback)(function(e){l.current=e,w()},[w]);if(!t&&"fixed"!==c||!g)return null;var j=oi("div",_r({ref:x},Ni(jr(jr({},e),{},{offset:g.offset,position:c,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),n);return oi(es.Provider,{value:m},t?(0,si.createPortal)(j,t):j)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=lr(e,Ji);return oi("div",_r({},Ni(jr(jr({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=lr(e,Xi);return oi("div",_r({},Ni(jr(jr({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return oi(c,{data:r,innerProps:jr(jr({},Ni(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},oi(l,{data:r,innerProps:jr({},Ni(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),oi(u,{data:r,innerProps:jr(jr({},Ni(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:ws,MultiValueLabel:ws,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return oi("div",_r({role:"button"},n),t||oi(ls,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return oi("div",_r({},Ni(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return oi("div",_r({},Ni(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return oi("div",_r({},Ni(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return oi("div",_r({},Ni(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return oi("div",_r({},Ni(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},js=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ss(e,t){return e===t||!(!js(e)||!js(t))}function _s(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(u(s,n),".");if("menu"===t&&l){var p=a?" disabled":"",d="".concat(c?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ks=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,p=c.ariaLiveMessages,d=c.getOptionLabel,f=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,b=c.isSearchable,v=c.menuIsOpen,g=c.options,y=c.screenReaderStatus,O=c.tabSelectsValue,w=c.isLoading,x=c["aria-label"],j=c["aria-live"],S=(0,o.useMemo)(function(){return jr(jr({},Ps),p||{})},[p]),_=(0,o.useMemo)(function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,l=i||r||(e=c,Array.isArray(e)?null:e),u=l?d(l):"",p=o||s||void 0,f=p?p.map(d):[],h=jr({isDisabled:l&&m(l,a),label:u,labels:f},t);n=S.onChange(h)}return n},[t,S,m,a,d]),C=(0,o.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=S.onFocus(s)}return e},[n,r,d,m,S,i,a,u]),E=(0,o.useMemo)(function(){var e="";if(v&&g.length&&!w&&S.onFilter){var t=y({count:i.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,v,S,g,y,w]),P="initial-input-focus"===(null==t?void 0:t.action),k=(0,o.useMemo)(function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:b,tabSelectsValue:O,isInitialFocus:P})}return e},[x,n,r,h,m,b,v,S,a,O,P]),A=oi(o.Fragment,null,oi("span",{id:"aria-selection"},_),oi("span",{id:"aria-focused"},C),oi("span",{id:"aria-results"},E),oi("span",{id:"aria-guidance"},k));return oi(o.Fragment,null,oi(Es,{id:l},P&&A),oi(Es,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!P&&A))},As=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Ds=new RegExp("["+As.map(function(e){return e.letters}).join("")+"]","g"),Rs={},Is=0;Is1?t-1:0),r=1;r0,m=p-d-l,b=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&c.current&&(s&&s(e),c.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=p,b=!0,a.current=!0):!h&&-t>l&&(i&&!c.current&&i(e),f.scrollTop=0,b=!0,c.current=!0),b&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,s]),d=(0,o.useCallback)(function(e){p(e,e.deltaY)},[p]),f=(0,o.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),h=(0,o.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)},[p]),m=(0,o.useCallback)(function(e){if(e){var t=!!$i&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}},[h,f,d]),b=(0,o.useCallback)(function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))},[h,f,d]);return(0,o.useEffect)(function(){if(t){var e=u.current;return m(e),function(){b(e)}}},[t,m,b]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),s=(0,o.useRef)(null),a=(0,o.useCallback)(function(e){if(Xs){var t=document.body,n=t&&t.style;if(r&&Hs.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&Js<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(zs).forEach(function(e){var t=zs[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&Gs()&&(t.addEventListener("touchmove",Ws,Ks),e&&(e.addEventListener("touchstart",qs,Ks),e.addEventListener("touchmove",$s,Ks))),Js+=1}},[r]),c=(0,o.useCallback)(function(e){if(Xs){var t=document.body,n=t&&t.style;Js=Math.max(Js-1,0),r&&Js<1&&Hs.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&Gs()&&(t.removeEventListener("touchmove",Ws,Ks),e&&(e.removeEventListener("touchstart",qs,Ks),e.removeEventListener("touchmove",$s,Ks)))}},[r]);return(0,o.useEffect)(function(){if(t){var e=s.current;return a(e),function(){c(e)}}},[t,a,c]),function(e){s.current=e}}({isEnabled:n});return oi(o.Fragment,null,n&&oi("div",{onClick:Ys,css:Zs}),t(function(e){i(e),s(e)}))}var ea={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ta=function(e){var t=e.name,n=e.onFocus;return oi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ea,value:"",onChange:function(){}})};function na(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ra(){return na(/^Mac/i)}var oa={clearIndicator:fs,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return jr({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ds,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return jr({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return jr({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return jr(jr({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ys),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return jr({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:os,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return jr((n={label:"menu"},(0,Yt.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,Yt.A)(n,"position","absolute"),(0,Yt.A)(n,"width","100%"),(0,Yt.A)(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return jr({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return jr({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return jr({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return jr({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:rs,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return jr({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return jr({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return jr({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return jr({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ia={borderRadius:4,colors:{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%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},sa={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Bi(),captureMenuScroll:!Bi(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=jr({ignoreCase:!0,ignoreAccents:!0,stringify:Vs,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,c=s?Fs(t):t,l=s?Fs(i(e)):i(e);return r&&(c=c.toLowerCase(),l=l.toLowerCase()),o&&(c=Ms(c),l=Ls(l)),"start"===a?l.substr(0,c.length)===c:l.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function aa(e,t,n,r){return{type:"option",data:t,isDisabled:ma(e,t,n),isSelected:ba(e,t,n),label:fa(e,t),value:ha(e,t),index:r}}function ca(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return aa(e,n,t,r)}).filter(function(t){return pa(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=aa(e,n,t,r);return pa(e,i)?i:void 0}).filter(qi)}function la(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,p(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function ua(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,p(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function pa(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!ga(e)||!i)&&va(e,{label:s,value:a,data:o},r)}var da=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},fa=function(e,t){return e.getOptionLabel(t)},ha=function(e,t){return e.getOptionValue(t)};function ma(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ba(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ha(e,t);return n.some(function(t){return ha(e,t)===r})}function va(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ga=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ya=1,Oa=function(e){(0,Pr.A)(n,e);var t=function(e){var t=Ar();return function(){var n,r=kr(e);if(t){var o=kr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,Kt.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if((0,Cr.A)(this,n),(r=t.call(this,e)).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:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=ra()||na(/^iPhone/i)||na(/^iPad/i)||ra()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),c=r.isOptionDisabled(e,s);if(a){var l=r.getOptionValue(e);r.setValue(s.filter(function(e){return r.getOptionValue(e)!==l}),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(p(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),s=Gi(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Gi(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Gi(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return da(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return ua(ca(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return ga(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,b=f.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!p||!h||d&&r.isOptionSelected(h,b))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++ya),r.state.selectValue=Ii(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=da(o,i[s])}return r}return(0,Er.A)(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&&Ui(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ui(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(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ia):jr(jr({},ia),this.props.theme):ia}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,c=a.isMulti,l=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ma(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ba(this.props,e,t)}},{key:"filterOption",value:function(e,t){return va(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{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 e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,s=e.tabIndex,a=e.form,c=e.menuIsOpen,l=e.required,u=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),b=jr(jr(jr({"aria-autocomplete":"list","aria-expanded":c,"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":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(u,_r({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:i},b)):o.createElement(Bs,_r({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ai,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:a,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,p=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,b=this.state,v=b.selectValue,g=b.focusedValue,y=b.isFocused;if(!this.hasValue()||!p)return h?null:o.createElement(c,_r({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map(function(t,a){var c=t===g,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,_r({},l,{components:{Container:r,Label:i,Remove:s},isFocused:c,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var O=v[0];return o.createElement(a,_r({},l,{data:O,isDisabled:d}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,_r({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;return e&&i?o.createElement(e,_r({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return o.createElement(n,_r({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,_r({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,s=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,b=f.isLoading,v=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,O=f.menuIsOpen,w=f.menuPlacement,x=f.menuPosition,j=f.menuPortalTarget,S=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,C=f.noOptionsMessage,E=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!O)return null;var k,A=function(t,n){var r=t.type,i=t.data,s=t.isDisabled,a=t.isSelected,c=t.label,l=t.value,f=d===i,h=s?void 0:function(){return e.onOptionHover(i)},m=s?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),v={id:b,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return o.createElement(u,_r({},p,{innerProps:v,data:i,isDisabled:s,isSelected:a,key:b,label:c,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,s=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),l="".concat(c,"-heading");return o.createElement(n,_r({},p,{key:c,data:i,options:s,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return A(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return A(t,"".concat(t.index))});else if(b){var D=v({inputValue:m});if(null===D)return null;k=o.createElement(c,p,D)}else{var R=C({inputValue:m});if(null===R)return null;k=o.createElement(l,p,R)}var I={minMenuHeight:g,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:_},T=o.createElement(ts,_r({},p,I),function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return o.createElement(i,_r({},p,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:a}),o.createElement(Qs,{captureEnabled:h,onTopArrive:E,onBottomArrive:P,lockEnabled:S},function(t){return o.createElement(s,_r({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:c,focusedOption:d}),k)}))});return j||"fixed"===x?o.createElement(a,_r({},p,{appendTo:j,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,s=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return o.createElement(ta,{name:s,onFocus:this.onValueInputFocus});if(s&&!r){if(i){if(n){var l=c.map(function(t){return e.getOptionValue(t)}).join(n);return o.createElement("input",{name:s,type:"hidden",value:l})}var u=c.length>0?c.map(function(t,n){return o.createElement("input",{key:"i-".concat(n),name:s,type:"hidden",value:e.getOptionValue(t)})}):o.createElement("input",{name:s,type:"hidden",value:""});return o.createElement("div",null,u)}var p=c[0]?this.getOptionValue(c[0]):"";return o.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,s=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return o.createElement(ks,_r({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:s,selectValue:a,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,s=this.props,a=s.className,c=s.id,l=s.isDisabled,u=s.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,_r({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),o.createElement(t,_r({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:u}),o.createElement(i,_r({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,_r({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,h=Ii(u),m={};if(n&&(u!==n.value||l!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var b=p?function(e,t){return la(ca(e,t))}(e,h):[],v=p?ua(ca(e,h),"".concat(c,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,b);m={selectValue:h,focusedOption:y,focusedOptionId:da(v,y),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var O=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,x=s&&a;return s&&!x&&(w={value:Gi(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),jr(jr(jr({},m),O),{},{prevProps:e,ariaSelection:w,prevWasFocused:x})}}]),n}(o.Component);Oa.defaultProps=sa;var wa=(0,o.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,s=void 0!==r&&r,a=e.defaultValue,c=void 0===a?null:a,l=e.inputValue,u=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,m=e.value,b=lr(e,Sr),v=(0,o.useState)(void 0!==l?l:n),g=(0,i.A)(v,2),y=g[0],O=g[1],w=(0,o.useState)(void 0!==u?u:s),x=(0,i.A)(w,2),j=x[0],S=x[1],_=(0,o.useState)(void 0!==m?m:c),C=(0,i.A)(_,2),E=C[0],P=C[1],k=(0,o.useCallback)(function(e,t){"function"==typeof p&&p(e,t),P(e)},[p]),A=(0,o.useCallback)(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),O(void 0!==n?n:e)},[d]),D=(0,o.useCallback)(function(){"function"==typeof h&&h(),S(!0)},[h]),R=(0,o.useCallback)(function(){"function"==typeof f&&f(),S(!1)},[f]),I=void 0!==l?l:y,T=void 0!==u?u:j,N=void 0!==m?m:E;return jr(jr({},b),{},{inputValue:I,menuIsOpen:T,onChange:k,onInputChange:A,onMenuClose:R,onMenuOpen:D,value:N})}(e);return o.createElement(Oa,_r({ref:t},n))}),xa=wa;function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t section)","code-snippets"),"body-content":(0,c.__)("In site content (start of )","code-snippets"),"footer-content":(0,c.__)("In site footer (end of )","code-snippets"),"site-css":(0,c.__)("Site front-end","code-snippets"),"admin-css":(0,c.__)("Administration area","code-snippets"),"site-head-js":(0,c.__)("In site header ( section)","code-snippets"),"site-footer-js":(0,c.__)("In site footer (end of )","code-snippets")},Ea=function(){var e=qn(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly,i=(0,o.useId)(),s=Zt[ln(t)].filter(function(e){return"condition"!==e}).map(function(e){return{key:e,value:e,label:Ca[e]}});return un(t)?null:(0,Ht.jsxs)("div",{className:"block-form-field",children:[(0,Ht.jsx)("label",{htmlFor:i,children:(0,c.__)("Location","code-snippets")}),(0,Ht.jsx)(xa,{inputId:i,className:"code-snippets-select code-snippets-select-location",options:s,isSearchable:!1,isDisabled:r,styles:{menu:function(e){return Sa(Sa({},e),{},{zIndex:9999})},input:function(e){return Sa(Sa({},e),{},{":focus":{boxShadow:"none"}})}},value:s.find(function(e){return e.value===t.scope}),formatOptionLabel:function(e){var t=e.label,n=e.value;return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("span",{className:"dashicons dashicons-".concat(_a[n]),"aria-hidden":"true"})," ".concat(t)]})},onChange:function(e){return(null==e?void 0:e.value)&&n(function(t){return Sa(Sa({},t),{},{scope:e.value})})}})]})},Pa=["className","type","children"],ka=["className","onDismiss","children"];function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Da(e){for(var t=1;te.clientWidth))};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}f(!1)},[a,t]),(0,Ht.jsxs)("details",{onToggle:function(e){return l(e.currentTarget.open)},children:[(0,Ht.jsx)("summary",{children:(0,c.__)("View stack trace","code-snippets")}),(0,Ht.jsx)("pre",{ref:n,children:t}),d?(0,Ht.jsx)("p",{className:"stack-trace-hint",children:(0,Ht.jsx)("em",{children:(0,c.__)("Scroll horizontally if the trace is cut off.","code-snippets")})}):null]})},Ua=function(e){var t=e.placement,n=qn(),r=n.currentNotice,o=n.setCurrentNotice,i=n.snippet,s=n.setSnippet,a="above-form"===t?Ma(r):!Ma(r),l="sidebar"===t&&!i.code_error_trace;return(0,Ht.jsxs)(Ht.Fragment,{children:[a&&r?(0,Ht.jsxs)(Ta,{className:"".concat(r[0]," code-snippets-notice"),type:"error"===r[0]?"error":void 0,onDismiss:function(){return o(void 0)},children:[(0,Ht.jsx)("p",{children:Fa(r[1])}),r[2]?(0,Ht.jsx)("p",{children:Fa(r[2])}):null,r[3]?(0,Ht.jsx)(Va,{trace:r[3]}):null]}):null,l&&!r&&i.code_error?(0,Ht.jsx)(Ta,{className:"notice-error",type:"error",onDismiss:function(){return s(function(e){return La(La({},e),{},{code_error:null,code_error_trace:null})})},children:(0,Ht.jsxs)("p",{children:[(0,Ht.jsx)("strong",{children:(0,c.sprintf)((0,c.__)("Snippet automatically deactivated due to an error on line %d:","code-snippets"),i.code_error[1])}),(0,Ht.jsx)("blockquote",{children:i.code_error[0]})]})}):null]})};function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ha(e){for(var t=1;t tags.","code-snippets"),format:(0,c.__)("Wrap output in paragraphs and apply formatting.","code-snippets"),shortcodes:(0,c.__)("Replace [shortcodes] embedded within the snippet.","code-snippets")},rc=function(){var e,t=qn(),n=t.snippet,r=t.isReadOnly,s=(0,o.useState)(function(){return{php:n.code.includes("locked.","code-snippets"):(0,c.__)("Snippet unlocked.","code-snippets")])}).catch(function(){return l(["error",(0,c.__)("Unable to lock snippet.","code-snippets")])}).finally(function(){return s(!1)})},tooltip:r.locked?(0,c.__)("Unlock this snippet to allow editing and deletion.","code-snippets"):(0,c.__)("Mark this snippet as read-only to prevent accidental changes or deletion.","code-snippets"),children:r.locked?(0,Ht.jsx)("span",{className:"dashicons dashicons-unlock","aria-hidden":"true"}):(0,Ht.jsx)("span",{className:"dashicons dashicons-lock","aria-hidden":"true"})})})};function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kc(e){for(var t=1;t2)),ll=/Android/.test(Qc),ul=(cl||ll||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Qc),cl||/Mac/.test(el)),pl=(/\bCrOS\b/.test(Qc),/win/i.test(el),sl&&Qc.match(/Version\/(\d*\.\d*)/));pl&&(pl=Number(pl[1])),pl&&pl>=15&&(sl=!1,ol=!0);let dl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(let e=0;e<10;e++)dl[e+48]=dl[e+96]=String(e);for(let e=65;e<=90;e++)dl[e]=String.fromCharCode(e);for(let e=1;e<=12;e++)dl[e+111]=dl[e+63235]="F"+e;let fl={};function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ml(e){for(var t=1;ta,o:()=>s});var r=n(1609),o=n(5795),i=n(790),s=function(e,t){var n=document.getElementById(e);n?(0,o.createRoot)(n).render((0,i.jsx)(t,{})):console.error("Could not find element #".concat(e,"."))},a=function(e){var t=(0,r.createContext)(void 0);return[t,function(){var n=(0,r.useContext)(t);if(void 0===n)throw Error("".concat(e," can only be used within a corresponding context provider."));return n}]}},6492(e,t,n){"use strict";n.d(t,{QX:()=>i,U0:()=>o,W9:()=>s,i_:()=>r});var r=function(){var e;return!0===(null===(e=window.pagenow)||void 0===e?void 0:e.endsWith("-network"))},o=function(){return null!==/mac/i.exec(window.navigator.userAgent)},i=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)},s=function(){var e;return!(i()||null!==(e=window.CODE_SNIPPETS)&&void 0!==e&&e.hideUpsell)}},6842(e,t,n){"use strict";n.d(t,{c$:()=>c,ev:()=>s});var r=n(2284),o=n(3453),i=n(3832),s=function(e){if("URLSearchParams"in window){for(var t=new URLSearchParams(window.location.search),n=0,r=Object.entries(e);n3?(o=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((o=e<2&&fr||r>h)&&(i[4]=e,i[5]=r,d.n=h,s=0))}if(o||e>1)return l;throw p=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,h),s=u,a=h;(n=s<2?t:a)||!p;){i||(s?s<3?(s>1&&(d.n=-1),f(s,a)):d.n=a:d.v=a);try{if(c=2,i){if(s||(o="next"),n=i[o]){if(!(n=n.call(i,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,s<2&&(s=0)}else 1===s&&(n=i.return)&&n.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((n=(p=d.n<0)?a:e.call(r,d))!==l)break}catch(e){i=t,s=1,a=e}finally{c=1}}return{value:n,done:p}}}(e,i,s),!0),c}var l={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var f=[][s]?n(n([][s]())):(r(n={},s,function(){return this}),n),h=d.prototype=u.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return p.prototype=d,r(h,"constructor",d),r(d,"constructor",p),p.displayName="GeneratorFunction",r(d,a,"GeneratorFunction"),r(h),r(h,a,"Generator"),r(h,s,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},5869(e,t,n){var r=n(887);e.exports=function(e,t,n,o,i){var s=r(e,t,n,o,i);return s.next().then(function(e){return e.done?e.value:s.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,n){var r=n(6993),o=n(1791);e.exports=function(e,t,n,i,s){return new o(r().w(e,t,n,i),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1791(e,t,n){var r=n(5172),o=n(5546);e.exports=function e(t,n){function i(e,o,s,a){try{var c=t[e](o),l=c.value;return l instanceof r?n.resolve(l.v).then(function(e){i("next",e,s,a)},function(e){i("throw",e,s,a)}):n.resolve(l).then(function(e){c.value=e,s(c)},function(e){return i("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){i(e,r,t,n)})}return s=s?s.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},5546(e){function t(n,r,o,i){var s=Object.defineProperty;try{s({},"",{})}catch(n){s=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?s?s(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,n){var r=n(5172),o=n(6993),i=n(5869),s=n(887),a=n(1791),c=n(4373),l=n(579);function u(){"use strict";var t=o(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,l(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,r,o){return t.w(h(e),n,r,o&&o.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:a,async:function(e,t,n,r,o){return(d(t)?s:i)(h(e),t,n,r,o)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},579(e,t,n){var r=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},3738(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;to})},4467(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5501(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){if("function"!=typeof t&&null!==t)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&&(0,r.A)(e,t)}},3662(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})}},e=>{e(e.s=3203)}]);