@axsdk/browser 0.1.5 → 0.1.7

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.
@@ -1 +1,4 @@
1
- var AXSDK=(function(){"use strict";let e=null,s;const c=window.matchMedia("(max-width: 767px)");function l(r){e&&(r?e.style.cssText=["position:fixed","top:0","left:0","right:0","bottom:0","width:100%","height:100dvh","border:none","z-index:99999","background:transparent"].join(";"):e.style.cssText=["position:fixed","right:0","bottom:0","width:420px","height:680px","border:none","z-index:99999","background:transparent"].join(";"))}c.addEventListener("change",r=>{l(r.matches)});const d=document.currentScript,m=((d==null?void 0:d.src)??"").replace(/axsdk-browser\.js$/,""),p=m?m+"axsdk-browser-frame.js":"./axsdk-browser-frame.js";return window.addEventListener("message",async r=>{var a,t;if(!e||r.source!==e.contentWindow)return;const n=r.data;if((n==null?void 0:n.type)==="AXSDK_HANDLER_REQUEST"&&s){const{requestId:o,command:h,args:f}=n;try{const i=await s(h,f);(a=e.contentWindow)==null||a.postMessage({type:"AXSDK_HANDLER_RESPONSE",requestId:o,result:i},"*")}catch(i){const u=i instanceof Error?i.message:String(i);(t=e.contentWindow)==null||t.postMessage({type:"AXSDK_HANDLER_RESPONSE",requestId:o,error:u},"*")}}}),{init(r){if(e){console.warn("[AXSDKBrowser] Already initialized. Ignoring duplicate init() call.");return}s=r.axHandler;const{axHandler:n,...a}=r,t=document.createElement("iframe");e=t,l(c.matches),t.setAttribute("allowtransparency","true"),t.setAttribute("frameborder","0"),t.srcdoc=["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta name="viewport" content="width=device-width,initial-scale=1">',"<style>*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;width:100%;overflow:hidden}</style>","</head>","<body>",`<script src="${p}"><\/script>`,"</body>","</html>"].join(""),t.addEventListener("load",()=>{var o;(o=t.contentWindow)==null||o.postMessage({type:"AXSDK_INIT",config:a},"*")}),document.body.appendChild(t)},destroy(){e&&e.parentNode&&e.parentNode.removeChild(e),e=null,s=void 0}}})();
1
+ var AXSDK=(function(){"use strict";var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Jt(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var l=t.default;if(typeof l=="function"){var c=function i(){return this instanceof i?Reflect.construct(l,arguments,this.constructor):l.apply(this,arguments)};c.prototype=l.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var g=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(c,i,g.get?g:{enumerable:!0,get:function(){return t[i]}})}),c}var qe,Cr;function ve(){return Cr||(Cr=1,qe=TypeError),qe}const Yt=Jt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var De,Tr;function Ee(){if(Tr)return De;Tr=1;var t=typeof Map=="function"&&Map.prototype,l=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,c=t&&l&&typeof l.get=="function"?l.get:null,i=t&&Map.prototype.forEach,g=typeof Set=="function"&&Set.prototype,O=Object.getOwnPropertyDescriptor&&g?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_=g&&O&&typeof O.get=="function"?O.get:null,y=g&&Set.prototype.forEach,A=typeof WeakMap=="function"&&WeakMap.prototype,d=A?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,h=m?WeakSet.prototype.has:null,D=typeof WeakRef=="function"&&WeakRef.prototype,P=D?WeakRef.prototype.deref:null,a=Boolean.prototype.valueOf,f=Object.prototype.toString,o=Function.prototype.toString,R=String.prototype.match,v=String.prototype.slice,S=String.prototype.replace,F=String.prototype.toUpperCase,E=String.prototype.toLowerCase,w=RegExp.prototype.test,n=Array.prototype.concat,u=Array.prototype.join,s=Array.prototype.slice,b=Math.floor,x=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,M=typeof Symbol=="function"&&typeof Symbol.iterator=="object",G=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||!0)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,H=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function p(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,r))return r;var C=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var B=e<0?-b(-e):b(e);if(B!==e){var W=String(B),q=v.call(r,W.length+1);return S.call(W,C,"$&_")+"."+S.call(S.call(q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(r,C,"$&_")}var T=Yt,j=T.custom,Z=Q(j)?j:null,ie={__proto__:null,double:'"',single:"'"},le={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};De=function e(r,C,B,W){var q=C||{};if(J(q,"quoteStyle")&&!J(ie,q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(q,"maxStringLength")&&(typeof q.maxStringLength=="number"?q.maxStringLength<0&&q.maxStringLength!==1/0:q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ye=J(q,"customInspect")?q.customInspect:!0;if(typeof ye!="boolean"&&ye!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(q,"indent")&&q.indent!==null&&q.indent!==" "&&!(parseInt(q.indent,10)===q.indent&&q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(q,"numericSeparator")&&typeof q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var de=q.numericSeparator;if(typeof r>"u")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Ut(r,q);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var Y=String(r);return de?p(r,Y):Y}if(typeof r=="bigint"){var se=String(r)+"n";return de?p(r,se):se}var xr=typeof q.depth>"u"?5:q.depth;if(typeof B>"u"&&(B=0),B>=xr&&xr>0&&typeof r=="object")return ue(r)?"[Array]":"[Object]";var we=Gn(q,B);if(typeof W>"u")W=[];else if(pe(W,r)>=0)return"[Circular]";function ae(be,Ie,Hn){if(Ie&&(W=s.call(W),W.push(Ie)),Hn){var Vt={depth:q.depth};return J(q,"quoteStyle")&&(Vt.quoteStyle=q.quoteStyle),e(be,Vt,B+1,W)}return e(be,q,B+1,W)}if(typeof r=="function"&&!K(r)){var Gt=he(r),kt=_e(r,ae);return"[Function"+(Gt?": "+Gt:" (anonymous)")+"]"+(kt.length>0?" { "+u.call(kt,", ")+" }":"")}if(Q(r)){var Ht=M?S.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):U.call(r);return typeof r=="object"&&!M?Oe(Ht):Ht}if(Bn(r)){for(var Ae="<"+E.call(String(r.nodeName)),Ir=r.attributes||[],xe=0;xe<Ir.length;xe++)Ae+=" "+Ir[xe].name+"="+fe(oe(Ir[xe].value),"double",q);return Ae+=">",r.childNodes&&r.childNodes.length&&(Ae+="..."),Ae+="</"+E.call(String(r.nodeName))+">",Ae}if(ue(r)){if(r.length===0)return"[]";var qr=_e(r,ae);return we&&!Wn(qr)?"["+_r(qr,we)+"]":"[ "+u.call(qr,", ")+" ]"}if($(r)){var Dr=_e(r,ae);return!("cause"in Error.prototype)&&"cause"in r&&!N.call(r,"cause")?"{ ["+String(r)+"] "+u.call(n.call("[cause]: "+ae(r.cause),Dr),", ")+" }":Dr.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+u.call(Dr,", ")+" }"}if(typeof r=="object"&&ye){if(Z&&typeof r[Z]=="function"&&T)return T(r,{depth:xr-B});if(ye!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(ne(r)){var zt=[];return i&&i.call(r,function(be,Ie){zt.push(ae(Ie,r,!0)+" => "+ae(be,r))}),Wt("Map",c.call(r),zt,we)}if(Se(r)){var Kt=[];return y&&y.call(r,function(be){Kt.push(ae(be,r))}),Wt("Set",_.call(r),Kt,we)}if(me(r))return Rr("WeakMap");if(Ln(r))return Rr("WeakSet");if(ge(r))return Rr("WeakRef");if(L(r))return Oe(ae(Number(r)));if(re(r))return Oe(ae(x.call(r)));if(z(r))return Oe(a.call(r));if(k(r))return Oe(ae(String(r)));if(typeof window<"u"&&r===window)return"{ [object Window] }";if(typeof globalThis<"u"&&r===globalThis||typeof Nr<"u"&&r===Nr)return"{ [object globalThis] }";if(!ce(r)&&!K(r)){var Mr=_e(r,ae),jt=H?H(r)===Object.prototype:r instanceof Object||r.constructor===Object,Fr=r instanceof Object?"":"null prototype",Qt=!jt&&G&&Object(r)===r&&G in r?v.call(te(r),8,-1):Fr?"Object":"",kn=jt||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",$r=kn+(Qt||Fr?"["+u.call(n.call([],Qt||[],Fr||[]),": ")+"] ":"");return Mr.length===0?$r+"{}":we?$r+"{"+_r(Mr,we)+"}":$r+"{ "+u.call(Mr,", ")+" }"}return String(r)};function fe(e,r,C){var B=C.quoteStyle||r,W=ie[B];return W+e+W}function oe(e){return S.call(String(e),/"/g,"&quot;")}function ee(e){return!G||!(typeof e=="object"&&(G in e||typeof e[G]<"u"))}function ue(e){return te(e)==="[object Array]"&&ee(e)}function ce(e){return te(e)==="[object Date]"&&ee(e)}function K(e){return te(e)==="[object RegExp]"&&ee(e)}function $(e){return te(e)==="[object Error]"&&ee(e)}function k(e){return te(e)==="[object String]"&&ee(e)}function L(e){return te(e)==="[object Number]"&&ee(e)}function z(e){return te(e)==="[object Boolean]"&&ee(e)}function Q(e){if(M)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!U)return!1;try{return U.call(e),!0}catch{}return!1}function re(e){if(!e||typeof e!="object"||!x)return!1;try{return x.call(e),!0}catch{}return!1}var V=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,r){return V.call(e,r)}function te(e){return f.call(e)}function he(e){if(e.name)return e.name;var r=R.call(o.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function pe(e,r){if(e.indexOf)return e.indexOf(r);for(var C=0,B=e.length;C<B;C++)if(e[C]===r)return C;return-1}function ne(e){if(!c||!e||typeof e!="object")return!1;try{c.call(e);try{_.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function me(e){if(!d||!e||typeof e!="object")return!1;try{d.call(e,d);try{h.call(e,h)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ge(e){if(!P||!e||typeof e!="object")return!1;try{return P.call(e),!0}catch{}return!1}function Se(e){if(!_||!e||typeof e!="object")return!1;try{_.call(e);try{c.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Ln(e){if(!h||!e||typeof e!="object")return!1;try{h.call(e,h);try{d.call(e,d)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Bn(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ut(e,r){if(e.length>r.maxStringLength){var C=e.length-r.maxStringLength,B="... "+C+" more character"+(C>1?"s":"");return Ut(v.call(e,0,r.maxStringLength),r)+B}var W=le[r.quoteStyle||"single"];W.lastIndex=0;var q=S.call(S.call(e,W,"\\$1"),/[\x00-\x1f]/g,Un);return fe(q,"single",r)}function Un(e){var r=e.charCodeAt(0),C={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return C?"\\"+C:"\\x"+(r<16?"0":"")+F.call(r.toString(16))}function Oe(e){return"Object("+e+")"}function Rr(e){return e+" { ? }"}function Wt(e,r,C,B){var W=B?_r(C,B):u.call(C,", ");return e+" ("+r+") {"+W+"}"}function Wn(e){for(var r=0;r<e.length;r++)if(pe(e[r],`
2
+ `)>=0)return!1;return!0}function Gn(e,r){var C;if(e.indent===" ")C=" ";else if(typeof e.indent=="number"&&e.indent>0)C=u.call(Array(e.indent+1)," ");else return null;return{base:C,prev:u.call(Array(r+1),C)}}function _r(e,r){if(e.length===0)return"";var C=`
3
+ `+r.prev+r.base;return C+u.call(e,","+C)+`
4
+ `+r.prev}function _e(e,r){var C=ue(e),B=[];if(C){B.length=e.length;for(var W=0;W<e.length;W++)B[W]=J(e,W)?r(e[W],e):""}var q=typeof I=="function"?I(e):[],ye;if(M){ye={};for(var de=0;de<q.length;de++)ye["$"+q[de]]=q[de]}for(var Y in e)J(e,Y)&&(C&&String(Number(Y))===Y&&Y<e.length||M&&ye["$"+Y]instanceof Symbol||(w.call(/[^\w$]/,Y)?B.push(r(Y,e)+": "+r(e[Y],e)):B.push(Y+": "+r(e[Y],e))));if(typeof I=="function")for(var se=0;se<q.length;se++)N.call(e,q[se])&&B.push("["+r(q[se])+"]: "+r(e[q[se]],e));return B}return De}var Me,Lr;function Zt(){if(Lr)return Me;Lr=1;var t=Ee(),l=ve(),c=function(y,A,d){for(var m=y,h;(h=m.next)!=null;m=h)if(h.key===A)return m.next=h.next,d||(h.next=y.next,y.next=h),h},i=function(y,A){if(y){var d=c(y,A);return d&&d.value}},g=function(y,A,d){var m=c(y,A);m?m.value=d:y.next={key:A,next:y.next,value:d}},O=function(y,A){return y?!!c(y,A):!1},_=function(y,A){if(y)return c(y,A,!0)};return Me=function(){var A,d={assert:function(m){if(!d.has(m))throw new l("Side channel does not contain "+t(m))},delete:function(m){var h=A&&A.next,D=_(A,m);return D&&h&&h===D&&(A=void 0),!!D},get:function(m){return i(A,m)},has:function(m){return O(A,m)},set:function(m,h){A||(A={next:void 0}),g(A,m,h)}};return d},Me}var Fe,Br;function Ur(){return Br||(Br=1,Fe=Object),Fe}var $e,Wr;function en(){return Wr||(Wr=1,$e=Error),$e}var Ne,Gr;function rn(){return Gr||(Gr=1,Ne=EvalError),Ne}var Ce,kr;function tn(){return kr||(kr=1,Ce=RangeError),Ce}var Te,Hr;function nn(){return Hr||(Hr=1,Te=ReferenceError),Te}var Le,zr;function an(){return zr||(zr=1,Le=SyntaxError),Le}var Be,Kr;function on(){return Kr||(Kr=1,Be=URIError),Be}var Ue,jr;function ln(){return jr||(jr=1,Ue=Math.abs),Ue}var We,Qr;function fn(){return Qr||(Qr=1,We=Math.floor),We}var Ge,Vr;function un(){return Vr||(Vr=1,Ge=Math.max),Ge}var ke,Xr;function cn(){return Xr||(Xr=1,ke=Math.min),ke}var He,Jr;function pn(){return Jr||(Jr=1,He=Math.pow),He}var ze,Yr;function yn(){return Yr||(Yr=1,ze=Math.round),ze}var Ke,Zr;function sn(){return Zr||(Zr=1,Ke=Number.isNaN||function(l){return l!==l}),Ke}var je,et;function dn(){if(et)return je;et=1;var t=sn();return je=function(c){return t(c)||c===0?c:c<0?-1:1},je}var Qe,rt;function vn(){return rt||(rt=1,Qe=Object.getOwnPropertyDescriptor),Qe}var Ve,tt;function nt(){if(tt)return Ve;tt=1;var t=vn();if(t)try{t([],"length")}catch{t=null}return Ve=t,Ve}var Xe,at;function hn(){if(at)return Xe;at=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Xe=t,Xe}var Je,ot;function mn(){return ot||(ot=1,Je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var l={},c=Symbol("test"),i=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var g=42;l[c]=g;for(var O in l)return!1;if(typeof Object.keys=="function"&&Object.keys(l).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(l).length!==0)return!1;var _=Object.getOwnPropertySymbols(l);if(_.length!==1||_[0]!==c||!Object.prototype.propertyIsEnumerable.call(l,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(l,c);if(y.value!==g||y.enumerable!==!0)return!1}return!0}),Je}var Ye,it;function gn(){if(it)return Ye;it=1;var t=typeof Symbol<"u"&&Symbol,l=mn();return Ye=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:l()},Ye}var Ze,lt;function ft(){return lt||(lt=1,Ze=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ze}var er,ut;function ct(){if(ut)return er;ut=1;var t=Ur();return er=t.getPrototypeOf||null,er}var rr,pt;function Sn(){if(pt)return rr;pt=1;var t="Function.prototype.bind called on incompatible ",l=Object.prototype.toString,c=Math.max,i="[object Function]",g=function(A,d){for(var m=[],h=0;h<A.length;h+=1)m[h]=A[h];for(var D=0;D<d.length;D+=1)m[D+A.length]=d[D];return m},O=function(A,d){for(var m=[],h=d,D=0;h<A.length;h+=1,D+=1)m[D]=A[h];return m},_=function(y,A){for(var d="",m=0;m<y.length;m+=1)d+=y[m],m+1<y.length&&(d+=A);return d};return rr=function(A){var d=this;if(typeof d!="function"||l.apply(d)!==i)throw new TypeError(t+d);for(var m=O(arguments,1),h,D=function(){if(this instanceof h){var R=d.apply(this,g(m,arguments));return Object(R)===R?R:this}return d.apply(A,g(m,arguments))},P=c(0,d.length-m.length),a=[],f=0;f<P;f++)a[f]="$"+f;if(h=Function("binder","return function ("+_(a,",")+"){ return binder.apply(this,arguments); }")(D),d.prototype){var o=function(){};o.prototype=d.prototype,h.prototype=new o,o.prototype=null}return h},rr}var tr,yt;function Pe(){if(yt)return tr;yt=1;var t=Sn();return tr=Function.prototype.bind||t,tr}var nr,st;function ar(){return st||(st=1,nr=Function.prototype.call),nr}var or,dt;function vt(){return dt||(dt=1,or=Function.prototype.apply),or}var ir,ht;function wn(){return ht||(ht=1,ir=typeof Reflect<"u"&&Reflect&&Reflect.apply),ir}var lr,mt;function bn(){if(mt)return lr;mt=1;var t=Pe(),l=vt(),c=ar(),i=wn();return lr=i||t.call(c,l),lr}var fr,gt;function St(){if(gt)return fr;gt=1;var t=Pe(),l=ve(),c=ar(),i=bn();return fr=function(O){if(O.length<1||typeof O[0]!="function")throw new l("a function is required");return i(t,c,O)},fr}var ur,wt;function On(){if(wt)return ur;wt=1;var t=St(),l=nt(),c;try{c=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var i=!!c&&l&&l(Object.prototype,"__proto__"),g=Object,O=g.getPrototypeOf;return ur=i&&typeof i.get=="function"?t([i.get]):typeof O=="function"?function(y){return O(y==null?y:g(y))}:!1,ur}var cr,bt;function An(){if(bt)return cr;bt=1;var t=ft(),l=ct(),c=On();return cr=t?function(g){return t(g)}:l?function(g){if(!g||typeof g!="object"&&typeof g!="function")throw new TypeError("getProto: not an object");return l(g)}:c?function(g){return c(g)}:null,cr}var pr,Ot;function En(){if(Ot)return pr;Ot=1;var t=Function.prototype.call,l=Object.prototype.hasOwnProperty,c=Pe();return pr=c.call(t,l),pr}var yr,At;function sr(){if(At)return yr;At=1;var t,l=Ur(),c=en(),i=rn(),g=tn(),O=nn(),_=an(),y=ve(),A=on(),d=ln(),m=fn(),h=un(),D=cn(),P=pn(),a=yn(),f=dn(),o=Function,R=function(K){try{return o('"use strict"; return ('+K+").constructor;")()}catch{}},v=nt(),S=hn(),F=function(){throw new y},E=v?(function(){try{return arguments.callee,F}catch{try{return v(arguments,"callee").get}catch{return F}}})():F,w=gn()(),n=An(),u=ct(),s=ft(),b=vt(),x=ar(),I={},U=typeof Uint8Array>"u"||!n?t:n(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":w&&n?n([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":c,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&n?n(n([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!n?t:n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":l,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":g,"%ReferenceError%":O,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!n?t:n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&n?n(""[Symbol.iterator]()):t,"%Symbol%":w?Symbol:t,"%SyntaxError%":_,"%ThrowTypeError%":E,"%TypedArray%":U,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":A,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":b,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":u,"%Math.abs%":d,"%Math.floor%":m,"%Math.max%":h,"%Math.min%":D,"%Math.pow%":P,"%Math.round%":a,"%Math.sign%":f,"%Reflect.getPrototypeOf%":s};if(n)try{null.error}catch(K){var G=n(n(K));M["%Error.prototype%"]=G}var N=function K($){var k;if($==="%AsyncFunction%")k=R("async function () {}");else if($==="%GeneratorFunction%")k=R("function* () {}");else if($==="%AsyncGeneratorFunction%")k=R("async function* () {}");else if($==="%AsyncGenerator%"){var L=K("%AsyncGeneratorFunction%");L&&(k=L.prototype)}else if($==="%AsyncIteratorPrototype%"){var z=K("%AsyncGenerator%");z&&n&&(k=n(z.prototype))}return M[$]=k,k},H={__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"]},p=Pe(),T=En(),j=p.call(x,Array.prototype.concat),Z=p.call(b,Array.prototype.splice),ie=p.call(x,String.prototype.replace),le=p.call(x,String.prototype.slice),fe=p.call(x,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,ue=function($){var k=le($,0,1),L=le($,-1);if(k==="%"&&L!=="%")throw new _("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&k!=="%")throw new _("invalid intrinsic syntax, expected opening `%`");var z=[];return ie($,oe,function(Q,re,V,J){z[z.length]=V?ie(J,ee,"$1"):re||Q}),z},ce=function($,k){var L=$,z;if(T(H,L)&&(z=H[L],L="%"+z[0]+"%"),T(M,L)){var Q=M[L];if(Q===I&&(Q=N(L)),typeof Q>"u"&&!k)throw new y("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:z,name:L,value:Q}}throw new _("intrinsic "+$+" does not exist!")};return yr=function($,k){if(typeof $!="string"||$.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof k!="boolean")throw new y('"allowMissing" argument must be a boolean');if(fe(/^%?[^%]*%?$/,$)===null)throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=ue($),z=L.length>0?L[0]:"",Q=ce("%"+z+"%",k),re=Q.name,V=Q.value,J=!1,te=Q.alias;te&&(z=te[0],Z(L,j([0,1],te)));for(var he=1,pe=!0;he<L.length;he+=1){var ne=L[he],me=le(ne,0,1),ge=le(ne,-1);if((me==='"'||me==="'"||me==="`"||ge==='"'||ge==="'"||ge==="`")&&me!==ge)throw new _("property names with quotes must have matching quotes");if((ne==="constructor"||!pe)&&(J=!0),z+="."+ne,re="%"+z+"%",T(M,re))V=M[re];else if(V!=null){if(!(ne in V)){if(!k)throw new y("base intrinsic for "+$+" exists, but the property is not available.");return}if(v&&he+1>=L.length){var Se=v(V,ne);pe=!!Se,pe&&"get"in Se&&!("originalValue"in Se.get)?V=Se.get:V=V[ne]}else pe=T(V,ne),V=V[ne];pe&&!J&&(M[re]=V)}}return V},yr}var dr,Et;function Pt(){if(Et)return dr;Et=1;var t=sr(),l=St(),c=l([t("%String.prototype.indexOf%")]);return dr=function(g,O){var _=t(g,!!O);return typeof _=="function"&&c(g,".prototype.")>-1?l([_]):_},dr}var vr,Rt;function _t(){if(Rt)return vr;Rt=1;var t=sr(),l=Pt(),c=Ee(),i=ve(),g=t("%Map%",!0),O=l("Map.prototype.get",!0),_=l("Map.prototype.set",!0),y=l("Map.prototype.has",!0),A=l("Map.prototype.delete",!0),d=l("Map.prototype.size",!0);return vr=!!g&&function(){var h,D={assert:function(P){if(!D.has(P))throw new i("Side channel does not contain "+c(P))},delete:function(P){if(h){var a=A(h,P);return d(h)===0&&(h=void 0),a}return!1},get:function(P){if(h)return O(h,P)},has:function(P){return h?y(h,P):!1},set:function(P,a){h||(h=new g),_(h,P,a)}};return D},vr}var hr,xt;function Pn(){if(xt)return hr;xt=1;var t=sr(),l=Pt(),c=Ee(),i=_t(),g=ve(),O=t("%WeakMap%",!0),_=l("WeakMap.prototype.get",!0),y=l("WeakMap.prototype.set",!0),A=l("WeakMap.prototype.has",!0),d=l("WeakMap.prototype.delete",!0);return hr=O?function(){var h,D,P={assert:function(a){if(!P.has(a))throw new g("Side channel does not contain "+c(a))},delete:function(a){if(O&&a&&(typeof a=="object"||typeof a=="function")){if(h)return d(h,a)}else if(i&&D)return D.delete(a);return!1},get:function(a){return O&&a&&(typeof a=="object"||typeof a=="function")&&h?_(h,a):D&&D.get(a)},has:function(a){return O&&a&&(typeof a=="object"||typeof a=="function")&&h?A(h,a):!!D&&D.has(a)},set:function(a,f){O&&a&&(typeof a=="object"||typeof a=="function")?(h||(h=new O),y(h,a,f)):i&&(D||(D=i()),D.set(a,f))}};return P}:i,hr}var mr,It;function qt(){if(It)return mr;It=1;var t=ve(),l=Ee(),c=Zt(),i=_t(),g=Pn(),O=g||i||c;return mr=function(){var y,A={assert:function(d){if(!A.has(d))throw new t("Side channel does not contain "+l(d))},delete:function(d){return!!y&&y.delete(d)},get:function(d){return y&&y.get(d)},has:function(d){return!!y&&y.has(d)},set:function(d,m){y||(y=O()),y.set(d,m)}};return A},mr}var gr,Dt;function Sr(){if(Dt)return gr;Dt=1;var t=String.prototype.replace,l=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};return gr={default:c.RFC3986,formatters:{RFC1738:function(i){return t.call(i,l,"+")},RFC3986:function(i){return String(i)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986},gr}var wr,Mt;function Ft(){if(Mt)return wr;Mt=1;var t=Sr(),l=qt(),c=Object.prototype.hasOwnProperty,i=Array.isArray,g=l(),O=function(n,u){return g.set(n,u),n},_=function(n){return g.has(n)},y=function(n){return g.get(n)},A=function(n,u){g.set(n,u)},d=(function(){for(var w=[],n=0;n<256;++n)w[w.length]="%"+((n<16?"0":"")+n.toString(16)).toUpperCase();return w})(),m=function(n){for(;n.length>1;){var u=n.pop(),s=u.obj[u.prop];if(i(s)){for(var b=[],x=0;x<s.length;++x)typeof s[x]<"u"&&(b[b.length]=s[x]);u.obj[u.prop]=b}}},h=function(n,u){for(var s=u&&u.plainObjects?{__proto__:null}:{},b=0;b<n.length;++b)typeof n[b]<"u"&&(s[b]=n[b]);return s},D=function w(n,u,s){if(!u)return n;if(typeof u!="object"&&typeof u!="function"){if(i(n)){var b=n.length;if(s&&typeof s.arrayLimit=="number"&&b>s.arrayLimit)return O(h(n.concat(u),s),b);n[b]=u}else if(n&&typeof n=="object")if(_(n)){var x=y(n)+1;n[x]=u,A(n,x)}else{if(s&&s.strictMerge)return[n,u];(s&&(s.plainObjects||s.allowPrototypes)||!c.call(Object.prototype,u))&&(n[u]=!0)}else return[n,u];return n}if(!n||typeof n!="object"){if(_(u)){for(var I=Object.keys(u),U=s&&s.plainObjects?{__proto__:null,0:n}:{0:n},M=0;M<I.length;M++){var G=parseInt(I[M],10);U[G+1]=u[I[M]]}return O(U,y(u)+1)}var N=[n].concat(u);return s&&typeof s.arrayLimit=="number"&&N.length>s.arrayLimit?O(h(N,s),N.length-1):N}var H=n;return i(n)&&!i(u)&&(H=h(n,s)),i(n)&&i(u)?(u.forEach(function(p,T){if(c.call(n,T)){var j=n[T];j&&typeof j=="object"&&p&&typeof p=="object"?n[T]=w(j,p,s):n[n.length]=p}else n[T]=p}),n):Object.keys(u).reduce(function(p,T){var j=u[T];if(c.call(p,T)?p[T]=w(p[T],j,s):p[T]=j,_(u)&&!_(p)&&O(p,y(u)),_(p)){var Z=parseInt(T,10);String(Z)===T&&Z>=0&&Z>y(p)&&A(p,Z)}return p},H)},P=function(n,u){return Object.keys(u).reduce(function(s,b){return s[b]=u[b],s},n)},a=function(w,n,u){var s=w.replace(/\+/g," ");if(u==="iso-8859-1")return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch{return s}},f=1024,o=function(n,u,s,b,x){if(n.length===0)return n;var I=n;if(typeof n=="symbol"?I=Symbol.prototype.toString.call(n):typeof n!="string"&&(I=String(n)),s==="iso-8859-1")return escape(I).replace(/%u[0-9a-f]{4}/gi,function(T){return"%26%23"+parseInt(T.slice(2),16)+"%3B"});for(var U="",M=0;M<I.length;M+=f){for(var G=I.length>=f?I.slice(M,M+f):I,N=[],H=0;H<G.length;++H){var p=G.charCodeAt(H);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||x===t.RFC1738&&(p===40||p===41)){N[N.length]=G.charAt(H);continue}if(p<128){N[N.length]=d[p];continue}if(p<2048){N[N.length]=d[192|p>>6]+d[128|p&63];continue}if(p<55296||p>=57344){N[N.length]=d[224|p>>12]+d[128|p>>6&63]+d[128|p&63];continue}H+=1,p=65536+((p&1023)<<10|G.charCodeAt(H)&1023),N[N.length]=d[240|p>>18]+d[128|p>>12&63]+d[128|p>>6&63]+d[128|p&63]}U+=N.join("")}return U},R=function(n){for(var u=[{obj:{o:n},prop:"o"}],s=[],b=0;b<u.length;++b)for(var x=u[b],I=x.obj[x.prop],U=Object.keys(I),M=0;M<U.length;++M){var G=U[M],N=I[G];typeof N=="object"&&N!==null&&s.indexOf(N)===-1&&(u[u.length]={obj:I,prop:G},s[s.length]=N)}return m(u),n},v=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},S=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},F=function(n,u,s,b){if(_(n)){var x=y(n)+1;return n[x]=u,A(n,x),n}var I=[].concat(n,u);return I.length>s?O(h(I,{plainObjects:b}),I.length-1):I},E=function(n,u){if(i(n)){for(var s=[],b=0;b<n.length;b+=1)s[s.length]=u(n[b]);return s}return u(n)};return wr={arrayToObject:h,assign:P,combine:F,compact:R,decode:a,encode:o,isBuffer:S,isOverflow:_,isRegExp:v,markOverflow:O,maybeMap:E,merge:D},wr}var br,$t;function Rn(){if($t)return br;$t=1;var t=qt(),l=Ft(),c=Sr(),i=Object.prototype.hasOwnProperty,g={brackets:function(o){return o+"[]"},comma:"comma",indices:function(o,R){return o+"["+R+"]"},repeat:function(o){return o}},O=Array.isArray,_=Array.prototype.push,y=function(f,o){_.apply(f,O(o)?o:[o])},A=Date.prototype.toISOString,d=c.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:l.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:c.formatters[d],indices:!1,serializeDate:function(o){return A.call(o)},skipNulls:!1,strictNullHandling:!1},h=function(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o=="symbol"||typeof o=="bigint"},D={},P=function f(o,R,v,S,F,E,w,n,u,s,b,x,I,U,M,G,N,H){for(var p=o,T=H,j=0,Z=!1;(T=T.get(D))!==void 0&&!Z;){var ie=T.get(o);if(j+=1,typeof ie<"u"){if(ie===j)throw new RangeError("Cyclic object value");Z=!0}typeof T.get(D)>"u"&&(j=0)}if(typeof s=="function"?p=s(R,p):p instanceof Date?p=I(p):v==="comma"&&O(p)&&(p=l.maybeMap(p,function(re){return re instanceof Date?I(re):re})),p===null){if(E)return u&&!G?u(R,m.encoder,N,"key",U):R;p=""}if(h(p)||l.isBuffer(p)){if(u){var le=G?R:u(R,m.encoder,N,"key",U);return[M(le)+"="+M(u(p,m.encoder,N,"value",U))]}return[M(R)+"="+M(String(p))]}var fe=[];if(typeof p>"u")return fe;var oe;if(v==="comma"&&O(p))G&&u&&(p=l.maybeMap(p,u)),oe=[{value:p.length>0?p.join(",")||null:void 0}];else if(O(s))oe=s;else{var ee=Object.keys(p);oe=b?ee.sort(b):ee}var ue=n?String(R).replace(/\./g,"%2E"):String(R),ce=S&&O(p)&&p.length===1?ue+"[]":ue;if(F&&O(p)&&p.length===0)return ce+"[]";for(var K=0;K<oe.length;++K){var $=oe[K],k=typeof $=="object"&&$&&typeof $.value<"u"?$.value:p[$];if(!(w&&k===null)){var L=x&&n?String($).replace(/\./g,"%2E"):String($),z=O(p)?typeof v=="function"?v(ce,L):ce:ce+(x?"."+L:"["+L+"]");H.set(o,j);var Q=t();Q.set(D,H),y(fe,f(k,z,v,S,F,E,w,n,v==="comma"&&G&&O(p)?null:u,s,b,x,I,U,M,G,N,Q))}}return fe},a=function(o){if(!o)return m;if(typeof o.allowEmptyArrays<"u"&&typeof o.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof o.encodeDotInKeys<"u"&&typeof o.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(o.encoder!==null&&typeof o.encoder<"u"&&typeof o.encoder!="function")throw new TypeError("Encoder has to be a function.");var R=o.charset||m.charset;if(typeof o.charset<"u"&&o.charset!=="utf-8"&&o.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=c.default;if(typeof o.format<"u"){if(!i.call(c.formatters,o.format))throw new TypeError("Unknown format option provided.");v=o.format}var S=c.formatters[v],F=m.filter;(typeof o.filter=="function"||O(o.filter))&&(F=o.filter);var E;if(o.arrayFormat in g?E=o.arrayFormat:"indices"in o?E=o.indices?"indices":"repeat":E=m.arrayFormat,"commaRoundTrip"in o&&typeof o.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var w=typeof o.allowDots>"u"?o.encodeDotInKeys===!0?!0:m.allowDots:!!o.allowDots;return{addQueryPrefix:typeof o.addQueryPrefix=="boolean"?o.addQueryPrefix:m.addQueryPrefix,allowDots:w,allowEmptyArrays:typeof o.allowEmptyArrays=="boolean"?!!o.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:E,charset:R,charsetSentinel:typeof o.charsetSentinel=="boolean"?o.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!o.commaRoundTrip,delimiter:typeof o.delimiter>"u"?m.delimiter:o.delimiter,encode:typeof o.encode=="boolean"?o.encode:m.encode,encodeDotInKeys:typeof o.encodeDotInKeys=="boolean"?o.encodeDotInKeys:m.encodeDotInKeys,encoder:typeof o.encoder=="function"?o.encoder:m.encoder,encodeValuesOnly:typeof o.encodeValuesOnly=="boolean"?o.encodeValuesOnly:m.encodeValuesOnly,filter:F,format:v,formatter:S,serializeDate:typeof o.serializeDate=="function"?o.serializeDate:m.serializeDate,skipNulls:typeof o.skipNulls=="boolean"?o.skipNulls:m.skipNulls,sort:typeof o.sort=="function"?o.sort:null,strictNullHandling:typeof o.strictNullHandling=="boolean"?o.strictNullHandling:m.strictNullHandling}};return br=function(f,o){var R=f,v=a(o),S,F;typeof v.filter=="function"?(F=v.filter,R=F("",R)):O(v.filter)&&(F=v.filter,S=F);var E=[];if(typeof R!="object"||R===null)return"";var w=g[v.arrayFormat],n=w==="comma"&&v.commaRoundTrip;S||(S=Object.keys(R)),v.sort&&S.sort(v.sort);for(var u=t(),s=0;s<S.length;++s){var b=S[s],x=R[b];v.skipNulls&&x===null||y(E,P(x,b,w,n,v.allowEmptyArrays,v.strictNullHandling,v.skipNulls,v.encodeDotInKeys,v.encode?v.encoder:null,v.filter,v.sort,v.allowDots,v.serializeDate,v.format,v.formatter,v.encodeValuesOnly,v.charset,u))}var I=E.join(v.delimiter),U=v.addQueryPrefix===!0?"?":"";return v.charsetSentinel&&(v.charset==="iso-8859-1"?U+="utf8=%26%2310003%3B&":U+="utf8=%E2%9C%93&"),I.length>0?U+I:""},br}var Or,Nt;function _n(){if(Nt)return Or;Nt=1;var t=Ft(),l=Object.prototype.hasOwnProperty,c=Array.isArray,i={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,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},g=function(P){return P.replace(/&#(\d+);/g,function(a,f){return String.fromCharCode(parseInt(f,10))})},O=function(P,a,f){if(P&&typeof P=="string"&&a.comma&&P.indexOf(",")>-1)return P.split(",");if(a.throwOnLimitExceeded&&f>=a.arrayLimit)throw new RangeError("Array limit exceeded. Only "+a.arrayLimit+" element"+(a.arrayLimit===1?"":"s")+" allowed in an array.");return P},_="utf8=%26%2310003%3B",y="utf8=%E2%9C%93",A=function(a,f){var o={__proto__:null},R=f.ignoreQueryPrefix?a.replace(/^\?/,""):a;R=R.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var v=f.parameterLimit===1/0?void 0:f.parameterLimit,S=R.split(f.delimiter,f.throwOnLimitExceeded?v+1:v);if(f.throwOnLimitExceeded&&S.length>v)throw new RangeError("Parameter limit exceeded. Only "+v+" parameter"+(v===1?"":"s")+" allowed.");var F=-1,E,w=f.charset;if(f.charsetSentinel)for(E=0;E<S.length;++E)S[E].indexOf("utf8=")===0&&(S[E]===y?w="utf-8":S[E]===_&&(w="iso-8859-1"),F=E,E=S.length);for(E=0;E<S.length;++E)if(E!==F){var n=S[E],u=n.indexOf("]="),s=u===-1?n.indexOf("="):u+1,b,x;if(s===-1?(b=f.decoder(n,i.decoder,w,"key"),x=f.strictNullHandling?null:""):(b=f.decoder(n.slice(0,s),i.decoder,w,"key"),b!==null&&(x=t.maybeMap(O(n.slice(s+1),f,c(o[b])?o[b].length:0),function(U){return f.decoder(U,i.decoder,w,"value")}))),x&&f.interpretNumericEntities&&w==="iso-8859-1"&&(x=g(String(x))),n.indexOf("[]=")>-1&&(x=c(x)?[x]:x),f.comma&&c(x)&&x.length>f.arrayLimit){if(f.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");x=t.combine([],x,f.arrayLimit,f.plainObjects)}if(b!==null){var I=l.call(o,b);I&&(f.duplicates==="combine"||n.indexOf("[]=")>-1)?o[b]=t.combine(o[b],x,f.arrayLimit,f.plainObjects):(!I||f.duplicates==="last")&&(o[b]=x)}}return o},d=function(P,a,f,o){var R=0;if(P.length>0&&P[P.length-1]==="[]"){var v=P.slice(0,-1).join("");R=Array.isArray(a)&&a[v]?a[v].length:0}for(var S=o?a:O(a,f,R),F=P.length-1;F>=0;--F){var E,w=P[F];if(w==="[]"&&f.parseArrays)t.isOverflow(S)?E=S:E=f.allowEmptyArrays&&(S===""||f.strictNullHandling&&S===null)?[]:t.combine([],S,f.arrayLimit,f.plainObjects);else{E=f.plainObjects?{__proto__:null}:{};var n=w.charAt(0)==="["&&w.charAt(w.length-1)==="]"?w.slice(1,-1):w,u=f.decodeDotInKeys?n.replace(/%2E/g,"."):n,s=parseInt(u,10),b=!isNaN(s)&&w!==u&&String(s)===u&&s>=0&&f.parseArrays;if(!f.parseArrays&&u==="")E={0:S};else if(b&&s<f.arrayLimit)E=[],E[s]=S;else{if(b&&f.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");b?(E[s]=S,t.markOverflow(E,s)):u!=="__proto__"&&(E[u]=S)}}S=E}return S},m=function(a,f){var o=f.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a;if(f.depth<=0)return!f.plainObjects&&l.call(Object.prototype,o)&&!f.allowPrototypes?void 0:[o];var R=/(\[[^[\]]*])/,v=/(\[[^[\]]*])/g,S=R.exec(o),F=S?o.slice(0,S.index):o,E=[];if(F){if(!f.plainObjects&&l.call(Object.prototype,F)&&!f.allowPrototypes)return;E[E.length]=F}for(var w=0;(S=v.exec(o))!==null&&w<f.depth;){w+=1;var n=S[1].slice(1,-1);if(!f.plainObjects&&l.call(Object.prototype,n)&&!f.allowPrototypes)return;E[E.length]=S[1]}if(S){if(f.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+f.depth+" and strictDepth is true");E[E.length]="["+o.slice(S.index)+"]"}return E},h=function(a,f,o,R){if(a){var v=m(a,o);if(v)return d(v,f,o,R)}},D=function(a){if(!a)return i;if(typeof a.allowEmptyArrays<"u"&&typeof a.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof a.decodeDotInKeys<"u"&&typeof a.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(a.decoder!==null&&typeof a.decoder<"u"&&typeof a.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof a.charset<"u"&&a.charset!=="utf-8"&&a.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof a.throwOnLimitExceeded<"u"&&typeof a.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var f=typeof a.charset>"u"?i.charset:a.charset,o=typeof a.duplicates>"u"?i.duplicates:a.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var R=typeof a.allowDots>"u"?a.decodeDotInKeys===!0?!0:i.allowDots:!!a.allowDots;return{allowDots:R,allowEmptyArrays:typeof a.allowEmptyArrays=="boolean"?!!a.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof a.allowPrototypes=="boolean"?a.allowPrototypes:i.allowPrototypes,allowSparse:typeof a.allowSparse=="boolean"?a.allowSparse:i.allowSparse,arrayLimit:typeof a.arrayLimit=="number"?a.arrayLimit:i.arrayLimit,charset:f,charsetSentinel:typeof a.charsetSentinel=="boolean"?a.charsetSentinel:i.charsetSentinel,comma:typeof a.comma=="boolean"?a.comma:i.comma,decodeDotInKeys:typeof a.decodeDotInKeys=="boolean"?a.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof a.decoder=="function"?a.decoder:i.decoder,delimiter:typeof a.delimiter=="string"||t.isRegExp(a.delimiter)?a.delimiter:i.delimiter,depth:typeof a.depth=="number"||a.depth===!1?+a.depth:i.depth,duplicates:o,ignoreQueryPrefix:a.ignoreQueryPrefix===!0,interpretNumericEntities:typeof a.interpretNumericEntities=="boolean"?a.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof a.parameterLimit=="number"?a.parameterLimit:i.parameterLimit,parseArrays:a.parseArrays!==!1,plainObjects:typeof a.plainObjects=="boolean"?a.plainObjects:i.plainObjects,strictDepth:typeof a.strictDepth=="boolean"?!!a.strictDepth:i.strictDepth,strictMerge:typeof a.strictMerge=="boolean"?!!a.strictMerge:i.strictMerge,strictNullHandling:typeof a.strictNullHandling=="boolean"?a.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof a.throwOnLimitExceeded=="boolean"?a.throwOnLimitExceeded:!1}};return Or=function(P,a){var f=D(a);if(P===""||P===null||typeof P>"u")return f.plainObjects?{__proto__:null}:{};for(var o=typeof P=="string"?A(P,f):P,R=f.plainObjects?{__proto__:null}:{},v=Object.keys(o),S=0;S<v.length;++S){var F=v[S],E=h(F,o[F],f,typeof P=="string");R=t.merge(R,E,f)}return f.allowSparse===!0?R:t.compact(R)},Or}var Ar,Ct;function xn(){if(Ct)return Ar;Ct=1;var t=Rn(),l=_n(),c=Sr();return Ar={formats:c,parse:l,stringify:t},Ar}var In=xn();const qn=Xt(In);async function Dn(t){return{location:window.location.href}}async function Mn(t){const{link:l,params:c}=t,i=qn.stringify(c),g=`${l}${i?`?${i}`:""}`;return{message:`OK. Navigating to ${g}`,$:async()=>{window.location.href=g}}}const Fn={AX_get_env:Dn,AX_navigate:Mn},$n=new Proxy(Fn,{get(t,l){return t[l]??(()=>({status:"ERROR",message:`Unknown command: ${l}`}))}}),Er={};async function Nn(t,l,c){let i;try{i=await t(l,c)}catch{i=await $n[l](c)}if(i&&typeof i=="object"&&i.$){const g=Math.random().toString(36).slice(2)+Date.now().toString(36);return Er[g]=i.$,{...i,$:g}}return i}async function Cn(t){const l=Er[t];l&&(delete Er[t],await l())}let X=null,Re;const Tt=window.matchMedia("(max-width: 767px)");function Lt(t){X&&(t?X.style.cssText=["position:fixed","top:0","left:0","right:0","bottom:0","width:100%","height:100dvh","border:none","z-index:99999","background:transparent"].join(";"):X.style.cssText=["position:fixed","right:0","bottom:0","width:420px","height:680px","border:none","z-index:99999","background:transparent"].join(";"))}Tt.addEventListener("change",t=>{Lt(t.matches)});const Pr=document.currentScript,Bt=((Pr==null?void 0:Pr.src)??"").replace(/axsdk-browser\.js$/,""),Tn=Bt?Bt+"axsdk-browser-frame.js":"./axsdk-browser-frame.js";return window.addEventListener("message",async t=>{var c,i;if(!X||t.source!==X.contentWindow)return;const l=t.data;if((l==null?void 0:l.type)==="AXSDK_HANDLER_REQUEST"&&Re){const{requestId:g,command:O,args:_}=l;try{const y=await Nn(Re,O,_);(c=X.contentWindow)==null||c.postMessage({type:"AXSDK_HANDLER_RESPONSE",requestId:g,result:y},"*")}catch(y){const A=y instanceof Error?y.message:String(y);(i=X.contentWindow)==null||i.postMessage({type:"AXSDK_HANDLER_RESPONSE",requestId:g,error:A},"*")}}else if((l==null?void 0:l.type)==="AXSDK_HANDLER_CALLBACK"){const{callbackId:g}=l;try{await Cn(g)}catch(O){console.error("Error handling callback:",O)}}}),{init(t){if(X){console.warn("[AXSDKBrowser] Already initialized. Ignoring duplicate init() call.");return}Re=t.axHandler;const{axHandler:l,...c}=t,i=document.createElement("iframe");X=i,Lt(Tt.matches),i.setAttribute("allowtransparency","true"),i.setAttribute("frameborder","0"),i.srcdoc=["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta name="viewport" content="width=device-width,initial-scale=1">',"<style>*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;width:100%;overflow:hidden}</style>","</head>","<body>",`<script src="${Tn}"><\/script>`,"</body>","</html>"].join(""),i.addEventListener("load",()=>{var g;(g=i.contentWindow)==null||g.postMessage({type:"AXSDK_INIT",config:c},"*")}),document.body.appendChild(i)},destroy(){X&&X.parentNode&&X.parentNode.removeChild(X),X=null,Re=void 0}}})();
package/package.json CHANGED
@@ -1,47 +1,48 @@
1
- {
2
- "name": "@axsdk/browser",
3
- "version": "0.1.5",
4
- "private": false,
5
- "description": "axsdk browser - embed AXSDK widget in web",
6
- "keywords": [],
7
- "homepage": "https://github.com/layorixinc/axsdk-sdk-js",
8
- "bugs": {
9
- "url": "https://github.com/layorixinc/axsdk-sdk-js/issues"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/layorixinc/axsdk-sdk-js.git"
14
- },
15
- "license": "MIT",
16
- "author": "lordkeios@layorixinc.com",
17
- "type": "module",
18
- "exports": {
19
- ".": "./dist/axsdk-browser.js",
20
- "./frame": {
21
- "default": "./dist/axsdk-browser-frame.js"
22
- }
23
- },
24
- "files": [
25
- "dist"
26
- ],
27
- "scripts": {
28
- "build:browser": "vite build --config vite.config.browser.ts",
29
- "build:frame": "vite build --config vite.config.frame.ts",
30
- "build": "bun run build:browser && bun run build:frame",
31
- "dev": "vite --config vite.config.browser.ts",
32
- "publish": "bun run build && npm publish --access=public"
33
- },
34
- "dependencies": {
35
- "@axsdk/core": "workspace:*",
36
- "@axsdk/react": "workspace:*",
37
- "react": "^19",
38
- "react-dom": "^19"
39
- },
40
- "devDependencies": {
41
- "@types/react": "^19",
42
- "@types/react-dom": "^19",
43
- "@vitejs/plugin-react": "^4",
44
- "typescript": "^5",
45
- "vite": "^6"
46
- }
47
- }
1
+ {
2
+ "name": "@axsdk/browser",
3
+ "version": "0.1.7",
4
+ "private": false,
5
+ "description": "axsdk browser - embed AXSDK widget in web",
6
+ "keywords": [],
7
+ "homepage": "https://github.com/layorixinc/axsdk-sdk-js",
8
+ "bugs": {
9
+ "url": "https://github.com/layorixinc/axsdk-sdk-js/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/layorixinc/axsdk-sdk-js.git"
14
+ },
15
+ "license": "MIT",
16
+ "author": "lordkeios@layorixinc.com",
17
+ "type": "module",
18
+ "exports": {
19
+ ".": "./dist/axsdk-browser.js",
20
+ "./frame": {
21
+ "default": "./dist/axsdk-browser-frame.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "build:browser": "vite build --config vite.config.browser.ts",
29
+ "build:frame": "vite build --config vite.config.frame.ts",
30
+ "build": "bun run build:browser && bun run build:frame",
31
+ "dev": "vite --config vite.config.browser.ts",
32
+ "publish": "bun run build && npm publish --access=public"
33
+ },
34
+ "dependencies": {
35
+ "@axsdk/core": "workspace:*",
36
+ "@axsdk/react": "workspace:*",
37
+ "qs": "^6.15.0",
38
+ "react": "^19",
39
+ "react-dom": "^19"
40
+ },
41
+ "devDependencies": {
42
+ "@types/react": "^19",
43
+ "@types/react-dom": "^19",
44
+ "@vitejs/plugin-react": "^4",
45
+ "typescript": "^5",
46
+ "vite": "^6"
47
+ }
48
+ }