芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/code-snippets/dist/edit.js
/*! For license information please see edit.js.LICENSE.txt */ (self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[]).push([[8739],{2067:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>Oe,hasStandardBrowserEnv:()=>je,hasStandardBrowserWebWorkerEnv:()=>Se,navigator:()=>xe,origin:()=>Ee});var o=n(1609),i=n(5338),s=n(3453),a=n(6942),c=n.n(a);const u=window.wp.i18n,l=window.wp.url;var p=n(3145),d=n(7800);function f(e){return function(e){if(Array.isArray(e))return(0,p.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,d.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 h=n(467),m=n(4756),v=n.n(m);function b(e,t){return function(){return e.apply(t,arguments)}}const{toString:g}=Object.prototype,{getPrototypeOf:y}=Object,w=(O=Object.create(null),e=>{const t=g.call(e);return O[t]||(O[t]=t.slice(8,-1).toLowerCase())});var O;const x=e=>(e=e.toLowerCase(),t=>w(t)===e),j=e=>t=>typeof t===e,{isArray:S}=Array,E=j("undefined"),_=x("ArrayBuffer"),C=j("string"),P=j("function"),k=j("number"),A=e=>null!==e&&"object"==typeof e,R=e=>{if("object"!==w(e))return!1;const t=y(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},D=x("Date"),I=x("File"),T=x("Blob"),N=x("FileList"),L=x("URLSearchParams"),[M,F,V,U]=["ReadableStream","Request","Response","Headers"].map(x);function B(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;r
0;)if(r=n[o],t===r.toLowerCase())return r;return null}const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!E(e)&&e!==z,$=(q="undefined"!=typeof Uint8Array&&y(Uint8Array),e=>q&&e instanceof q);var q;const G=x("HTMLFormElement"),J=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),K=x("RegExp"),X=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};B(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Y=x("AsyncFunction"),Z=(Q="function"==typeof setImmediate,ee=P(z.postMessage),Q?setImmediate:ee?((e,t)=>(z.addEventListener("message",(({source:n,data:r})=>{n===z&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),z.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Q,ee;const te="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||Z,ne={isArray:S,isArrayBuffer:_,isBuffer:function(e){return null!==e&&!E(e)&&null!==e.constructor&&!E(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||P(e.append)&&("formdata"===(t=w(e))||"object"===t&&P(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.buffer),t},isString:C,isNumber:k,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:R,isReadableStream:M,isRequest:F,isResponse:V,isHeaders:U,isUndefined:E,isDate:D,isFile:I,isBlob:T,isRegExp:K,isFunction:P,isStream:e=>A(e)&&P(e.pipe),isURLSearchParams:L,isTypedArray:$,isFileList:N,forEach:B,merge:function e(){const{caseless:t}=W(this)&&this||{},n={},r=(r,o)=>{const i=t&&H(n,o)||o;R(n[i])&&R(r)?n[i]=e(n[i],r):R(r)?n[i]=e({},r):S(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e
(B(t,((t,r)=>{n&&P(t)?e[r]=b(t,n):e[r]=t}),{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),e.prototype.constructor=e,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&&y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:w,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(!k(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).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:G,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:X,freezeMethods:e=>{X(e,((t,n)=>{if(P(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];P(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:H,global:z,isContextDefined:W,isSpecCompliantForm:function(e){return!!(e&&P(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=S(e)?[]:{};return B(e,((e,t)=>{const i=n(e,r+1);!E(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Y,isThenable:e=>e&&(A(e)||P(e))&&P(e.then)&&P(e.catch),setImmediate:Z,asap:te};function re(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ne.inherits(re,Error,{toJSON:function(){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:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const oe=re.prototype,ie={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ie[e]={value:e}})),Object.defineProperties(re,ie),Object.defineProperty(oe,"isAxiosError",{value:!0}),re.from=(e,t,n,r,o,i)=>{const s=Object.create(oe);return ne.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),re.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const se=re;function ae(e){return ne.isPlainObject(e)||ne.isArray(e)}function ce(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ue(e,t,n){return e?e.concat(t).map((function(e,t){return e=ce(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const le=ne.toFlatObject(ne,{},null,(function(e){return/^is[A-Z]/.test(e)})),pe=function(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ne.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ne.isDate(e))return e.toISOString();if(!a&&ne.isBlob(e))throw new se("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(e)||ne.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ne.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ne.isArray(e)&&function(e){return ne.isArray(e)&&!e.some(ae)}(e)||(ne.isFileList(e)||ne.endsWith(n,"[]"))&&(a=ne.toArray(e)))return n=ce(n),a.forEach((function(e,r){!ne.isUndefined(e)&&null!==e&&t.append(!0===s?ue([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!ae(e)||(t.append(ue(o,n,i),c(e)),!1)}const l=[],p=Object.assign(le,{defaultVisitor:u,convertValue:c,isVisitable:ae});if(!ne.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ne.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ne.forEach(n,(function(n,i){!0===(!(ne.isUndefined(n)||null===n)&&o.call(t,n,ne.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t};function de(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function fe(e,t){this._pairs=[],e&&pe(e,this,t)}const he=fe.prototype;he.append=function(e,t){this._pairs.push([e,t])},he.toString=function(e){const t=e?function(t){return e.call(this,t,de)}:de;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const me=fe;function ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function be(e,t,n){if(!t)return e;const r=n&&n.encode||ve;ne.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):ne.isURLSearchParams(t)?t.toString():new me(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ge=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){ne.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},we={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:me,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,xe="object"==typeof navigator&&navigator||void 0,je=Oe&&(!xe||["ReactNative","NativeScript","NS"].indexOf(xe.product)<0),Se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ee=Oe&&window.location.href||"http://localhost",_e={...r,...we},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&&ne.isArray(r)?r.length:i,a?(ne.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&ne.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&ne.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 ne.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Pe={transitional:ye,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ne.isObject(e);if(o&&ne.isHTMLForm(e)&&(e=new FormData(e)),ne.isFormData(e))return r?JSON.stringify(Ce(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)||ne.isReadableStream(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.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 pe(e,new _e.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return _e.isNode&&ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pe(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(ne.isString(e))try{return(0,JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ne.isResponse(e)||ne.isReadableStream(e))return e;if(e&&ne.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw se.from(e,se.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}}};ne.forEach(["delete","get","head","post","put","patch"],(e=>{Pe.headers[e]={}}));const ke=Pe,Ae=ne.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"]),Re=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function Ie(e){return!1===e||null==e?e:ne.isArray(e)?e.map(Ie):String(e)}function Te(e,t,n,r,o){return ne.isFunction(r)?r.call(this,t,n):(o&&(t=n),ne.isString(t)?ne.isString(r)?-1!==t.indexOf(r):ne.isRegExp(r)?r.test(t):void 0:void 0)}class Ne{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=ne.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ie(e))}const i=(e,t)=>ne.forEach(e,((e,n)=>o(e,n,t)));if(ne.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ne.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]&&Ae[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(ne.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=De(e)){const n=ne.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(ne.isFunction(t))return t.call(this,e,n);if(ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const n=ne.findKey(this,e);return!(!n||void 0===this[n]||t&&!Te(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=ne.findKey(n,e);!o||t&&!Te(0,n[o],o,t)||(delete n[o],r=!0)}}return ne.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&&!Te(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ne.forEach(this,((r,o)=>{const i=ne.findKey(n,o);if(i)return t[i]=Ie(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]=Ie(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ne.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")}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[Re]=this[Re]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=De(e);t[r]||(function(e,t){const n=ne.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 ne.isArray(e)?e.forEach(r):r(e),this}}Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ne.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ne.freezeMethods(Ne);const Le=Ne;function Me(e,t){const n=this||ke,r=t||n,o=Le.from(r.headers);let i=r.data;return ne.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Fe(e){return!(!e||!e.__CANCEL__)}function Ve(e,t,n){se.call(this,null==e?"canceled":e,se.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Ve,se,{__CANCEL__:!0});const Ue=Ve;function Be(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const He=(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(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o
{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,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)},ze=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},We=e=>(...t)=>ne.asap((()=>e(...t))),$e=_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,qe=_e.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&s.push("path="+r),ne.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ge(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Je=e=>e instanceof Le?{...e}:e;function Ke(e,t){t=t||{};const n={};function r(e,t,n,r){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge.call({caseless:r},e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function o(e,t,n,o){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!ne.isUndefined(t))return r(void 0,t)}function s(e,t){return ne.isUndefined(t)?ne.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(Je(e),Je(t),0,!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);ne.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Xe=e=>{const t=Ke({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Le.from(a),t.url=be(Ge(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ne.isFormData(r))if(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(_e.hasStandardBrowserEnv&&(o&&ne.isFunction(o)&&(o=o(t)),o||!1!==o&&$e(t.url))){const e=i&&s&&qe.read(s);e&&a.set(i,e)}return t},Ye="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Xe(e);let o=r.data;const i=Le.from(r.headers).normalize();let s,a,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=Le.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Be((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=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new se("Request aborted",se.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new se("Network Error",se.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ye;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new se(t,o.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ne.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ne.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,l]=He(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=He(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Ue(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 b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===_e.protocols.indexOf(b)?n(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Ze=(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 se?t:new Ue(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new se(`timeout ${t} of ms exceeded`,se.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=()=>ne.asap(s),a}},Qe=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*Qe(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})},tt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nt=tt&&"function"==typeof ReadableStream,rt=tt&&("function"==typeof TextEncoder?(ot=new TextEncoder,e=>ot.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ot;const it=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},st=nt&&it((()=>{let e=!1;const t=new Request(_e.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),at=nt&&it((()=>ne.isReadableStream(new Response("").body))),ct={stream:at&&(e=>e.body)};var ut;tt&&(ut=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ct[e]&&(ct[e]=ne.isFunction(ut[e])?t=>t[e]():(t,n)=>{throw new se(`Response type '${e}' is not supported`,se.ERR_NOT_SUPPORT,n)})})));const lt=tt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Xe(e);u=u?(u+"").toLowerCase():"text";let f,h=Ze([o,i&&i.toAbortSignal()],s);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&st&&"get"!==n&&"head"!==n&&0!==(v=await(async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e)){const t=new Request(_e.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ne.isArrayBufferView(e)||ne.isArrayBuffer(e)?e.byteLength:(ne.isURLSearchParams(e)&&(e+=""),ne.isString(e)?(await rt(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ne.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=ze(v,He(We(c)));r=et(n.body,65536,e,t)}}ne.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f);const s=at&&("stream"===u||"response"===u);if(at&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=ne.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&ze(t,He(We(a),!0))||[];i=new Response(et(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let b=await ct[ne.findKey(ct,u)||"text"](i,e);return!s&&m&&m(),await new Promise(((t,n)=>{Be(t,n,{data:b,headers:Le.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new se("Network Error",se.ERR_NETWORK,e,f),{cause:t.cause||t});throw se.from(t,t&&t.code,e,f)}}),pt={http:null,xhr:Ye,fetch:lt};ne.forEach(pt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const dt=e=>`- ${e}`,ft=e=>ne.isFunction(e)||null===e||!1===e,ht=e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i
`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(dt).join("\n"):" "+dt(e[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function mt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function vt(e){return mt(e),e.headers=Le.from(e.headers),e.data=Me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ht(e.adapter||ke.adapter)(e).then((function(t){return mt(e),t.data=Me.call(e,e.transformResponse,t),t.headers=Le.from(t.headers),t}),(function(t){return Fe(t)||(mt(e),t&&t.response&&(t.response.data=Me.call(e,e.transformResponse,t.response),t.response.headers=Le.from(t.response.headers))),Promise.reject(t)}))}const bt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{bt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const gt={};bt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new se(r(o," has been removed"+(t?" in "+t:"")),se.ERR_DEPRECATED);return t&&!gt[o]&&(gt[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)}},bt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const yt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new se("options must be an object",se.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 se("option "+i+" must be "+n,se.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}},validators:bt},wt=yt.validators;class Ot{constructor(e){this.defaults=e,this.interceptors={request:new ge,response:new ge}}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=Ke(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&yt.assertOptions(n,{silentJSONParsing:wt.transitional(wt.boolean),forcedJSONParsing:wt.transitional(wt.boolean),clarifyTimeoutError:wt.transitional(wt.boolean)},!1),null!=r&&(ne.isFunction(r)?t.paramsSerializer={serialize:r}:yt.assertOptions(r,{encode:wt.function,serialize:wt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),yt.assertOptions(t,{baseUrl:wt.spelling("baseURL"),withXsrfToken:wt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ne.merge(o.common,o[t.method]);o&&ne.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Le.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!a){const e=[vt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=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 Ue(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 jt((function(t){e=t})),cancel:e}}}const St=jt,Et={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};Object.entries(Et).forEach((([e,t])=>{Et[t]=e}));const _t=Et,Ct=function e(t){const n=new xt(t),r=b(xt.prototype.request,n);return ne.extend(r,xt.prototype,n,{allOwnKeys:!0}),ne.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ke(t,n))},r}(ke);Ct.Axios=xt,Ct.CanceledError=Ue,Ct.CancelToken=St,Ct.isCancel=Fe,Ct.VERSION="1.8.4",Ct.toFormData=pe,Ct.AxiosError=se,Ct.Cancel=Ct.CanceledError,Ct.all=function(e){return Promise.all(e)},Ct.spread=function(e){return function(t){return e.apply(null,t)}},Ct.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError},Ct.mergeConfig=Ke,Ct.AxiosHeaders=Le,Ct.formToJSON=e=>Ce(ne.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=ht,Ct.HttpStatusCode=_t,Ct.default=Ct;const Pt=Ct;var kt,At,Rt,Dt,It,Tt,Nt=function(e){var t=(0,o.createContext)(void 0);return[t,function(){var n=(0,o.useContext)(t);if(void 0===n)throw Error("use".concat(e," can only be used within a ").concat(e," context provider."));return n}]},Lt=function(e,t){return t===e.charAt(e.length-1)?e.slice(0,-1):e},Mt=(Lt(null!==(kt=null===(At=window.CODE_SNIPPETS)||void 0===At?void 0:At.restAPI.base)&&void 0!==kt?kt:"","/"),Lt(null!==(Rt=null===(Dt=window.CODE_SNIPPETS)||void 0===Dt?void 0:Dt.restAPI.snippets)&&void 0!==Rt?Rt:"","/")),Ft={headers:{"X-WP-Nonce":null===(It=window.CODE_SNIPPETS)||void 0===It?void 0:It.restAPI.nonce,"Access-Control":null===(Tt=window.CODE_SNIPPETS)||void 0===Tt?void 0:Tt.restAPI.localToken}},Vt=n(2284),Ut=n(9922);function Bt(e,t,n){return(t=(0,Ut.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht={php:["global","admin","front-end","single-use"],html:["content","head-content","footer-content"],css:["admin-css","site-css"],js:["site-head-js","site-footer-js"],cond:["condition"]},zt=function(){return window.pagenow.endsWith("-network")},Wt=function(){return null!==/mac/i.exec(window.navigator.userAgent)},$t=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)};function qt(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 Gt(e){for(var t=1;t
created.","code-snippets"),updated:(0,u.__)("Snippet
updated
.","code-snippets"),createdActivated:(0,u.__)("Snippet
created
and
activated
.","code-snippets"),updatedActivated:(0,u.__)("Snippet
updated
and
activated
.","code-snippets"),updatedDeactivated:(0,u.__)("Snippet
updated
and
deactivated
"),updatedExecuted:(0,u.__)("Snippet
updated
and
executed
.","code-snippets"),failedCreate:(0,u.__)("Could not create snippet.","code-snippets"),failedUpdate:(0,u.__)("Could not update snippet.","code-snippets")},Un=(0,u.__)("Condition
created
.","code-snippets"),Bn=(0,u.__)("Condition
updated
.","code-snippets"),Hn={addNew:(0,u.__)("Add New Condition","code-snippets"),edit:(0,u.__)("Edit Condition","code-snippets"),created:Un,updated:Bn,createdActivated:Un,updatedActivated:Bn,updatedDeactivated:Bn,updatedExecuted:Bn,failedCreate:(0,u.__)("Could not create condition.","code-snippets"),failedUpdate:(0,u.__)("Could not update condition.","code-snippets")},zn=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}({}),Wn=function(e,t,n){var r="condition"===e.scope?Hn:Vn,o=0===e.id;switch(n){case zn.SAVE:return o?r.created:r.updated;case zn.SAVE_AND_EXECUTE:return r.updatedExecuted;case zn.SAVE_AND_ACTIVATE:return"single-use"===t.scope?r.updatedExecuted:o?r.createdActivated:r.updatedActivated;case zn.SAVE_AND_DEACTIVATE:return r.updatedDeactivated}},$n=Bt(Bt(Bt(Bt({},zn.SAVE,{}),zn.SAVE_AND_ACTIVATE,{active:!0}),zn.SAVE_AND_DEACTIVATE,{active:!1}),zn.SAVE_AND_EXECUTE,{active:!0}),qn=function(){var e=un().snippetsAPI,t=Nn(),n=t.setIsWorking,r=t.setCurrentNotice,i=t.snippet,s=t.setSnippet,a=(0,o.useCallback)((0,h.A)(v().mark((function t(){var o,a,c,p,d,f=arguments;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>0&&void 0!==f[0]?f[0]:zn.SAVE,r(void 0),t.next=4,(0,h.A)(v().mark((function t(){var r,s;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=Fn(Fn({},i),$n[o]),t.next=4,0===r.id?e.create(r):e.update(r);case 4:return s=t.sent,n(!1),t.abrupt("return",s.id?s:void 0);case 9:return t.prev=9,t.t0=t.catch(0),n(!1),t.abrupt("return",Sn(t.t0)?t.t0.message:void 0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))();case 4:if(a=t.sent,c=Qt(i)?Hn:Vn,void 0!==a&&"string"!=typeof a){t.next=12;break}return p=[i.id?c.failedUpdate:c.failedCreate,null!=a?a:(0,u.__)("The server did not send a valid response.","code-snippets")],r(["error",p.filter(Boolean).join(" ")]),t.abrupt("return",void 0);case 12:return s(Yt(a)),r(["updated",Wn(i,a,o)]),i.id&&a.id&&(window.document.title=window.document.title.replace(Vn.addNew,c.edit),window.history.replaceState({},"",(0,l.addQueryArgs)(null===(d=window.CODE_SNIPPETS)||void 0===d?void 0:d.urls.edit,{id:a.id}))),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),[e,n,r,i,s]);return{submitSnippet:a}},Gn=function(e){console.error(e)};const Jn=window.wp.components;var Kn=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,u.__)("OK","code-snippets"):s,c=e.cancelLabel,l=void 0===c?(0,u.__)("Cancel","code-snippets"):c,p=e.confirmButtonClassName;return t?(0,rn.jsxs)(Jn.Modal,{title:n,onRequestClose:o,closeButtonLabel:l,isDismissible:!0,onKeyDown:function(e){"Enter"===e.key&&(null==r||r())},children:[i,(0,rn.jsxs)(Jn.Flex,{direction:"row",justify:"flex-end",children:[(0,rn.jsx)(Jn.Button,{variant:"tertiary",onClick:o,children:l}),(0,rn.jsx)(Jn.Button,{variant:"primary",onClick:r,className:p,children:a})]})]}):null};const Xn=window.wp.element;var Yn=function(e){var t,n=e.isOpen,r=e.setIsOpen;return n?(0,rn.jsxs)(Jn.Modal,{title:"",className:"code-snippets-upsell-dialog",onRequestClose:function(){r(!1)},children:[(0,rn.jsx)("img",{src:"".concat(null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.plugin,"/assets/icon.svg"),alt:(0,u.__)("Code Snippets logo","code-snippets")}),(0,rn.jsx)("h1",{children:(0,Xn.createInterpolateElement)((0,u.__)("Unlock all cloud sync features and many more, with
Code Snippets Pro
","code-snippets"),{span:(0,rn.jsx)("span",{})})}),(0,rn.jsx)("p",{children:(0,Xn.createInterpolateElement)((0,u.__)("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,rn.jsx)("strong",{})})}),(0,rn.jsx)("a",{href:"https://codesnippets.pro/pricing/",className:"button button-primary button-large",rel:"noreferrer",target:"_blank",children:(0,u.__)("Explore Code Snippets Pro","code-snippets")}),(0,rn.jsx)("h2",{children:(0,u.__)("Here's what else you get with Pro:","code-snippets")}),(0,rn.jsxs)("ul",{children:[(0,rn.jsx)("li",{children:(0,u.__)("Create, explain and verify snippets with AI","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("Control when snippets run with Conditions","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("CSS stylesheet snippets","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("Minified JavaScript snippets","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("Editor blocks and Elementor widgets","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("Cloud sync and backup","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("Cloud share and deploy","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("Cloud bundles and teams","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("WP-CLI commands","code-snippets")}),(0,rn.jsx)("li",{children:(0,u.__)("And much more!","code-snippets")})]})]}):null},Zn={cond:"randomize",cloud:"cloud",bundles:"screenoptions",cloud_search:"search"},Qn=function(e){var t=e.name,n=e.small,r=e.inverted,o=e.children;return(0,rn.jsx)("span",{className:c()("badge","".concat(t,"-badge"),{"small-badge":n,"inverted-badge":r}),children:Zn[t]?(0,rn.jsx)("span",{className:"dashicons dashicons-".concat(Zn[t])}):null!=o?o:t})};function er(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(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r
0?xr(Dr,--Ar):0,Pr--,10===Rr&&(Pr=1,Cr--),Rr}function Lr(){return Rr=Ar
2||Ur(Rr)>3?"":" "}function $r(e,t){for(;--t&&Lr()&&!(Rr<48||Rr>102||Rr>57&&Rr<65||Rr>70&&Rr<97););return Vr(e,Fr()+(t<6&&32==Mr()&&32==Lr()))}function qr(e){for(;Lr();)switch(Rr){case e:return Ar;case 34:case 39:34!==e&&39!==e&&qr(Rr);break;case 40:41===e&&qr(e);break;case 92:Lr()}return Ar}function Gr(e,t){for(;Lr()&&e+Rr!==57&&(e+Rr!==84||47!==Mr()););return"/*"+Vr(t,Ar-1)+"*"+br(47===e?e:Lr())}function Jr(e){for(;!Ur(Mr());)Lr();return Vr(e,Ar)}var Kr="-ms-",Xr="-moz-",Yr="-webkit-",Zr="comm",Qr="rule",eo="decl",to="@keyframes";function no(e,t){for(var n="",r=Er(e),o=0;o
0&&Sr(j)-p&&_r(f>32?co(j+";",r,n,p-1):co(wr(j," ","")+";",r,n,p-2),c);break;case 59:j+=";";default:if(_r(x=so(j,t,n,u,l,o,a,y,w=[],O=[],p),i),123===g)if(0===l)io(j,t,x,x,w,i,p,a,O);else switch(99===d&&110===xr(j,3)?100:d){case 100:case 108:case 109:case 115:io(e,x,x,r&&_r(so(e,x,x,0,0,o,a,y,o,w=[],p),O),o,O,p,a,r?w:O);break;default:io(j,x,x,x,[""],O,0,a,O)}}u=l=f=0,m=b=1,y=j="",p=s;break;case 58:p=1+Sr(j),f=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Nr())continue;switch(j+=br(g),g*m){case 38:b=l>0?1:(j+="\f",-1);break;case 44:a[u++]=(Sr(j)-1)*b,b=1;break;case 64:45===Mr()&&(j+=zr(Lr())),d=Mr(),l=p=Sr(y=j+=Jr(Fr())),g++;break;case 45:45===h&&2==Sr(j)&&(m=0)}}return i}function so(e,t,n,r,o,i,s,a,c,u,l){for(var p=o-1,d=0===o?i:[""],f=Er(d),h=0,m=0,v=0;h
0?d[b]+" "+g:wr(g,/&\f/g,d[b])))&&(c[v++]=y);return Ir(e,t,n,0===o?Qr:a,c,u,l)}function ao(e,t,n){return Ir(e,t,n,Zr,br(Rr),jr(e,2,-2),0)}function co(e,t,n,r){return Ir(e,t,n,eo,jr(e,0,r),jr(e,r+1,-1),r)}var uo=function(e,t,n){for(var r=0,o=0;r=o,o=Mr(),38===r&&12===o&&(t[n]=1),!Ur(o);)Lr();return Vr(e,Ar)},lo=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)||lo.get(n))&&!r){lo.set(e,!0);for(var o=[],i=function(e,t){return Hr(function(e,t){var n=-1,r=44;do{switch(Ur(r)){case 0:38===r&&12===Mr()&&(t[n]=1),e[n]+=uo(Ar-1,t,n);break;case 2:e[n]+=zr(r);break;case 4:if(44===r){e[++n]=58===Mr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=br(r)}}while(r=Lr());return e}(Br(e),t))}(t,o),s=n.props,a=0,c=0;a
6)switch(xr(e,t+1)){case 109:if(45!==xr(e,t+4))break;case 102:return wr(e,/(.+:)(.+)-([^]+)/,"$1"+Yr+"$2-$3$1"+Xr+(108==xr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Or(e,"stretch")?ho(wr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==xr(e,t+1))break;case 6444:switch(xr(e,Sr(e)-3-(~Or(e,"!important")&&10))){case 107:return wr(e,":",":"+Yr)+e;case 101:return wr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yr+(45===xr(e,14)?"inline-":"")+"box$3$1"+Yr+"$2$3$1"+Kr+"$2box$3")+e}break;case 5936:switch(xr(e,t+11)){case 114:return Yr+e+Kr+wr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yr+e+Kr+wr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yr+e+Kr+wr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yr+e+Kr+e+e}return e}var mo=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case eo:e.return=ho(e.value,e.length);break;case to:return no([Tr(e,{value:wr(e.value,"@","@"+Yr)})],r);case Qr: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 no([Tr(e,{props:[wr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return no([Tr(e,{props:[wr(t,/:(plac\w+)/,":"+Yr+"input-$1")]}),Tr(e,{props:[wr(t,/:(plac\w+)/,":-moz-$1")]}),Tr(e,{props:[wr(t,/:(plac\w+)/,Kr+"input-$1")]})],r)}return""}))}}],vo=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||mo,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:u,styles:o,next:ko}}var Do,Io,To=!!o.useInsertionEffect&&o.useInsertionEffect,No=To||function(e){return e()},Lo=(To||o.useLayoutEffect,o.createContext("undefined"!=typeof HTMLElement?vo({key:"css"}):null)),Mo=(Lo.Provider,function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Lo);return e(t,r,n)}))}),Fo=o.createContext({}),Vo={}.hasOwnProperty,Uo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return bo(t,n,r),No((function(){return function(e,t,n){bo(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},Ho=Mo((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Uo],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=Ro(s,void 0,o.useContext(Fo));a+=t.key+"-"+c.name;var u={};for(var l in e)Vo.call(e,l)&&"css"!==l&&l!==Uo&&(u[l]=e[l]);return u.className=a,n&&(u.ref=n),o.createElement(o.Fragment,null,o.createElement(Bo,{cache:t,serialized:c,isStringTag:"string"==typeof i}),o.createElement(i,u))})),zo=Ho,Wo=(n(4146),function(e,t){var n=arguments;if(null==t||!Vo.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=zo,i[1]=function(e,t){var n={};for(var r in t)Vo.call(t,r)&&(n[r]=t[r]);return n[Uo]=e,n}(e,t);for(var s=2;s
({x:e,y:e});function Zo(e){return ti(e)?(e.nodeName||"").toLowerCase():"#document"}function Qo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ei(e){var t;return null==(t=(ti(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ti(e){return e instanceof Node||e instanceof Qo(e).Node}function ni(e){return e instanceof Element||e instanceof Qo(e).Element}function ri(e){return e instanceof HTMLElement||e instanceof Qo(e).HTMLElement}function oi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Qo(e).ShadowRoot)}function ii(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function si(e){return Qo(e).getComputedStyle(e)}function ai(e){const t=function(e){if("html"===Zo(e))return e;const t=e.assignedSlot||e.parentNode||oi(e)&&e.host||ei(e);return oi(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Zo(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ri(t)&&ii(t)?t:ai(t)}function ci(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ai(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Qo(o);return i?t.concat(s,s.visualViewport||[],ii(o)?o:[],s.frameElement&&n?ci(s.frameElement):[]):t.concat(o,ci(o,[],n))}function ui(e){return ni(e)?e:e.contextElement}function li(e){const t=ui(e);if(!ri(t))return Yo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ri(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ko(n)!==i||Ko(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?Ko(n.width):n.width)/r,a=(i?Ko(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const pi=Yo(0);function di(e){const t=Qo(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:pi}function fi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ui(e);let s=Yo(1);t&&(r?ni(r)&&(s=li(r)):s=li(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Qo(e))&&t}(i,n,r)?di(i):Yo(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,l=o.width/s.x,p=o.height/s.y;if(i){const e=Qo(i),t=r&&ni(r)?Qo(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=li(n),t=n.getBoundingClientRect(),r=si(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,p*=e.y,c+=o,u+=i,n=Qo(n).frameElement}}return d={width:l,height:p,x:c,y:u},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}var hi=o.useLayoutEffect,mi=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vi=function(){};function bi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function gi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o
-1}function ji(e){return xi(e)?window.pageYOffset:e.scrollTop}function Si(e,t){xi(e)?window.scrollTo(0,t):e.scrollTop=t}function Ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:vi,o=ji(e),i=t-o,s=0;!function t(){var a,c=i*((a=(a=s+=10)/n-1)*a*a+1)+o;Si(e,c),s
n.bottom?Si(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&&Ei(c,E,C),{placement:"bottom",maxHeight:t};if(!s&&S>=r||s&&x>=r)return i&&Ei(c,E,C),{placement:"bottom",maxHeight:s?x-y:S-y};if("auto"===o||s){var P=t,k=s?O:j;return k>=r&&(P=Math.min(k-y-a,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Si(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(j>=h&&!s)return i&&Ei(c,_,C),{placement:"top",maxHeight:t};if(!s&&j>=r||s&&O>=r){var A=t;return(!s&&j>=r||s&&O>=r)&&(A=s?O-w:j-w),i&&Ei(c,_,C),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:w});m(o.maxHeight),y(o.placement),null==l||l(o.placement)}}),[r,i,a,c,n,l,w]),t({ref:p,placerProps:ar(ar({},e),{},{placement:g||Vi(i),maxHeight:h})})},Hi=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ar({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},zi=Hi,Wi=Hi,$i=["size"],qi=["innerProps","isRtl","size"],Gi={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ji=function(e){var t=e.size,n=er(e,$i);return Wo("svg",ur({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Gi},n))},Ki=function(e){return Wo(Ji,ur({size:20},e),Wo("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"}))},Xi=function(e){return Wo(Ji,ur({size:20},e),Wo("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"}))},Yi=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ar({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Zi=Yi,Qi=Yi,es=function(){var e=$o.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_"}}}(Li||(Mi=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Fi||(Fi=Mi.slice(0)),Li=Object.freeze(Object.defineProperties(Mi,{raw:{value:Object.freeze(Fi)}})))),ts=function(e){var t=e.delay,n=e.offset;return Wo("span",{css:$o({animation:"".concat(es," 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"},"","")})},ns=["data"],rs=["innerRef","isDisabled","isHidden","inputClassName"],os={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},is={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ar({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},os)},ss=function(e){return ar({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},os)},as=function(e){var t=e.children,n=e.innerProps;return Wo("div",n,t)},cs={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Wo("div",ur({},Oi(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Wo(Ki,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return Wo("div",ur({ref:o},Oi(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 Wo("div",ur({},Oi(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Wo(Xi,null))},DownChevron:Xi,CrossIcon:Ki,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,u=e.theme,l=e.selectProps;return Wo("div",ur({},Oi(e,"group",{group:!0}),a),Wo(i,ur({},s,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Wo("div",null,t))},GroupHeading:function(e){var t=wi(e);t.data;var n=er(t,ns);return Wo("div",ur({},Oi(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Wo("div",ur({},Oi(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Wo("span",ur({},t,Oi(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=wi(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,c=er(r,rs);return Wo("div",ur({},Oi(e,"input",{"input-container":!0}),{"data-value":n||""}),Wo("input",ur({className:t({input:!0},a),ref:o,style:ss(s),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=er(e,qi);return Wo("div",ur({},Oi(ar(ar({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Wo(ts,{delay:0,offset:n}),Wo(ts,{delay:160,offset:!0}),Wo(ts,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Wo("div",ur({},Oi(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 Wo("div",ur({},Oi(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,i=e.innerProps,a=e.menuPlacement,c=e.menuPosition,u=(0,o.useRef)(null),l=(0,o.useRef)(null),p=(0,o.useState)(Vi(a)),d=(0,s.A)(p,2),f=d[0],h=d[1],m=(0,o.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=(0,o.useState)(null),b=(0,s.A)(v,2),g=b[0],y=b[1],w=(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]);hi((function(){w()}),[w]);var O=(0,o.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&u.current&&(l.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,u=ui(e),l=o||i?[...u?ci(u):[],...ci(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=u&&a?function(e,t){let n,r=null;const o=ei(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:u,top:l,width:p,height:d}=e.getBoundingClientRect();if(a||t(),!p||!d)return;const f={rootMargin:-Xo(l)+"px "+-Xo(o.clientWidth-(u+p))+"px "+-Xo(o.clientHeight-(l+d))+"px "+-Xo(u)+"px",threshold:Jo(0,Go(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}(u,n):null;let d,f=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?fi(e):null;return c&&function t(){const r=fi(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(),()=>{l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(d)}}(r,u.current,w,{elementResize:"ResizeObserver"in window}))}),[r,w]);hi((function(){O()}),[O]);var x=(0,o.useCallback)((function(e){u.current=e,O()}),[O]);if(!t&&"fixed"!==c||!g)return null;var j=Wo("div",ur({ref:x},Oi(ar(ar({},e),{},{offset:g.offset,position:c,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Wo(Ui.Provider,{value:m},t?(0,qo.createPortal)(j,t):j)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=er(e,Ni);return Wo("div",ur({},Oi(ar(ar({},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=er(e,Ti);return Wo("div",ur({},Oi(ar(ar({},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,u=n.Label,l=n.Remove;return Wo(c,{data:r,innerProps:ar(ar({},Oi(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},Wo(u,{data:r,innerProps:ar({},Oi(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Wo(l,{data:r,innerProps:ar(ar({},Oi(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:as,MultiValueLabel:as,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Wo("div",ur({role:"button"},n),t||Wo(Ki,{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 Wo("div",ur({},Oi(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 Wo("div",ur({},Oi(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Wo("div",ur({},Oi(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Wo("div",ur({},Oi(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 Wo("div",ur({},Oi(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},us=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ls(e,t){if(e.length!==t.length)return!1;for(var n=0;n
1?"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,u=e.isAppleDevice,l=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(l(s,n),".");if("menu"===t&&u){var p=a?" disabled":"",d="".concat(c?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},hs=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,c=e.selectProps,u=e.id,l=e.isAppleDevice,p=c.ariaLiveMessages,d=c.getOptionLabel,f=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,v=c.isSearchable,b=c.menuIsOpen,g=c.options,y=c.screenReaderStatus,w=c.tabSelectsValue,O=c.isLoading,x=c["aria-label"],j=c["aria-live"],S=(0,o.useMemo)((function(){return ar(ar({},fs),p||{})}),[p]),E=(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,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",p=o||s||void 0,f=p?p.map(d):[],h=ar({isDisabled:u&&m(u,a),label:l,labels:f},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),_=(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:l};e=S.onFocus(s)}return e}),[n,r,d,m,S,i,a,l]),C=(0,o.useMemo)((function(){var e="";if(b&&g.length&&!O&&S.onFilter){var t=y({count:i.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,b,S,g,y,O]),P="initial-input-focus"===(null==t?void 0:t.action),k=(0,o.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":b?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:v,tabSelectsValue:w,isInitialFocus:P})}return e}),[x,n,r,h,m,v,b,S,a,w,P]),A=Wo(o.Fragment,null,Wo("span",{id:"aria-selection"},E),Wo("span",{id:"aria-focused"},_),Wo("span",{id:"aria-results"},C),Wo("span",{id:"aria-guidance"},k));return Wo(o.Fragment,null,Wo(ds,{id:u},P&&A),Wo(ds,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!P&&A))},ms=[{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źẑżžẓẕƶȥɀⱬꝣ"}],vs=new RegExp("["+ms.map((function(e){return e.letters})).join("")+"]","g"),bs={},gs=0;gs
1?t-1:0),r=1;r
0,m=p-d-u,v=!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,v=!0,a.current=!0):!h&&-t>u&&(i&&!c.current&&i(e),f.scrollTop=0,v=!0,c.current=!0),v&&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){u.current=e.changedTouches[0].clientY}),[]),h=(0,o.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,o.useCallback)((function(e){if(e){var t=!!Ri&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),v=(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=l.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){l.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(Is){var t=document.body,n=t&&t.style;if(r&&Cs.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Ts<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(Ps).forEach((function(e){var t=Ps[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Ds()&&(t.addEventListener("touchmove",ks,Ns),e&&(e.addEventListener("touchstart",Rs,Ns),e.addEventListener("touchmove",As,Ns))),Ts+=1}}),[r]),c=(0,o.useCallback)((function(e){if(Is){var t=document.body,n=t&&t.style;Ts=Math.max(Ts-1,0),r&&Ts<1&&Cs.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Ds()&&(t.removeEventListener("touchmove",ks,Ns),e&&(e.removeEventListener("touchstart",Rs,Ns),e.removeEventListener("touchmove",As,Ns)))}}),[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 Wo(o.Fragment,null,n&&Wo("div",{onClick:Ls,css:Ms}),t((function(e){i(e),s(e)})))}var Vs={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Us=function(e){var t=e.name,n=e.onFocus;return Wo("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Vs,value:"",onChange:function(){}})};function Bs(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 Hs(){return Bs(/^Mac/i)}var zs={clearIndicator:Qi,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 ar({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:Zi,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 ar({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 ar({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 ar(ar({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},is),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 ar({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:Wi,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return ar((Bt(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Bt(n,"position","absolute"),Bt(n,"width","100%"),Bt(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 ar({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 ar({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 ar({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 ar({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:zi,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return ar({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 ar({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 ar({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 ar({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")})}},Ws={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}},$s={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ci(),captureMenuScroll:!Ci(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ar({ignoreCase:!0,ignoreAccents:!0,stringify:Ss,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,c=s?js(t):t,u=s?js(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=xs(c),u=Os(u)),"start"===a?u.substr(0,c.length)===c:u.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 qs(e,t,n,r){return{type:"option",data:t,isDisabled:ea(e,t,n),isSelected:ta(e,t,n),label:Zs(e,t),value:Qs(e,t),index:r}}function Gs(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return qs(e,n,t,r)})).filter((function(t){return Xs(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=qs(e,n,t,r);return Xs(e,i)?i:void 0})).filter(Di)}function Js(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,f(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ks(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,f(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 Xs(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!ra(e)||!i)&&na(e,{label:s,value:a,data:o},r)}var Ys=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Zs=function(e,t){return e.getOptionLabel(t)},Qs=function(e,t){return e.getOptionValue(t)};function ea(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ta(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Qs(e,t);return n.some((function(t){return Qs(e,t)===r}))}function na(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ra=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},oa=1,ia=function(e){(0,dr.A)(n,e);var t=function(e){var t=hr();return function(){var n,r=fr(e);if(t){var o=fr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,Vt.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,lr.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=Hs()||Bs(/^iPhone/i)||Bs(/^iPad/i)||Hs()&&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 u=r.getOptionValue(e);r.setValue(s.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(f(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=Ii(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(Ii(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=Ii(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Ys(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Ks(Gs(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;n
5||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 ra(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,u=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(c||"function"==typeof l&&(l(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||!u||!p||!h||d&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++oa),r.state.selectValue=yi(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=Ys(o,i[s])}return r}return(0,pr.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&&_i(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&&(_i(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&&o
0&&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(Ws):ar(ar({},Ws),this.props.theme):Ws}},{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,u=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,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 ea(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ta(this.props,e,t)}},{key:"filterOption",value:function(e,t){return na(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,u=e.required,l=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),v=ar(ar(ar({"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":u,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(l,ur({},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},v)):o.createElement(_s,ur({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vi,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:a,value:""},v))}},{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,u=this.commonProps,l=this.props,p=l.controlShouldRenderValue,d=l.isDisabled,f=l.isMulti,h=l.inputValue,m=l.placeholder,v=this.state,b=v.selectValue,g=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!p)return h?null:o.createElement(c,ur({},u,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map((function(t,a){var c=t===g,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,ur({},u,{components:{Container:r,Label:i,Remove:s},isFocused:c,isDisabled:d,key:l,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 w=b[0];return o.createElement(a,ur({},u,{data:w,isDisabled:d}),this.formatOptionLabel(w,"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,ur({},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,ur({},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,ur({},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,ur({},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,u=t.NoOptionsMessage,l=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,b=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,j=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,_=f.noOptionsMessage,C=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var k,A=function(t,n){var r=t.type,i=t.data,s=t.isDisabled,a=t.isSelected,c=t.label,u=t.value,f=d===i,h=s?void 0:function(){return e.onOptionHover(i)},m=s?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),b={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return o.createElement(l,ur({},p,{innerProps:b,data:i,isDisabled:s,isSelected:a,key:v,label:c,type:r,value:u,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),u="".concat(c,"-heading");return o.createElement(n,ur({},p,{key:c,data:i,options:s,Heading:r,headingProps:{id:u,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(v){var R=b({inputValue:m});if(null===R)return null;k=o.createElement(c,p,R)}else{var D=_({inputValue:m});if(null===D)return null;k=o.createElement(u,p,D)}var I={minMenuHeight:g,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},T=o.createElement(Bi,ur({},p,I),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return o.createElement(i,ur({},p,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:a}),o.createElement(Fs,{captureEnabled:h,onTopArrive:C,onBottomArrive:P,lockEnabled:S},(function(t){return o.createElement(s,ur({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:c,focusedOption:d}),k)})))}));return j||"fixed"===x?o.createElement(a,ur({},p,{appendTo:j,controlElement:this.controlRef,menuPlacement:O,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(Us,{name:s,onFocus:this.onValueInputFocus});if(s&&!r){if(i){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:s,type:"hidden",value:u})}var l=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,l)}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(hs,ur({},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,u=s.isDisabled,l=s.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,ur({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),o.createElement(t,ur({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:l}),o.createElement(i,ur({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,ur({},d,{isDisabled:u}),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,u=e.options,l=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,h=yi(l),m={};if(n&&(l!==n.value||u!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var v=p?function(e,t){return Js(Gs(e,t))}(e,h):[],b=p?Ks(Gs(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,v);m={selectValue:h,focusedOption:y,focusedOptionId:Ys(b,y),focusableOptionsWithIds:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=s&&a;return s&&!x&&(O={value:Ii(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),ar(ar(ar({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}]),n}(o.Component);ia.defaultProps=$s;var sa=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,c=void 0===a?null:a,u=e.inputValue,l=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,m=e.value,v=er(e,cr),b=(0,o.useState)(void 0!==u?u:n),g=(0,s.A)(b,2),y=g[0],w=g[1],O=(0,o.useState)(void 0!==l?l:i),x=(0,s.A)(O,2),j=x[0],S=x[1],E=(0,o.useState)(void 0!==m?m:c),_=(0,s.A)(E,2),C=_[0],P=_[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)),w(void 0!==n?n:e)}),[d]),R=(0,o.useCallback)((function(){"function"==typeof h&&h(),S(!0)}),[h]),D=(0,o.useCallback)((function(){"function"==typeof f&&f(),S(!1)}),[f]),I=void 0!==u?u:y,T=void 0!==l?l:j,N=void 0!==m?m:C;return ar(ar({},v),{},{inputValue:I,menuIsOpen:T,onChange:k,onInputChange:A,onMenuClose:D,onMenuOpen:R,value:N})}(e);return o.createElement(ia,ur({ref:t},n))})),aa=sa;function ca(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 ua(e){for(var t=1;t
section","code-snippets"),"footer-content":(0,u.__)("In site footer (end of )","code-snippets"),"site-css":(0,u.__)("Site front-end","code-snippets"),"admin-css":(0,u.__)("Administration area","code-snippets"),"site-footer-js":(0,u.__)("In site footer (end of )","code-snippets"),"site-head-js":(0,u.__)("In site section","code-snippets")},da=function(){var e=Nn(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly,o=Ht[Zt(t)].filter((function(e){return"condition"!==e})).map((function(e){return{key:e,value:e,label:pa[e]}}));return Qt(t)?null:(0,rn.jsxs)("div",{className:"block-form-field",children:[(0,rn.jsx)("h4",{children:(0,rn.jsx)("label",{htmlFor:"snippet-location",children:(0,u.__)("Location","code-snippets")})}),(0,rn.jsx)(aa,{inputId:"snippet-location",className:"code-snippets-select code-snippets-select-location",options:o,isDisabled:r,styles:{menu:function(e){return ua(ua({},e),{},{zIndex:9999})},input:function(e){return ua(ua({},e),{},{":focus":{boxShadow:"none"}})}},value:o.find((function(e){return e.value===t.scope})),formatOptionLabel:function(e){var t=e.label,n=e.value;return(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)("span",{className:"dashicons dashicons-".concat(la[n])})," ".concat(t)]})},onChange:function(e){return(null==e?void 0:e.value)&&n((function(t){return ua(ua({},t),{},{scope:e.value})}))}})]})},fa=function(e){var t=e.className,n=e.onDismiss,r=e.children;return(0,rn.jsxs)("div",{id:"message",className:c()("notice fade is-dismissible",t),children:[(0,rn.jsx)(rn.Fragment,{children:r}),(0,rn.jsx)("button",{type:"button",className:"notice-dismiss",onClick:function(e){e.preventDefault(),n()},children:(0,rn.jsx)("span",{className:"screen-reader-text",children:(0,u.__)("Dismiss notice.","code-snippets")})})]})};function ha(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 ma(e){for(var t=1;t
tags.","code-snippets"),format:(0,u.__)("Wrap output in paragraphs and apply formatting.","code-snippets"),shortcodes:(0,u.__)("Replace [shortcodes] embedded within the snippet.","code-snippets")},Aa=function(){var e,t=Nn(),n=t.snippet,r=t.isReadOnly,i=(0,o.useState)((function(){return{php:n.code.includes(""),format:!0,shortcodes:!1}})),a=(0,s.A)(i,2),c=a[0],l=a[1],p=(e=Ea(Ea({id:n.id,network:n.network},c),{},{name:n.name}),"[".concat(["code_snippet"].concat(f(Object.entries(e).filter((function(e){var t=(0,s.A)(e,2)[1];return Boolean(t)})).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1];return"boolean"==typeof r?n:"".concat(n,"=").concat(JSON.stringify(r))})))).filter(Boolean).join(" "),"]"));return(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)(Ca,{}),(0,rn.jsxs)("p",{className:"shortcode-tag-wrapper",children:[(0,rn.jsx)("code",{className:"shortcode-tag",children:p}),(0,rn.jsx)(ja,{primary:!0,text:p})]}),(0,rn.jsxs)("p",{children:[(0,rn.jsx)("h4",{children:(0,u.__)("Shortcode Options","code-snippets")}),(0,rn.jsx)(_a,{options:["php","format","shortcodes"],checked:c,disabled:r,setChecked:l,optionLabels:Pa,optionDescriptions:ka})]})]})},Ra=function(){var e=Nn(),t=e.snippet,n=e.isReadOnly,r=(0,o.useState)(!1),i=(0,s.A)(r,2),a=i[0],c=i[1];return"content"===t.scope&&t.id?(0,rn.jsxs)("div",{className:"inline-form-field",children:[(0,rn.jsx)("h4",{children:(0,u.__)("Shortcode","code-snippets")}),(0,rn.jsx)(or,{onClick:function(){return c(!0)},disabled:n,children:(0,u.__)("See options","code-snippets")}),a?(0,rn.jsxs)(Jn.Modal,{size:"medium",className:"code-snippets-modal",title:(0,u.__)("Embed Snippet with Shortcode","code-snippets"),onRequestClose:function(){return c(!1)},children:[(0,rn.jsx)("div",{className:"modal-content",children:(0,rn.jsx)(Aa,{})}),(0,rn.jsx)("div",{className:"modal-footer",children:(0,rn.jsx)(or,{link:!0,large:!0,onClick:function(){return c(!1)},children:(0,u.__)("Close Popup","code-snippets")})})]}):null]}):null};function Da(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 Ia(e){for(var t=1;t
cloud sync, snippet conditions, AI features and much more with Code Snippets Pro.","code-snippets"),{strong:(0,rn.jsx)("strong",{})})}),(0,rn.jsx)(Jn.ExternalLink,{className:"button button-primary button-large",href:"https://codesnippets.pro/pricing/",children:(0,u.__)("Get Started","code-snippets")}),(0,rn.jsx)(or,{small:!0,link:!0,onClick:function(){return a(!0)},children:(0,rn.jsx)("span",{className:"dashicons dashicons-no-alt"})})]})};function tc(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 nc(e){for(var t=1;t
{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var s=l(n);p&&(s=s.concat(p(n)));for(var a=c(t),m=c(n),v=0;v
{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},4405:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case d:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=c,t.Element=n,t.ForwardRef=u,t.Fragment=o,t.Lazy=f,t.Memo=d,t.Portal=r,t.Profiler=s,t.StrictMode=i,t.Suspense=l,t.SuspenseList=p,t.isContextConsumer=function(e){return v(e)===a},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===u},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===f},t.isMemo=function(e){return v(e)===d},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===l},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===l||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(4405)},1020:(e,t,n)=>{"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:k(e,n,s)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",v="suspendedYield",b="executing",g="completed",y={};function w(){}function O(){}function x(){}var j={};d(j,u,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==i&&s.call(E,u)&&(j=E);var _=x.prototype=w.prototype=Object.create(j);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,a,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var o=m;return function(i,s){if(o===b)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=b;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?g:v,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o
=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(c&&u){if(this.prev
=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev
=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,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;t
{"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}n.d(t,{A:()=>o})},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=2067)}]);