@shlinkio/shlink-frontend-kit 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +25 -9
- package/dist/index.js +192 -1484
- package/dist/index.umd.cjs +1 -4
- package/package.json +26 -21
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
(function(p,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("@fortawesome/free-solid-svg-icons"),require("@fortawesome/react-fontawesome"),require("reactstrap"),require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@fortawesome/free-solid-svg-icons","@fortawesome/react-fontawesome","reactstrap","react","react-router-dom"],s):(p=typeof globalThis<"u"?globalThis:p||self,s(p["shlink-frontend-kit"]={},p.jsxRuntime,p.freeSolidSvgIcons,p.reactFontawesome,p.reactstrap,p.react,p.reactRouterDom))})(this,function(p,s,oe,ye,w,E,er){"use strict";function rr(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(e=0;e<a;e++)r[e]&&(t=rr(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function $(){for(var r,e,t=0,n="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=rr(r))&&(n&&(n+=" "),n+=e);return n}const ot=r=>({error:"border-danger",default:""})[r],at=r=>({error:"text-danger",default:"text-muted"})[r],it=({className:r,children:e,loading:t=!1,type:n="default",fullWidth:a=!1})=>{const o=$({"col-md-12":a,"col-md-10 offset-md-1":!a});return s.jsx(w.Row,{className:$("g-0",r),children:s.jsx("div",{className:o,children:s.jsx(w.Card,{className:ot(n),body:!0,children:s.jsxs("h3",{className:$("text-center mb-0",at(n)),children:[t&&s.jsx(ye.FontAwesomeIcon,{icon:oe.faCircleNotch,spin:!0}),t&&s.jsx("span",{className:"ms-2",children:e??"Loading..."}),!t&&e]})})})})},tr=({title:r,children:e,bodyClassName:t,...n})=>s.jsxs(w.Card,{...n,children:[r&&s.jsx(w.CardHeader,{role:"heading","aria-level":4,children:r}),s.jsx(w.CardBody,{className:t,children:e})]}),lt=({children:r,type:e,className:t,small:n=!1})=>s.jsx(w.Row,{className:t,children:s.jsx("div",{className:$({"col-md-10 offset-md-1":!n,"col-12":n}),children:s.jsx(tr,{role:"document",className:$("text-center",{"bg-main":e==="success","bg-danger":e==="error","bg-warning":e==="warning","text-white":e!=="warning"}),bodyClassName:$({"p-2":n}),children:r})})});let de;const ft=new Uint8Array(16);function ct(){if(!de&&(de=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!de))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return de(ft)}const O=[];for(let r=0;r<256;++r)O.push((r+256).toString(16).slice(1));function ut(r,e=0){return O[r[e+0]]+O[r[e+1]]+O[r[e+2]]+O[r[e+3]]+"-"+O[r[e+4]]+O[r[e+5]]+"-"+O[r[e+6]]+O[r[e+7]]+"-"+O[r[e+8]]+O[r[e+9]]+"-"+O[r[e+10]]+O[r[e+11]]+O[r[e+12]]+O[r[e+13]]+O[r[e+14]]+O[r[e+15]]}const nr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function st(r,e,t){if(nr.randomUUID&&!e&&!r)return nr.randomUUID();r=r||{};const n=r.random||(r.rng||ct)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return ut(n)}var pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function dt(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var vt=Error,mt=EvalError,gt=RangeError,ht=ReferenceError,or=SyntaxError,ae=TypeError,bt=URIError,wt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==a||i.enumerable!==!0)return!1}return!0},ar=typeof Symbol<"u"&&Symbol,St=wt,At=function(){return typeof ar!="function"||typeof Symbol!="function"||typeof ar("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:St()},ir={foo:{}},Ot=Object,Et=function(){return{__proto__:ir}.foo===ir.foo&&!({__proto__:null}instanceof Ot)},Pt="Function.prototype.bind called on incompatible ",It=Object.prototype.toString,_t=Math.max,$t="[object Function]",lr=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},Dt=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n},Ft=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},Tt=function(e){var t=this;if(typeof t!="function"||It.apply(t)!==$t)throw new TypeError(Pt+t);for(var n=Dt(arguments,1),a,o=function(){if(this instanceof a){var u=t.apply(this,lr(n,arguments));return Object(u)===u?u:this}return t.apply(e,lr(n,arguments))},i=_t(0,t.length-n.length),l=[],f=0;f<i;f++)l[f]="$"+f;if(a=Function("binder","return function ("+Ft(l,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var c=function(){};c.prototype=t.prototype,a.prototype=new c,c.prototype=null}return a},Nt=Tt,_e=Function.prototype.bind||Nt,Ct=Function.prototype.call,xt=Object.prototype.hasOwnProperty,Mt=_e,Rt=Mt.call(Ct,xt),d,Lt=vt,kt=mt,Ut=gt,Bt=ht,z=or,K=ae,Gt=bt,fr=Function,$e=function(r){try{return fr('"use strict"; return ('+r+").constructor;")()}catch{}},W=Object.getOwnPropertyDescriptor;if(W)try{W({},"")}catch{W=null}var De=function(){throw new K},Wt=W?function(){try{return arguments.callee,De}catch{try{return W(arguments,"callee").get}catch{return De}}}():De,j=At(),Ht=Et(),A=Object.getPrototypeOf||(Ht?function(r){return r.__proto__}:null),J={},qt=typeof Uint8Array>"u"||!A?d:A(Uint8Array),H={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":j&&A?A([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Lt,"%eval%":eval,"%EvalError%":kt,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":fr,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&A?A(A([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!A?d:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":Ut,"%ReferenceError%":Bt,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j||!A?d:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&A?A(""[Symbol.iterator]()):d,"%Symbol%":j?Symbol:d,"%SyntaxError%":z,"%ThrowTypeError%":Wt,"%TypedArray%":qt,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":Gt,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet};if(A)try{null.error}catch(r){var Qt=A(A(r));H["%Error.prototype%"]=Qt}var Vt=function r(e){var t;if(e==="%AsyncFunction%")t=$e("async function () {}");else if(e==="%GeneratorFunction%")t=$e("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=$e("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&A&&(t=A(a.prototype))}return H[e]=t,t},cr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ie=_e,ve=Rt,zt=ie.call(Function.call,Array.prototype.concat),Kt=ie.call(Function.apply,Array.prototype.splice),ur=ie.call(Function.call,String.prototype.replace),me=ie.call(Function.call,String.prototype.slice),jt=ie.call(Function.call,RegExp.prototype.exec),Jt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yt=/\\(\\)?/g,Xt=function(e){var t=me(e,0,1),n=me(e,-1);if(t==="%"&&n!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var a=[];return ur(e,Jt,function(o,i,l,f){a[a.length]=l?ur(f,Yt,"$1"):i||o}),a},Zt=function(e,t){var n=e,a;if(ve(cr,n)&&(a=cr[n],n="%"+a[0]+"%"),ve(H,n)){var o=H[n];if(o===J&&(o=Vt(n)),typeof o>"u"&&!t)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new z("intrinsic "+e+" does not exist!")},Y=function(e,t){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new K('"allowMissing" argument must be a boolean');if(jt(/^%?[^%]*%?$/,e)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xt(e),a=n.length>0?n[0]:"",o=Zt("%"+a+"%",t),i=o.name,l=o.value,f=!1,c=o.alias;c&&(a=c[0],Kt(n,zt([0,1],c)));for(var u=1,m=!0;u<n.length;u+=1){var y=n[u],g=me(y,0,1),h=me(y,-1);if((g==='"'||g==="'"||g==="`"||h==='"'||h==="'"||h==="`")&&g!==h)throw new z("property names with quotes must have matching quotes");if((y==="constructor"||!m)&&(f=!0),a+="."+y,i="%"+a+"%",ve(H,i))l=H[i];else if(l!=null){if(!(y in l)){if(!t)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(W&&u+1>=n.length){var I=W(l,y);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?l=I.get:l=l[y]}else m=ve(l,y),l=l[y];m&&!f&&(H[i]=l)}}return l},sr={exports:{}},Fe,pr;function Te(){if(pr)return Fe;pr=1;var r=Y,e=r("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Fe=e,Fe}var en=Y,ge=en("%Object.getOwnPropertyDescriptor%",!0);if(ge)try{ge([],"length")}catch{ge=null}var yr=ge,dr=Te(),rn=or,X=ae,vr=yr,tn=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new X("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new X("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new X("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new X("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new X("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new X("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,f=!!vr&&vr(e,t);if(dr)dr(e,t,{configurable:i===null&&f?f.configurable:!i,enumerable:a===null&&f?f.enumerable:!a,value:n,writable:o===null&&f?f.writable:!o});else if(l||!a&&!o&&!i)e[t]=n;else throw new rn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ne=Te(),mr=function(){return!!Ne};mr.hasArrayLengthDefineBug=function(){if(!Ne)return null;try{return Ne([],"length",{value:1}).length!==1}catch{return!0}};var nn=mr,on=Y,gr=tn,an=nn(),hr=yr,br=ae,ln=on("%Math.floor%"),fn=function(e,t){if(typeof e!="function")throw new br("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||ln(t)!==t)throw new br("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in e&&hr){var i=hr(e,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(an?gr(e,"length",t,!0,!0):gr(e,"length",t)),e};(function(r){var e=_e,t=Y,n=fn,a=ae,o=t("%Function.prototype.apply%"),i=t("%Function.prototype.call%"),l=t("%Reflect.apply%",!0)||e.call(i,o),f=Te(),c=t("%Math.max%");r.exports=function(y){if(typeof y!="function")throw new a("a function is required");var g=l(e,i,arguments);return n(g,1+c(0,y.length-(arguments.length-1)),!0)};var u=function(){return l(e,o,arguments)};f?f(r.exports,"apply",{value:u}):r.exports.apply=u})(sr);var cn=sr.exports,wr=Y,Sr=cn,un=Sr(wr("String.prototype.indexOf")),sn=function(e,t){var n=wr(e,!!t);return typeof n=="function"&&un(e,".prototype.")>-1?Sr(n):n};const pn=dt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ce=typeof Map=="function"&&Map.prototype,xe=Object.getOwnPropertyDescriptor&&Ce?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,he=Ce&&xe&&typeof xe.get=="function"?xe.get:null,Ar=Ce&&Map.prototype.forEach,Me=typeof Set=="function"&&Set.prototype,Re=Object.getOwnPropertyDescriptor&&Me?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,be=Me&&Re&&typeof Re.get=="function"?Re.get:null,Or=Me&&Set.prototype.forEach,yn=typeof WeakMap=="function"&&WeakMap.prototype,le=yn?WeakMap.prototype.has:null,dn=typeof WeakSet=="function"&&WeakSet.prototype,fe=dn?WeakSet.prototype.has:null,vn=typeof WeakRef=="function"&&WeakRef.prototype,Er=vn?WeakRef.prototype.deref:null,mn=Boolean.prototype.valueOf,gn=Object.prototype.toString,hn=Function.prototype.toString,bn=String.prototype.match,Le=String.prototype.slice,C=String.prototype.replace,wn=String.prototype.toUpperCase,Pr=String.prototype.toLowerCase,Ir=RegExp.prototype.test,_r=Array.prototype.concat,F=Array.prototype.join,Sn=Array.prototype.slice,$r=Math.floor,ke=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ue=Object.getOwnPropertySymbols,Be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",P=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Z||"symbol")?Symbol.toStringTag:null,Dr=Object.prototype.propertyIsEnumerable,Fr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Tr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Ir.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-$r(-r):$r(r);if(n!==r){var a=String(n),o=Le.call(e,a.length+1);return C.call(a,t,"$&_")+"."+C.call(C.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(e,t,"$&_")}var Ge=pn,Nr=Ge.custom,Cr=Rr(Nr)?Nr:null,An=function r(e,t,n,a){var o=t||{};if(x(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(x(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=x(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(x(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(x(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return kr(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return l?Tr(e,f):f}if(typeof e=="bigint"){var c=String(e)+"n";return l?Tr(e,c):c}var u=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return We(e)?"[Array]":"[Object]";var m=Bn(o,n);if(typeof a>"u")a=[];else if(Lr(a,e)>=0)return"[Circular]";function y(D,B,G){if(B&&(a=Sn.call(a),a.push(B)),G){var pe={depth:o.depth};return x(o,"quoteStyle")&&(pe.quoteStyle=o.quoteStyle),r(D,pe,n+1,a)}return r(D,o,n+1,a)}if(typeof e=="function"&&!Mr(e)){var g=Tn(e),h=we(e,y);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(h.length>0?" { "+F.call(h,", ")+" }":"")}if(Rr(e)){var I=Z?C.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Be.call(e);return typeof e=="object"&&!Z?ce(I):I}if(Ln(e)){for(var _="<"+Pr.call(String(e.nodeName)),R=e.attributes||[],L=0;L<R.length;L++)_+=" "+R[L].name+"="+xr(On(R[L].value),"double",o);return _+=">",e.childNodes&&e.childNodes.length&&(_+="..."),_+="</"+Pr.call(String(e.nodeName))+">",_}if(We(e)){if(e.length===0)return"[]";var v=we(e,y);return m&&!Un(v)?"["+qe(v,m)+"]":"[ "+F.call(v,", ")+" ]"}if(Pn(e)){var k=we(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!Dr.call(e,"cause")?"{ ["+String(e)+"] "+F.call(_r.call("[cause]: "+y(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(k,", ")+" }"}if(typeof e=="object"&&i){if(Cr&&typeof e[Cr]=="function"&&Ge)return Ge(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Nn(e)){var Q=[];return Ar&&Ar.call(e,function(D,B){Q.push(y(B,e,!0)+" => "+y(D,e))}),Ur("Map",he.call(e),Q,m)}if(Mn(e)){var se=[];return Or&&Or.call(e,function(D){se.push(y(D,e))}),Ur("Set",be.call(e),se,m)}if(Cn(e))return He("WeakMap");if(Rn(e))return He("WeakSet");if(xn(e))return He("WeakRef");if(_n(e))return ce(y(Number(e)));if(Dn(e))return ce(y(ke.call(e)));if($n(e))return ce(mn.call(e));if(In(e))return ce(y(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===pt)return"{ [object globalThis] }";if(!En(e)&&!Mr(e)){var te=we(e,y),Pe=Fr?Fr(e)===Object.prototype:e instanceof Object||e.constructor===Object,V=e instanceof Object?"":"null prototype",U=!Pe&&P&&Object(e)===e&&P in e?Le.call(M(e),8,-1):V?"Object":"",Ie=Pe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ne=Ie+(U||V?"["+F.call(_r.call([],U||[],V||[]),": ")+"] ":"");return te.length===0?ne+"{}":m?ne+"{"+qe(te,m)+"}":ne+"{ "+F.call(te,", ")+" }"}return String(e)};function xr(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function On(r){return C.call(String(r),/"/g,""")}function We(r){return M(r)==="[object Array]"&&(!P||!(typeof r=="object"&&P in r))}function En(r){return M(r)==="[object Date]"&&(!P||!(typeof r=="object"&&P in r))}function Mr(r){return M(r)==="[object RegExp]"&&(!P||!(typeof r=="object"&&P in r))}function Pn(r){return M(r)==="[object Error]"&&(!P||!(typeof r=="object"&&P in r))}function In(r){return M(r)==="[object String]"&&(!P||!(typeof r=="object"&&P in r))}function _n(r){return M(r)==="[object Number]"&&(!P||!(typeof r=="object"&&P in r))}function $n(r){return M(r)==="[object Boolean]"&&(!P||!(typeof r=="object"&&P in r))}function Rr(r){if(Z)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Be)return!1;try{return Be.call(r),!0}catch{}return!1}function Dn(r){if(!r||typeof r!="object"||!ke)return!1;try{return ke.call(r),!0}catch{}return!1}var Fn=Object.prototype.hasOwnProperty||function(r){return r in this};function x(r,e){return Fn.call(r,e)}function M(r){return gn.call(r)}function Tn(r){if(r.name)return r.name;var e=bn.call(hn.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Lr(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function Nn(r){if(!he||!r||typeof r!="object")return!1;try{he.call(r);try{be.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Cn(r){if(!le||!r||typeof r!="object")return!1;try{le.call(r,le);try{fe.call(r,fe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function xn(r){if(!Er||!r||typeof r!="object")return!1;try{return Er.call(r),!0}catch{}return!1}function Mn(r){if(!be||!r||typeof r!="object")return!1;try{be.call(r);try{he.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Rn(r){if(!fe||!r||typeof r!="object")return!1;try{fe.call(r,fe);try{le.call(r,le)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Ln(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function kr(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return kr(Le.call(r,0,e.maxStringLength),e)+n}var a=C.call(C.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kn);return xr(a,"single",e)}function kn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+wn.call(e.toString(16))}function ce(r){return"Object("+r+")"}function He(r){return r+" { ? }"}function Ur(r,e,t,n){var a=n?qe(t,n):F.call(t,", ");return r+" ("+e+") {"+a+"}"}function Un(r){for(var e=0;e<r.length;e++)if(Lr(r[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function Bn(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=F.call(Array(r.indent+1)," ");else return null;return{base:t,prev:F.call(Array(e+1),t)}}function qe(r,e){if(r.length===0)return"";var t=`
|
|
3
|
-
`+e.prev+e.base;return t+F.call(r,","+t)+`
|
|
4
|
-
`+e.prev}function we(r,e){var t=We(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=x(r,a)?e(r[a],r):""}var o=typeof Ue=="function"?Ue(r):[],i;if(Z){i={};for(var l=0;l<o.length;l++)i["$"+o[l]]=o[l]}for(var f in r)x(r,f)&&(t&&String(Number(f))===f&&f<r.length||Z&&i["$"+f]instanceof Symbol||(Ir.call(/[^\w$]/,f)?n.push(e(f,r)+": "+e(r[f],r)):n.push(f+": "+e(r[f],r))));if(typeof Ue=="function")for(var c=0;c<o.length;c++)Dr.call(r,o[c])&&n.push("["+e(o[c])+"]: "+e(r[o[c]],r));return n}var Br=Y,ee=sn,Gn=An,Wn=ae,Se=Br("%WeakMap%",!0),Ae=Br("%Map%",!0),Hn=ee("WeakMap.prototype.get",!0),qn=ee("WeakMap.prototype.set",!0),Qn=ee("WeakMap.prototype.has",!0),Vn=ee("Map.prototype.get",!0),zn=ee("Map.prototype.set",!0),Kn=ee("Map.prototype.has",!0),Qe=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},jn=function(r,e){var t=Qe(r,e);return t&&t.value},Jn=function(r,e,t){var n=Qe(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Yn=function(r,e){return!!Qe(r,e)},Xn=function(){var e,t,n,a={assert:function(o){if(!a.has(o))throw new Wn("Side channel does not contain "+Gn(o))},get:function(o){if(Se&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Hn(e,o)}else if(Ae){if(t)return Vn(t,o)}else if(n)return jn(n,o)},has:function(o){if(Se&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Qn(e,o)}else if(Ae){if(t)return Kn(t,o)}else if(n)return Yn(n,o);return!1},set:function(o,i){Se&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Se),qn(e,o,i)):Ae?(t||(t=new Ae),zn(t,o,i)):(n||(n={key:{},next:null}),Jn(n,o,i))}};return a},Zn=String.prototype.replace,eo=/%20/g,Ve={RFC1738:"RFC1738",RFC3986:"RFC3986"},ze={default:Ve.RFC3986,formatters:{RFC1738:function(r){return Zn.call(r,eo,"+")},RFC3986:function(r){return String(r)}},RFC1738:Ve.RFC1738,RFC3986:Ve.RFC3986},ro=ze,Ke=Object.prototype.hasOwnProperty,q=Array.isArray,T=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),to=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(q(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);t.obj[t.prop]=a}}},Gr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},no=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(q(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ke.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var a=e;return q(e)&&!q(t)&&(a=Gr(e,n)),q(e)&&q(t)?(t.forEach(function(o,i){if(Ke.call(e,i)){var l=e[i];l&&typeof l=="object"&&o&&typeof o=="object"?e[i]=r(l,o,n):e.push(o)}else e[i]=o}),e):Object.keys(t).reduce(function(o,i){var l=t[i];return Ke.call(o,i)?o[i]=r(o[i],l,n):o[i]=l,o},a)},oo=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},ao=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},io=function(e,t,n,a,o){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var l="",f=0;f<i.length;++f){var c=i.charCodeAt(f);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===ro.RFC1738&&(c===40||c===41)){l+=i.charAt(f);continue}if(c<128){l=l+T[c];continue}if(c<2048){l=l+(T[192|c>>6]+T[128|c&63]);continue}if(c<55296||c>=57344){l=l+(T[224|c>>12]+T[128|c>>6&63]+T[128|c&63]);continue}f+=1,c=65536+((c&1023)<<10|i.charCodeAt(f)&1023),l+=T[240|c>>18]+T[128|c>>12&63]+T[128|c>>6&63]+T[128|c&63]}return l},lo=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],i=o.obj[o.prop],l=Object.keys(i),f=0;f<l.length;++f){var c=l[f],u=i[c];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(t.push({obj:i,prop:c}),n.push(u))}return to(t),e},fo=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},co=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},uo=function(e,t){return[].concat(e,t)},so=function(e,t){if(q(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},Wr={arrayToObject:Gr,assign:oo,combine:uo,compact:lo,decode:ao,encode:io,isBuffer:co,isRegExp:fo,maybeMap:so,merge:no},Hr=Xn,Oe=Wr,ue=ze,po=Object.prototype.hasOwnProperty,qr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},N=Array.isArray,yo=Array.prototype.push,Qr=function(r,e){yo.apply(r,N(e)?e:[e])},vo=Date.prototype.toISOString,Vr=ue.default,S={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Oe.encode,encodeValuesOnly:!1,format:Vr,formatter:ue.formatters[Vr],indices:!1,serializeDate:function(e){return vo.call(e)},skipNulls:!1,strictNullHandling:!1},mo=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},je={},go=function r(e,t,n,a,o,i,l,f,c,u,m,y,g,h,I,_,R,L){for(var v=e,k=L,Q=0,se=!1;(k=k.get(je))!==void 0&&!se;){var te=k.get(e);if(Q+=1,typeof te<"u"){if(te===Q)throw new RangeError("Cyclic object value");se=!0}typeof k.get(je)>"u"&&(Q=0)}if(typeof u=="function"?v=u(t,v):v instanceof Date?v=g(v):n==="comma"&&N(v)&&(v=Oe.maybeMap(v,function(Ze){return Ze instanceof Date?g(Ze):Ze})),v===null){if(i)return c&&!_?c(t,S.encoder,R,"key",h):t;v=""}if(mo(v)||Oe.isBuffer(v)){if(c){var Pe=_?t:c(t,S.encoder,R,"key",h);return[I(Pe)+"="+I(c(v,S.encoder,R,"value",h))]}return[I(t)+"="+I(String(v))]}var V=[];if(typeof v>"u")return V;var U;if(n==="comma"&&N(v))_&&c&&(v=Oe.maybeMap(v,c)),U=[{value:v.length>0?v.join(",")||null:void 0}];else if(N(u))U=u;else{var Ie=Object.keys(v);U=m?Ie.sort(m):Ie}var ne=f?t.replace(/\./g,"%2E"):t,D=a&&N(v)&&v.length===1?ne+"[]":ne;if(o&&N(v)&&v.length===0)return D+"[]";for(var B=0;B<U.length;++B){var G=U[B],pe=typeof G=="object"&&typeof G.value<"u"?G.value:v[G];if(!(l&&pe===null)){var Xe=y&&f?G.replace(/\./g,"%2E"):G,oa=N(v)?typeof n=="function"?n(D,Xe):D:D+(y?"."+Xe:"["+Xe+"]");L.set(e,Q);var nt=Hr();nt.set(je,L),Qr(V,r(pe,oa,n,a,o,i,l,f,n==="comma"&&_&&N(v)?null:c,u,m,y,g,h,I,_,R,nt))}}return V},ho=function(e){if(!e)return S;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||S.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ue.default;if(typeof e.format<"u"){if(!po.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=ue.formatters[n],o=S.filter;(typeof e.filter=="function"||N(e.filter))&&(o=e.filter);var i;if(e.arrayFormat in qr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=S.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:S.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:S.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:S.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?S.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:S.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:S.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:S.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:S.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:S.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:S.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling}},bo=function(r,e){var t=r,n=ho(e),a,o;typeof n.filter=="function"?(o=n.filter,t=o("",t)):N(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof t!="object"||t===null)return"";var l=qr[n.arrayFormat],f=l==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var c=Hr(),u=0;u<a.length;++u){var m=a[u];n.skipNulls&&t[m]===null||Qr(i,go(t[m],m,l,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var y=i.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),y.length>0?g+y:""},re=Wr,Je=Object.prototype.hasOwnProperty,wo=Array.isArray,b={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:re.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},So=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},zr=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},Ao="utf8=%26%2310003%3B",Oo="utf8=%E2%9C%93",Eo=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=a.split(t.delimiter,o),l=-1,f,c=t.charset;if(t.charsetSentinel)for(f=0;f<i.length;++f)i[f].indexOf("utf8=")===0&&(i[f]===Oo?c="utf-8":i[f]===Ao&&(c="iso-8859-1"),l=f,f=i.length);for(f=0;f<i.length;++f)if(f!==l){var u=i[f],m=u.indexOf("]="),y=m===-1?u.indexOf("="):m+1,g,h;y===-1?(g=t.decoder(u,b.decoder,c,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(u.slice(0,y),b.decoder,c,"key"),h=re.maybeMap(zr(u.slice(y+1),t),function(_){return t.decoder(_,b.decoder,c,"value")})),h&&t.interpretNumericEntities&&c==="iso-8859-1"&&(h=So(h)),u.indexOf("[]=")>-1&&(h=wo(h)?[h]:h);var I=Je.call(n,g);I&&t.duplicates==="combine"?n[g]=re.combine(n[g],h):(!I||t.duplicates==="last")&&(n[g]=h)}return n},Po=function(r,e,t,n){for(var a=n?e:zr(e,t),o=r.length-1;o>=0;--o){var i,l=r[o];if(l==="[]"&&t.parseArrays)i=t.allowEmptyArrays&&a===""?[]:[].concat(a);else{i=t.plainObjects?Object.create(null):{};var f=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=t.decodeDotInKeys?f.replace(/%2E/g,"."):f,u=parseInt(c,10);!t.parseArrays&&c===""?i={0:a}:!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(i=[],i[u]=a):c!=="__proto__"&&(i[c]=a)}a=i}return a},Io=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,f=n.depth>0&&i.exec(o),c=f?o.slice(0,f.index):o,u=[];if(c){if(!n.plainObjects&&Je.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var m=0;n.depth>0&&(f=l.exec(o))!==null&&m<n.depth;){if(m+=1,!n.plainObjects&&Je.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(f[1])}return f&&u.push("["+o.slice(f.index)+"]"),Po(u,t,n,a)}},_o=function(e){if(!e)return b;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?b.charset:e.charset,n=typeof e.duplicates>"u"?b.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:b.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:b.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:b.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:b.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:b.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:b.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:b.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:b.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:b.decoder,delimiter:typeof e.delimiter=="string"||re.isRegExp(e.delimiter)?e.delimiter:b.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:b.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:b.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:b.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:b.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:b.strictNullHandling}},$o=function(r,e){var t=_o(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?Eo(r,t):r,a=t.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var l=o[i],f=Io(l,n[l],t,typeof r=="string");a=re.merge(a,f,t)}return t.allowSparse===!0?a:re.compact(a)},Do=bo,Fo=$o,To=ze,No={formats:To,parse:Fo,stringify:Do};const Kr=yt(No),jr=r=>Kr.parse(r,{ignoreQueryPrefix:!0}),Co=r=>Kr.stringify(r,{arrayFormat:"brackets"}),Jr=(r=!1)=>{const[e,t]=E.useState(r),n=E.useCallback(()=>t(i=>!i),[]),a=E.useCallback(()=>t(!0),[]),o=E.useCallback(()=>t(!1),[]);return[e,n,a,o]},xo=(r=!1,e=2e3,t=window.setTimeout,n=window.clearTimeout)=>{const[a,o]=E.useState(r),i=E.useRef(r),l=E.useRef(),f=E.useCallback(()=>{o(!i.current),l.current&&n(l.current),l.current=t(()=>o(i.current),e)},[n,e,t]);return[a,f]},Ye=()=>{const{current:r}=E.useRef(`dom-${st()}`);return r},Mo=()=>E.useRef(null),Ro=()=>{const{search:r}=er.useLocation();return E.useMemo(()=>jr(r),[r])},Yr=({checked:r=!1,onChange:e,className:t,children:n,type:a,inline:o=!1})=>{const i=Ye(),l=u=>e==null?void 0:e(u.target.checked,u),f={"form-switch":a==="switch","form-checkbox":a==="checkbox"},c=o?{display:"inline-block"}:{};return s.jsxs("span",{className:$("form-check",f,t),style:c,children:[s.jsx("input",{type:"checkbox",className:"form-check-input",id:i,checked:r,onChange:l}),s.jsx("label",{className:"form-check-label",htmlFor:i,children:n})]})},Lo=r=>s.jsx(Yr,{type:"checkbox",...r}),ko=r=>s.jsx(Yr,{type:"switch",...r}),Xr=({children:r,label:e,className:t="",labelClassName:n="",noMargin:a=!1,id:o})=>s.jsxs("div",{className:`${t} ${a?"":"mb-3"}`,children:[s.jsx("label",{className:`form-label ${n}`,htmlFor:o,children:e}),r]}),Uo=({children:r,value:e,onChange:t,type:n,required:a,placeholder:o,className:i,labelClassName:l})=>{const f=Ye();return s.jsx(Xr,{label:s.jsxs(s.Fragment,{children:[r,":"]}),className:i,labelClassName:l,id:f,children:s.jsx("input",{id:f,className:"form-control",type:n??"text",value:e,required:a??!0,placeholder:o,onChange:c=>t(c.target.value)})})},Bo=500;let Ee;const Zr=()=>{Ee&&clearTimeout(Ee),Ee=null},Go=({onChange:r,className:e,large:t=!0,noBorder:n=!1,initialValue:a="",setTimeout_:o=setTimeout})=>{const[i,l]=E.useState(a),f=(c,u=Bo)=>{l(c),Zr(),Ee=o(()=>{r(c),Zr()},u)};return s.jsxs("div",{className:$("search-field",e),children:[s.jsx("input",{type:"text",className:$("form-control search-field__input",{"form-control-lg":t,"search-field__input--no-border":n}),placeholder:"Search...",value:i,onChange:c=>f(c.target.value)}),s.jsx(ye.FontAwesomeIcon,{icon:oe.faSearch,className:"search-field__icon"}),s.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:i==="",id:"search-field__close",onClick:()=>f("",0)})]})},et=({text:r,disabled:e=!1,className:t,children:n,dropdownClassName:a,noCaret:o,end:i=!1,minWidth:l,inline:f,size:c,...u})=>{const[m,y]=Jr(),g=$("dropdown-btn__toggle",t,{"btn-block":!f,"dropdown-btn__toggle--with-caret":!o}),h={minWidth:l&&`${l}px`};return s.jsxs(w.Dropdown,{isOpen:m,toggle:y,disabled:e,className:a,children:[s.jsx(w.DropdownToggle,{size:c,caret:!o,className:g,color:"primary",...u,children:r}),s.jsx(w.DropdownMenu,{className:"w-100",end:i,style:h,children:n})]})},Wo=({children:r,minWidth:e,label:t="Options"})=>s.jsx(et,{text:s.jsx(ye.FontAwesomeIcon,{className:"px-1",icon:oe.faEllipsisV}),"aria-label":t,size:"sm",minWidth:e,end:!0,noCaret:!0,inline:!0,children:r}),rt=({children:r,...e})=>s.jsx(w.NavItem,{children:s.jsx(w.NavLink,{className:"nav-pills__nav-link",tag:er.NavLink,...e,children:r})}),Ho=({children:r,fill:e=!1,className:t=""})=>s.jsx(w.Card,{className:`nav-pills__nav p-0 overflow-hidden ${t}`,body:!0,children:s.jsx(w.Nav,{pills:!0,fill:e,children:E.Children.map(r,n=>{if(!E.isValidElement(n)||n.type!==rt)throw new Error("Only NavPillItem children are allowed inside NavPills.");return n})})}),tt=(r,e,t)=>r!==e?"ASC":t?{ASC:"DESC",DESC:void 0}[t]:"ASC",qo=(r,{field:e,dir:t})=>!e||!t?r:r.sort((n,a)=>{const o=t==="ASC"?1:-1,i=t==="ASC"?-1:1;return n[e]>a[e]?o:i}),Qo=r=>r.dir?`${r.field}-${r.dir}`:void 0,Vo=r=>{const[e,t]=r.split("-");return{field:e,dir:t}},zo=r=>{const[e,t]=E.useState(r),n=E.useCallback((a,o)=>t({field:a,dir:o}),[]);return[e,n]};function Ko({items:r,order:e,onChange:t,isButton:n=!0,right:a=!1,prefixed:o=!0}){const i=l=>()=>{const f=tt(l,e.field,e.dir);t(f?l:void 0,f)};return s.jsxs(w.UncontrolledDropdown,{children:[s.jsxs(w.DropdownToggle,{caret:!0,color:n?"primary":"link",className:$({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":n,"btn-sm p-0":!n}),children:[!n&&s.jsx(s.Fragment,{children:"Order by"}),n&&!e.field&&s.jsx("i",{children:"Order by..."}),n&&e.field&&s.jsxs(s.Fragment,{children:[o&&"Order by: ",r[e.field]," - ",s.jsx("small",{children:e.dir??"DESC"})]})]}),s.jsxs(w.DropdownMenu,{end:a,className:$("w-100",{"ordering-dropdown__menu--link":!n}),children:[Object.entries(r).map(([l,f])=>s.jsxs(w.DropdownItem,{active:e.field===l,onClick:i(l),children:[f,e.field===l&&s.jsx(ye.FontAwesomeIcon,{icon:e.dir==="ASC"?oe.faSortAmountUp:oe.faSortAmountDown,className:"ordering-dropdown__sort-icon"})]},l)),s.jsx(w.DropdownItem,{divider:!0}),s.jsx(w.DropdownItem,{disabled:!e.field,onClick:()=>t(),children:s.jsx("i",{children:"Clear selection"})})]})]})}const jo="#4696e5",Jo="rgba(70, 150, 229, 0.4)",Yo="#f77f28",Xo="rgba(247, 127, 40, 0.4)",Zo="white",ea="#161b22",ra=r=>{var e;return(e=document.querySelector("html"))==null?void 0:e.setAttribute("data-theme",r)},ta=()=>{var r;return((r=document.querySelector("html"))==null?void 0:r.getAttribute("data-theme"))==="dark"},na=(r=window.matchMedia.bind(window))=>r("(prefers-color-scheme: dark)").matches?"dark":"light";p.Checkbox=Lo,p.DropdownBtn=et,p.HIGHLIGHTED_COLOR=Yo,p.HIGHLIGHTED_COLOR_ALPHA=Xo,p.InputFormGroup=Uo,p.LabeledFormGroup=Xr,p.MAIN_COLOR=jo,p.MAIN_COLOR_ALPHA=Jo,p.Message=it,p.NavPillItem=rt,p.NavPills=Ho,p.OrderingDropdown=Ko,p.PRIMARY_DARK_COLOR=ea,p.PRIMARY_LIGHT_COLOR=Zo,p.Result=lt,p.RowDropdownBtn=Wo,p.SearchField=Go,p.SimpleCard=tr,p.ToggleSwitch=ko,p.changeThemeInMarkup=ra,p.determineOrderDir=tt,p.getSystemPreferredTheme=na,p.isDarkThemeEnabled=ta,p.orderToString=Qo,p.parseQuery=jr,p.sortList=qo,p.stringToOrder=Vo,p.stringifyQuery=Co,p.useDomId=Ye,p.useElementRef=Mo,p.useOrder=zo,p.useParsedQuery=Ro,p.useTimeoutToggle=xo,p.useToggle=Jr,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(o,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("@fortawesome/free-solid-svg-icons"),require("@fortawesome/react-fontawesome"),require("clsx"),require("reactstrap"),require("react"),require("react-router-dom"),require("uuid")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@fortawesome/free-solid-svg-icons","@fortawesome/react-fontawesome","clsx","reactstrap","react","react-router-dom","uuid"],s):(o=typeof globalThis<"u"?globalThis:o||self,s(o["shlink-frontend-kit"]={},o.jsxRuntime,o.freeSolidSvgIcons,o.reactFontawesome,o.clsx,o.reactstrap,o.react,o.reactRouterDom,o.uuid))})(this,function(o,s,w,b,f,d,h,O,v){"use strict";const P=e=>({error:"border-danger",default:""})[e],F=e=>({error:"text-danger",default:"text-muted"})[e],H=({className:e,children:r,loading:n=!1,type:c="default",fullWidth:l=!1})=>{const a=f.clsx({"col-md-12":l,"col-md-10 offset-md-1":!l});return s.jsx(d.Row,{className:f.clsx("g-0",e),children:s.jsx("div",{className:a,children:s.jsx(d.Card,{className:P(c),body:!0,children:s.jsxs("h3",{className:f.clsx("text-center mb-0",F(c)),children:[n&&s.jsx(b.FontAwesomeIcon,{icon:w.faCircleNotch,spin:!0}),n&&s.jsx("span",{className:"ms-2",children:r??"Loading..."}),!n&&r]})})})})},T=({title:e,children:r,bodyClassName:n,...c})=>s.jsxs(d.Card,{...c,children:[e&&s.jsx(d.CardHeader,{role:"heading","aria-level":4,children:e}),s.jsx(d.CardBody,{className:n,children:r})]}),E=({children:e,type:r,className:n,small:c=!1})=>s.jsx(d.Row,{className:n,children:s.jsx("div",{className:f.clsx({"col-md-10 offset-md-1":!c,"col-12":c}),children:s.jsx(T,{role:"document",className:f.clsx("text-center",{"bg-main":r==="success","bg-danger":r==="error","bg-warning":r==="warning","text-white":r!=="warning"}),bodyClassName:f.clsx({"p-2":c}),children:e})})}),_=e=>{const r=new URLSearchParams(e),n={};return r.forEach((c,l)=>{if(l.endsWith("[]")){const a=l.slice(0,-2);n[a]??(n[a]=[]),n[a].push(c)}else n[l]=c}),n},k=e=>{const r=new URLSearchParams;for(const[n,c]of Object.entries(e))c!==void 0&&(Array.isArray(c)?c.forEach(l=>r.append(`${n}[]`,`${l}`)):r.append(n,`${c}`));return r.toString()},M=_,G=k,A=(e=!1)=>{const[r,n]=h.useState(e),c=h.useCallback(()=>n(i=>!i),[]),l=h.useCallback(()=>n(!0),[]),a=h.useCallback(()=>n(!1),[]);return[r,c,l,a]},q=(e=!1,r=2e3,n=window.setTimeout,c=window.clearTimeout)=>{const[l,a]=h.useState(e),i=h.useRef(e),t=h.useRef(),u=h.useCallback(()=>{a(!i.current),t.current&&c(t.current),t.current=n(()=>a(i.current),r)},[c,r,n]);return[l,u]},N=()=>{const{current:e}=h.useRef(`dom-${v.v4()}`);return e},$=()=>h.useRef(null),Q=()=>{const{search:e}=O.useLocation();return h.useMemo(()=>_(e),[e])},p=({checked:e=!1,onChange:r,className:n,children:c,type:l,inline:a=!1})=>{const i=N(),t=g=>r==null?void 0:r(g.target.checked,g),u={"form-switch":l==="switch","form-checkbox":l==="checkbox"},m=a?{display:"inline-block"}:{};return s.jsxs("span",{className:f.clsx("form-check",u,n),style:m,children:[s.jsx("input",{type:"checkbox",className:"form-check-input",id:i,checked:e,onChange:t}),s.jsx("label",{className:"form-check-label",htmlFor:i,children:c})]})},j=e=>s.jsx(p,{type:"checkbox",...e}),U=e=>s.jsx(p,{type:"switch",...e}),y=({children:e,label:r,className:n="",labelClassName:c="",noMargin:l=!1,id:a})=>s.jsxs("div",{className:`${n} ${l?"":"mb-3"}`,children:[s.jsx("label",{className:`form-label ${c}`,htmlFor:a,children:r}),e]}),Y=({children:e,value:r,onChange:n,type:c,required:l,placeholder:a,className:i,labelClassName:t})=>{const u=N();return s.jsx(y,{label:s.jsxs(s.Fragment,{children:[e,":"]}),className:i,labelClassName:t,id:u,children:s.jsx("input",{id:u,className:"form-control",type:c??"text",value:r,required:l??!0,placeholder:a,onChange:m=>n(m.target.value)})})},V=500;let C;const I=()=>{C&&clearTimeout(C),C=null},z=({onChange:e,className:r,large:n=!0,noBorder:c=!1,initialValue:l="",setTimeout_:a=setTimeout})=>{const[i,t]=h.useState(l),u=(m,g=V)=>{t(m),I(),C=a(()=>{e(m),I()},g)};return s.jsxs("div",{className:f.clsx("search-field",r),children:[s.jsx("input",{type:"text",className:f.clsx("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":c}),placeholder:"Search...",value:i,onChange:m=>u(m.target.value)}),s.jsx(b.FontAwesomeIcon,{icon:w.faSearch,className:"search-field__icon"}),s.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:i==="",id:"search-field__close",onClick:()=>u("",0)})]})},L=({text:e,disabled:r=!1,className:n,children:c,dropdownClassName:l,noCaret:a,end:i=!1,minWidth:t,inline:u,size:m,...g})=>{const[te,de]=A(),ie=f.clsx("dropdown-btn__toggle",n,{"btn-block":!u,"dropdown-btn__toggle--with-caret":!a}),he={minWidth:t&&`${t}px`};return s.jsxs(d.Dropdown,{isOpen:te,toggle:de,disabled:r,className:l,children:[s.jsx(d.DropdownToggle,{size:m,caret:!a,className:ie,color:"primary",...g,children:e}),s.jsx(d.DropdownMenu,{className:"w-100",end:i,style:he,children:c})]})},B=({children:e,minWidth:r,label:n="Options"})=>s.jsx(L,{text:s.jsx(b.FontAwesomeIcon,{className:"px-1",icon:w.faEllipsisV}),"aria-label":n,size:"sm",minWidth:r,end:!0,noCaret:!0,inline:!0,children:e}),D=({children:e,...r})=>s.jsx(d.NavItem,{children:s.jsx(d.NavLink,{className:"nav-pills__nav-link",tag:O.NavLink,...r,children:e})}),J=({children:e,fill:r=!1,className:n=""})=>s.jsx(d.Card,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:s.jsx(d.Nav,{pills:!0,fill:r,children:h.Children.map(e,c=>{if(!h.isValidElement(c)||c.type!==D)throw new Error("Only NavPillItem children are allowed inside NavPills.");return c})})}),S=(e,r,n)=>e!==r?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",W=(e,{field:r,dir:n})=>!r||!n?e:e.sort((c,l)=>{const a=n==="ASC"?1:-1,i=n==="ASC"?-1:1;return c[r]>l[r]?a:i}),X=e=>e.dir?`${e.field}-${e.dir}`:void 0,Z=e=>{const[r,n]=e.split("-");return{field:r,dir:n}},K=e=>{const[r,n]=h.useState(e),c=h.useCallback((l,a)=>n({field:l,dir:a}),[]);return[r,c]};function R({items:e,order:r,onChange:n,isButton:c=!0,right:l=!1,prefixed:a=!0}){const i=t=>()=>{const u=S(t,r.field,r.dir);n(u?t:void 0,u)};return s.jsxs(d.UncontrolledDropdown,{children:[s.jsxs(d.DropdownToggle,{caret:!0,color:c?"primary":"link",className:f.clsx({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":c,"btn-sm p-0":!c}),children:[!c&&s.jsx(s.Fragment,{children:"Order by"}),c&&!r.field&&s.jsx("i",{children:"Order by..."}),c&&r.field&&s.jsxs(s.Fragment,{children:[a&&"Order by: ",e[r.field]," - ",s.jsx("small",{children:r.dir??"DESC"})]})]}),s.jsxs(d.DropdownMenu,{end:l,className:f.clsx("w-100",{"ordering-dropdown__menu--link":!c}),children:[Object.entries(e).map(([t,u])=>s.jsxs(d.DropdownItem,{active:r.field===t,onClick:i(t),children:[u,r.field===t&&s.jsx(b.FontAwesomeIcon,{icon:r.dir==="ASC"?w.faSortAmountUp:w.faSortAmountDown,className:"ordering-dropdown__sort-icon"})]},t)),s.jsx(d.DropdownItem,{divider:!0}),s.jsx(d.DropdownItem,{disabled:!r.field,onClick:()=>n(),children:s.jsx("i",{children:"Clear selection"})})]})]})}const x="#4696e5",ee="rgba(70, 150, 229, 0.4)",re="#f77f28",se="rgba(247, 127, 40, 0.4)",ne="white",oe="#161b22",ce=e=>{var r;return(r=document.querySelector("html"))==null?void 0:r.setAttribute("data-theme",e)},le=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},ae=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light";o.Checkbox=j,o.DropdownBtn=L,o.HIGHLIGHTED_COLOR=re,o.HIGHLIGHTED_COLOR_ALPHA=se,o.InputFormGroup=Y,o.LabeledFormGroup=y,o.MAIN_COLOR=x,o.MAIN_COLOR_ALPHA=ee,o.Message=H,o.NavPillItem=D,o.NavPills=J,o.OrderingDropdown=R,o.PRIMARY_DARK_COLOR=oe,o.PRIMARY_LIGHT_COLOR=ne,o.Result=E,o.RowDropdownBtn=B,o.SearchField=z,o.SimpleCard=T,o.ToggleSwitch=U,o.changeThemeInMarkup=ce,o.determineOrderDir=S,o.getSystemPreferredTheme=ae,o.isDarkThemeEnabled=le,o.orderToString=X,o.parseQuery=M,o.parseQueryString=_,o.sortList=W,o.stringToOrder=Z,o.stringifyQuery=G,o.stringifyQueryParams=k,o.useDomId=N,o.useElementRef=$,o.useOrder=K,o.useParsedQuery=Q,o.useTimeoutToggle=q,o.useToggle=A,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test:ci": "npm run test -- --coverage",
|
|
24
24
|
"lint": "npm run lint:css && npm run lint:js",
|
|
25
25
|
"lint:css": "stylelint src/*.scss src/**/*.scss dev/*.scss dev/**/*.scss",
|
|
26
|
-
"lint:js": "eslint
|
|
26
|
+
"lint:js": "eslint dev src test",
|
|
27
27
|
"lint:fix": "npm run lint:css:fix && npm run lint:js:fix",
|
|
28
28
|
"lint:css:fix": "npm run lint:css -- --fix",
|
|
29
29
|
"lint:js:fix": "npm run lint:js -- --fix",
|
|
@@ -31,9 +31,8 @@
|
|
|
31
31
|
"dev": "vite serve --host=0.0.0.0 --port 3001"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"clsx": "^2.1.
|
|
35
|
-
"
|
|
36
|
-
"uuid": "^9.0.1"
|
|
34
|
+
"clsx": "^2.1.1",
|
|
35
|
+
"uuid": "^10.0.0"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
38
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
|
@@ -45,30 +44,36 @@
|
|
|
45
44
|
"reactstrap": "^9.2.0"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@shlinkio/eslint-config-js-coding-standard": "~
|
|
47
|
+
"@shlinkio/eslint-config-js-coding-standard": "~3.0.0",
|
|
49
48
|
"@shlinkio/stylelint-config-css-coding-standard": "~1.1.1",
|
|
50
|
-
"@
|
|
51
|
-
"@testing-library/
|
|
49
|
+
"@stylistic/eslint-plugin": "^2.3.0",
|
|
50
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
51
|
+
"@testing-library/react": "^16.0.0",
|
|
52
52
|
"@testing-library/user-event": "^14.5.2",
|
|
53
53
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
54
|
-
"@types/qs": "^6.9.
|
|
55
|
-
"@types/react": "^18.
|
|
56
|
-
"@types/react-dom": "^18.
|
|
57
|
-
"@types/uuid": "^
|
|
58
|
-
"@vitejs/plugin-react": "^4.
|
|
59
|
-
"@vitest/coverage-v8": "^
|
|
60
|
-
"axe-core": "^4.
|
|
54
|
+
"@types/qs": "^6.9.15",
|
|
55
|
+
"@types/react": "^18.3.3",
|
|
56
|
+
"@types/react-dom": "^18.3.0",
|
|
57
|
+
"@types/uuid": "^10.0.0",
|
|
58
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
59
|
+
"@vitest/coverage-v8": "^2.0.2",
|
|
60
|
+
"axe-core": "^4.9.1",
|
|
61
61
|
"bootstrap": "5.2.3",
|
|
62
62
|
"eslint": "^8.57.0",
|
|
63
|
+
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
64
|
+
"eslint-plugin-react": "^7.34.3",
|
|
65
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
66
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
63
67
|
"history": "^5.3.0",
|
|
64
|
-
"jsdom": "^24.
|
|
68
|
+
"jsdom": "^24.1.0",
|
|
65
69
|
"resize-observer-polyfill": "^1.5.1",
|
|
66
|
-
"sass": "^1.
|
|
70
|
+
"sass": "^1.77.8",
|
|
67
71
|
"stylelint": "^15.11.0",
|
|
68
|
-
"typescript": "^5.
|
|
69
|
-
"
|
|
70
|
-
"vite
|
|
71
|
-
"
|
|
72
|
+
"typescript": "^5.5.3",
|
|
73
|
+
"typescript-eslint": "^7.16.0",
|
|
74
|
+
"vite": "^5.3.3",
|
|
75
|
+
"vite-plugin-dts": "^3.9.1",
|
|
76
|
+
"vitest": "^2.0.2"
|
|
72
77
|
},
|
|
73
78
|
"browserslist": [
|
|
74
79
|
">0.2%",
|
|
@@ -76,5 +81,5 @@
|
|
|
76
81
|
"not ie <= 11",
|
|
77
82
|
"not op_mini all"
|
|
78
83
|
],
|
|
79
|
-
"version": "0.5.
|
|
84
|
+
"version": "0.5.2"
|
|
80
85
|
}
|