UNPKG

@vue-widget/hooks

Version:

hooks from react to vue

2 lines 61.8 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("util")):"function"==typeof define&&define.amd?define(["exports","vue","util"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).hooks={},t.vue,t.require$$0)}(this,(function(t,e,r){"use strict";function n(t,r){return e.defineComponent({props:{value:{type:Object,default:()=>e.ref(r)}},setup:(r,{slots:n})=>(e.provide(t,e.computed((()=>e.unref(r.value)))),()=>n.default?.())})}const o=(t,r)=>{let n=null;function o(){"function"==typeof n&&n()}async function i(e,r){o(),n=t(e,r)||null}r?.length&&e.watch(r,i,{immediate:!0});let a=!1;r?.length||(!r&&e.onUpdated((()=>{a&&i([],[])})),e.onMounted((()=>{i([],[]),a=!0}))),e.onBeforeUnmount((()=>{o(),a=!1}))};let i=0;const a=!("undefined"==typeof window||!window.document||!window.document.createElement);function u(t,r,n){const o=e.ref(t());return e.watch(r,((e,r)=>{n?n(e,r)&&(o.value=t()):o.value=t()})),o}const c=t=>"function"==typeof t;function s(t){const r="function"==typeof t?t():t,n=e.ref(r);return[n,t=>{c(t)?n.value=t(n.value):n.value=t}]}const f="development"===process.env.NODE_ENV||"test"===process.env.NODE_ENV;function l(t){f&&(c(t)||console.error("useMemoizedFn expected parameter is a function, got "+typeof t));const r=u((()=>t),[()=>t]),n=e.ref();return n.value||(n.value=function(...t){return r.value.apply(this,t)}),n.value}var p,y,h,d,m,g,v,b,w,_,E,O,S,A,j,R,I,x,P,T,M,D,k,F,N,U,C,L,B,W,V,q,H,z,G,K,$,Q,J,X,Y,Z,tt,et,rt,nt,ot,it,at,ut,ct,st,ft,lt,pt,yt,ht,dt,mt,gt,vt,bt,wt,_t,Et,Ot,St,At,jt,Rt,It,xt,Pt,Tt,Mt,Dt,kt,Ft,Nt,Ut,Ct,Lt,Bt,Wt,Vt,qt,Ht,zt,Gt,Kt,$t,Qt,Jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yt(){return y?p:(y=1,p=TypeError)}function Zt(){return d?h:(d=1,h=r.inspect)}function te(){if(g)return m;g=1;var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=t&&e&&"function"==typeof e.get?e.get:null,n=t&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,u=o&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,l=Boolean.prototype.valueOf,p=Object.prototype.toString,y=Function.prototype.toString,h=String.prototype.match,d=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,w=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,O=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,x="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===x||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),i=d.call(e,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var k=Zt(),F=k.custom,N=H(F)?F:null,U={__proto__:null,double:'"',single:"'"},C={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function L(t,e,r){var n=r.quoteStyle||e,o=U[n];return o+t+o}function B(t){return v.call(String(t),/"/g,"&quot;")}function W(t){return!P||!("object"==typeof t&&(P in t||void 0!==t[P]))}function V(t){return"[object Array]"===K(t)&&W(t)}function q(t){return"[object RegExp]"===K(t)&&W(t)}function H(t){if(x)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}m=function t(e,o,i,p){var m=o||{};if(G(m,"quoteStyle")&&!G(U,m.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(m,"maxStringLength")&&("number"==typeof m.maxStringLength?m.maxStringLength<0&&m.maxStringLength!==1/0:null!==m.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!G(m,"customInspect")||m.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(m,"indent")&&null!==m.indent&&"\t"!==m.indent&&!(parseInt(m.indent,10)===m.indent&&m.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(m,"numericSeparator")&&"boolean"!=typeof m.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=m.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Q(e,m);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return b?D(e,_):_}if("bigint"==typeof e){var A=String(e)+"n";return b?D(e,A):A}var R=void 0===m.depth?5:m.depth;if(void 0===i&&(i=0),i>=R&&R>0&&"object"==typeof e)return V(e)?"[Array]":"[Object]";var F=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(m,i);if(void 0===p)p=[];else if($(p,e)>=0)return"[Circular]";function C(e,r,n){if(r&&(p=S.call(p)).push(r),n){var o={depth:m.depth};return G(m,"quoteStyle")&&(o.quoteStyle=m.quoteStyle),t(e,o,i+1,p)}return t(e,m,i+1,p)}if("function"==typeof e&&!q(e)){var z=function(t){if(t.name)return t.name;var e=h.call(y.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),J=et(e,C);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(J.length>0?" { "+O.call(J,", ")+" }":"")}if(H(e)){var rt=x?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!=typeof e||x?rt:X(rt)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var nt="<"+w.call(String(e.nodeName)),ot=e.attributes||[],it=0;it<ot.length;it++)nt+=" "+ot[it].name+"="+L(B(ot[it].value),"double",m);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+="</"+w.call(String(e.nodeName))+">"}if(V(e)){if(0===e.length)return"[]";var at=et(e,C);return F&&!function(t){for(var e=0;e<t.length;e++)if($(t[e],"\n")>=0)return!1;return!0}(at)?"["+tt(at,F)+"]":"[ "+O.call(at,", ")+" ]"}if(function(t){return"[object Error]"===K(t)&&W(t)}(e)){var ut=et(e,C);return"cause"in Error.prototype||!("cause"in e)||T.call(e,"cause")?0===ut.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(ut,", ")+" }":"{ ["+String(e)+"] "+O.call(E.call("[cause]: "+C(e.cause),ut),", ")+" }"}if("object"==typeof e&&g){if(N&&"function"==typeof e[N]&&k)return k(e,{depth:R-i});if("symbol"!==g&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!r||!t||"object"!=typeof t)return!1;try{r.call(t);try{a.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ct=[];return n&&n.call(e,(function(t,r){ct.push(C(r,e,!0)+" => "+C(t,e))})),Z("Map",r.call(e),ct,F)}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t);try{r.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return u&&u.call(e,(function(t){st.push(C(t,e))})),Z("Set",a.call(e),st,F)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t,c);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{c.call(t,c)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===K(t)&&W(t)}(e))return X(C(Number(e)));if(function(t){if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(t){}return!1}(e))return X(C(j.call(e)));if(function(t){return"[object Boolean]"===K(t)&&W(t)}(e))return X(l.call(e));if(function(t){return"[object String]"===K(t)&&W(t)}(e))return X(C(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==Jt&&e===Jt)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===K(t)&&W(t)}(e)&&!q(e)){var ft=et(e,C),lt=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",yt=!lt&&P&&Object(e)===e&&P in e?d.call(K(e),8,-1):pt?"Object":"",ht=(lt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(yt||pt?"["+O.call(E.call([],yt||[],pt||[]),": ")+"] ":"");return 0===ft.length?ht+"{}":F?ht+"{"+tt(ft,F)+"}":ht+"{ "+O.call(ft,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return z.call(t,e)}function K(t){return p.call(t)}function $(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Q(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(d.call(t,0,e.maxStringLength),e)+n}var o=C[e.quoteStyle||"single"];return o.lastIndex=0,L(v.call(v.call(t,o,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+b.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function Z(t,e,r,n){return t+" ("+e+") {"+(n?tt(r,n):O.call(r,", "))+"}"}function tt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function et(t,e){var r=V(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=G(t,o)?e(t[o],t):""}var i,a="function"==typeof R?R(t):[];if(x){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var c in t)G(t,c)&&(r&&String(Number(c))===c&&c<t.length||x&&i["$"+c]instanceof Symbol||(_.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if("function"==typeof R)for(var s=0;s<a.length;s++)T.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}return m}function ee(){if(b)return v;b=1;var t=te(),e=Yt(),r=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};return v=function(){var n,o={assert:function(r){if(!o.has(r))throw new e("Side channel does not contain "+t(r))},delete:function(t){var e=n&&n.next,o=function(t,e){if(t)return r(t,e,!0)}(n,t);return o&&e&&e===o&&(n=void 0),!!o},get:function(t){return function(t,e){if(t){var n=r(t,e);return n&&n.value}}(n,t)},has:function(t){return function(t,e){return!!t&&!!r(t,e)}(n,t)},set:function(t,e){n||(n={next:void 0}),function(t,e,n){var o=r(t,e);o?o.value=n:t.next={key:e,next:t.next,value:n}}(n,t,e)}};return o}}function re(){return _?w:(_=1,w=Object)}function ne(){return O?E:(O=1,E=Error)}function oe(){return A?S:(A=1,S=EvalError)}function ie(){return R?j:(R=1,j=RangeError)}function ae(){return x?I:(x=1,I=ReferenceError)}function ue(){return T?P:(T=1,P=SyntaxError)}function ce(){return D?M:(D=1,M=URIError)}function se(){return F?k:(F=1,k=Math.abs)}function fe(){return U?N:(U=1,N=Math.floor)}function le(){return L?C:(L=1,C=Math.max)}function pe(){return W?B:(W=1,B=Math.min)}function ye(){return q?V:(q=1,V=Math.pow)}function he(){return z?H:(z=1,H=Math.round)}function de(){return K?G:(K=1,G=Number.isNaN||function(t){return t!=t})}function me(){if(Q)return $;Q=1;var t=de();return $=function(e){return t(e)||0===e?e:e<0?-1:1}}function ge(){return X?J:(X=1,J=Object.getOwnPropertyDescriptor)}function ve(){if(Z)return Y;Z=1;var t=ge();if(t)try{t([],"length")}catch(e){t=null}return Y=t}function be(){if(et)return tt;et=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return tt=t}function we(){if(it)return ot;it=1;var t="undefined"!=typeof Symbol&&Symbol,e=nt?rt:(nt=1,rt=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return ot=function(){return"function"==typeof t&&("function"==typeof Symbol&&("symbol"==typeof t("foo")&&("symbol"==typeof Symbol("bar")&&e())))}}function _e(){return ut?at:(ut=1,at="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Ee(){return st?ct:(st=1,ct=re().getPrototypeOf||null)}function Oe(){if(lt)return ft;lt=1;var t=Object.prototype.toString,e=Math.max,r=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};return ft=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t,e){for(var r=[],n=e,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments,1),u=e(0,o.length-a.length),c=[],s=0;s<u;s++)c[s]="$"+s;if(i=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(n,r(a,arguments))})),o.prototype){var f=function(){};f.prototype=o.prototype,i.prototype=new f,f.prototype=null}return i},ft}function Se(){if(yt)return pt;yt=1;var t=Oe();return pt=Function.prototype.bind||t}function Ae(){return dt?ht:(dt=1,ht=Function.prototype.call)}function je(){return gt?mt:(gt=1,mt=Function.prototype.apply)}function Re(){if(_t)return wt;_t=1;var t=Se(),e=je(),r=Ae(),n=bt?vt:(bt=1,vt="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return wt=n||t.call(r,e)}function Ie(){if(Ot)return Et;Ot=1;var t=Se(),e=Yt(),r=Ae(),n=Re();return Et=function(o){if(o.length<1||"function"!=typeof o[0])throw new e("a function is required");return n(t,r,o)}}function xe(){if(At)return St;At=1;var t,e=Ie(),r=ve();try{t=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var n=!!t&&r&&r(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return St=n&&"function"==typeof n.get?e([n.get]):"function"==typeof i&&function(t){return i(null==t?t:o(t))}}function Pe(){if(Rt)return jt;Rt=1;var t=_e(),e=Ee(),r=xe();return jt=t?function(e){return t(e)}:e?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return e(t)}:r?function(t){return r(t)}:null}function Te(){if(xt)return It;xt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Se();return It=r.call(t,e)}function Me(){if(Tt)return Pt;var t;Tt=1;var e=re(),r=ne(),n=oe(),o=ie(),i=ae(),a=ue(),u=Yt(),c=ce(),s=se(),f=fe(),l=le(),p=pe(),y=ye(),h=he(),d=me(),m=Function,g=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},v=ve(),b=be(),w=function(){throw new u},_=v?function(){try{return w}catch(t){try{return v(arguments,"callee").get}catch(t){return w}}}():w,E=we()(),O=Pe(),S=Ee(),A=_e(),j=je(),R=Ae(),I={},x="undefined"!=typeof Uint8Array&&O?O(Uint8Array):t,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?t:ArrayBuffer,"%ArrayIteratorPrototype%":E&&O?O([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?t:Atomics,"%BigInt%":"undefined"==typeof BigInt?t:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?t:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float32Array%":"undefined"==typeof Float32Array?t:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?t:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?t:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?t:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?t:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&O?O(O([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":"undefined"==typeof Map?t:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&O?O((new Map)[Symbol.iterator]()):t,"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?t:Promise,"%Proxy%":"undefined"==typeof Proxy?t:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?t:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?t:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&O?O((new Set)[Symbol.iterator]()):t,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&O?O(""[Symbol.iterator]()):t,"%Symbol%":E?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":_,"%TypedArray%":x,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?t:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?t:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?t:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?t:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?t:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?t:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?t:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":j,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":S,"%Math.abs%":s,"%Math.floor%":f,"%Math.max%":l,"%Math.min%":p,"%Math.pow%":y,"%Math.round%":h,"%Math.sign%":d,"%Reflect.getPrototypeOf%":A};if(O)try{null.error}catch(t){var T=O(O(t));P["%Error.prototype%"]=T}var M=function t(e){var r;if("%AsyncFunction%"===e)r=g("async function () {}");else if("%GeneratorFunction%"===e)r=g("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=g("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&O&&(r=O(o.prototype))}return P[e]=r,r},D={__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"]},k=Se(),F=Te(),N=k.call(R,Array.prototype.concat),U=k.call(j,Array.prototype.splice),C=k.call(R,String.prototype.replace),L=k.call(R,String.prototype.slice),B=k.call(R,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,q=function(t,e){var r,n=t;if(F(D,n)&&(n="%"+(r=D[n])[0]+"%"),F(P,n)){var o=P[n];if(o===I&&(o=M(n)),void 0===o&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+t+" does not exist!")};return Pt=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,t))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=L(t,0,1),r=L(t,-1);if("%"===e&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return C(t,W,(function(t,e,r,o){n[n.length]=r?C(o,V,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=q("%"+n+"%",e),i=o.name,c=o.value,s=!1,f=o.alias;f&&(n=f[0],U(r,N([0,1],f)));for(var l=1,p=!0;l<r.length;l+=1){var y=r[l],h=L(y,0,1),d=L(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new a("property names with quotes must have matching quotes");if("constructor"!==y&&p||(s=!0),F(P,i="%"+(n+="."+y)+"%"))c=P[i];else if(null!=c){if(!(y in c)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(v&&l+1>=r.length){var m=v(c,y);c=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[y]}else p=F(c,y),c=c[y];p&&!s&&(P[i]=c)}}return c},Pt}function De(){if(Dt)return Mt;Dt=1;var t=Me(),e=Ie(),r=e([t("%String.prototype.indexOf%")]);return Mt=function(n,o){var i=t(n,!!o);return"function"==typeof i&&r(n,".prototype.")>-1?e([i]):i}}function ke(){if(Ft)return kt;Ft=1;var t=Me(),e=De(),r=te(),n=Yt(),o=t("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),u=e("Map.prototype.has",!0),c=e("Map.prototype.delete",!0),s=e("Map.prototype.size",!0);return kt=!!o&&function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+r(t))},delete:function(e){if(t){var r=c(t,e);return 0===s(t)&&(t=void 0),r}return!1},get:function(e){if(t)return i(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new o),a(t,e,r)}};return e}}function Fe(){if(Lt)return Ct;Lt=1;var t=Yt(),e=te(),r=ee(),n=ke(),o=function(){if(Ut)return Nt;Ut=1;var t=Me(),e=De(),r=te(),n=ke(),o=Yt(),i=t("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),u=e("WeakMap.prototype.set",!0),c=e("WeakMap.prototype.has",!0),s=e("WeakMap.prototype.delete",!0);return Nt=i?function(){var t,e,f={assert:function(t){if(!f.has(t))throw new o("Side channel does not contain "+r(t))},delete:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(t)return s(t,r)}else if(n&&e)return e.delete(r);return!1},get:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?a(t,r):e&&e.get(r)},has:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?c(t,r):!!e&&e.has(r)},set:function(r,o){i&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new i),u(t,r,o)):n&&(e||(e=n()),e.set(r,o))}};return f}:n}(),i=o||n||r;return Ct=function(){var r,n={assert:function(r){if(!n.has(r))throw new t("Side channel does not contain "+e(r))},delete:function(t){return!!r&&r.delete(t)},get:function(t){return r&&r.get(t)},has:function(t){return!!r&&r.has(t)},set:function(t,e){r||(r=i()),r.set(t,e)}};return n}}function Ne(){if(Wt)return Bt;Wt=1;var t=String.prototype.replace,e=/%20/g,r="RFC3986";return Bt={default:r,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}}function Ue(){if(qt)return Vt;qt=1;var t=Ne(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},i=1024;return Vt={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],o=0;o<e.length;++o)for(var i=e[o],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],f=a[s];"object"==typeof f&&null!==f&&-1===n.indexOf(f)&&(e.push({obj:a,prop:s}),n.push(f))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(e,r,o,a,u){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===o)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var s="",f=0;f<c.length;f+=i){for(var l=c.length>=i?c.slice(f,f+i):c,p=[],y=0;y<l.length;++y){var h=l.charCodeAt(y);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||u===t.RFC1738&&(40===h||41===h)?p[p.length]=l.charAt(y):h<128?p[p.length]=n[h]:h<2048?p[p.length]=n[192|h>>6]+n[128|63&h]:h<55296||h>=57344?p[p.length]=n[224|h>>12]+n[128|h>>6&63]+n[128|63&h]:(y+=1,h=65536+((1023&h)<<10|1023&l.charCodeAt(y)),p[p.length]=n[240|h>>18]+n[128|h>>12&63]+n[128|h>>6&63]+n[128|63&h])}s+=p.join("")}return s},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(r(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(e(t[o]));return n}return e(t)},merge:function t(n,i,a){if(!i)return n;if("object"!=typeof i&&"function"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!e.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var u=n;return r(n)&&!r(i)&&(u=o(n,a)),r(n)&&r(i)?(i.forEach((function(r,o){if(e.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=t(i,r,a):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return e.call(r,n)?r[n]=t(r[n],o,a):r[n]=o,r}),u)}},Vt}function Ce(){if(zt)return Ht;zt=1;var t=Fe(),e=Ue(),r=Ne(),n=Object.prototype.hasOwnProperty,o={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Array.isArray,a=Array.prototype.push,u=function(t,e){a.apply(t,i(e)?e:[e])},c=Date.prototype.toISOString,s=r.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:s,formatter:r.formatters[s],indices:!1,serializeDate:function(t){return c.call(t)},skipNulls:!1,strictNullHandling:!1},l={},p=function r(n,o,a,c,s,p,y,h,d,m,g,v,b,w,_,E,O,S){for(var A,j=n,R=S,I=0,x=!1;void 0!==(R=R.get(l))&&!x;){var P=R.get(n);if(I+=1,void 0!==P){if(P===I)throw new RangeError("Cyclic object value");x=!0}void 0===R.get(l)&&(I=0)}if("function"==typeof m?j=m(o,j):j instanceof Date?j=b(j):"comma"===a&&i(j)&&(j=e.maybeMap(j,(function(t){return t instanceof Date?b(t):t}))),null===j){if(p)return d&&!E?d(o,f.encoder,O,"key",w):o;j=""}if("string"==typeof(A=j)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||e.isBuffer(j))return d?[_(E?o:d(o,f.encoder,O,"key",w))+"="+_(d(j,f.encoder,O,"value",w))]:[_(o)+"="+_(String(j))];var T,M=[];if(void 0===j)return M;if("comma"===a&&i(j))E&&d&&(j=e.maybeMap(j,d)),T=[{value:j.length>0?j.join(",")||null:void 0}];else if(i(m))T=m;else{var D=Object.keys(j);T=g?D.sort(g):D}var k=h?String(o).replace(/\./g,"%2E"):String(o),F=c&&i(j)&&1===j.length?k+"[]":k;if(s&&i(j)&&0===j.length)return F+"[]";for(var N=0;N<T.length;++N){var U=T[N],C="object"==typeof U&&U&&void 0!==U.value?U.value:j[U];if(!y||null!==C){var L=v&&h?String(U).replace(/\./g,"%2E"):String(U),B=i(j)?"function"==typeof a?a(F,L):F:F+(v?"."+L:"["+L+"]");S.set(n,I);var W=t();W.set(l,S),u(M,r(C,B,a,c,s,p,y,h,"comma"===a&&E&&i(j)?null:d,m,g,v,b,w,_,E,O,W))}}return M};return Ht=function(e,a){var c,s=e,l=function(t){if(!t)return f;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=r.default;if(void 0!==t.format){if(!n.call(r.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var u,c=r.formatters[a],s=f.filter;if(("function"==typeof t.filter||i(t.filter))&&(s=t.filter),u=t.arrayFormat in o?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===t.allowDots?!0===t.encodeDotInKeys||f.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:u,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:a,formatter:c,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(a);"function"==typeof l.filter?s=(0,l.filter)("",s):i(l.filter)&&(c=l.filter);var y=[];if("object"!=typeof s||null===s)return"";var h=o[l.arrayFormat],d="comma"===h&&l.commaRoundTrip;c||(c=Object.keys(s)),l.sort&&c.sort(l.sort);for(var m=t(),g=0;g<c.length;++g){var v=c[g],b=s[v];l.skipNulls&&null===b||u(y,p(b,v,h,d,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var w=y.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""},Ht}function Le(){if(Kt)return Gt;Kt=1;var t=Ue(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},i=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},a=function(r,n,o,a){if(r){var u=o.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,c=/(\[[^[\]]*])/g,s=o.depth>0&&/(\[[^[\]]*])/.exec(u),f=s?u.slice(0,s.index):u,l=[];if(f){if(!o.plainObjects&&e.call(Object.prototype,f)&&!o.allowPrototypes)return;l.push(f)}for(var p=0;o.depth>0&&null!==(s=c.exec(u))&&p<o.depth;){if(p+=1,!o.plainObjects&&e.call(Object.prototype,s[1].slice(1,-1))&&!o.allowPrototypes)return;l.push(s[1])}if(s){if(!0===o.strictDepth)throw new RangeError("Input depth exceeded depth option of "+o.depth+" and strictDepth is true");l.push("["+u.slice(s.index)+"]")}return function(e,r,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var u=e.slice(0,-1).join("");a=Array.isArray(r)&&r[u]?r[u].length:0}for(var c=o?r:i(r,n,a),s=e.length-1;s>=0;--s){var f,l=e[s];if("[]"===l&&n.parseArrays)f=n.allowEmptyArrays&&(""===c||n.strictNullHandling&&null===c)?[]:t.combine([],c);else{f=n.plainObjects?{__proto__:null}:{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,y=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(y,10);n.parseArrays||""!==y?!isNaN(h)&&l!==y&&String(h)===y&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(f=[])[h]=c:"__proto__"!==y&&(f[y]=c):f={0:c}}c=f}return c}(l,n,o,a)}};return Gt=function(u,c){var s=function(e){if(!e)return n;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=void 0===e.charset?n.charset:e.charset,o=void 0===e.duplicates?n.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||n.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:n.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:n.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:n.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:n.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:n.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:n.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:n.decoder,delimiter:"string"==typeof e.delimiter||t.isRegExp(e.delimiter)?e.delimiter:n.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:n.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:n.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:n.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:n.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(c);if(""===u||null==u)return s.plainObjects?{__proto__:null}:{};for(var f="string"==typeof u?function(a,u){var c={__proto__:null},s=u.ignoreQueryPrefix?a.replace(/^\?/,""):a;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var f=u.parameterLimit===1/0?void 0:u.parameterLimit,l=s.split(u.delimiter,u.throwOnLimitExceeded?f+1:f);if(u.throwOnLimitExceeded&&l.length>f)throw new RangeError("Parameter limit exceeded. Only "+f+" parameter"+(1===f?"":"s")+" allowed.");var p,y=-1,h=u.charset;if(u.charsetSentinel)for(p=0;p<l.length;++p)0===l[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[p]?h="utf-8":"utf8=%26%2310003%3B"===l[p]&&(h="iso-8859-1"),y=p,p=l.length);for(p=0;p<l.length;++p)if(p!==y){var d,m,g=l[p],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=u.decoder(g,n.decoder,h,"key"),m=u.strictNullHandling?null:""):(d=u.decoder(g.slice(0,b),n.decoder,h,"key"),m=t.maybeMap(i(g.slice(b+1),u,r(c[d])?c[d].length:0),(function(t){return u.decoder(t,n.decoder,h,"value")}))),m&&u.interpretNumericEntities&&"iso-8859-1"===h&&(m=o(String(m))),g.indexOf("[]=")>-1&&(m=r(m)?[m]:m);var w=e.call(c,d);w&&"combine"===u.duplicates?c[d]=t.combine(c[d],m):w&&"last"!==u.duplicates||(c[d]=m)}return c}(u,s):u,l=s.plainObjects?{__proto__:null}:{},p=Object.keys(f),y=0;y<p.length;++y){var h=p[y],d=a(h,f[h],s,"string"==typeof u);l=t.merge(l,d,s)}return!0===s.allowSparse?l:t.compact(l)}}function Be(){if(Qt)return $t;Qt=1;var t=Ce(),e=Le();return $t={formats:Ne(),parse:e,stringify:t}}var We=Xt(Be());const Ve=!("undefined"==typeof window||!window.document||!window.document.createElement);var qe=null;const He={},ze={},Ge="undefined"!=typeof window?window:null,Ke=e.ref($e());function $e(){return(Ge?.location.search||"").replace(/^\?/,"")}const Qe=(t,r)=>{f&&!Ve&&console.error("useUrlState expected to used in browser");const{navigateMode:n="push",parseOptions:o,stringifyOptions:i}=r||{},a={...He,...o},c={...ze,...i},s=e.ref("function"==typeof t?t():t||{}),p=qe?.useRoute(),y=qe?.useRouter(),h=u((()=>{let t=$e();return qe&&(t=We.stringify(p?.query,c)),We.parse(t,a)}),[Ke,()=>p?.query]),d=u((()=>({...s.value,...h.value})),[h]);return[d,l((t=>{const e="function"==typeof t?t(d.value):t,r=new URL(Ge?.location.href||""),o={...h.value,...e},i=We.stringify(o,c)||"";r.search=i,Ke.value=i,qe?y["replace"===n?"replace":"push"]({path:p.path,query:o}):Ge&&Ge.history["replace"===n?"replaceState":"pushState"](Ge.history.state,document.title,r.toString())}))]};Qe.use=t=>qe=t;const Je=e.ref; /*! js-cookie v3.0.5 | MIT */function Xe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var Ye=function t(e,r){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=Xe({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=t+"="+e.write(n,t)+i}}return Object.create({set:n,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=e.read(a,u),t===u)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){n(t,"",Xe({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,Xe({},this.attributes,e))},withConverter:function(e){return t(Xe({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});var Ze;function tr(t,e){if(!Ve)return;if(!t)return e;let r;return r=c(t)?t():t,r}function er(t){return Array.isArray(t)?t:null!=t?[t]:[]}Ze||(Ze=1,function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=o(t);e;)e=o(t=e.ownerDocument);return t}(),e=[],r=null,n=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(t,r){n=t&&r?l(t,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),r},a._resetCrossOriginUpdater=function(){r=null,n=null},a.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},a.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]}))},a.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},a.prototype._monitorIntersections=function(e){var r=e.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=r.setInterval(n,this.POLL_INTERVAL):(u(r,"resize",n,!0),u(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(a=new r.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),c(t,"resize",n,!0)),c(e,"scroll",n,!0),a&&a.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=s){var f=o(e);f&&this._monitorIntersections(f.ownerDocument)}}},a.prototype._unmonitorIntersections=function(e){var r=this._monitoringDocuments.indexOf(e);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||t,i=this._observationTargets.some((function(t){var r=t.element.ownerDocument;if(r==e)return!0;for(;r&&r!=n;){var i=o(r);if((r=i&&i.ownerDocument)==e)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),a(),e!=n){var u=o(e);u&&this._unmonitorIntersections(u.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},a.prototype._checkForIntersections=function(){if(this.root||!r||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,a=s(o),u=this._rootContainsTarget(o),c=n.entry,f=t&&u&&this._computeTargetAndRootIntersection(o,a,e),l=null;this._rootContainsTarget(o)?r&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=n.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:l,intersectionRect:f});c?t&&u?this._hasCrossedThreshold(c,p)&&this._queuedEntries.push(p):c&&c.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(e,o,i){if("none"!=window.getComputedStyle(e).display){for(var a,u,c,f,p,h,d,m,g=o,v=y(e),b=!1;!b&&v;){var w=null,_=1==v.nodeType?window.getComputedStyle(v):{};if("none"==_.display)return null;if(v==this.root||9==v.nodeType)if(b=!0,v==this.root||v==t)r&&!this.root?!n||0==n.width&&0==n.height?(v=null,w=null,g=null):w=n:w=i;else{var E=y(v),O=E&&s(E),S=E&&this._computeTargetAndRootIntersection(E,O,i);O&&S?(v=E,w=l(O,S)):(v=null,g=null)}else{var A=v.ownerDocument;v!=A.body&&v!=A.documentElement&&"visible"!=_.overflow&&(w=s(v))}if(w&&(a=w,u=g,c=void 0,f=void 0,p=void 0,h=void 0,d=void 0,m=void 0,c=Math.max(a.top,u.top),f=Math.min(a.bottom,u.bottom),p=Math.max(a.left,u.left),h=Math.min(a.right,u.right),m=f-c,g=(d=h-p)>=0&&m>=0&&{top:c,bottom:f,left:p,right:h,width:d,height:m}||null),!g)break;v=v&&y(v)}return g}},a.prototype._getRootRect=function(){var e;if(this.root&&!h(this.root))e=s(this.root);else{var r=h(this.root)?this.root:t,n=r.documentElement,o=r.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},a.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100})),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},a.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==r||i==n||i<r!=i<n)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},a.prototype._rootContainsTarget=function(e){var r=this.root&&(this.root.ownerDocument||this.root)||t;return p(r,e)&&(!this.root||r==e.ownerDocument)},a.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},a.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=f(t.rootBounds),this.boundingClientRect=f(t.boundingClientRect),this.intersectionRect=f(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function a(t,e){var