/home/vianto5/hidalgoresidences.mx/wp-content/plugins/code-snippets/dist
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/code-snippets/dist/import.js (97973B)
/*! For license information please see import.js.LICENSE.txt */
(()=>{var e={5172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},6993(e,t,n){var r=n(5546);function o(){var t,n,s="function"==typeof Symbol?Symbol:{},i=s.iterator||"@@iterator",a=s.toStringTag||"@@toStringTag";function c(e,o,s,i){var a=o&&o.prototype instanceof u?o:u,c=Object.create(a.prototype);return r(c,"_invoke",function(e,r,o){var s,i,a,c=0,u=o||[],p=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return s=e,i=0,a=t,d.n=n,l}};function f(e,r){for(i=e,a=r,n=0;!p&&c&&!o&&n
3?(o=h===r)&&(a=s[(i=s[4])?5:(i=3,3)],s[4]=s[5]=t):s[0]<=f&&((o=e<2&&fr||r>h)&&(s[4]=e,s[5]=r,d.n=h,i=0))}if(o||e>1)return l;throw p=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,h),i=u,a=h;(n=i<2?t:a)||!p;){s||(i?i<3?(i>1&&(d.n=-1),f(i,a)):d.n=a:d.v=a);try{if(c=2,s){if(i||(o="next"),n=s[o]){if(!(n=n.call(s,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,i<2&&(i=0)}else 1===i&&(n=s.return)&&n.call(s),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);s=t}else if((n=(p=d.n<0)?a:e.call(r,d))!==l)break}catch(e){s=t,i=1,a=e}finally{c=1}}return{value:n,done:p}}}(e,s,i),!0),c}var l={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var f=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),h=d.prototype=u.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return p.prototype=d,r(h,"constructor",d),r(d,"constructor",p),p.displayName="GeneratorFunction",r(d,a,"GeneratorFunction"),r(h),r(h,a,"Generator"),r(h,i,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},5869(e,t,n){var r=n(887);e.exports=function(e,t,n,o,s){var i=r(e,t,n,o,s);return i.next().then(function(e){return e.done?e.value:i.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,n){var r=n(6993),o=n(1791);e.exports=function(e,t,n,s,i){return new o(r().w(e,t,n,s),i||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1791(e,t,n){var r=n(5172),o=n(5546);e.exports=function e(t,n){function s(e,o,i,a){try{var c=t[e](o),l=c.value;return l instanceof r?n.resolve(l.v).then(function(e){s("next",e,i,a)},function(e){s("throw",e,i,a)}):n.resolve(l).then(function(e){c.value=e,i(c)},function(e){return s("throw",e,i,a)})}catch(e){a(e)}}var i;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){s(e,r,t,n)})}return i=i?i.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},5546(e){function t(n,r,o,s){var i=Object.defineProperty;try{i({},"",{})}catch(n){i=0}e.exports=t=function(e,n,r,o){function s(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?i?i(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(s("next",0),s("throw",1),s("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,s)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,n){var r=n(5172),o=n(6993),s=n(5869),i=n(887),a=n(1791),c=n(4373),l=n(579);function u(){"use strict";var t=o(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,o,s){return t.resultName=o,n(r.d,l(e),s)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,r,o){return t.w(h(e),n,r,o&&o.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:a,async:function(e,t,n,r,o){return(d(t)?i:s)(h(e),t,n,r,o)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},579(e,t,n){var r=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},3738(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nwe,hasStandardBrowserEnv:()=>Oe,hasStandardBrowserWebWorkerEnv:()=>_e,navigator:()=>xe,origin:()=>Se});const s=window.React;var i=n(6942),a=n.n(i);const c=window.wp.i18n;function l(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(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.")}()}function u(e,t,n,r,o,s,i){try{var a=e[s](i),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function i(e){u(s,r,o,i,a,"next",e)}function a(e){u(s,r,o,i,a,"throw",e)}i(void 0)})}}var d=n(4756),f=n.n(d);function h(e,t){return function(){return e.apply(t,arguments)}}const{toString:m}=Object.prototype,{getPrototypeOf:b}=Object,{iterator:g,toStringTag:y}=Symbol,v=(j=Object.create(null),e=>{const t=m.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())});var j;const w=e=>(e=e.toLowerCase(),t=>v(t)===e),x=e=>t=>typeof t===e,{isArray:O}=Array,_=x("undefined");function S(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const E=w("ArrayBuffer"),P=x("string"),C=x("function"),N=x("number"),R=e=>null!==e&&"object"==typeof e,A=e=>{if("object"!==v(e))return!1;const t=b(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||y in e||g in e)},T=w("Date"),I=w("File"),k=w("Blob"),D=w("FileList"),L=w("URLSearchParams"),[F,U,M,B]=["ReadableStream","Request","Response","Headers"].map(w);function q(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),O(e))for(r=0,o=e.length;r0;)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:n.g,H=e=>!_(e)&&e!==z,V=(J="undefined"!=typeof Uint8Array&&b(Uint8Array),e=>J&&e instanceof J);var J;const $=w("HTMLFormElement"),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G=w("RegExp"),X=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)},Q=w("AsyncFunction"),Z=(Y="function"==typeof setImmediate,ee=C(z.postMessage),Y?setImmediate:ee?(te=`axios@${Math.random()}`,ne=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===te&&ne.length&&ne.shift()()},!1),e=>{ne.push(e),z.postMessage(te,"*")}):e=>setTimeout(e));var Y,ee,te,ne;const re="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||Z,oe={isArray:O,isArrayBuffer:E,isBuffer:S,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||C(e.append)&&("formdata"===(t=v(e))||"object"===t&&C(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&E(e.buffer),t},isString:P,isNumber:N,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:A,isEmptyObject:e=>{if(!R(e)||S(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:F,isRequest:U,isResponse:M,isHeaders:B,isUndefined:_,isDate:T,isFile:I,isBlob:k,isRegExp:G,isFunction:C,isStream:e=>R(e)&&C(e.pipe),isURLSearchParams:L,isTypedArray:V,isFileList:D,forEach:q,merge:function e(){const{caseless:t,skipUndefined:n}=H(this)&&this||{},r={},o=(o,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=t&&W(r,s)||s;A(r[i])&&A(o)?r[i]=e(r[i],o):A(o)?r[i]=e({},o):O(o)?r[i]=o.slice():n&&_(o)||(r[i]=o)};for(let e=0,t=arguments.length;e(q(t,(t,r)=>{n&&C(t)?Object.defineProperty(e,r,{value:h(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&b(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:v,kindOfTest:w,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(O(e))return e;let t=e.length;if(!N(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[g]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:X,freezeMethods:e=>{X(e,(t,n)=>{if(C(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];C(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 O(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:W,global:z,isContextDefined:H,isSpecCompliantForm:function(e){return!!(e&&C(e.append)&&"FormData"===e[y]&&e[g])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(S(e))return e;if(!("toJSON"in e)){t[r]=e;const o=O(e)?[]:{};return q(e,(e,t)=>{const s=n(e,r+1);!_(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Q,isThenable:e=>e&&(R(e)||C(e))&&C(e.then)&&C(e.catch),setImmediate:Z,asap:re,isIterable:e=>null!=e&&C(e[g])};class se extends Error{static from(e,t,n,r,o,s){const i=new se(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,s&&Object.assign(i,s),i}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}}se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",se.ERR_BAD_OPTION="ERR_BAD_OPTION",se.ECONNABORTED="ECONNABORTED",se.ETIMEDOUT="ETIMEDOUT",se.ERR_NETWORK="ERR_NETWORK",se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",se.ERR_DEPRECATED="ERR_DEPRECATED",se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",se.ERR_BAD_REQUEST="ERR_BAD_REQUEST",se.ERR_CANCELED="ERR_CANCELED",se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",se.ERR_INVALID_URL="ERR_INVALID_URL";const ie=se;function ae(e){return oe.isPlainObject(e)||oe.isArray(e)}function ce(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function le(e,t,n){return e?e.concat(t).map(function(e,t){return e=ce(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ue=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)}),pe=function(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!oe.isUndefined(t[e])})).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(oe.isDate(e))return e.toISOString();if(oe.isBoolean(e))return e.toString();if(!a&&oe.isBlob(e))throw new ie("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(e)||oe.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(oe.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(oe.isArray(e)&&function(e){return oe.isArray(e)&&!e.some(ae)}(e)||(oe.isFileList(e)||oe.endsWith(n,"[]"))&&(a=oe.toArray(e)))return n=ce(n),a.forEach(function(e,r){!oe.isUndefined(e)&&null!==e&&t.append(!0===i?le([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!ae(e)||(t.append(le(o,n,s),c(e)),!1)}const u=[],p=Object.assign(ue,{defaultVisitor:l,convertValue:c,isVisitable:ae});if(!oe.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!oe.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),oe.forEach(n,function(n,s){!0===(!(oe.isUndefined(n)||null===n)&&o.call(t,n,oe.isString(s)?s.trim():s,r,p))&&e(n,r?r.concat(s):[s])}),u.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 be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ge(e,t,n){if(!t)return e;const r=n&&n.encode||be,o=oe.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(i=s?s(t,o):oe.isURLSearchParams(t)?t.toString():new me(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ye=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){oe.forEach(this.handlers,function(t){null!==t&&e(t)})}},ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},je={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"]},we="undefined"!=typeof window&&"undefined"!=typeof document,xe="object"==typeof navigator&&navigator||void 0,Oe=we&&(!xe||["ReactNative","NativeScript","NS"].indexOf(xe.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Se=we&&window.location.href||"http://localhost",Ee={...e,...je},Pe=function(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&oe.isArray(r)?r.length:s,a?(oe.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&oe.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&oe.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r{t(function(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Ce={transitional:ve,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=oe.isObject(e);if(o&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return r?JSON.stringify(Pe(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return pe(e,new Ee.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ee.isNode&&oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=oe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pe(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(oe.isString(e))try{return(0,JSON.parse)(e),oe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw ie.from(e,ie.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{Ce.headers[e]={}});const Ne=Ce,Re=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ae=Symbol("internals");function Te(e){return e&&String(e).trim().toLowerCase()}function Ie(e){return!1===e||null==e?e:oe.isArray(e)?e.map(Ie):String(e)}function ke(e,t,n,r,o){return oe.isFunction(r)?r.call(this,t,n):(o&&(t=n),oe.isString(t)?oe.isString(r)?-1!==t.indexOf(r):oe.isRegExp(r)?r.test(t):void 0:void 0)}class De{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Te(t);if(!o)throw new Error("header name must be a non-empty string");const s=oe.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ie(e))}const s=(e,t)=>oe.forEach(e,(e,n)=>o(e,n,t));if(oe.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(oe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((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]&&Re[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(oe.isObject(e)&&oe.isIterable(e)){let n,r,o={};for(const t of e){if(!oe.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?oe.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Te(e)){const n=oe.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(oe.isFunction(t))return t.call(this,e,n);if(oe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Te(e)){const n=oe.findKey(this,e);return!(!n||void 0===this[n]||t&&!ke(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Te(e)){const o=oe.findKey(n,e);!o||t&&!ke(0,n[o],o,t)||(delete n[o],r=!0)}}return oe.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&&!ke(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return oe.forEach(this,(r,o)=>{const s=oe.findKey(n,o);if(s)return t[s]=Ie(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ie(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return oe.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&oe.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ae]=this[Ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Te(e);t[r]||(function(e,t){const n=oe.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 oe.isArray(e)?e.forEach(r):r(e),this}}De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),oe.freezeMethods(De);const Le=De;function Fe(e,t){const n=this||Ne,r=t||n,o=Le.from(r.headers);let s=r.data;return oe.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ue(e){return!(!e||!e.__CANCEL__)}const Me=class extends ie{constructor(e,t,n){super(null==e?"canceled":e,ie.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Be(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const qe=(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,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,p=0;for(;u!==s;)p+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},We=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ze=e=>(...t)=>oe.asap(()=>e(...t)),He=Ee.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ee.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ee.origin),Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent)):()=>!0,Ve=Ee.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];oe.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&a.push(`path=${r}`),oe.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),oe.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Je(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const $e=e=>e instanceof Le?{...e}:e;function Ke(e,t){t=t||{};const n={};function r(e,t,n,r){return oe.isPlainObject(e)&&oe.isPlainObject(t)?oe.merge.call({caseless:r},e,t):oe.isPlainObject(t)?oe.merge({},t):oe.isArray(t)?t.slice():t}function o(e,t,n,o){return oe.isUndefined(t)?oe.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!oe.isUndefined(t))return r(void 0,t)}function i(e,t){return oe.isUndefined(t)?oe.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o($e(e),$e(t),0,!0)};return oe.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=oe.hasOwnProp(c,r)?c[r]:o,i=s(e[r],t[r],r);oe.isUndefined(i)&&s!==a||(n[r]=i)}),n}const Ge=e=>{const t=Ke({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Le.from(i),t.url=ge(Je(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),oe.isFormData(n))if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(oe.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(Ee.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(t)),r||!1!==r&&He(t.url))){const e=o&&s&&Ve.read(s);e&&i.set(o,e)}return t},Xe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ge(e);let o=r.data;const s=Le.from(r.headers).normalize();let i,a,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){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=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new ie("Request aborted",ie.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ie(r,ie.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ve;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ie(t,o.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&oe.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),oe.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,u]=qe(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=qe(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Me(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===Ee.protocols.indexOf(g)?n(new ie("Unsupported protocol "+g+":",ie.ERR_BAD_REQUEST,e)):m.send(o||null)})},Qe=(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,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ie?t:new Me(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new ie(`timeout of ${t}ms exceeded`,ie.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=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=()=>oe.asap(i),a}},Ze=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*Ze(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!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 s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:et}=oe,tt=(({Request:e,Response:t})=>({Request:e,Response:t}))(oe.global),{ReadableStream:nt,TextEncoder:rt}=oe.global,ot=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},st=e=>{e=oe.merge.call({skipUndefined:!0},tt,e);const{fetch:t,Request:n,Response:r}=e,o=t?et(t):"function"==typeof fetch,s=et(n),i=et(r);if(!o)return!1;const a=o&&et(nt),c=o&&("function"==typeof rt?(l=new rt,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&ot(()=>{let e=!1;const t=new n(Ee.origin,{body:new nt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p=i&&a&&ot(()=>oe.isReadableStream(new r("").body)),d={stream:p&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ie(`Response type '${e}' is not supported`,ie.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:i,data:a,signal:l,cancelToken:f,timeout:h,onDownloadProgress:m,onUploadProgress:b,responseType:g,headers:y,withCredentials:v="same-origin",fetchOptions:j}=Ge(e),w=t||fetch;g=g?(g+"").toLowerCase():"text";let x=Qe([l,f&&f.toAbortSignal()],h),O=null;const _=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let S;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(S=await(async(e,t)=>{const r=oe.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(oe.isBlob(e))return e.size;if(oe.isSpecCompliantForm(e)){const t=new n(Ee.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return oe.isArrayBufferView(e)||oe.isArrayBuffer(e)?e.byteLength:(oe.isURLSearchParams(e)&&(e+=""),oe.isString(e)?(await c(e)).byteLength:void 0)})(t):r})(y,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(oe.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=We(S,qe(ze(b)));a=Ye(t.body,65536,e,n)}}oe.isString(v)||(v=v?"include":"omit");const t=s&&"credentials"in n.prototype,l={...j,signal:x,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?v:void 0};O=s&&new n(o,l);let f=await(s?w(O,j):w(o,l));const h=p&&("stream"===g||"response"===g);if(p&&(m||h&&_)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=oe.toFiniteNumber(f.headers.get("content-length")),[n,o]=m&&We(t,qe(ze(m),!0))||[];f=new r(Ye(f.body,65536,n,()=>{o&&o(),_&&_()}),e)}g=g||"text";let E=await d[oe.findKey(d,g)||"text"](f,e);return!h&&_&&_(),await new Promise((t,n)=>{Be(t,n,{data:E,headers:Le.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:O})})}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t});throw ie.from(t,t&&t.code,e,O,t&&t.response)}}},it=new Map,at=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=it;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:st(t)),l=a;return a},ct=(at(),{http:null,xhr:Xe,fetch:{get:at}});oe.forEach(ct,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const lt=e=>`- ${e}`,ut=e=>oe.isFunction(e)||null===e||!1===e,pt=function(e,t){e=oe.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(lt).join("\n"):" "+lt(e[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Me(null,e)}function ft(e){return dt(e),e.headers=Le.from(e.headers),e.data=Fe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pt(e.adapter||Ne.adapter,e)(e).then(function(t){return dt(e),t.data=Fe.call(e,e.transformResponse,t),t.headers=Le.from(t.headers),t},function(t){return Ue(t)||(dt(e),t&&t.response&&(t.response.data=Fe.call(e,e.transformResponse,t.response),t.response.headers=Le.from(t.response.headers))),Promise.reject(t)})}const ht="1.13.5",mt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const bt={};mt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ht+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new ie(r(o," has been removed"+(t?" in "+t:"")),ie.ERR_DEPRECATED);return t&&!bt[o]&&(bt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},mt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const gt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new ie("option "+s+" must be "+n,ie.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ie("Unknown option "+s,ie.ERR_BAD_OPTION)}},validators:mt},yt=gt.validators;class vt{constructor(e){this.defaults=e||{},this.interceptors={request:new ye,response:new ye}}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&>.assertOptions(n,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean),legacyInterceptorReqResOrdering:yt.transitional(yt.boolean)},!1),null!=r&&(oe.isFunction(r)?t.paramsSerializer={serialize:r}:gt.assertOptions(r,{encode:yt.function,serialize:yt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),gt.assertOptions(t,{baseUrl:yt.spelling("baseURL"),withXsrfToken:yt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&oe.merge(o.common,o[t.method]);o&&oe.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Le.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||ve;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[ft.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Me(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 wt(function(t){e=t}),cancel:e}}}const xt=wt,Ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ot).forEach(([e,t])=>{Ot[t]=e});const _t=Ot,St=function e(t){const n=new jt(t),r=h(jt.prototype.request,n);return oe.extend(r,jt.prototype,n,{allOwnKeys:!0}),oe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ke(t,n))},r}(Ne);St.Axios=jt,St.CanceledError=Me,St.CancelToken=xt,St.isCancel=Ue,St.VERSION=ht,St.toFormData=pe,St.AxiosError=ie,St.Cancel=St.CanceledError,St.all=function(e){return Promise.all(e)},St.spread=function(e){return function(t){return e.apply(null,t)}},St.isAxiosError=function(e){return oe.isObject(e)&&!0===e.isAxiosError},St.mergeConfig=Ke,St.AxiosHeaders=Le,St.formToJSON=e=>Pe(oe.isHTMLForm(e)?new FormData(e):e),St.getAdapter=pt,St.HttpStatusCode=_t,St.default=St;const Et=St,Pt=window.ReactDOM,Ct=window.ReactJSXRuntime;var Nt,Rt,At,Tt,It,kt,Dt,Lt,Ft=function(e){var t=(0,s.createContext)(void 0);return[t,function(){var n=(0,s.useContext)(t);if(void 0===n)throw Error("".concat(e," can only be used within a corresponding context provider."));return n}]},Ut=function(e){return"/".includes((t=null!=e?e:"").charAt(t.length-1))?t.slice(0,-1):t;var t},Mt={snippets:Ut(null===(Nt=window.CODE_SNIPPETS)||void 0===Nt?void 0:Nt.restAPI.snippets),recentlyActive:Ut(null===(Rt=window.CODE_SNIPPETS)||void 0===Rt?void 0:Rt.restAPI.recentlyActive),preferences:Ut(null===(At=window.CODE_SNIPPETS)||void 0===At?void 0:At.restAPI.preferences),importPlugins:Ut(null===(Tt=window.CODE_SNIPPETS)||void 0===Tt?void 0:Tt.restAPI.importPlugins),importFiles:Ut(null===(It=window.CODE_SNIPPETS)||void 0===It?void 0:It.restAPI.importFiles),cloud:{snippets:Ut(null===(kt=window.CODE_SNIPPETS)||void 0===kt?void 0:kt.restAPI.cloud.snippets)}},Bt={headers:{"X-WP-Nonce":null===(Dt=window.CODE_SNIPPETS)||void 0===Dt?void 0:Dt.restAPI.nonce,"Access-Control":null===(Lt=window.CODE_SNIPPETS)||void 0===Lt?void 0:Lt.restAPI.cloud.token}},qt=function(){var e=p(f().mark(function e(t,n,r,o){var s,i,a;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(s=window.CODE_SNIPPETS)||void 0===s||!s.debug){e.next=9;break}return(i=console).debug.apply(i,["".concat(t," ").concat(n)].concat(l(o?[o]:[]))),e.next=4,r;case 4:return a=e.sent,console.debug("Response",a),e.abrupt("return",a);case 9:return e.next=11,r;case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),Wt=o(Ft("useRestAPI"),2),zt=Wt[0],Ht=Wt[1],Vt=function(e){var t=e.children,n=(0,s.useMemo)(function(){return Et.create(Bt)},[]),r=(0,s.useMemo)(function(){return function(e){return{getResponse:function(t){return qt("GET",t,e.get(t))},get:function(t){return qt("GET",t,e.get(t)).then(function(e){return e.data})},post:function(t,n,r){return qt("POST",t,e.post(t,n,r),n).then(function(e){return e.data})},del:function(t){return qt("DELETE",t,e.delete(t)).then(function(e){return e.data})},put:function(t,n){return qt("PUT",t,e.put(t,n),n).then(function(e){return e.data})}}}(n)},[n]),o={api:r,axiosInstance:n};return(0,Ct.jsx)(zt.Provider,{value:o,children:t})},Jt="snippets-screen-meta-slot",$t=function(e){var t=e.hidden,n=void 0!==t&&t;return(0,s.useEffect)(function(){var e=document.getElementById(Jt),t=document.getElementById("screen-meta"),n=document.getElementById("screen-meta-links");if(e&&t&&n){var r=t.parentElement;return e.append(t,n),function(){null==r||r.prepend(t,n)}}},[]),(0,Ct.jsx)("div",{id:Jt,className:"snippets-screen-meta-slot",hidden:n})};function Kt(e){return Kt="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},Kt(e)}function Gt(e,t,n){return(t=function(e){var t=function(e){if("object"!=Kt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xt=function(){return window.pagenow.endsWith("-network")},Qt=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)},Zt=function(){var e;return!(Qt()||null!==(e=window.CODE_SNIPPETS)&&void 0!==e&&e.hideUpsell)};function Yt(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 en(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1,o=!n||t.scrollLeft<=1,s=!n||t.scrollLeft+t.clientWidth>=t.scrollWidth-1;r(function(e){return e.atStart===o&&e.atEnd===s?e:{atStart:o,atEnd:s}})}},[]);return(0,s.useEffect)(function(){var t,n=e.current;if(n){i(),n.addEventListener("scroll",i,{passive:!0});var r=new ResizeObserver(i);return r.observe(n),r.observe(null!==(t=n.firstElementChild)&&void 0!==t?t:n),function(){n.removeEventListener("scroll",i),r.disconnect()}}},[i]),en(en({},n),{},{scrollRef:e})}(),f=d.atStart,h=d.atEnd,m=d.scrollRef;return(0,Ct.jsx)("div",{className:a()("snippet-type-nav-wrapper",{"has-scroll-start":!f,"has-scroll-end":!h}),children:(0,Ct.jsx)("nav",{ref:m,className:a()("snippet-type-nav",r),"aria-label":n,children:(0,Ct.jsx)("ul",{children:t.map(function(e){var t=null==l?void 0:l(e);return(0,Ct.jsx)("li",{children:(0,Ct.jsxs)("button",{type:"button",className:a()("snippet-type-link","".concat(e.name,"-subnav-link"),{"active-type":e.name===i.name}),"aria-current":e.name===i.name?"page":void 0,onClick:function(){u(e),p&&rn(Gt({},p,e.name))},children:[(0,Ct.jsx)("span",{children:e.label}),t&&(0,Ct.jsx)("span",{className:"subnav-count",children:t}),e.pro&&!Qt()&&(0,Ct.jsx)("span",{className:"pro-chip",children:(0,c.__)("Pro","code-snippets")})]})},e.name)})})})})};function ln(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 un(e){for(var t=1;tCode Snippets Pro","code-snippets"),{span:(0,Ct.jsx)("span",{})})}),(0,Ct.jsx)("p",{children:(0,_n.createInterpolateElement)((0,c.__)("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,Ct.jsx)("strong",{})})}),(0,Ct.jsx)("a",{href:"https://codesnippets.pro/pricing/",className:"button button-primary button-large",rel:"noreferrer",target:"_blank",children:(0,c.__)("Explore Code Snippets Pro","code-snippets")}),(0,Ct.jsx)("p",{children:(0,c.__)("Here's what else you get with Pro:","code-snippets")}),(0,Ct.jsxs)("ul",{children:[(0,Ct.jsx)("li",{children:(0,c.__)("Create, explain and verify snippets with AI","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("Control when snippets run with Conditions","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("CSS stylesheet snippets","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("Minified JavaScript snippets","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("Editor blocks and Elementor widgets","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("Cloud sync and backup","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("Cloud share and deploy","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("Cloud bundles and teams","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("WP-CLI commands","code-snippets")}),(0,Ct.jsx)("li",{children:(0,c.__)("And much more!","code-snippets")})]})]})};function Cn(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 Nn(e){for(var t=1;tAll Snippets to activate your imported snippets.","code-snippets"),{a:(0,Ct.jsx)("a",{href:null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.manage})})}),o&&0e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw s}}}}(r);try{for(a.s();!(e=a.n()).done;){var l=e.value;t.append("files[]",l.file)}}catch(e){a.e(e)}finally{a.f()}i.post("".concat(Mt.importFiles,"/parse"),t,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){var t=e.snippets,n=e.message,r=e.warnings;o(t),r&&0All Snippets page to activate the imported snippets.","code-snippets"),{a:(0,Ct.jsx)("a",{href:null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.manage})})}),"upload"===a&&!(null!=p&&p.success)&&(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(Pr,{value:n,onChange:r}),(0,Ct.jsx)(_r,{fileInputRef:f,selectedFiles:m,setSelectedFiles:b,setImportResult:d,onSuccess:function(e){v(e),l("select")}})]}),"select"===a&&0(o=e.sent).imported.length)){e.next=9;break}throw new Error((0,c.__)("No snippets were imported.","code-snippets"));case 9:return e.abrupt("return",o.imported);case 10:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),Zr=function(e,t,n){var r=o((0,s.useState)([]),2),i=r[0],a=r[1],c=(0,s.useCallback)(function(){return a([])},[]);return[i,(0,s.useCallback)(function(r,o){t(void 0),n(e),a([]),r().then(function(e){a(e),null==o||o()}).catch(function(n){t({step:e,message:n instanceof Error?n.message:"Unknown error"})}).finally(function(){return n(void 0)})},[t,n,e]),c]},Yr=o(Ft("useMigrationData"),2),eo=Yr[0],to=Yr[1],no=function(e){var t=e.children,n=Ht().api,r=Br(),i=r.selectedImporter,a=r.setSelectedImporter,c=r.autoAddTags,l=r.tagValue,u=o((0,s.useState)(),2),p=u[0],d=u[1],f=o((0,s.useState)(),2),h=f[0],m=f[1],b=o(Zr(Xr.MigrateSnippets,d,m),2),g=b[0],y=b[1],v=o(Zr(Xr.LoadImporters,d,m),2),j=v[0],w=v[1],x=o(Zr(Xr.FetchSnippets,d,m),3),O=x[0],_=x[1],S=x[2],E=pr(O,function(e){return e.table_data.id});(0,s.useEffect)(function(){w(function(){return n.get(Mt.importPlugins).then(function(e){return Object.values(e)})})},[n,w]),(0,s.useEffect)(function(){i&&_(function(){return n.get("".concat(Mt.importPlugins,"/").concat(i))})},[n,i,_]);var P={error:p,snippetSelection:E,importSnippets:function(){var e={ids:Array.from(E.selectedItems),network:Xt(),auto_add_tags:c,tag_value:c?l:void 0};y(function(){return Qr(n,i,e)},function(){S(),E.clearSelection()})},importers:j,isWorking:h,changeSelectedImporter:function(e){a(e),E.clearSelection(),d(void 0),S()},importedIds:g};return(0,Ct.jsx)(eo.Provider,{value:P,children:t})},ro=function(e){var t=e.type,n=e.title,r=e.children;return(0,Ct.jsxs)(Wn,{variant:"controls",className:"import-section-status",role:"error"===t?"alert":"status","aria-live":"error"===t?"assertive":"polite",children:[(0,Ct.jsx)("div",{className:t,"aria-hidden":"true",children:(0,Ct.jsx)("span",{children:"error"===t?"✕":"✓"})}),(0,Ct.jsxs)("div",{children:[(0,Ct.jsx)("h4",{children:n}),(0,Ct.jsx)("p",{children:r})]})]})},oo=function(){var e,t=Br().selectedImporter,n=to(),r=n.error,o=n.isWorking,s=n.snippetSelection,i=n.importedIds;return(0,Ct.jsxs)(Ct.Fragment,{children:[(null==r?void 0:r.step)===Xr.FetchSnippets&&(0,Ct.jsx)(ro,{type:"error",title:(0,c.__)("Error loading snippets","code-snippets"),children:r.message}),(null==r?void 0:r.step)===Xr.MigrateSnippets&&(0,Ct.jsx)(ro,{type:"error",title:(0,c.__)("Error importing snippets","code-snippets"),children:r.message}),0Code Snippets library.","code-snippets"),{a:(0,Ct.jsx)("a",{href:null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.manage})})}),t&&o!==Xr.FetchSnippets&&(null==r?void 0:r.step)!==Xr.FetchSnippets&&0===s.availableItems.length&&0===i.length&&(0,Ct.jsx)(Wn,{className:"no-snippets-card",role:"status","aria-live":"polite",children:(0,Ct.jsxs)("div",{className:"card-inner",children:[(0,Ct.jsx)("div",{className:"card-icon","aria-hidden":"true",children:"📭"}),(0,Ct.jsx)("h4",{children:(0,c.__)("No snippets found","code-snippets")}),(0,Ct.jsx)("p",{children:(0,c.__)("No snippets were found for the selected plugin. Make sure the plugin is installed and has snippets configured.","code-snippets")})]})})]})},so=function(){var e=Br().selectedImporter,t=to(),n=t.isWorking,r=t.error,o=t.importers,s=t.snippetSelection,i=t.importSnippets,a=t.changeSelectedImporter;return n===Xr.LoadImporters?(0,Ct.jsx)("p",{role:"status","aria-live":"polite",children:(0,c.__)("Loading importers…","code-snippets")}):(null==r?void 0:r.step)===Xr.LoadImporters?(0,Ct.jsx)(Dr,{type:"error",children:(0,Ct.jsx)("p",{children:(0,c.sprintf)((0,c.__)("Error loading importers: %s","code-snippets"),r.message)})}):(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)("p",{children:(0,c.__)("If you are using another snippets plugin, you can import those existing snippets to your Code Snippets library.","code-snippets")}),(0,Ct.jsx)(Lr,{value:e,options:o,isLoading:n===Xr.FetchSnippets,onChange:function(e){return a(e)}}),(0,Ct.jsx)(oo,{}),0=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw s}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.name===n)return o}}catch(e){r.e(e)}finally{r.f()}return e[0]}(ao)}),2),t=e[0],n=e[1];return(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(Fn,{}),(0,Ct.jsx)(cn,{className:"import-type-nav",ariaLabel:(0,c.__)("Import sources","code-snippets"),tabs:ao,currentTab:t,queryParamName:"tab",setCurrentTab:n}),(0,Ct.jsx)($t,{}),(0,Ct.jsx)("div",{className:"snippets-page-header",children:(0,Ct.jsx)("h1",{children:(0,c.sprintf)((0,c.__)("Import: %s","code-snippets"),t.label)})}),(0,Ct.jsx)("hr",{className:"wp-header-end"}),(0,Ct.jsx)(Vt,{children:ao.map(function(e){return(0,Ct.jsx)("div",{className:a()("import-snippets-section",{"active-section":e.name===t.name}),children:e.content},e.name)})})]})},($r=document.getElementById(Vr))?(0,Pt.createRoot)($r).render((0,Ct.jsx)(Jr,{})):console.error("Could not find element #".concat(Vr,"."))})()})();