mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
6 lines
11 KiB
TypeScript
6 lines
11 KiB
TypeScript
|
// Loaded from https://cdn.esm.sh/v44/qs@6.9.4/es2015/qs.js
|
||
|
|
||
|
|
||
|
/* esm.sh - esbuild bundle(qs@6.9.4) es2015 production */
|
||
|
var Z=Object.create;var A=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var ie=n=>A(n,"__esModule",{value:!0});var O=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var ae=(n,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of re(e))!ne.call(n,t)&&t!=="default"&&A(n,t,{get:()=>e[t],enumerable:!(r=ee(e,t))||r.enumerable});return n},R=n=>ae(ie(A(n!=null?Z(te(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var N=O((qe,V)=>{"use strict";var C=Object.prototype.hasOwnProperty,b=Array.isArray,v=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),fe=function(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(b(t)){for(var a=[],f=0;f<t.length;++f)typeof t[f]!="undefined"&&a.push(t[f]);r.obj[r.prop]=a}}},q=function(e,r){for(var t=r&&r.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]!="undefined"&&(t[a]=e[a]);return t},le=function n(e,r,t){if(!r)return e;if(typeof r!="object"){if(b(e))e.push(r);else if(e&&typeof e=="object")(t&&(t.plainObjects||t.allowPrototypes)||!C.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var a=e;return b(e)&&!b(r)&&(a=q(e,t)),b(e)&&b(r)?(r.forEach(function(f,l){if(C.call(e,l)){var i=e[l];i&&typeof i=="object"&&f&&typeof f=="object"?e[l]=n(i,f,t):e.push(f)}else e[l]=f}),e):Object.keys(r).reduce(function(f,l){var i=r[l];return C.call(f,l)?f[l]=n(f[l],i,t):f[l]=i,f},a)},ue=function(e,r){return Object.keys(r).reduce(function(t,a){return t[a]=r[a],t},e)},oe=function(n,e,r){var t=n.replace(/\+/g," ");if(r==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch(a){return t}},ce=function(e,r,t){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),t==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var f="",l=0;l<a.length;++l){var i=a.charCodeAt(l);if(i===45||i===46||i===95||i===126||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){f+=a.charAt(l);continue}if(i<128){f=f+v[i];continue}if(i<2048){f=f+(v[192|i>>6]+v[128|i&63]);continue}if(i<55296||i>=57344){f=f+(v[224|i>>12]+v[128|i>>6&63]+v[128|i&63]);continue}l+=1,i=65536+((i&1023)<<10|a.charCodeAt(l)&1023),f+=v[240|i>>18]+v[128|i>>12&63]+v[128|i>>6&63]+v[128|i&63]}return f},se=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],a=0;a<r.length;++a)for(var f=r[a],l=f.obj[f.prop],i=Object.keys(l),u=0;u<i.length;++u){var c=i[u],s=l[c];typeof s=="object"&&s!==null&&t.indexOf(s)===-1&&(r.push({obj:l,prop:c}),t.push(s))}return fe(r),e},de=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ye=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},pe=function(e,r){return[].concat(e,r)},me=function(e,r){if(b(e)){for(var t=[],a=0;a<e.length;a+=1)t.push(r(e[a]));return t}return r(e)};V.exports={arrayToObject:q,assign:ue,combine:pe,compact:se,decode:oe,encode:ce,isBuffer:ye,isRegExp:de,maybeMap:me,merge:le}});var Q=O((Ve,k)=>{"use strict";var he=String.prototype.replace,ve=/%20/g,be=N(),I={RFC1738:"RFC1738",RFC3986:"RFC3986"};k.exports=be.assign({default:I.RFC3986,formatters:{RFC1738:function(n){return he.call(n,ve,"+")},RFC3986:function(n){return String(n)}}},I)});var $=O((Ie,_)=>{"use strict";var T=N(),j=Q(),ge=Object.prototype.hasOwnProperty,M={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},g=Array.isArray,xe=Array.prototype.push,U=function(n,e){xe.apply(n,g(e)?e:[e])},Oe=Date.prototype.toISOString,K=j.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:T.encode,encodeValuesOnly:!1,format:K,formatter:j.formatters[K],indices:!1,serializeDate:function(e){return O
|