@agentlang/lstudio 0.5.7 → 0.5.8
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/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js +1 -0
- package/assets/{_commonjs-dynamic-modules-D244begT.js → _commonjs-dynamic-modules-CBoS8n4P.js} +1 -1
- package/assets/example_app.png +0 -0
- package/assets/index-BJBOx-Z---hbiLl7B.js +5 -0
- package/assets/{index-QhSmQuQt.js → index-BLPvWbNs.js} +1 -1
- package/assets/{index-ruSRuF6L-BjzIBLlQ.js → index-BdO96dMW-BjEBMMER.js} +5 -5
- package/assets/index-BeE6X42x.js +1 -0
- package/assets/index-Bg7mjqf1.js +1 -0
- package/assets/{index-DzXvkWz5.js → index-BitrXVkV.js} +1 -1
- package/assets/index-BqmQ6R7D-Cvh6Y-cG.js +1 -0
- package/assets/{index-BvJIpPZM.js → index-C4ZJ2fWH.js} +1 -1
- package/assets/index-CTxlCoxU.js +1 -0
- package/assets/index-ChvoNxcO.js +5 -0
- package/assets/index-CtaoM3Uk.css +1 -0
- package/assets/{index-D9hvpHrT-D460pOJZ.js → index-DCVpGHYR-DncY2IUl.js} +7 -7
- package/assets/index-DTNuphFO-Bf5Ad1xs.js +17 -0
- package/assets/{index-DuUQBJXO-gNsOEp1C.js → index-DYmn2gQ6-CnjFa625.js} +1 -1
- package/assets/index-MQ64-2HE-2GyteIUG.js +6 -0
- package/assets/{index-Bxvbin5N.js → index-uGY2TZXj.js} +10471 -1897
- package/assets/index.browser-BHPvGrwi-6Mh8eUw-.js +1 -0
- package/assets/index.browser-LD9_MBUR.js +6 -0
- package/assets/loadCognitoIdentity-CbXsi3Qd.js +1 -0
- package/assets/loadSts-DomLYfvn.js +1 -0
- package/assets/{normalizeProvider-Cd9_AiS_.js → normalizeProvider-CtDY37Q6.js} +1 -1
- package/assets/replService-CbuM5xLC.js +1 -0
- package/assets/resolveDefaultsModeConfig-ogrP3dYF.js +15 -0
- package/assets/{winston-Dk1WXlDf--OwDrr6q.js → winston-BeL9Vq-B-C8Yb-h9y.js} +25 -25
- package/assets/winston-Bz1F2xmd-D4C41xs-.js +1 -0
- package/assets/{winston-BWsrMlta.js → winston-CnYg22C6.js} +2 -2
- package/assets/{winston-BvOMKj10.js → winston-DnkiK_Cl.js} +1 -1
- package/index.html +9 -7
- package/package.json +1 -1
- package/assets/AwsJson1_1Protocol-BPKAibNb.js +0 -1
- package/assets/AwsQueryProtocol-gcsdfhfo.js +0 -1
- package/assets/XmlShapeDeserializer-yfMUWnPw.js +0 -1
- package/assets/_commonjs-dynamic-modules-B90KZyeo-MqqgM5Sj.js +0 -1
- package/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +0 -1
- package/assets/aws-BDH7ihg3.js +0 -1
- package/assets/documentFetcher-DXduTBqD-jqdP0czN.js +0 -67
- package/assets/documentFetcher-Ds-FwFaK.js +0 -8
- package/assets/index-BWkXARMt.js +0 -1
- package/assets/index-CDKpgEyj-tyrSWl01.js +0 -8753
- package/assets/index-CZHYN75I.css +0 -1
- package/assets/index-Cv6PsiG7.js +0 -1
- package/assets/index-DGSGqHDe.js +0 -1
- package/assets/index-DRgW1--O-Be3NpfgF.js +0 -17
- package/assets/index-Dk98TczE-BtSqF03o.js +0 -1
- package/assets/index-_duzuPdC.js +0 -15
- package/assets/index.browser-DC-BI9vG.js +0 -5
- package/assets/index.browser-yI_W1hK0-C1Oinehc.js +0 -1
- package/assets/loadCognitoIdentity-C6X581JO.js +0 -1
- package/assets/loadSts-BLVzhgX4.js +0 -1
- package/assets/noAuth-Cp7LDRaC.js +0 -1
- package/assets/pdf-parse.es-Bg6uvNNe-3L3fe-Mc.js +0 -26
- package/assets/pdf-parse.es-CO6QlkPs.js +0 -26
- package/assets/replService-CPKXCVUs.js +0 -1
- package/assets/sdk-stream-mixin.browser-Dycc9CbH.js +0 -2
- package/assets/winston-CnOlwptw-BXt6VwZK.js +0 -1
- /package/assets/{index-BTpRe6xv-w-5JgxLH.js → index-Cd6-wDh7-w-5JgxLH.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{N as m}from"./index-BqmQ6R7D-Cvh6Y-cG.js";import{v as f}from"./winston-BeL9Vq-B-C8Yb-h9y.js";import"util";import"./index-MQ64-2HE-2GyteIUG.js";import"os";import"./index-6mKfgpcs-DsgiI2lM.js";import"fs";import"path";import"zlib";import"http";import"https";function a(e,p){for(var o=0;o<p.length;o++){const t=p[o];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=m(n),P=a({__proto__:null,default:c},[n]);export{P as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ae from"util";import qe from"os";import{
|
|
1
|
+
import ae from"util";import qe from"os";import{r as Xo,a as we,b as ea,c as ve}from"./index-uGY2TZXj.js";import{a as ta,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import bo from"fs";import ra from"path";import na from"zlib";import ia from"http";import oa from"https";var gt={},De={},mt,tn;function oe(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
2
2
|
Found: `.concat(f.toString().split(`
|
|
3
3
|
`)[0],`
|
|
4
4
|
`)]),Error.captureStackTrace(o,s),o}return p(s,h),u(s)})(a(Error));return mt=function(h){if(h.length>2)throw new E(h);function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=o}s.prototype.transform=h;function f(o){return new s(o)}return f.Format=s,f},mt}var Te={exports:{}},bt={exports:{}},_t={exports:{}},wt={exports:{}},rn;function aa(){return rn||(rn=1,(function(e){var u={};e.exports=u;var m={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(m).forEach(function(R){var g=m[R],c=u[R]=[];c.open="\x1B["+g[0]+"m",c.close="\x1B["+g[1]+"m"})})(wt)),wt.exports}var St,nn;function ua(){return nn||(nn=1,St=function(e,u){u=u||process.argv||[];var m=u.indexOf("--"),R=/^-{1,2}/.test(e)?"":"--",g=u.indexOf(R+e);return g!==-1&&(m===-1?!0:g<m)}),St}var Et,on;function sa(){if(on)return Et;on=1;var e={},u=ua(),m=e,R=void 0;u("no-color")||u("no-colors")||u("color=false")?R=!1:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(R=!0),"FORCE_COLOR"in m&&(R=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0);function g(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function c(a){if(R===!1)return 0;if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2;if(a&&!a.isTTY&&R!==!0)return 0;var i=R?1:0;if("CI"in m)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(b){return b in m})||m.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var v=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return v>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:(m.TERM==="dumb",i)}function p(a){var i=c(a);return g(i)}return Et={supportsColor:p,stdout:p(process.stdout),stderr:p(process.stderr)},Et}var Rt={exports:{}},an;function fa(){return an||(an=1,(function(e){e.exports=function(m,R){var g="";m=m||"Run the trap, drop the bass",m=m.split("");var c={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return m.forEach(function(p){p=p.toLowerCase();var a=c[p]||[" "],i=Math.floor(Math.random()*a.length);typeof c[p]<"u"?g+=c[p][i]:g+=p}),g}})(Rt)),Rt.exports}var Ot={exports:{}},un;function la(){return un||(un=1,(function(e){e.exports=function(m,R){m=m||" he is here ";var g={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},c=[].concat(g.up,g.down,g.mid);function p(v){var b=Math.floor(Math.random()*v);return b}function a(v){var b=!1;return c.filter(function(O){b=O===v}),b}function i(v,b){var O="",y,E;b=b||{},b.up=typeof b.up<"u"?b.up:!0,b.mid=typeof b.mid<"u"?b.mid:!0,b.down=typeof b.down<"u"?b.down:!0,b.size=typeof b.size<"u"?b.size:"maxi",v=v.split("");for(E in v)if(!a(E)){switch(O=O+v[E],y={up:0,down:0,mid:0},b.size){case"mini":y.up=p(8),y.mid=p(2),y.down=p(8);break;case"maxi":y.up=p(16)+3,y.mid=p(4)+1,y.down=p(64)+3;break;default:y.up=p(8)+1,y.mid=p(6)/2,y.down=p(8)+1;break}var h=["up","mid","down"];for(var s in h)for(var f=h[s],o=0;o<=y[f];o++)b[f]&&(O=O+g[f][p(g[f].length)])}return O}return i(m,R)}})(Ot)),Ot.exports}var Pt={exports:{}},sn;function ca(){return sn||(sn=1,(function(e){e.exports=function(u){return function(m,R,g){if(m===" ")return m;switch(R%3){case 0:return u.red(m);case 1:return u.white(m);case 2:return u.blue(m)}}}})(Pt)),Pt.exports}var Tt={exports:{}},fn;function da(){return fn||(fn=1,(function(e){e.exports=function(u){return function(m,R,g){return R%2===0?m:u.inverse(m)}}})(Tt)),Tt.exports}var jt={exports:{}},ln;function ha(){return ln||(ln=1,(function(e){e.exports=function(u){var m=["red","yellow","green","blue","magenta"];return function(R,g,c){return R===" "?R:u[m[g++%m.length]](R)}}})(jt)),jt.exports}var Mt={exports:{}},cn;function pa(){return cn||(cn=1,(function(e){e.exports=function(u){var m=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(R,g,c){return R===" "?R:u[m[Math.round(Math.random()*(m.length-2))]](R)}}})(Mt)),Mt.exports}var dn;function va(){return dn||(dn=1,(function(e){var u={};e.exports=u,u.themes={};var m=ae,R=u.styles=aa(),g=Object.defineProperties,c=new RegExp(/[\r\n]+/g);u.supportsColor=sa().supportsColor,typeof u.enabled>"u"&&(u.enabled=u.supportsColor()!==!1),u.enable=function(){u.enabled=!0},u.disable=function(){u.enabled=!1},u.stripColors=u.strip=function(s){return(""+s).replace(/\x1B\[\d+m/g,"")},u.stylize=function(f,o){if(!u.enabled)return f+"";var n=R[o];return!n&&o in u?u[o](f):n.open+f+n.close};var p=/[|\\{}()[\]^$+*?.]/g,a=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(p,"\\$&")};function i(s){var f=function o(){return O.apply(o,arguments)};return f._styles=s,f.__proto__=b,f}var v=(function(){var s={};return R.grey=R.gray,Object.keys(R).forEach(function(f){R[f].closeRe=new RegExp(a(R[f].close),"g"),s[f]={get:function(){return i(this._styles.concat(f))}}}),s})(),b=g(function(){},v);function O(){var s=Array.prototype.slice.call(arguments),f=s.map(function(_){return _!=null&&_.constructor===String?_:m.inspect(_)}).join(" ");if(!u.enabled||!f)return f;for(var o=f.indexOf(`
|
|
@@ -34,4 +34,4 @@ Found: ${m.toString().split(`
|
|
|
34
34
|
`)[0]}
|
|
35
35
|
`),Error.captureStackTrace(this,e)}}return Wr=u=>{if(u.length>2)throw new e(u);function m(g={}){this.options=g}m.prototype.transform=u;function R(g){return new m(g)}return R.Format=m,R},Wr}var Hr,po;function xu(){if(po)return Hr;po=1;const e=Lu(),{MESSAGE:u}=ee(),m=Ce();function R(g,c){return typeof c=="bigint"?c.toString():c}return Hr=e((g,c)=>{const p=m.configure(c);return g[u]=p(g,c.replacer||R,c.space),g}),Hr}var Ur,vo;function en(){if(vo)return Ur;vo=1;function e(L,N,B){return(N=c(N))in L?Object.defineProperty(L,N,{value:B,enumerable:!0,configurable:!0,writable:!0}):L[N]=B,L}function u(L){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},u(L)}function m(L,N){if(!(L instanceof N))throw new TypeError("Cannot call a class as a function")}function R(L,N){for(var B=0;B<N.length;B++){var D=N[B];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(L,c(D.key),D)}}function g(L,N,B){return N&&R(L.prototype,N),Object.defineProperty(L,"prototype",{writable:!1}),L}function c(L){var N=p(L,"string");return u(N)=="symbol"?N:N+""}function p(L,N){if(u(L)!="object"||!L)return L;var B=L[Symbol.toPrimitive];if(B!==void 0){var D=B.call(L,N);if(u(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)}function a(L,N,B){return N=O(N),i(L,b()?Reflect.construct(N,B||[],O(L).constructor):N.apply(L,B))}function i(L,N){if(N&&(u(N)=="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(L)}function v(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function b(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b=function(){return!!L})()}function O(L){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},O(L)}function y(L,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(N&&N.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),N&&E(L,N)}function E(L,N){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,D){return B.__proto__=D,B},E(L,N)}var h=Re(),s=h.Stream,f=h.Transform,o=Xr(),n=ee(),l=n.LEVEL,d=n.SPLAT,_=Vo(),P=Jo(),M=Zo(),j=ju(),T=Mu(),C=qo(),W=C.warn,k=Qr(),A=/%[scdjifoO%]/g,$=(function(L){function N(B){var D;return m(this,N),D=a(this,N,[{objectMode:!0}]),D.configure(B),D}return y(N,L),g(N,[{key:"child",value:function(D){var F=this;return Object.create(F,{write:{value:function(Y){var J=Object.assign({},D,Y);Y instanceof Error&&(J.stack=Y.stack,J.message=Y.message,J.cause=Y.cause),F.write(J)}}})}},{key:"configure",value:function(){var D=this,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=F.silent,Y=F.format,J=F.defaultMeta,U=F.levels,Z=F.level,S=Z===void 0?"info":Z,w=F.exitOnError,q=w===void 0?!0:w,H=F.transports,V=F.colors,t=F.emitErrs,r=F.formatters,x=F.padLevels,I=F.rewriters,X=F.stripColors,K=F.exceptionHandlers,Q=F.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=G,this.format=Y||this.format||xu()(),this.defaultMeta=J||null,this.levels=U||this.levels||k.npm.levels,this.level=S,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new P(this),this.rejections=new M(this),this.profilers={},this.exitOnError=q,H&&(H=Array.isArray(H)?H:[H],H.forEach(function(te){return D.add(te)})),V||t||r||x||I||X)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
36
36
|
`));K&&this.exceptions.handle(K),Q&&this.rejections.handle(Q)}},{key:"getHighestLogLevel",value:function(){var D=this,F=z(this.levels,this.level);return!this.transports||this.transports.length===0?F:this.transports.reduce(function(G,Y){var J=z(D.levels,Y.level);return J!==null&&J>G?J:G},F)}},{key:"isLevelEnabled",value:function(D){var F=this,G=z(this.levels,D);if(G===null)return!1;var Y=z(this.levels,this.level);if(Y===null)return!1;if(!this.transports||this.transports.length===0)return Y>=G;var J=this.transports.findIndex(function(U){var Z=z(F.levels,U.level);return Z===null&&(Z=Y),Z>=G});return J!==-1}},{key:"log",value:function(D,F){for(var G=arguments.length,Y=new Array(G>2?G-2:0),J=2;J<G;J++)Y[J-2]=arguments[J];if(arguments.length===1)return D[l]=D.level,this._addDefaultMeta(D),this.write(D),this;if(arguments.length===2)return F&&u(F)==="object"?(F[l]=F.level=D,this._addDefaultMeta(F),this.write(F),this):(F=e(e(e({},l,D),"level",D),"message",F),this._addDefaultMeta(F),this.write(F),this);var U=Y[0];if(u(U)==="object"&&U!==null){var Z=F&&F.match&&F.match(A);if(!Z){var S=Object.assign({},this.defaultMeta,U,e(e(e(e({},l,D),d,Y),"level",D),"message",F));return U.message&&(S.message="".concat(S.message," ").concat(U.message)),U.stack&&(S.stack=U.stack),U.cause&&(S.cause=U.cause),this.write(S),this}}return this.write(Object.assign({},this.defaultMeta,e(e(e(e({},l,D),d,Y),"level",D),"message",F))),this}},{key:"_transform",value:function(D,F,G){if(this.silent)return G();D[l]||(D[l]=D.level),!this.levels[D[l]]&&this.levels[D[l]]!==0&&console.error("[winston] Unknown logger level: %s",D[l]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",D);try{this.push(this.format.transform(D,this.format.options))}finally{this._writableState.sync=!1,G()}}},{key:"_final",value:function(D){var F=this.transports.slice();o(F,function(G,Y){if(!G||G.finished)return setImmediate(Y);G.once("finish",Y),G.end()},D)}},{key:"add",value:function(D){var F=!_(D)||D.log.length>2?new j({transport:D}):D;if(!F._writableState||!F._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",F),this._onEvent("warn",F),this.pipe(F),D.handleExceptions&&this.exceptions.handle(),D.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(D){if(!D)return this;var F=D;return(!_(D)||D.log.length>2)&&(F=this.transports.filter(function(G){return G.transport===D})[0]),F&&this.unpipe(F),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){W.deprecated("setLevels")}},{key:"query",value:function(D,F){typeof D=="function"&&(F=D,D={}),D=D||{};var G={},Y=Object.assign({},D.query||{});function J(Z,S){D.query&&typeof Z.formatQuery=="function"&&(D.query=Z.formatQuery(Y)),Z.query(D,function(w,q){if(w)return S(w);typeof Z.formatResults=="function"&&(q=Z.formatResults(q,D.format)),S(null,q)})}function U(Z,S){J(Z,function(w,q){S&&(q=w||q,q&&(G[Z.name]=q),S()),S=null})}o(this.transports.filter(function(Z){return!!Z.query}),U,function(){return F(null,G)})}},{key:"stream",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=new s,G=[];return F._streams=G,F.destroy=function(){for(var Y=G.length;Y--;)G[Y].destroy()},this.transports.filter(function(Y){return!!Y.stream}).forEach(function(Y){var J=Y.stream(D);J&&(G.push(J),J.on("log",function(U){U.transport=U.transport||[],U.transport.push(Y.name),F.emit("log",U)}),J.on("error",function(U){U.transport=U.transport||[],U.transport.push(Y.name),F.emit("error",U)}))}),F}},{key:"startTimer",value:function(){return new T(this)}},{key:"profile",value:function(D){var F=Date.now();if(this.profilers[D]){var G=this.profilers[D];delete this.profilers[D];for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),U=1;U<Y;U++)J[U-1]=arguments[U];typeof J[J.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),J.pop());var Z=u(J[J.length-1])==="object"?J.pop():{};return Z.level=Z.level||"info",Z.durationMs=F-G,Z.message=Z.message||D,this.write(Z)}return this.profilers[D]=F,this}},{key:"handleExceptions",value:function(){var D;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(D=this.exceptions).handle.apply(D,arguments)}},{key:"unhandleExceptions",value:function(){var D;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(D=this.exceptions).unhandle.apply(D,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
37
|
-
`))}},{key:"_onEvent",value:function(D,F){function G(Y){D==="error"&&!this.transports.includes(F)&&this.add(F),this.emit(D,Y,F)}F["__winston"+D]||(F["__winston"+D]=G.bind(this),F.on(D,F["__winston"+D]))}},{key:"_addDefaultMeta",value:function(D){this.defaultMeta&&Object.assign(D,this.defaultMeta)}}])})(f);function z(L,N){var B=L[N];return!B&&B!==0?null:B}return Object.defineProperty($.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var N=this._readableState.pipes;return Array.isArray(N)?N:[N].filter(Boolean)}}),Ur=$,Ur}var $r,yo;function Qo(){if(yo)return $r;yo=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(f)}function u(f,o,n){return Object.defineProperty(f,"prototype",{writable:!1}),f}function m(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function R(f,o,n){return o=a(o),g(f,p()?Reflect.construct(o,n||[],a(f).constructor):o.apply(f,n))}function g(f,o){if(o&&(e(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(f)}function c(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function p(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p=function(){return!!f})()}function a(f){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},a(f)}function i(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),o&&v(f,o)}function v(f,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},v(f,o)}var b=ee(),O=b.LEVEL,y=Qr(),E=en(),h=vt()("winston:create-logger");function s(f){return"is"+f.charAt(0).toUpperCase()+f.slice(1)+"Enabled"}return $r=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.levels=f.levels||y.npm.levels;var o=(function(l){function d(_){return m(this,d),R(this,d,[_])}return i(d,l),u(d)})(E),n=new o(f);return Object.keys(f.levels).forEach(function(l){if(h('Define prototype method for "%s"',l),l==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}o.prototype[l]=function(){for(var d=this||n,_=arguments.length,P=new Array(_),M=0;M<_;M++)P[M]=arguments[M];if(P.length===1){var j=P[0],T=j&&j.message&&j||{message:j};return T.level=T[O]=l,d._addDefaultMeta(T),d.write(T),this||n}return P.length===0?(d.log(l,""),d):d.log.apply(d,[l].concat(P))},o.prototype[s(l)]=function(){return(this||n).isLevelEnabled(l)}}),n},$r}var Gr,go;function qu(){if(go)return Gr;go=1;function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e(a)}function u(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function m(a,i){for(var v=0;v<i.length;v++){var b=i[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(a,g(b.key),b)}}function R(a,i,v){return i&&m(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function g(a){var i=c(a,"string");return e(i)=="symbol"?i:i+""}function c(a,i){if(e(a)!="object"||!a)return a;var v=a[Symbol.toPrimitive];if(v!==void 0){var b=v.call(a,i);if(e(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}var p=Qo();return Gr=(function(){function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,a),this.loggers=new Map,this.options=i}return R(a,[{key:"add",value:function(v,b){var O=this;if(!this.loggers.has(v)){b=Object.assign({},b||this.options);var y=b.transports||this.options.transports;y?b.transports=Array.isArray(y)?y.slice():[y]:b.transports=[];var E=p(b);E.on("close",function(){return O._delete(v)}),this.loggers.set(v,E)}return this.loggers.get(v)}},{key:"get",value:function(v,b){return this.add(v,b)}},{key:"has",value:function(v){return!!this.loggers.has(v)}},{key:"close",value:function(v){var b=this;if(v)return this._removeLogger(v);this.loggers.forEach(function(O,y){return b._removeLogger(y)})}},{key:"_removeLogger",value:function(v){if(this.loggers.has(v)){var b=this.loggers.get(v);b.close(),this._delete(v)}}},{key:"_delete",value:function(v){this.loggers.delete(v)}}])})(),Gr}var mo;function Hu(){return mo||(mo=1,(function(e){var u=xo(),m=qo(),R=m.warn;e.version=za.version,e.transports=wu(),e.config=Qr(),e.addColors=u.levels,e.format=u.format,e.createLogger=Qo(),e.Logger=en(),e.ExceptionHandler=Jo(),e.RejectionHandler=Zo(),e.Container=qu(),e.Transport=Ae(),e.loggers=new e.Container;var g=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(c){return e[c]=function(){return g[c].apply(g,arguments)}}),Object.defineProperty(e,"level",{get:function(){return g.level},set:function(p){g.level=p}}),Object.defineProperty(e,"exceptions",{get:function(){return g.exceptions}}),Object.defineProperty(e,"rejections",{get:function(){return g.rejections}}),["exitOnError"].forEach(function(c){Object.defineProperty(e,c,{get:function(){return g[c]},set:function(a){g[c]=a}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:g.exceptionHandlers,rejectionHandlers:g.rejectionHandlers,transports:g.transports}}}),R.deprecated(e,"setLevels"),R.forFunctions(e,"useFormat",["cli"]),R.forProperties(e,"useFormat",["padLevels","stripColors"]),R.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),R.forProperties(e,"deprecated",["emitErrs","levelLength"])})(gt)),gt}export{
|
|
37
|
+
`))}},{key:"_onEvent",value:function(D,F){function G(Y){D==="error"&&!this.transports.includes(F)&&this.add(F),this.emit(D,Y,F)}F["__winston"+D]||(F["__winston"+D]=G.bind(this),F.on(D,F["__winston"+D]))}},{key:"_addDefaultMeta",value:function(D){this.defaultMeta&&Object.assign(D,this.defaultMeta)}}])})(f);function z(L,N){var B=L[N];return!B&&B!==0?null:B}return Object.defineProperty($.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var N=this._readableState.pipes;return Array.isArray(N)?N:[N].filter(Boolean)}}),Ur=$,Ur}var $r,yo;function Qo(){if(yo)return $r;yo=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(f)}function u(f,o,n){return Object.defineProperty(f,"prototype",{writable:!1}),f}function m(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function R(f,o,n){return o=a(o),g(f,p()?Reflect.construct(o,n||[],a(f).constructor):o.apply(f,n))}function g(f,o){if(o&&(e(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(f)}function c(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function p(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p=function(){return!!f})()}function a(f){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},a(f)}function i(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),o&&v(f,o)}function v(f,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},v(f,o)}var b=ee(),O=b.LEVEL,y=Qr(),E=en(),h=vt()("winston:create-logger");function s(f){return"is"+f.charAt(0).toUpperCase()+f.slice(1)+"Enabled"}return $r=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.levels=f.levels||y.npm.levels;var o=(function(l){function d(_){return m(this,d),R(this,d,[_])}return i(d,l),u(d)})(E),n=new o(f);return Object.keys(f.levels).forEach(function(l){if(h('Define prototype method for "%s"',l),l==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}o.prototype[l]=function(){for(var d=this||n,_=arguments.length,P=new Array(_),M=0;M<_;M++)P[M]=arguments[M];if(P.length===1){var j=P[0],T=j&&j.message&&j||{message:j};return T.level=T[O]=l,d._addDefaultMeta(T),d.write(T),this||n}return P.length===0?(d.log(l,""),d):d.log.apply(d,[l].concat(P))},o.prototype[s(l)]=function(){return(this||n).isLevelEnabled(l)}}),n},$r}var Gr,go;function qu(){if(go)return Gr;go=1;function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e(a)}function u(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function m(a,i){for(var v=0;v<i.length;v++){var b=i[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(a,g(b.key),b)}}function R(a,i,v){return i&&m(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function g(a){var i=c(a,"string");return e(i)=="symbol"?i:i+""}function c(a,i){if(e(a)!="object"||!a)return a;var v=a[Symbol.toPrimitive];if(v!==void 0){var b=v.call(a,i);if(e(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}var p=Qo();return Gr=(function(){function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,a),this.loggers=new Map,this.options=i}return R(a,[{key:"add",value:function(v,b){var O=this;if(!this.loggers.has(v)){b=Object.assign({},b||this.options);var y=b.transports||this.options.transports;y?b.transports=Array.isArray(y)?y.slice():[y]:b.transports=[];var E=p(b);E.on("close",function(){return O._delete(v)}),this.loggers.set(v,E)}return this.loggers.get(v)}},{key:"get",value:function(v,b){return this.add(v,b)}},{key:"has",value:function(v){return!!this.loggers.has(v)}},{key:"close",value:function(v){var b=this;if(v)return this._removeLogger(v);this.loggers.forEach(function(O,y){return b._removeLogger(y)})}},{key:"_removeLogger",value:function(v){if(this.loggers.has(v)){var b=this.loggers.get(v);b.close(),this._delete(v)}}},{key:"_delete",value:function(v){this.loggers.delete(v)}}])})(),Gr}var mo;function Hu(){return mo||(mo=1,(function(e){var u=xo(),m=qo(),R=m.warn;e.version=za.version,e.transports=wu(),e.config=Qr(),e.addColors=u.levels,e.format=u.format,e.createLogger=Qo(),e.Logger=en(),e.ExceptionHandler=Jo(),e.RejectionHandler=Zo(),e.Container=qu(),e.Transport=Ae(),e.loggers=new e.Container;var g=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(c){return e[c]=function(){return g[c].apply(g,arguments)}}),Object.defineProperty(e,"level",{get:function(){return g.level},set:function(p){g.level=p}}),Object.defineProperty(e,"exceptions",{get:function(){return g.exceptions}}),Object.defineProperty(e,"rejections",{get:function(){return g.rejections}}),["exitOnError"].forEach(function(c){Object.defineProperty(e,c,{get:function(){return g[c]},set:function(a){g[c]=a}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:g.exceptionHandlers,rejectionHandlers:g.rejectionHandlers,transports:g.transports}}}),R.deprecated(e,"setLevels"),R.forFunctions(e,"useFormat",["cli"]),R.forProperties(e,"useFormat",["padLevels","stripColors"]),R.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),R.forProperties(e,"deprecated",["emitErrs","levelLength"])})(gt)),gt}export{ee as a,Ae as b,Hu as c,ht as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{
|
|
1
|
+
import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{c as f}from"./winston-CnYg22C6.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
|
package/index.html
CHANGED
|
@@ -10,16 +10,18 @@
|
|
|
10
10
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
11
11
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
12
12
|
<link href="https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap" rel="stylesheet">
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-uGY2TZXj.js"></script>
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-D6-XlEtG.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/index-ChvoNxcO.js">
|
|
15
16
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BlTxHScW.js">
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/index
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/index-BqmQ6R7D-Cvh6Y-cG.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/index-MQ64-2HE-2GyteIUG.js">
|
|
17
19
|
<link rel="modulepreload" crossorigin href="/assets/index-6mKfgpcs-DsgiI2lM.js">
|
|
18
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-
|
|
22
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/index-BJBOx-Z---hbiLl7B.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/index.browser-BHPvGrwi-6Mh8eUw-.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-CBoS8n4P.js">
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CtaoM3Uk.css">
|
|
23
25
|
</head>
|
|
24
26
|
<body>
|
|
25
27
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as g,c as C,S as l,N as y,U as T,L as b,d as _,v as N,P as R,b as E,T as J}from"./index-_duzuPdC.js";import{t as M,c as z,p as k,e as D,g as I,a as S,d as j}from"./normalizeProvider-Cd9_AiS_.js";import{R as O}from"./noAuth-Cp7LDRaC.js";function A(h,t,e){if(e?.source){const i=e.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||i!==String(t)))return i.includes(".")?new g(i,"bigDecimal"):BigInt(i)}return t}const B=(h,t)=>C(h,t).then(e=>(t?.utf8Encoder??M)(e)),U=(h,t)=>B(h,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(i){throw i?.name==="SyntaxError"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}return{}}),$=(h,t)=>{const e=(n,r)=>Object.keys(n).find(o=>o.toLowerCase()===r.toLowerCase()),i=n=>{let r=n;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r.indexOf("#")>=0&&(r=r.split("#")[1]),r},s=e(h.headers,"x-amzn-errortype");if(s!==void 0)return i(h.headers[s]);if(t&&typeof t=="object"){const n=e(t,"code");if(n&&t[n]!==void 0)return i(t[n]);if(t.__type!==void 0)return i(t.__type)}};class Q extends l{settings;constructor(t){super(),this.settings=t}async read(t,e){return this._read(t,typeof e=="string"?JSON.parse(e,A):await U(e,this.serdeContext))}readObject(t,e){return this._read(t,e)}_read(t,e){const i=e!==null&&typeof e=="object",s=y.of(t);if(i){if(s.isStructSchema()){const r=e,o=s.isUnionSchema(),c={};let f;const{jsonName:a}=this.settings;a&&(f={});let u;o&&(u=new T(r,c));for(const[m,d]of s.structIterator()){let p=m;a&&(p=d.getMergedTraits().jsonName??p,f[p]=m),o&&u.mark(p),r[p]!=null&&(c[m]=this._read(d,r[p]))}if(o)u.writeUnknown();else if(typeof r.__type=="string")for(const[m,d]of Object.entries(r)){const p=a?f[m]??m:m;p in c||(c[p]=d)}return c}if(Array.isArray(e)&&s.isListSchema()){const r=s.getValueSchema(),o=[],c=!!s.getMergedTraits().sparse;for(const f of e)(c||f!=null)&&o.push(this._read(r,f));return o}if(s.isMapSchema()){const r=s.getValueSchema(),o={},c=!!s.getMergedTraits().sparse;for(const[f,a]of Object.entries(e))(c||a!=null)&&(o[f]=this._read(r,a));return o}}if(s.isBlobSchema()&&typeof e=="string")return z(e);const n=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof e=="string"&&n)return n==="application/json"||n.endsWith("+json")?b.from(e):e;if(s.isTimestampSchema()&&e!=null)switch(_(s,this.settings)){case 5:return I(e);case 6:return D(e);case 7:return k(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(s.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(s.isBigDecimalSchema()&&e!=null){if(e instanceof g)return e;const r=e;return r.type==="bigDecimal"&&"string"in r?new g(r.string,r.type):new g(String(e),"bigDecimal")}if(s.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(s.isDocumentSchema())if(i){const r=Array.isArray(e)?[]:{};for(const[o,c]of Object.entries(e))c instanceof g?r[o]=c:r[o]=this._read(s,c);return r}else return structuredClone(e);return e}}const w="Ν";class V{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,e)=>{if(e instanceof g){const i=`${w+"nv"+this.counter++}_`+e.string;return this.values.set(`"${i}"`,e.string),i}if(typeof e=="bigint"){const i=e.toString(),s=`${w+"b"+this.counter++}_`+i;return this.values.set(`"${s}"`,i),s}return e}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[e,i]of this.values)t=t.replace(e,i);return t}}class L extends l{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,e){this.rootSchema=y.of(t),this.buffer=this._write(this.rootSchema,e)}writeDiscriminatedDocument(t,e){this.write(t,e),typeof this.buffer=="object"&&(this.buffer.__type=y.of(t).getName(!0))}flush(){const{rootSchema:t,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);const i=new V;return i.replaceInJson(JSON.stringify(this.buffer,i.createReplacer(),0))}return this.buffer}_write(t,e,i){const s=e!==null&&typeof e=="object",n=y.of(t);if(s){if(n.isStructSchema()){const r=e,o={},{jsonName:c}=this.settings;let f;c&&(f={});for(const[a,u]of n.structIterator()){const m=this._write(u,r[a],n);if(m!==void 0){let d=a;c&&(d=u.getMergedTraits().jsonName??a,f[a]=d),o[d]=m}}if(n.isUnionSchema()&&Object.keys(o).length===0){const{$unknown:a}=r;if(Array.isArray(a)){const[u,m]=a;o[u]=this._write(15,m)}}else if(typeof r.__type=="string")for(const[a,u]of Object.entries(r)){const m=c?f[a]??a:a;m in o||(o[m]=this._write(15,u))}return o}if(Array.isArray(e)&&n.isListSchema()){const r=n.getValueSchema(),o=[],c=!!n.getMergedTraits().sparse;for(const f of e)(c||f!=null)&&o.push(this._write(r,f));return o}if(n.isMapSchema()){const r=n.getValueSchema(),o={},c=!!n.getMergedTraits().sparse;for(const[f,a]of Object.entries(e))(c||a!=null)&&(o[f]=this._write(r,a));return o}if(e instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema()))return n===this.rootSchema?e:(this.serdeContext?.base64Encoder??S)(e);if(e instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema()))switch(_(n,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return j(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof g&&(this.useReplacer=!0)}if(!(e===null&&i?.isStructSchema())){if(n.isStringSchema()){if(typeof e>"u"&&n.isIdempotencyToken())return N();const r=n.getMergedTraits().mediaType;return e!=null&&r&&(r==="application/json"||r.endsWith("+json"))?b.from(e):e}if(typeof e=="number"&&n.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&n.isBlobSchema())return n===this.rootSchema?e:(this.serdeContext?.base64Encoder??S)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),n.isDocumentSchema())if(s){const r=Array.isArray(e)?[]:{};for(const[o,c]of Object.entries(e))c instanceof g?(this.useReplacer=!0,r[o]=c):r[o]=this._write(n,c);return r}else return structuredClone(e);return e}}}class P extends l{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new L(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new Q(this.settings);return t.setSerdeContext(this.serdeContext),t}}class F extends O{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:t}),this.serviceTarget=e,this.codec=s??new P({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!i,this.mixin=new R(this.awsQueryCompatible)}async serializeRequest(t,e,i){const s=await super.serializeRequest(t,e,i);return s.path.endsWith("/")||(s.path+="/"),Object.assign(s.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(E(t.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(t,e,i,s,n){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,i);const r=$(i,s)??"Unknown",{errorSchema:o,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(r,this.options.defaultNamespace,i,s,n,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),f=y.of(o),a=s.message??s.Message??"Unknown",u=J.for(o[1]).getErrorCtor(o)??Error,m=new u(a),d={};for(const[p,x]of f.structIterator())s[p]!=null&&(d[p]=this.codec.createDeserializer().readObject(x,s[p]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,d),this.mixin.decorateServiceException(Object.assign(m,c,{$fault:f.getMergedTraits().error,message:a},d),s)}}class G extends F{constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:i,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}export{G as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as $,N as u,v as z,a as T,d as C,P as N,b as K,c as S,T as M}from"./index-_duzuPdC.js";import{e as b,X as k}from"./XmlShapeDeserializer-yfMUWnPw.js";import{a as Q,d as V}from"./normalizeProvider-Cd9_AiS_.js";import{R as A}from"./noAuth-Cp7LDRaC.js";class R extends ${settings;buffer;constructor(r){super(),this.settings=r}write(r,e,t=""){this.buffer===void 0&&(this.buffer="");const s=u.of(r);if(t&&!t.endsWith(".")&&(t+="."),s.isBlobSchema())(typeof e=="string"||e instanceof Uint8Array)&&(this.writeKey(t),this.writeValue((this.serdeContext?.base64Encoder??Q)(e)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())e!=null?(this.writeKey(t),this.writeValue(String(e))):s.isIdempotencyToken()&&(this.writeKey(t),this.writeValue(z()));else if(s.isBigIntegerSchema())e!=null&&(this.writeKey(t),this.writeValue(String(e)));else if(s.isBigDecimalSchema())e!=null&&(this.writeKey(t),this.writeValue(e instanceof T?e.string:String(e)));else if(s.isTimestampSchema()){if(e instanceof Date)switch(this.writeKey(t),C(s,this.settings)){case 5:this.writeValue(e.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(V(e));break;case 7:this.writeValue(String(e.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(e)?this.write(79,e,t):e instanceof Date?this.write(4,e,t):e instanceof Uint8Array?this.write(21,e,t):e&&typeof e=="object"?this.write(143,e,t):(this.writeKey(t),this.writeValue(String(e)));else if(s.isListSchema()){if(Array.isArray(e))if(e.length===0)this.settings.serializeEmptyLists&&(this.writeKey(t),this.writeValue(""));else{const a=s.getValueSchema(),n=this.settings.flattenLists||s.getMergedTraits().xmlFlattened;let i=1;for(const o of e){if(o==null)continue;const c=this.getKey("member",a.getMergedTraits().xmlName),d=n?`${t}${i}`:`${t}${c}.${i}`;this.write(a,o,d),++i}}}else if(s.isMapSchema()){if(e&&typeof e=="object"){const a=s.getKeySchema(),n=s.getValueSchema(),i=s.getMergedTraits().xmlFlattened;let o=1;for(const[c,d]of Object.entries(e)){if(d==null)continue;const h=this.getKey("key",a.getMergedTraits().xmlName),l=i?`${t}${o}.${h}`:`${t}entry.${o}.${h}`,m=this.getKey("value",n.getMergedTraits().xmlName),f=i?`${t}${o}.${m}`:`${t}entry.${o}.${m}`;this.write(a,c,l),this.write(n,d,f),++o}}}else if(s.isStructSchema()){if(e&&typeof e=="object"){let a=!1;for(const[n,i]of s.structIterator()){if(e[n]==null&&!i.isIdempotencyToken())continue;const o=this.getKey(n,i.getMergedTraits().xmlName),c=`${t}${o}`;this.write(i,e[n],c),a=!0}if(!a&&s.isUnionSchema()){const{$unknown:n}=e;if(Array.isArray(n)){const[i,o]=n,c=`${t}${i}`;this.write(15,o,c)}}}}else if(!s.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const r=this.buffer;return delete this.buffer,r}getKey(r,e){const t=e??r;return this.settings.capitalizeKeys?t[0].toUpperCase()+t.slice(1):t}writeKey(r){r.endsWith(".")&&(r=r.slice(0,r.length-1)),this.buffer+=`&${b(r)}=`}writeValue(r){this.buffer+=b(r)}}class L extends A{options;serializer;deserializer;mixin=new N;constructor(r){super({defaultNamespace:r.defaultNamespace}),this.options=r;const e={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:r.xmlNamespace,serviceNamespace:r.defaultNamespace,serializeEmptyLists:!0};this.serializer=new R(e),this.deserializer=new k(e)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(r){this.serializer.setSerdeContext(r),this.deserializer.setSerdeContext(r)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(r,e,t){const s=await super.serializeRequest(r,e,t);s.path.endsWith("/")||(s.path+="/"),Object.assign(s.headers,{"content-type":"application/x-www-form-urlencoded"}),(K(r.input)==="unit"||!s.body)&&(s.body="");const a=r.name.split("#")[1]??r.name;return s.body=`Action=${a}&Version=${this.options.version}`+s.body,s.body.endsWith("&")&&(s.body=s.body.slice(-1)),s}async deserializeResponse(r,e,t){const s=this.deserializer,a=u.of(r.output),n={};if(t.statusCode>=300){const h=await S(t.body,e);h.byteLength>0&&Object.assign(n,await s.read(15,h)),await this.handleError(r,e,t,n,this.deserializeMetadata(t))}for(const h in t.headers){const l=t.headers[h];delete t.headers[h],t.headers[h.toLowerCase()]=l}const i=r.name.split("#")[1]??r.name,o=a.isStructSchema()&&this.useNestedResult()?i+"Result":void 0,c=await S(t.body,e);return c.byteLength>0&&Object.assign(n,await s.read(a,c,o)),{$metadata:this.deserializeMetadata(t),...n}}useNestedResult(){return!0}async handleError(r,e,t,s,a){const n=this.loadQueryErrorCode(t,s)??"Unknown",i=this.loadQueryError(s),o=this.loadQueryErrorMessage(s);i.message=o,i.Error={Type:i.Type,Code:i.Code,Message:o};const{errorSchema:c,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(n,this.options.defaultNamespace,t,i,a,this.mixin.findQueryCompatibleError),h=u.of(c),l=M.for(c[1]).getErrorCtor(c)??Error,m=new l(o),f={Type:i.Error.Type,Code:i.Error.Code,Error:i.Error};for(const[y,g]of h.structIterator()){const w=g.getMergedTraits().xmlName??y,p=i[w]??s[w];f[y]=this.deserializer.readSchema(g,p)}throw this.mixin.decorateServiceException(Object.assign(m,d,{$fault:h.getMergedTraits().error,message:o},f),s)}loadQueryErrorCode(r,e){const t=(e.Errors?.[0]?.Error??e.Errors?.Error??e.Error)?.Code;if(t!==void 0)return t;if(r.statusCode==404)return"NotFound"}loadQueryError(r){return r.Errors?.[0]?.Error??r.Errors?.Error??r.Error}loadQueryErrorMessage(r){const e=this.loadQueryError(r);return e?.message??e?.Message??r.message??r.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}export{L as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as D,N as S,d as $,L as F,a as A,S as O,U as R}from"./index-_duzuPdC.js";import{c as w,t as x}from"./normalizeProvider-Cd9_AiS_.js";function W(s){return encodeURIComponent(s).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})}const y="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",b="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",N="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",M="(\\d?\\d)",E="(\\d{4})",U=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),k=new RegExp(`^${y}, ${M} ${b} ${E} ${N} GMT$`),z=new RegExp(`^${y}, ${M}-${b}-(\\d\\d) ${N} GMT$`),I=new RegExp(`^${y} ${b} ( [1-9]|\\d\\d) ${N} ${E}$`),_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],L=s=>{if(s==null)return;let r=NaN;if(typeof s=="number")r=s;else if(typeof s=="string"){if(!/^-?\d*\.?\d+$/.test(s))throw new TypeError("parseEpochTimestamp - numeric string invalid.");r=Number.parseFloat(s)}else typeof s=="object"&&s.tag===1&&(r=s.value);if(isNaN(r)||Math.abs(r)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(r*1e3))},P=s=>{if(s==null)return;if(typeof s!="string")throw new TypeError("RFC3339 timestamps must be strings");const r=U.exec(s);if(!r)throw new TypeError(`Invalid RFC3339 timestamp format ${s}`);const[,e,t,o,n,i,c,,m,f]=r;h(t,1,12),h(o,1,31),h(n,0,23),h(i,0,59),h(c,0,60);const a=new Date(Date.UTC(Number(e),Number(t)-1,Number(o),Number(n),Number(i),Number(c),Number(m)?Math.round(parseFloat(`0.${m}`)*1e3):0));if(a.setUTCFullYear(Number(e)),f.toUpperCase()!="Z"){const[,d,l,u]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0],p=d==="-"?1:-1;a.setTime(a.getTime()+p*(Number(l)*60*60*1e3+Number(u)*60*1e3))}return a},B=s=>{if(s==null)return;if(typeof s!="string")throw new TypeError("RFC7231 timestamps must be strings.");let r,e,t,o,n,i,c,m;if((m=k.exec(s))?[,r,e,t,o,n,i,c]=m:(m=z.exec(s))?([,r,e,t,o,n,i,c]=m,t=(Number(t)+1900).toString()):(m=I.exec(s))&&([,e,r,o,n,i,c,t]=m),t&&i){const f=Date.UTC(Number(t),_.indexOf(e),Number(r),Number(o),Number(n),Number(i),c?Math.round(parseFloat(`0.${c}`)*1e3):0);h(r,1,31),h(o,0,23),h(n,0,59),h(i,0,60);const a=new Date(f);return a.setUTCFullYear(Number(t)),a}throw new TypeError(`Invalid RFC7231 date-time value ${s}.`)};function h(s,r,e){const t=Number(s);if(t<r||t>e)throw new Error(`Value ${t} out of range [${r}, ${e}]`)}const J=s=>{const r=s.length,e=[];let t=!1,o,n=0;for(let i=0;i<r;++i){const c=s[i];switch(c){case'"':o!=="\\"&&(t=!t);break;case",":t||(e.push(s.slice(n,i)),n=i+1);break}o=c}return e.push(s.slice(n)),e.map(i=>{i=i.trim();const c=i.length;return c<2?i:(i[0]==='"'&&i[c-1]==='"'&&(i=i.slice(1,c-1)),i.replace(/\\"/g,'"'))})};class V extends D{settings;constructor(r){super(),this.settings=r}read(r,e){const t=S.of(r);if(t.isListSchema())return J(e).map(o=>this.read(t.getValueSchema(),o));if(t.isBlobSchema())return(this.serdeContext?.base64Decoder??w)(e);if(t.isTimestampSchema())switch($(t,this.settings)){case 5:return P(e);case 6:return B(e);case 7:return L(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(t.isStringSchema()){const o=t.getMergedTraits().mediaType;let n=e;if(o)return t.getMergedTraits().httpHeader&&(n=this.base64ToUtf8(n)),(o==="application/json"||o.endsWith("+json"))&&(n=F.from(n)),n}return t.isNumericSchema()?Number(e):t.isBigIntegerSchema()?BigInt(e):t.isBigDecimalSchema()?new A(e,"bigDecimal"):t.isBooleanSchema()?String(e).toLowerCase()==="true":e}base64ToUtf8(r){return(this.serdeContext?.utf8Encoder??x)((this.serdeContext?.base64Decoder??w)(r))}}const C=s=>{const r="#text";for(const e in s)s.hasOwnProperty(e)&&s[e][r]!==void 0?s[e]=s[e][r]:typeof s[e]=="object"&&s[e]!==null&&(s[e]=C(s[e]));return s};let g;function X(s){g||(g=new DOMParser);const r=g.parseFromString(s,"application/xml");if(r.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const e=t=>{if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim())return t.textContent;if(t.nodeType===Node.ELEMENT_NODE){const o=t;if(o.attributes.length===0&&o.childNodes.length===0)return"";const n={},i=Array.from(o.attributes);for(const m of i)n[`${m.name}`]=m.value;const c=Array.from(o.childNodes);for(const m of c){const f=e(m);if(f!=null){const a=m.nodeName;if(c.length===1&&i.length===0&&a==="#text")return f;n[a]?Array.isArray(n[a])?n[a].push(f):n[a]=[n[a],f]:n[a]=f}else if(c.length===1&&i.length===0)return o.textContent}return n}return null};return{[r.documentElement.nodeName]:e(r.documentElement)}}class K extends O{settings;stringDeserializer;constructor(r){super(),this.settings=r,this.stringDeserializer=new V(r)}setSerdeContext(r){this.serdeContext=r,this.stringDeserializer.setSerdeContext(r)}read(r,e,t){const o=S.of(r),n=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(n).find(f=>!!f.getMemberTraits().eventPayload)){const f={},a=Object.keys(n)[0];return n[a].isBlobSchema()?f[a]=e:f[a]=this.read(n[a],e),f}const c=(this.serdeContext?.utf8Encoder??x)(e),m=this.parseXml(c);return this.readSchema(r,t?m[t]:m)}readSchema(r,e){const t=S.of(r);if(t.isUnitSchema())return;const o=t.getMergedTraits();if(t.isListSchema()&&!Array.isArray(e))return this.readSchema(t,[e]);if(e==null)return e;if(typeof e=="object"){const n=!!o.sparse,i=!!o.xmlFlattened;if(t.isListSchema()){const m=t.getValueSchema(),f=[],a=m.getMergedTraits().xmlName??"member",d=i?e:(e[0]??e)[a],l=Array.isArray(d)?d:[d];for(const u of l)(u!=null||n)&&f.push(this.readSchema(m,u));return f}const c={};if(t.isMapSchema()){const m=t.getKeySchema(),f=t.getValueSchema();let a;i?a=Array.isArray(e)?e:[e]:a=Array.isArray(e.entry)?e.entry:[e.entry];const d=m.getMergedTraits().xmlName??"key",l=f.getMergedTraits().xmlName??"value";for(const u of a){const p=u[d],T=u[l];(T!=null||n)&&(c[p]=this.readSchema(f,T))}return c}if(t.isStructSchema()){const m=t.isUnionSchema();let f;m&&(f=new R(e,c));for(const[a,d]of t.structIterator()){const l=d.getMergedTraits(),u=l.httpPayload?l.xmlName??d.getName():d.getMemberTraits().xmlName??a;m&&f.mark(u),e[u]!=null&&(c[a]=this.readSchema(d,e[u]))}return m&&f.writeUnknown(),c}if(t.isDocumentSchema())return e;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${t.getName(!0)}`)}return t.isListSchema()?[]:t.isMapSchema()||t.isStructSchema()?{}:this.stringDeserializer.read(t,e)}parseXml(r){if(r.length){let e;try{e=X(r)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:r}),i}const t="#text",o=Object.keys(e)[0],n=e[o];return n[t]&&(n[o]=n[t],delete n[t]),C(n)}return{}}}export{V as F,K as X,W as e,J as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m={},q;function b(){if(q)return m;q=1,m.byteLength=l,m.toByteArray=M,m.fromByteArray=A;for(var h=[],t=[],s=typeof Uint8Array<"u"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=v.length;u<c;++u)h[u]=v[u],t[v.charCodeAt(u)]=u;t[45]=62,t[95]=63;function e(r){var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=r.indexOf("=");n===-1&&(n=o);var d=n===o?0:4-n%4;return[n,d]}function l(r){var o=e(r),n=o[0],d=o[1];return(n+d)*3/4-d}function w(r,o,n){return(o+n)*3/4-n}function M(r){var o,n=e(r),d=n[0],p=n[1],a=new s(w(r,d,p)),y=0,C=p>0?d-4:d,g;for(g=0;g<C;g+=4)o=t[r.charCodeAt(g)]<<18|t[r.charCodeAt(g+1)]<<12|t[r.charCodeAt(g+2)]<<6|t[r.charCodeAt(g+3)],a[y++]=o>>16&255,a[y++]=o>>8&255,a[y++]=o&255;return p===2&&(o=t[r.charCodeAt(g)]<<2|t[r.charCodeAt(g+1)]>>4,a[y++]=o&255),p===1&&(o=t[r.charCodeAt(g)]<<10|t[r.charCodeAt(g+1)]<<4|t[r.charCodeAt(g+2)]>>2,a[y++]=o>>8&255,a[y++]=o&255),a}function f(r){return h[r>>18&63]+h[r>>12&63]+h[r>>6&63]+h[r&63]}function i(r,o,n){for(var d,p=[],a=o;a<n;a+=3)d=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(r[a+2]&255),p.push(f(d));return p.join("")}function A(r){for(var o,n=r.length,d=n%3,p=[],a=16383,y=0,C=n-d;y<C;y+=a)p.push(i(r,y,y+a>C?C:y+a));return d===1?(o=r[n-1],p.push(h[o>>2]+h[o<<4&63]+"==")):d===2&&(o=(r[n-2]<<8)+r[n-1],p.push(h[o>>10]+h[o>>4&63]+h[o<<2&63]+"=")),p.join("")}return m}var N={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var x;function j(){return x||(x=1,N.read=function(h,t,s,v,u){var c,e,l=u*8-v-1,w=(1<<l)-1,M=w>>1,f=-7,i=s?u-1:0,A=s?-1:1,r=h[t+i];for(i+=A,c=r&(1<<-f)-1,r>>=-f,f+=l;f>0;c=c*256+h[t+i],i+=A,f-=8);for(e=c&(1<<-f)-1,c>>=-f,f+=v;f>0;e=e*256+h[t+i],i+=A,f-=8);if(c===0)c=1-M;else{if(c===w)return e?NaN:(r?-1:1)*(1/0);e=e+Math.pow(2,v),c=c-M}return(r?-1:1)*e*Math.pow(2,c-v)},N.write=function(h,t,s,v,u,c){var e,l,w,M=c*8-u-1,f=(1<<M)-1,i=f>>1,A=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,r=v?0:c-1,o=v?1:-1,n=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,e=f):(e=Math.floor(Math.log(t)/Math.LN2),t*(w=Math.pow(2,-e))<1&&(e--,w*=2),e+i>=1?t+=A/w:t+=A*Math.pow(2,1-i),t*w>=2&&(e++,w/=2),e+i>=f?(l=0,e=f):e+i>=1?(l=(t*w-1)*Math.pow(2,u),e=e+i):(l=t*Math.pow(2,i-1)*Math.pow(2,u),e=0));u>=8;h[s+r]=l&255,r+=o,l/=256,u-=8);for(e=e<<u|l,M+=u;M>0;h[s+r]=e&255,r+=o,e/=256,M-=8);h[s+r-o]|=n*128}),N}const B=globalThis||void 0||self;function L(h){throw new Error('Could not dynamically require "'+h+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{B as I,b as N,L as R,j as k};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var o=t.default;if(typeof o=="function"){var e=function r(){return this instanceof r?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};e.prototype=o.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),e}export{l as f,f as l,u};
|
package/assets/aws-BDH7ihg3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as l,e as f,f as g}from"./index-_duzuPdC.js";const c=(s,i=!1)=>{if(i){for(const e of s.split("."))if(!c(e))return!1;return!0}return!(!l(s)||s.length<3||s.length>63||s!==s.toLowerCase()||f(s))},u=":",w="/",S=s=>{const i=s.split(u);if(i.length<6)return null;const[e,o,t,a,r,...n]=i;if(e!=="arn"||o===""||t===""||n.join(u)==="")return null;const p=n.map(d=>d.split(w)).flat();return{partition:o,service:t,region:a,accountId:r,resourceId:p}},b=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],h={partitions:b};let m=h;const x=s=>{const{partitions:i}=m;for(const o of i){const{regions:t,outputs:a}=o;for(const[r,n]of Object.entries(t))if(r===s)return{...a,...n}}for(const o of i){const{regionRegex:t,outputs:a}=o;if(new RegExp(t).test(s))return{...a}}const e=i.find(o=>o.id==="aws");if(!e)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...e.outputs}},E={isVirtualHostableS3Bucket:c,parseArn:S,partition:x};g.aws=E;export{E as a};
|