@swagger-api/apidom-json-pointer-relative 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/apidom-json-pointer-relative.browser.js +10227 -14682
- package/dist/apidom-json-pointer-relative.browser.min.js +4595 -1
- package/package.json +5 -5
|
@@ -1 +1,4595 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomJsonPointerRelative={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,i,o,s,a,u,c,l,f,h,p,m,y,d,v,g,b={},E={},w={};function j(){if(i)return r;i=1;var e=function(e){return e&&e.Math===Math&&e};return r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof r&&r)||function(){return this}()||Function("return this")()}function T(){return s?o:(s=1,o=function(e){try{return!!e()}catch(e){return!0}})}function O(){return u?a:(u=1,a=!T()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function A(){if(l)return c;l=1;var e=O(),t=Function.prototype,n=t.apply,r=t.call;return c="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),c}function S(){if(h)return f;h=1;var e=O(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return f=e?r:function(e){return function(){return n.apply(e,arguments)}},f}function k(){if(m)return p;m=1;var e=S(),t=e({}.toString),n=e("".slice);return p=function(e){return n(t(e),8,-1)}}function x(){if(d)return y;d=1;var e=k(),t=S();return y=function(n){if("Function"===e(n))return t(n)}}function P(){if(g)return v;g=1;var e="object"==typeof document&&document.all;return v=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var _,M,N,C,R={};function L(){return M?_:(M=1,_=!T()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function $(){if(C)return N;C=1;var e=O(),t=Function.prototype.call;return N=e?t.bind(t):function(){return t.apply(t,arguments)},N}var I,V,D,F,B,z,U,H,G,q,Y,J,K,W,X,Z,Q,ee,te,ne,re,ie,oe,se,ae,ue,ce,le,fe,he,pe,me,ye,de,ve,ge,be,Ee={};function we(){if(I)return Ee;I=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Ee.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Ee}function je(){return D?V:(D=1,V=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Te(){if(B)return F;B=1;var e=S(),t=T(),n=k(),r=Object,i=e("".split);return F=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function Oe(){return U?z:(U=1,z=function(e){return null==e})}function Ae(){if(G)return H;G=1;var e=Oe(),t=TypeError;return H=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Se(){if(Y)return q;Y=1;var e=Te(),t=Ae();return q=function(n){return e(t(n))}}function ke(){if(K)return J;K=1;var e=P();return J=function(t){return"object"==typeof t?null!==t:e(t)}}function xe(){return X?W:(X=1,W={})}function Pe(){if(Q)return Z;Q=1;var e=xe(),t=j(),n=P(),r=function(e){return n(e)?e:void 0};return Z=function(n,i){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][i]||t[n]&&t[n][i]},Z}function _e(){return te?ee:(te=1,ee=S()({}.isPrototypeOf))}function Me(){if(re)return ne;re=1;var e=j().navigator,t=e&&e.userAgent;return ne=t?String(t):""}function Ne(){if(oe)return ie;oe=1;var e,t,n=j(),r=Me(),i=n.process,o=n.Deno,s=i&&i.versions||o&&o.version,a=s&&s.v8;return a&&(t=(e=a.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),ie=t}function Ce(){if(ae)return se;ae=1;var e=Ne(),t=T(),n=j().String;return se=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function Re(){return ce?ue:(ce=1,ue=Ce()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Le(){if(fe)return le;fe=1;var e=Pe(),t=P(),n=_e(),r=Object;return le=Re()?function(e){return"symbol"==typeof e}:function(i){var o=e("Symbol");return t(o)&&n(o.prototype,r(i))}}function $e(){if(pe)return he;pe=1;var e=String;return he=function(t){try{return e(t)}catch(e){return"Object"}}}function Ie(){if(ye)return me;ye=1;var e=P(),t=$e(),n=TypeError;return me=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Ve(){if(ve)return de;ve=1;var e=Ie(),t=Oe();return de=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function De(){if(be)return ge;be=1;var e=$(),t=P(),n=ke(),r=TypeError;return ge=function(i,o){var s,a;if("string"===o&&t(s=i.toString)&&!n(a=e(s,i)))return a;if(t(s=i.valueOf)&&!n(a=e(s,i)))return a;if("string"!==o&&t(s=i.toString)&&!n(a=e(s,i)))return a;throw new r("Can't convert object to primitive value")}}var Fe,Be,ze,Ue,He,Ge,qe,Ye,Je,Ke,We,Xe,Ze,Qe,et,tt,nt,rt,it,ot,st,at,ut,ct,lt,ft,ht,pt,mt={exports:{}};function yt(){return Be?Fe:(Be=1,Fe=!0)}function dt(){if(Ue)return ze;Ue=1;var e=j(),t=Object.defineProperty;return ze=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function vt(){if(He)return mt.exports;He=1;var e=yt(),t=j(),n=dt(),r="__core-js_shared__",i=mt.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),mt.exports}function gt(){if(qe)return Ge;qe=1;var e=vt();return Ge=function(t,n){return e[t]||(e[t]=n||{})}}function bt(){if(Je)return Ye;Je=1;var e=Ae(),t=Object;return Ye=function(n){return t(e(n))}}function Et(){if(We)return Ke;We=1;var e=S(),t=bt(),n=e({}.hasOwnProperty);return Ke=Object.hasOwn||function(e,r){return n(t(e),r)}}function wt(){if(Ze)return Xe;Ze=1;var e=S(),t=0,n=Math.random(),r=e(1..toString);return Xe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function jt(){if(et)return Qe;et=1;var e=j(),t=gt(),n=Et(),r=wt(),i=Ce(),o=Re(),s=e.Symbol,a=t("wks"),u=o?s.for||s:s&&s.withoutSetter||r;return Qe=function(e){return n(a,e)||(a[e]=i&&n(s,e)?s[e]:u("Symbol."+e)),a[e]}}function Tt(){if(nt)return tt;nt=1;var e=$(),t=ke(),n=Le(),r=Ve(),i=De(),o=TypeError,s=jt()("toPrimitive");return tt=function(a,u){if(!t(a)||n(a))return a;var c,l=r(a,s);if(l){if(void 0===u&&(u="default"),c=e(l,a,u),!t(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(a,u)}}function Ot(){if(it)return rt;it=1;var e=Tt(),t=Le();return rt=function(n){var r=e(n,"string");return t(r)?r:r+""}}function At(){if(st)return ot;st=1;var e=j(),t=ke(),n=e.document,r=t(n)&&t(n.createElement);return ot=function(e){return r?n.createElement(e):{}}}function St(){if(ut)return at;ut=1;var e=L(),t=T(),n=At();return at=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function kt(){if(ct)return R;ct=1;var e=L(),t=$(),n=we(),r=je(),i=Se(),o=Ot(),s=Et(),a=St(),u=Object.getOwnPropertyDescriptor;return R.f=e?u:function(e,c){if(e=i(e),c=o(c),a)try{return u(e,c)}catch(e){}if(s(e,c))return r(!t(n.f,e,c),e[c])},R}function xt(){if(ft)return lt;ft=1;var e=T(),t=P(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===a||u!==s&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return lt=r}function Pt(){if(pt)return ht;pt=1;var e=x(),t=Ie(),n=O(),r=e(e.bind);return ht=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},ht}var _t,Mt,Nt,Ct,Rt,Lt,$t,It,Vt,Dt,Ft,Bt,zt,Ut,Ht,Gt,qt,Yt,Jt,Kt,Wt,Xt,Zt,Qt={};function en(){return Mt?_t:(Mt=1,_t=L()&&T()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function tn(){if(Ct)return Nt;Ct=1;var e=ke(),t=String,n=TypeError;return Nt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function nn(){if(Rt)return Qt;Rt=1;var e=L(),t=St(),n=en(),r=tn(),i=Ot(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return Qt.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var o=a(e,t);o&&o[l]&&(e[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return s(e,t,n)}:s:function(e,n,a){if(r(e),n=i(n),r(a),t)try{return s(e,n,a)}catch(e){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(e[n]=a.value),e},Qt}function rn(){if($t)return Lt;$t=1;var e=L(),t=nn(),n=je();return Lt=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}function on(){if(Vt)return It;Vt=1;var e=j(),t=A(),n=x(),r=P(),i=kt().f,o=xt(),s=xe(),a=Pt(),u=rn(),c=Et(),l=function(e){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,i)}return new e(r,i,o)}return t(e,this,arguments)};return n.prototype=e.prototype,n};return It=function(t,f){var h,p,m,y,d,v,g,b,E,w=t.target,j=t.global,T=t.stat,O=t.proto,A=j?e:T?e[w]:e[w]&&e[w].prototype,S=j?s:s[w]||u(s,w,{})[w],k=S.prototype;for(y in f)p=!(h=o(j?y:w+(T?".":"#")+y,t.forced))&&A&&c(A,y),v=S[y],p&&(g=t.dontCallGetSet?(E=i(A,y))&&E.value:A[y]),d=p&&g?g:f[y],(h||O||typeof v!=typeof d)&&(b=t.bind&&p?a(d,e):t.wrap&&p?l(d):O&&r(d)?n(d):d,(t.sham||d&&d.sham||v&&v.sham)&&u(b,"sham",!0),u(S,y,b),O&&(c(s,m=w+"Prototype")||u(s,m,{}),u(s[m],y,d),t.real&&k&&(h||!k[y])&&u(k,y,d)))}}function sn(){if(Ft)return Dt;Ft=1;var e=gt(),t=wt(),n=e("keys");return Dt=function(e){return n[e]||(n[e]=t(e))}}function an(){return zt?Bt:(zt=1,Bt=!T()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})))}function un(){if(Ht)return Ut;Ht=1;var e=Et(),t=P(),n=bt(),r=sn(),i=an(),o=r("IE_PROTO"),s=Object,a=s.prototype;return Ut=i?s.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var u=i.constructor;return t(u)&&i instanceof u?u.prototype:i instanceof s?a:null}}function cn(){if(qt)return Gt;qt=1;var e=S(),t=Ie();return Gt=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}function ln(){if(Jt)return Yt;Jt=1;var e=ke();return Yt=function(t){return e(t)||null===t}}function fn(){if(Wt)return Kt;Wt=1;var e=ln(),t=String,n=TypeError;return Kt=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function hn(){if(Zt)return Xt;Zt=1;var e=cn(),t=ke(),n=Ae(),r=fn();return Xt=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=e(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(e){}return function(e,s){return n(e),r(s),t(e)?(o?i(e,s):e.__proto__=s,e):e}}():void 0)}var pn,mn,yn,dn,vn,gn,bn,En,wn,jn,Tn,On,An,Sn,kn,xn,Pn,_n,Mn,Nn={};function Cn(){if(mn)return pn;mn=1;var e=Math.ceil,t=Math.floor;return pn=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function Rn(){if(dn)return yn;dn=1;var e=Cn();return yn=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Ln(){if(gn)return vn;gn=1;var e=Rn(),t=Math.max,n=Math.min;return vn=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)}}function $n(){if(En)return bn;En=1;var e=Rn(),t=Math.min;return bn=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function In(){if(jn)return wn;jn=1;var e=$n();return wn=function(t){return e(t.length)}}function Vn(){if(On)return Tn;On=1;var e=Se(),t=Ln(),n=In(),r=function(r){return function(i,o,s){var a=e(i),u=n(a);if(0===u)return!r&&-1;var c,l=t(s,u);if(r&&o!=o){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((r||l in a)&&a[l]===o)return r||l||0;return!r&&-1}};return Tn={includes:r(!0),indexOf:r(!1)}}function Dn(){return Sn?An:(Sn=1,An={})}function Fn(){if(xn)return kn;xn=1;var e=S(),t=Et(),n=Se(),r=Vn().indexOf,i=Dn(),o=e([].push);return kn=function(e,s){var a,u=n(e),c=0,l=[];for(a in u)!t(i,a)&&t(u,a)&&o(l,a);for(;s.length>c;)t(u,a=s[c++])&&(~r(l,a)||o(l,a));return l}}function Bn(){return _n?Pn:(_n=1,Pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function zn(){if(Mn)return Nn;Mn=1;var e=Fn(),t=Bn().concat("length","prototype");return Nn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Nn}var Un,Hn,Gn,qn,Yn,Jn={};function Kn(){return Un||(Un=1,Jn.f=Object.getOwnPropertySymbols),Jn}function Wn(){if(Gn)return Hn;Gn=1;var e=Pe(),t=S(),n=zn(),r=Kn(),i=tn(),o=t([].concat);return Hn=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),s=r.f;return s?o(t,s(e)):t},Hn}function Xn(){if(Yn)return qn;Yn=1;var e=Et(),t=Wn(),n=kt(),r=nn();return qn=function(i,o,s){for(var a=t(o),u=r.f,c=n.f,l=0;l<a.length;l++){var f=a[l];e(i,f)||s&&e(s,f)||u(i,f,c(o,f))}},qn}var Zn,Qn,er,tr,nr,rr,ir,or,sr,ar,ur,cr,lr,fr,hr,pr,mr,yr,dr,vr,gr,br,Er,wr,jr,Tr,Or,Ar,Sr,kr,xr,Pr,_r,Mr,Nr,Cr,Rr,Lr,$r={};function Ir(){if(Qn)return Zn;Qn=1;var e=Fn(),t=Bn();return Zn=Object.keys||function(n){return e(n,t)}}function Vr(){if(er)return $r;er=1;var e=L(),t=en(),n=nn(),r=tn(),i=Se(),o=Ir();return $r.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var s,a=i(t),u=o(t),c=u.length,l=0;c>l;)n.f(e,s=u[l++],a[s]);return e},$r}function Dr(){return nr?tr:(nr=1,tr=Pe()("document","documentElement"))}function Fr(){if(ir)return rr;ir=1;var e,t=tn(),n=Vr(),r=Bn(),i=Dn(),o=Dr(),s=At(),a="prototype",u="script",c=sn()("IE_PROTO"),l=function(){},f=function(e){return"<"+u+">"+e+"</"+u+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,i;p="undefined"!=typeof document?document.domain&&e?h(e):(n=s("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(e);for(var c=r.length;c--;)delete p[a][r[c]];return p()};return i[c]=!0,rr=Object.create||function(e,r){var i;return null!==e?(l[a]=t(e),i=new l,l[a]=null,i[c]=e):i=p(),void 0===r?i:n.f(i,r)}}function Br(){if(sr)return or;sr=1;var e=ke(),t=rn();return or=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)}}function zr(){if(ur)return ar;ur=1;var e=Error,t=S()("".replace),n=String(new e("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,i=r.test(n);return ar=function(n,o){if(i&&"string"==typeof n&&!e.prepareStackTrace)for(;o--;)n=t(n,r,"");return n}}function Ur(){if(lr)return cr;lr=1;var e=T(),t=je();return cr=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function Hr(){if(hr)return fr;hr=1;var e=rn(),t=zr(),n=Ur(),r=Error.captureStackTrace;return fr=function(i,o,s,a){n&&(r?r(i,o):e(i,"stack",t(s,a)))}}function Gr(){return mr?pr:(mr=1,pr={})}function qr(){if(dr)return yr;dr=1;var e=jt(),t=Gr(),n=e("iterator"),r=Array.prototype;return yr=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function Yr(){if(gr)return vr;gr=1;var e={};return e[jt()("toStringTag")]="z",vr="[object z]"===String(e)}function Jr(){if(Er)return br;Er=1;var e=Yr(),t=P(),n=k(),r=jt()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return br=e?n:function(e){var s,a,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(s=i(e),r))?a:o?n(s):"Object"===(u=n(s))&&t(s.callee)?"Arguments":u}}function Kr(){if(jr)return wr;jr=1;var e=Jr(),t=Ve(),n=Oe(),r=Gr(),i=jt()("iterator");return wr=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]}}function Wr(){if(Or)return Tr;Or=1;var e=$(),t=Ie(),n=tn(),r=$e(),i=Kr(),o=TypeError;return Tr=function(s,a){var u=arguments.length<2?i(s):a;if(t(u))return n(e(u,s));throw new o(r(s)+" is not iterable")},Tr}function Xr(){if(Sr)return Ar;Sr=1;var e=$(),t=tn(),n=Ve();return Ar=function(r,i,o){var s,a;t(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=e(s,r)}catch(e){a=!0,s=e}if("throw"===i)throw o;if(a)throw s;return t(s),o}}function Zr(){if(xr)return kr;xr=1;var e=Pt(),t=$(),n=tn(),r=$e(),i=qr(),o=In(),s=_e(),a=Wr(),u=Kr(),c=Xr(),l=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;return kr=function(p,m,y){var d,v,g,b,E,w,j,T=y&&y.that,O=!(!y||!y.AS_ENTRIES),A=!(!y||!y.IS_RECORD),S=!(!y||!y.IS_ITERATOR),k=!(!y||!y.INTERRUPTED),x=e(m,T),P=function(e){return d&&c(d,"normal",e),new f(!0,e)},_=function(e){return O?(n(e),k?x(e[0],e[1],P):x(e[0],e[1])):k?x(e,P):x(e)};if(A)d=p.iterator;else if(S)d=p;else{if(!(v=u(p)))throw new l(r(p)+" is not iterable");if(i(v)){for(g=0,b=o(p);b>g;g++)if((E=_(p[g]))&&s(h,E))return E;return new f(!1)}d=a(p,v)}for(w=A?p.next:d.next;!(j=t(w,d)).done;){try{E=_(j.value)}catch(e){c(d,"throw",e)}if("object"==typeof E&&E&&s(h,E))return E}return new f(!1)}}function Qr(){if(_r)return Pr;_r=1;var e=Jr(),t=String;return Pr=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function ei(){if(Nr)return Mr;Nr=1;var e=Qr();return Mr=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},Mr}function ti(){return Rr||(Rr=1,function(){if(Cr)return w;Cr=1;var e=on(),t=_e(),n=un(),r=hn(),i=Xn(),o=Fr(),s=rn(),a=je(),u=Br(),c=Hr(),l=Zr(),f=ei(),h=jt()("toStringTag"),p=Error,m=[].push,y=function(e,i){var a,v=t(d,this);r?a=r(new p,v?n(this):d):(a=v?this:o(d),s(a,h,"Error")),void 0!==i&&s(a,"message",f(i)),c(a,y,a.stack,1),arguments.length>2&&u(a,arguments[2]);var g=[];return l(e,m,{that:g}),s(a,"errors",g),a};r?r(y,p):i(y,p,{name:!0});var d=y.prototype=o(p.prototype,{constructor:a(1,y),message:a(1,""),name:a(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:y})}()),E}function ni(){return Lr||(Lr=1,ti()),b}var ri,ii,oi,si,ai,ui,ci,li={};function fi(){if(ii)return ri;ii=1;var e=nn().f;return ri=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function hi(){if(si)return oi;si=1;var e=P(),t=ke(),n=hn();return oi=function(r,i,o){var s,a;return n&&e(s=i.constructor)&&s!==o&&t(a=s.prototype)&&a!==o.prototype&&n(r,a),r}}function pi(){if(ui)return ai;ui=1;var e=Pe(),t=Et(),n=rn(),r=_e(),i=hn(),o=Xn(),s=fi(),a=hi(),u=ei(),c=Br(),l=Hr(),f=L(),h=yt();return ai=function(p,m,y,d){var v="stackTraceLimit",g=d?2:1,b=p.split("."),E=b[b.length-1],w=e.apply(null,b);if(w){var j=w.prototype;if(!h&&t(j,"cause")&&delete j.cause,!y)return w;var T=e("Error"),O=m((function(e,t){var i=u(d?t:e,void 0),o=d?new w(e):new w;return void 0!==i&&n(o,"message",i),l(o,O,o.stack,2),this&&r(j,this)&&a(o,this,O),arguments.length>g&&c(o,arguments[g]),o}));if(O.prototype=j,"Error"!==E?i?i(O,T):o(O,T,{name:!0}):f&&v in w&&(s(O,w,v),s(O,w,"prepareStackTrace")),o(O,w),!h)try{j.name!==E&&n(j,"name",E),j.constructor=O}catch(e){}return O}},ai}var mi,yi,di,vi,gi,bi,Ei,wi,ji,Ti,Oi,Ai,Si,ki,xi,Pi,_i,Mi,Ni,Ci,Ri,Li,$i,Ii,Vi,Di={};function Fi(){return di?yi:(di=1,yi=function(){})}function Bi(){if(gi)return vi;gi=1;var e=j(),t=P(),n=e.WeakMap;return vi=t(n)&&/native code/.test(String(n))}function zi(){if(Ei)return bi;Ei=1;var e,t,n,r=Bi(),i=j(),o=ke(),s=rn(),a=Et(),u=vt(),c=sn(),l=Dn(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||u.state){var m=u.state||(u.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,e=function(e,t){if(m.has(e))throw new h(f);return t.facade=e,m.set(e,t),t},t=function(e){return m.get(e)||{}},n=function(e){return m.has(e)}}else{var y=c("state");l[y]=!0,e=function(e,t){if(a(e,y))throw new h(f);return t.facade=e,s(e,y,t),t},t=function(e){return a(e,y)?e[y]:{}},n=function(e){return a(e,y)}}return bi={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!o(n)||(r=t(n)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}}function Ui(){if(ji)return wi;ji=1;var e=L(),t=Et(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!e||e&&r(n,"name").configurable);return wi={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Hi(){if(Oi)return Ti;Oi=1;var e=rn();return Ti=function(t,n,r,i){return i&&i.enumerable?t[n]=r:e(t,n,r),t}}function Gi(){if(Si)return Ai;Si=1;var e,t,n,r=T(),i=P(),o=ke(),s=Fr(),a=un(),u=Hi(),c=jt(),l=yt(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=a(a(n)))!==Object.prototype&&(e=t):h=!0),!o(e)||r((function(){var t={};return e[f].call(t)!==t}))?e={}:l&&(e=s(e)),i(e[f])||u(e,f,(function(){return this})),Ai={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function qi(){if(xi)return ki;xi=1;var e=Yr(),t=Jr();return ki=e?{}.toString:function(){return"[object "+t(this)+"]"}}function Yi(){if(_i)return Pi;_i=1;var e=Yr(),t=nn().f,n=rn(),r=Et(),i=qi(),o=jt()("toStringTag");return Pi=function(s,a,u,c){var l=u?s:s&&s.prototype;l&&(r(l,o)||t(l,o,{configurable:!0,value:a}),c&&!e&&n(l,"toString",i))}}function Ji(){if(Ni)return Mi;Ni=1;var e=Gi().IteratorPrototype,t=Fr(),n=je(),r=Yi(),i=Gr(),o=function(){return this};return Mi=function(s,a,u,c){var l=a+" Iterator";return s.prototype=t(e,{next:n(+!c,u)}),r(s,l,!1,!0),i[l]=o,s}}function Ki(){if(Ri)return Ci;Ri=1;var e=on(),t=$(),n=yt(),r=Ui(),i=P(),o=Ji(),s=un(),a=hn(),u=Yi(),c=rn(),l=Hi(),f=jt(),h=Gr(),p=Gi(),m=r.PROPER,y=r.CONFIGURABLE,d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),b="keys",E="values",w="entries",j=function(){return this};return Ci=function(r,f,p,T,O,A,S){o(p,f,T);var k,x,P,_=function(e){if(e===O&&L)return L;if(!v&&e&&e in C)return C[e];switch(e){case b:case E:case w:return function(){return new p(this,e)}}return function(){return new p(this)}},M=f+" Iterator",N=!1,C=r.prototype,R=C[g]||C["@@iterator"]||O&&C[O],L=!v&&R||_(O),$="Array"===f&&C.entries||R;if($&&(k=s($.call(new r)))!==Object.prototype&&k.next&&(n||s(k)===d||(a?a(k,d):i(k[g])||l(k,g,j)),u(k,M,!0,!0),n&&(h[M]=j)),m&&O===E&&R&&R.name!==E&&(!n&&y?c(C,"name",E):(N=!0,L=function(){return t(R,this)})),O)if(x={values:_(E),keys:A?L:_(b),entries:_(w)},S)for(P in x)(v||N||!(P in C))&&l(C,P,x[P]);else e({target:f,proto:!0,forced:v||N},x);return n&&!S||C[g]===L||l(C,g,L,{name:O}),h[f]=L,x}}function Wi(){return $i?Li:($i=1,Li=function(e,t){return{value:e,done:t}})}function Xi(){if(Vi)return Ii;Vi=1;var e=Se(),t=Fi(),n=Gr(),r=zi(),i=nn().f,o=Ki(),s=Wi(),a=yt(),u=L(),c="Array Iterator",l=r.set,f=r.getterFor(c);Ii=o(Array,"Array",(function(t,n){l(this,{type:c,target:e(t),index:0,kind:n})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)}),"values");var h=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!a&&u&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return Ii}var Zi,Qi,eo,to,no,ro={};function io(){if(Qi)return Zi;Qi=1;var e=S(),t=Rn(),n=Qr(),r=Ae(),i=e("".charAt),o=e("".charCodeAt),s=e("".slice),a=function(e){return function(a,u){var c,l,f=n(r(a)),h=t(u),p=f.length;return h<0||h>=p?e?"":void 0:(c=o(f,h))<55296||c>56319||h+1===p||(l=o(f,h+1))<56320||l>57343?e?i(f,h):c:e?s(f,h,h+2):l-56320+(c-55296<<10)+65536}};return Zi={codeAt:a(!1),charAt:a(!0)}}function oo(){return no?to:(no=1,function(){if(ci)return li;ci=1;var e=on(),t=j(),n=A(),r=pi(),i="WebAssembly",o=t[i],s=7!==new Error("e",{cause:7}).cause,a=function(t,n){var i={};i[t]=r(t,n,s),e({global:!0,constructor:!0,arity:1,forced:s},i)},u=function(t,n){if(o&&o[t]){var a={};a[t]=r(i+"."+t,n,s),e({target:i,stat:!0,constructor:!0,arity:1,forced:s},a)}};a("Error",(function(e){return function(t){return n(e,this,arguments)}})),a("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),a("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),a("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),a("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),a("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),a("URIError",(function(e){return function(t){return n(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))}(),ti(),function(){if(mi)return Di;mi=1;var e=on(),t=Pe(),n=A(),r=T(),i=pi(),o="AggregateError",s=t(o),a=!r((function(){return 1!==s([1]).errors[0]}))&&r((function(){return 7!==s([1],o,{cause:7}).cause}));e({global:!0,constructor:!0,arity:2,forced:a},{AggregateError:i(o,(function(e){return function(t,r){return n(e,this,arguments)}}),a,!0)})}(),Xi(),function(){if(eo)return ro;eo=1;var e=io().charAt,t=Qr(),n=zi(),r=Ki(),i=Wi(),o="String Iterator",s=n.set,a=n.getterFor(o);r(String,"String",(function(e){s(this,{type:o,string:t(e),index:0})}),(function(){var t,n=a(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(t=e(r,o),n.index+=t.length,i(t,!1))}))}(),to=xe().AggregateError)}var so,ao,uo,co,lo,fo,ho,po,mo,yo,vo,go,bo,Eo={};function wo(){return ao?so:(ao=1,so={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function jo(){if(lo)return co;lo=1,ni();var e=oo();return function(){if(uo)return Eo;uo=1,Xi();var e=wo(),t=j(),n=Yi(),r=Gr();for(var i in e)n(t[i],i),r[i]=r.Array}(),co=e}function To(){return ho?fo:(ho=1,fo=jo())}function Oo(){return mo?po:(mo=1,ni(),po=To())}function Ao(){return vo?yo:(vo=1,yo=Oo())}const So=n(bo?go:(bo=1,go=Ao()));class ko extends So{constructor(e,t,n){if(super(e,t,n),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class xo extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ko,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Po extends xo{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}class _o extends Po{}var Mo=Object.defineProperty,No=(e,t,n)=>((e,t,n)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n);class Co extends _o{constructor(e,t){super(e,t),No(this,"relativePointer"),void 0!==t&&(this.relativePointer=t.relativePointer)}}var Ro=Object.defineProperty,Lo=(e,t,n)=>((e,t,n)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class $o extends _o{constructor(e,t){super(e,t),Lo(this,"relativePointer"),Lo(this,"currentElement"),Lo(this,"rootElement"),Lo(this,"cursorElement"),void 0!==t&&(this.relativePointer=t.relativePointer,this.currentElement=t.currentElement,this.rootElement=t.rootElement,this.cursorElement=t.cursorElement)}}var Io=Object.defineProperty,Vo=(e,t,n)=>((e,t,n)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class Do extends _o{constructor(e,t){super(e,t),Vo(this,"nonNegativeIntegerPrefix"),Vo(this,"indexManipulation"),Vo(this,"jsonPointerTokens"),Vo(this,"hashCharacter"),void 0!==t&&(this.nonNegativeIntegerPrefix=t.relativePointer.nonNegativeIntegerPrefix,this.indexManipulation=t.relativePointer.indexManipulation,this.hashCharacter=t.relativePointer.hashCharacter,Array.isArray(t.relativePointer.jsonPointerTokens)&&(this.jsonPointerTokens=[...t.relativePointer.jsonPointerTokens]))}}function Fo(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}const Bo=function(){const e=qo,t=Go,n=this,r="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let i,o,s,a,u,c,l,f=0,h=0,p=0,m=0,y=0,d=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.parse=(v,g,E,w)=>{const j=`${r}parse(): `;f=0,h=0,p=0,m=0,y=0,i=void 0,o=void 0,s=void 0,a=void 0,d.refresh(),u=void 0,c=void 0,l=void 0,a=t.stringToChars(E),i=v.rules,o=v.udts;const T=g.toLowerCase();let O;for(const e in i)if(i.hasOwnProperty(e)&&T===i[e].lower){O=i[e].index;break}if(void 0===O)throw new Error(`${j}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,s;for(u=[],c=[],t=0;t<i.length;t+=1)u[t]=void 0;for(t=0;t<o.length;t+=1)c[t]=void 0;const a=[];for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(t=0;t<o.length;t+=1)a.push(o[t].lower);for(const r in n.callbacks)if(n.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(s=n.callbacks[r]?n.callbacks[r]:void 0,"function"!=typeof s&&void 0!==s)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<i.length?u[t]=s:c[t-i.length]=s}})(),n.trace&&n.trace.init(i,o,a),n.stats&&n.stats.init(i,o),n.ast&&n.ast.init(i,o,a),l=w,s=[{type:e.RNM,index:O}],b(0,0),s=void 0;let A=!1;switch(d.state){case e.ACTIVE:throw new Error(`${j}final state should never be 'ACTIVE'`);case e.NOMATCH:A=!1;break;case e.EMPTY:case e.MATCH:A=d.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:A,state:d.state,stateName:e.idName(d.state),length:a.length,matched:d.phraseLength,maxMatched:y,maxTreeDepth:p,nodeHits:m}};const v=(t,n,i,o)=>{if(n.phraseLength>i){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${i}`,new Error(e)}switch(n.state){case e.ACTIVE:if(!o)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:n.phraseLength=0;break;case e.MATCH:0===n.phraseLength&&(n.state=e.EMPTY);break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},g=(t,u)=>{let h,p,m;const y=s[t],v=o[y.index];d.UdtIndex=v.index,f||(m=n.ast&&n.ast.udtDefined(y.index),m&&(p=i.length+y.index,h=n.ast.getLength(),n.ast.down(p,v.name)));const g=a.length-u;c[y.index](d,a,u,l),((t,n,i)=>{if(n.phraseLength>i){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${i}`,new Error(e)}switch(n.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);n.phraseLength=0;break;case e.MATCH:if(0===n.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);n.state=e.EMPTY}break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}})(v,d,g),f||m&&(d.state===e.NOMATCH?n.ast.setLength(h):n.ast.up(p,v.name,u,d.phraseLength))},b=(t,o)=>{const c=`${r}opExecute(): `,E=s[t];switch(m+=1,h>p&&(p=h),h+=1,d.refresh(),n.trace&&n.trace.down(E,o),E.type){case e.ALT:((t,n)=>{const r=s[t];for(let t=0;t<r.children.length&&(b(r.children[t],n),d.state===e.NOMATCH);t+=1);})(t,o);break;case e.CAT:((t,r)=>{let i,o,a,u;const c=s[t];n.ast&&(o=n.ast.getLength()),i=!0,a=r,u=0;for(let t=0;t<c.children.length;t+=1){if(b(c.children[t],a),d.state===e.NOMATCH){i=!1;break}a+=d.phraseLength,u+=d.phraseLength}i?(d.state=0===u?e.EMPTY:e.MATCH,d.phraseLength=u):(d.state=e.NOMATCH,d.phraseLength=0,n.ast&&n.ast.setLength(o))})(t,o);break;case e.REP:((t,r)=>{let i,o,u,c;const l=s[t];if(0===l.max)return d.state=e.EMPTY,void(d.phraseLength=0);for(o=r,u=0,c=0,n.ast&&(i=n.ast.getLength());!(o>=a.length)&&(b(t+1,o),d.state!==e.NOMATCH)&&d.state!==e.EMPTY&&(c+=1,u+=d.phraseLength,o+=d.phraseLength,c!==l.max););d.state===e.EMPTY||c>=l.min?(d.state=0===u?e.EMPTY:e.MATCH,d.phraseLength=u):(d.state=e.NOMATCH,d.phraseLength=0,n.ast&&n.ast.setLength(i))})(t,o);break;case e.RNM:((t,r)=>{let o,c,h;const p=s[t],m=i[p.index],y=u[m.index];if(f||(c=n.ast&&n.ast.ruleDefined(p.index),c&&(o=n.ast.getLength(),n.ast.down(p.index,i[p.index].name))),y){const t=a.length-r;y(d,a,r,l),v(m,d,t,!0),d.state===e.ACTIVE&&(h=s,s=m.opcodes,b(0,r),s=h,y(d,a,r,l),v(m,d,t,!1))}else h=s,s=m.opcodes,b(0,r),s=h;f||c&&(d.state===e.NOMATCH?n.ast.setLength(o):n.ast.up(p.index,m.name,r,d.phraseLength))})(t,o);break;case e.TRG:((t,n)=>{const r=s[t];d.state=e.NOMATCH,n<a.length&&r.min<=a[n]&&a[n]<=r.max&&(d.state=e.MATCH,d.phraseLength=1)})(t,o);break;case e.TBS:((t,n)=>{const r=s[t],i=r.string.length;if(d.state=e.NOMATCH,n+i<=a.length){for(let e=0;e<i;e+=1)if(a[n+e]!==r.string[e])return;d.state=e.MATCH,d.phraseLength=i}})(t,o);break;case e.TLS:((t,n)=>{let r;const i=s[t];d.state=e.NOMATCH;const o=i.string.length;if(0!==o){if(n+o<=a.length){for(let e=0;e<o;e+=1)if(r=a[n+e],r>=65&&r<=90&&(r+=32),r!==i.string[e])return;d.state=e.MATCH,d.phraseLength=o}}else d.state=e.EMPTY})(t,o);break;case e.UDT:g(t,o);break;case e.AND:((t,n)=>{switch(f+=1,b(t+1,n),f-=1,d.phraseLength=0,d.state){case e.EMPTY:case e.MATCH:d.state=e.EMPTY;break;case e.NOMATCH:d.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${d.state}`)}})(t,o);break;case e.NOT:((t,n)=>{switch(f+=1,b(t+1,n),f-=1,d.phraseLength=0,d.state){case e.EMPTY:case e.MATCH:d.state=e.NOMATCH;break;case e.NOMATCH:d.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${d.state}`)}})(t,o);break;default:throw new Error(`${c}unrecognized operator`)}f||o+d.phraseLength>y&&(y=o+d.phraseLength),n.stats&&n.stats.collect(E,d),n.trace&&n.trace.up(E,d.state,o,d.phraseLength),h-=1}},zo=function(){const e=qo,t=Go,n=this;let r,i,o,s=0;const a=[],u=[],c=[];function l(e){let t="";for(;e-- >0;)t+=" ";return t}n.callbacks=[],n.init=(e,t,l)=>{let f;u.length=0,c.length=0,s=0,r=e,i=t,o=l;const h=[];for(f=0;f<r.length;f+=1)h.push(r[f].lower);for(f=0;f<i.length;f+=1)h.push(i[f].lower);for(s=r.length+i.length,f=0;f<s;f+=1)a[f]=void 0;for(const e in n.callbacks)if(n.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(f=h.indexOf(t),f<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[f]=n.callbacks[e]}},n.ruleDefined=e=>!!a[e],n.udtDefined=e=>!!a[r.length+e],n.down=(t,n)=>{const r=c.length;return u.push(r),c.push({name:n,thisIndex:r,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:u.length}),r},n.up=(t,n,r,i)=>{const o=c.length,s=u.pop();return c.push({name:n,thisIndex:o,thatIndex:s,state:e.SEM_POST,callbackIndex:t,phraseIndex:r,phraseLength:i,stack:u.length}),c[s].thatIndex=o,c[s].phraseIndex=r,c[s].phraseLength=i,o},n.translate=t=>{let n,r;for(let i=0;i<c.length;i+=1)r=c[i],n=a[r.callbackIndex],n&&(r.state===e.SEM_PRE?n(e.SEM_PRE,o,r.phraseIndex,r.phraseLength,t):n&&n(e.SEM_POST,o,r.phraseIndex,r.phraseLength,t))},n.setLength=e=>{c.length=e,u.length=e>0?c[e-1].stack:0},n.getLength=()=>c.length,n.toXml=()=>{let n="",r=0;return n+='<?xml version="1.0" encoding="utf-8"?>\n',n+=`<root nodes="${c.length/2}" characters="${o.length}">\n`,n+="\x3c!-- input string --\x3e\n",n+=l(r+2),n+=t.charsToString(o),n+="\n",c.forEach((i=>{i.state===e.SEM_PRE?(r+=1,n+=l(r),n+=`<node name="${i.name}" index="${i.phraseIndex}" length="${i.phraseLength}">\n`,n+=l(r+2),n+=t.charsToString(o,i.phraseIndex,i.phraseLength),n+="\n"):(n+=l(r),n+=`</node>\x3c!-- name="${i.name}" --\x3e\n`,r-=1)})),n+="</root>\n",n}},Uo=function(){const e=qo,t=Go,n="parser.js: Trace(): ";let r,i,o,s="",a=0;const u=this,c=e=>{let t="",n=0;if(e>=0)for(;e--;)n+=1,5===n?(t+="|",n=0):t+=".";return t};u.init=(e,t,n)=>{i=e,o=t,r=n};const l=r=>{let s;switch(r.type){case e.ALT:s="ALT";break;case e.CAT:s="CAT";break;case e.REP:s=r.max===1/0?`REP(${r.min},inf)`:`REP(${r.min},${r.max})`;break;case e.RNM:s=`RNM(${i[r.index].name})`;break;case e.TRG:s=`TRG(${r.min},${r.max})`;break;case e.TBS:s=r.string.length>6?`TBS(${t.charsToString(r.string,0,3)}...)`:`TBS(${t.charsToString(r.string,0,6)})`;break;case e.TLS:s=r.string.length>6?`TLS(${t.charsToString(r.string,0,3)}...)`:`TLS(${t.charsToString(r.string,0,6)})`;break;case e.UDT:s=`UDT(${o[r.index].name})`;break;case e.AND:s="AND";break;case e.NOT:s="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return s};u.down=(e,n)=>{const i=c(a),o=Math.min(100,r.length-n);let u=t.charsToString(r,n,o);o<r.length-n&&(u+="..."),u=`${i}|-|[${l(e)}]${u}\n`,s+=u,a+=1},u.up=(i,o,u,f)=>{const h=`${n}trace.up: `;a-=1;const p=c(a);let m,y,d;switch(o){case e.EMPTY:d="|E|",y="''";break;case e.MATCH:d="|M|",m=Math.min(100,f),y=m<f?`'${t.charsToString(r,u,m)}...'`:`'${t.charsToString(r,u,m)}'`;break;case e.NOMATCH:d="|N|",y="";break;default:throw new Error(`${h} unrecognized state`)}y=`${p}${d}[${l(i)}]${y}\n`,s+=y},u.displayTrace=()=>s},Ho=function(){const e=qo;let t,n,r;const i=[],o=[],s=[];this.init=(e,r)=>{t=e,n=r,h()},this.collect=(t,n)=>{p(r,n.state,n.phraseLength),p(i[t.type],n.state,n.phraseLength),t.type===e.RNM&&p(o[t.index],n.state,n.phraseLength),t.type===e.UDT&&p(s[t.index],n.state,n.phraseLength)},this.displayStats=()=>{let t="";const n={match:0,empty:0,nomatch:0,total:0},r=(e,t,r,i,o)=>{n.match+=t,n.empty+=r,n.nomatch+=i,n.total+=o;return`${e} | ${a(t)} | ${a(r)} | ${a(i)} | ${a(o)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=r(" ALT",i[e.ALT].match,i[e.ALT].empty,i[e.ALT].nomatch,i[e.ALT].total),t+=r(" CAT",i[e.CAT].match,i[e.CAT].empty,i[e.CAT].nomatch,i[e.CAT].total),t+=r(" REP",i[e.REP].match,i[e.REP].empty,i[e.REP].nomatch,i[e.REP].total),t+=r(" RNM",i[e.RNM].match,i[e.RNM].empty,i[e.RNM].nomatch,i[e.RNM].total),t+=r(" TRG",i[e.TRG].match,i[e.TRG].empty,i[e.TRG].nomatch,i[e.TRG].total),t+=r(" TBS",i[e.TBS].match,i[e.TBS].empty,i[e.TBS].nomatch,i[e.TBS].total),t+=r(" TLS",i[e.TLS].match,i[e.TLS].empty,i[e.TLS].nomatch,i[e.TLS].total),t+=r(" UDT",i[e.UDT].match,i[e.UDT].empty,i[e.UDT].nomatch,i[e.UDT].total),t+=r(" AND",i[e.AND].match,i[e.AND].empty,i[e.AND].nomatch,i[e.AND].total),t+=r(" NOT",i[e.NOT].match,i[e.NOT].empty,i[e.NOT].nomatch,i[e.NOT].total),t+=r("TOTAL",n.match,n.empty,n.nomatch,n.total),t},this.displayHits=e=>{let t="";const n=(e,t,n,i,o)=>{r.match+=e,r.empty+=t,r.nomatch+=n,r.total+=i;return`| ${a(e)} | ${a(t)} | ${a(n)} | ${a(i)} | ${o}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(o.sort(u),s.sort(u),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(o.sort(l),s.sort(l),t+=" RULES/UDTS BY INDEX\n"):(o.sort(c),s.sort(c),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<o.length;e+=1){let r=o[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}for(let e=0;e<s.length;e+=1){let r=s[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}return t};const a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,u=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,c=(e,t)=>e.total<t.total?1:e.total>t.total?-1:u(e,t),l=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,f=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},h=()=>{i.length=0,r=new f,i[e.ALT]=new f,i[e.CAT]=new f,i[e.REP]=new f,i[e.RNM]=new f,i[e.TRG]=new f,i[e.TBS]=new f,i[e.TLS]=new f,i[e.UDT]=new f,i[e.AND]=new f,i[e.NOT]=new f,o.length=0;for(let e=0;e<t.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(n.length>0){s.length=0;for(let e=0;e<n.length;e+=1)s.push({empty:0,match:0,nomatch:0,total:0,name:n[e].name,lower:n[e].lower,index:n[e].index})}},p=(t,n)=>{switch(t.total+=1,n){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${n}`)}}},Go={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,n)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===n){r=e.slice(t);break}if(n<=0)return"";r=e.slice(t,t+n);break}return String.fromCodePoint(...r)}},qo={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case qo.ALT:return"ALT";case qo.CAT:return"CAT";case qo.REP:return"REP";case qo.RNM:return"RNM";case qo.TRG:return"TRG";case qo.TBS:return"TBS";case qo.TLS:return"TLS";case qo.UDT:return"UDT";case qo.AND:return"AND";case qo.NOT:return"NOT";case qo.ACTIVE:return"ACTIVE";case qo.EMPTY:return"EMPTY";case qo.MATCH:return"MATCH";case qo.NOMATCH:return"NOMATCH";case qo.SEM_PRE:return"SEM_PRE";case qo.SEM_POST:return"SEM_POST";case qo.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class Yo extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}class Jo extends Yo{}const Ko=e=>(t,n,r,i,o)=>{if("object"!=typeof o||null===o||Array.isArray(o))throw new Jo("parser's user data must be an object");if(t===qo.SEM_PRE){const t={type:e,text:Go.charsToString(n,r,i),start:r,length:i,children:[]};if(o.stack.length>0){o.stack[o.stack.length-1].children.push(t)}else o.root=t;o.stack.push(t)}t===qo.SEM_POST&&o.stack.pop()};class Wo extends zo{constructor(){super(),this.callbacks["json-pointer"]=Ko("json-pointer"),this.callbacks["reference-token"]=Ko("reference-token"),this.callbacks.slash=Ko("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}}class Xo extends Wo{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>(e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")})(e)))}}class Zo extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}}class Qo extends Uo{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let n=-1;for(let r=0;r<e.length;r++){const i=e[r];if(i.includes("M|")){const e=i.match(/]'(.*)'$/);e&&e[1]&&(n=r)}if(r>n){const e=i.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new Zo(...t)}}const es=new Fo,ts=(e,{translator:t=new Xo,stats:n=!1,trace:r=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const i=new Bo;t&&(i.ast=t),n&&(i.stats=new Ho),r&&(i.trace=new Qo);const o=i.parse(es,"json-pointer",e);return{result:o,tree:o.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(t){throw new Jo("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new Fo,new Bo,new Fo,new Bo;const ns=new Fo,rs=new Bo,is=new Fo,os=new Bo;class ss extends Yo{}const as=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")})(String(e))})).join("/")}`}catch(t){throw new ss("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class us{#e;#t;#n;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#n=t.realm}step({referenceToken:e,input:t,output:n,success:r=!0,reason:i}){const o=this.#t.length;this.#t.push(e);const s={referenceToken:e,referenceTokenPosition:o,input:t,inputType:this.#n.isObject(t)?"object":this.#n.isArray(t)?"array":"unrecognized",output:n,success:r};i&&(s.reason=i),this.#e.steps.push(s),r||(this.#e.failed=!0,this.#e.failedAt=o,this.#e.message=i)}}class cs{name="";isArray(e){throw new Yo("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Yo("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Yo("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new Yo("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new Yo("Realm.evaluate(node) must be implemented in a subclass")}}class ls extends Yo{}class fs extends ls{}class hs extends cs{name="json";isArray(e){return Array.isArray(e)}isObject(e){return"object"==typeof e&&null!==e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){const n=Number(t),r=n>>>0;if(n!==r)throw new fs(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return r<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,n)}return!!this.isObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}}class ps extends ls{}class ms extends ls{}const ys=(e,t,{strictArrays:n=!0,strictObjects:r=!0,realm:i=new hs,trace:o=!0}={})=>{const{result:s,tree:a,trace:u}=ts(t,{trace:!!o}),c="object"==typeof o&&null!==o?new us(o,{jsonPointer:t,referenceTokens:a,strictArrays:n,strictObjects:r,realm:i,value:e}):null;try{let o;if(!s.success){let n=`Invalid JSON Pointer: "${t}". Syntax error at position ${s.maxMatched}`;throw n+=u?`, expected ${u.inferExpectations()}`:"",new ls(n,{jsonPointer:t,currentValue:e,realm:i.name})}return a.reduce(((e,s,u)=>{if(i.isArray(e)){if((e=>{if("string"!=typeof e)return!1;try{return os.parse(is,"array-dash",e).success}catch{return!1}})(s)){if(n)throw new fs(`Invalid array index "-" at position ${u} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:s,referenceTokenPosition:u,currentValue:e,realm:i.name});return o=i.evaluate(e,String(i.sizeOf(e))),null==c||c.step({referenceToken:s,input:e,output:o}),o}if(!(e=>{if("string"!=typeof e)return!1;try{return rs.parse(ns,"array-index",e).success}catch{return!1}})(s))throw new fs(`Invalid array index "${s}" at position ${u} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:s,referenceTokenPosition:u,currentValue:e,realm:i.name});const r=Number(s);if(!Number.isSafeInteger(r))throw new fs(`Invalid array index "${s}" at position ${u} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:s,referenceTokenPosition:u,currentValue:e,realm:i.name});if(!i.has(e,s)&&n)throw new fs(`Invalid array index "${s}" at position ${u} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:s,referenceTokenPosition:u,currentValue:e,realm:i.name});return o=i.evaluate(e,s),null==c||c.step({referenceToken:s,input:e,output:o}),o}if(i.isObject(e)){if(!i.has(e,s)&&r)throw new ms(`Invalid object key "${s}" at position ${u} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:s,referenceTokenPosition:u,currentValue:e,realm:i.name});return o=i.evaluate(e,s),null==c||c.step({referenceToken:s,input:e,output:o}),o}throw new ps(`Invalid reference token "${s}" at position ${u} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:s,referenceTokenPosition:u,currentValue:e,realm:i.name})}),e)}catch(e){if(null==c||c.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof ls)throw e;throw new ls("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}};function ds(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function vs(e){return function t(n){return 0===arguments.length||ds(n)?t:e.apply(this,arguments)}}function gs(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ds(n)?t:vs((function(t){return e(n,t)}));default:return ds(n)&&ds(r)?t:ds(n)?vs((function(t){return e(t,r)})):ds(r)?vs((function(t){return e(n,t)})):e(n,r)}}}function bs(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,s){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,s,a){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,s,a,u){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,s,a,u,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,s,a,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Es(e,t,n){return function(){for(var r=[],i=0,o=e,s=0,a=!1;s<t.length||i<arguments.length;){var u;s<t.length&&(!ds(t[s])||i>=arguments.length)?u=t[s]:(u=arguments[i],i+=1),r[s]=u,ds(u)?a=!0:o-=1,s+=1}return!a&&o<=0?n.apply(this,r):bs(Math.max(0,o),Es(e,r,n))}}var ws=gs((function(e,t){return 1===e?vs(t):bs(e,Es(e,[],t))}));function js(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return ds(n)?t:gs((function(t,r){return e(n,t,r)}));case 2:return ds(n)&&ds(r)?t:ds(n)?gs((function(t,n){return e(t,r,n)})):ds(r)?gs((function(t,r){return e(n,t,r)})):vs((function(t){return e(n,r,t)}));default:return ds(n)&&ds(r)&&ds(i)?t:ds(n)&&ds(r)?gs((function(t,n){return e(t,n,i)})):ds(n)&&ds(i)?gs((function(t,n){return e(t,r,n)})):ds(r)&&ds(i)?gs((function(t,r){return e(n,t,r)})):ds(n)?vs((function(t){return e(t,r,i)})):ds(r)?vs((function(t){return e(n,t,i)})):ds(i)?vs((function(t){return e(n,r,t)})):e(n,r,i)}}}const Ts=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Os(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!Ts(r)){for(var i=0;i<e.length;){if("function"==typeof r[e[i]])return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const As=function(){return this.xf["@@transducer/init"]()},Ss=function(e){return this.xf["@@transducer/result"](e)};var ks=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=As,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n;return this.f(t)||(this.all=!1,e=(n=this.xf["@@transducer/step"](e,!1))&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}),e},e}();function xs(e){return function(t){return new ks(e,t)}}var Ps=gs(Os(["all"],xs,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})));function _s(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Ms(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function Ns(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Cs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Rs=Object.prototype.toString,Ls=function(){return"[object Arguments]"===Rs.call(arguments)?function(e){return"[object Arguments]"===Rs.call(e)}:function(e){return Ns("callee",e)}}(),$s=!{toString:null}.propertyIsEnumerable("toString"),Is=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Vs=function(){return arguments.propertyIsEnumerable("length")}(),Ds=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},Fs="function"!=typeof Object.keys||Vs?vs((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=Vs&&Ls(e);for(t in e)!Ns(t,e)||i&&"length"===t||(r[r.length]=t);if($s)for(n=Is.length-1;n>=0;)Ns(t=Is[n],e)&&!Ds(r,t)&&(r[r.length]=t),n-=1;return r})):vs((function(e){return Object(e)!==e?[]:Object.keys(e)})),Bs=vs((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function zs(e,t,n,r){var i=_s(e);function o(e,t){return Us(e,t,n.slice(),r.slice())}return!Ms((function(e,t){return!Ms(o,t,e)}),_s(t),i)}function Us(e,t,n,r){if(Cs(e,t))return!0;var i,o,s=Bs(e);if(s!==Bs(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Cs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Cs(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(s){case"Map":return e.size===t.size&&zs(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&zs(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=Fs(e);if(u.length!==Fs(t).length)return!1;var c=n.concat([e]),l=r.concat([t]);for(a=u.length-1;a>=0;){var f=u[a];if(!Ns(f,t)||!Us(t[f],e[f],c,l))return!1;a-=1}return!0}var Hs=gs((function(e,t){return Us(e,t,[],[])}));function Gs(e,t){return function(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(Hs(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function qs(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function Ys(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Js=function(e){return(e<10?"0":"")+e},Ks="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Js(e.getUTCMonth()+1)+"-"+Js(e.getUTCDate())+"T"+Js(e.getUTCHours())+":"+Js(e.getUTCMinutes())+":"+Js(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ws(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}function Xs(e){return"[object Object]"===Object.prototype.toString.call(e)}var Zs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=As,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Qs(e){return function(t){return new Zs(e,t)}}var ea=gs(Os(["fantasy-land/filter","filter"],Qs,(function(e,t){return Xs(t)?Ws((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},Fs(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),ta=gs((function(e,t){return ea((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function na(e,t){var n=function(n){var r=t.concat([e]);return Gs(n,r)?"<Circular>":na(n,r)},r=function(e,t){return qs((function(t){return Ys(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+qs(n,e).join(", ")+"))";case"[object Array]":return"["+qs(n,e).concat(r(e,ta((function(e){return/^\d+$/.test(e)}),Fs(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Ys(Ks(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":Ys(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,Fs(e)).join(", ")+"}"}}var ra=vs((function(e){return na(e,[])})),ia=gs((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var i=n(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var o=ra(e),s=n(o,ra(t));return void 0!==s&&s===o?e:t})),oa=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=As,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),sa=gs(Os(["fantasy-land/map","map"],(function(e){return function(t){return new oa(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return ws(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ws((function(n,r){return n[r]=e(t[r]),n}),{},Fs(t));default:return qs(e,t)}})));const aa=Number.isInteger||function(e){return(e|0)===e};function ua(e){return"[object String]"===Object.prototype.toString.call(e)}function ca(e,t){var n=e<0?t.length+e:e;return ua(t)?t.charAt(n):t[n]}var la=gs((function(e,t){if(null!=t)return aa(e)?ca(e,t):t[e]})),fa=gs((function(e,t){return sa(la(e),t)})),ha=vs((function(e){return!!Ts(e)||!!e&&("object"==typeof e&&(!ua(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),pa="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ma(e,t,n){return function(r,i,o){if(ha(o))return e(r,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(r,i,o,"fantasy-land/reduce");if(null!=o[pa])return n(r,i,o[pa]());if("function"==typeof o.next)return n(r,i,o);if("function"==typeof o.reduce)return t(r,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ya(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}var da=gs((function(e,t){return bs(e.length,(function(){return e.apply(t,arguments)}))}));function va(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function ga(e,t,n,r){return e["@@transducer/result"](n[r](da(e["@@transducer/step"],e),t))}var ba=ma(ya,ga,va),Ea=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var wa=js((function(e,t,n){return ba("function"==typeof e?new Ea(e):e,t,n)})),ja=vs((function(e){return function(){return e}})),Ta=gs((function(e,t){return e&&t})),Oa=vs((function(e){return ws(wa(ia,0,fa("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Aa(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function Sa(e,t,n,r){return n[r](e,t)}var ka=ma(Ws,Sa,Aa),xa=gs((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:ka((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}(e,sa(n,t))}),[],e)})),Pa=gs((function(e,t){return e.apply(this,t)}));var _a=gs((function(e,t){var n=ws(e,t);return ws(e,(function(){return Ws(xa,sa(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Ma=vs((function(e){return _a(e.length,e)})),Na=gs((function(e,t){return function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ma(Ta)(e,t)})),Ca=Ma(vs((function(e){return!e})));function Ra(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function La(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return Ts(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var $a=js(La("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),Ia=vs(La("tail",$a(1,1/0)));function Va(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return bs(arguments[0].length,wa(Ra,arguments[0],Ia(arguments)))}var Da=gs((function(e,t){return null==t||t!=t?e:t})),Fa=vs((function(e){return ca(-1,e)}));var Ba=vs((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Ts(e)?[]:ua(e)?"":Xs(e)?{}:Ls(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0})),za=vs((function(e){return ws(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),Ua=function(e,t){switch(arguments.length){case 0:return Ua;case 1:return function t(n){return 0===arguments.length?t:Cs(e,n)};default:return Cs(e,t)}},Ha=gs(Gs),Ga=$a(0,-1),qa=vs((function(e){return null!=e&&Hs(e,Ba(e))}));function Ya(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var i=e[r];n=aa(i)?ca(i,n):n[i]}return n}var Ja,Ka,Wa,Xa,Za,Qa,eu,tu,nu,ru,iu,ou,su,au,uu,cu,lu,fu,hu,pu,mu,yu,du,vu,gu,bu,Eu,wu,ju,Tu,Ou,Au,Su,ku,xu,Pu,_u,Mu,Nu,Cu,Ru,Lu,$u,Iu,Vu,Du,Fu,Bu,zu,Uu,Hu,Gu,qu,Yu,Ju,Ku,Wu,Xu,Zu,Qu,ec,tc,nc,rc,ic,oc,sc,ac,uc,cc,lc,fc,hc,pc,mc,yc,dc,vc,gc,bc,Ec,wc,jc,Tc,Oc,Ac,Sc,kc,xc,Pc,_c,Mc,Nc,Cc,Rc,Lc,$c,Ic,Vc,Dc,Fc,Bc,zc,Uc,Hc,Gc,qc,Yc,Jc,Kc,Wc,Xc,Zc,Qc,el,tl,nl,rl,il,ol,sl,al,ul,cl,ll,fl,hl,pl,ml,yl,dl,vl,gl,bl,El,wl,jl,Tl,Ol=js((function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})Ns(r,t)&&(i[r]=Ns(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)Ns(r,n)&&!Ns(r,i)&&(i[r]=n[r]);return i})),Al=js((function e(t,n,r){return Ol((function(n,r,i){return Xs(r)&&Xs(i)?e(t,r,i):t(n,r,i)}),n,r)})),Sl=gs((function(e,t){return Al((function(e,t,n){return n}),e,t)})),kl=gs(Ya),xl=js((function(e,t,n){return Da(e,la(t,n))})),Pl=ja(void 0),_l=Hs(Pl()),Ml=ws(1,Va(Bs,Ua("GeneratorFunction"))),Nl=ws(1,Va(Bs,Ua("AsyncFunction"))),Cl=Oa([Va(Bs,Ua("Function")),Ml,Nl]),Rl=Na(ws(1,Cl(Array.isArray)?Array.isArray:Va(Bs,Ua("Array"))),qa),Ll=ws(1,Va(Bs,Ua("String"))),$l=Ca(Cl),Il=za(Ha),Vl=ws(3,(function(e,t,n){var r=kl(e,n),i=kl(Ga(e),n);if(!$l(r)&&!Rl(e)){var o=da(r,i);return Pa(o,t)}})),Dl={};function Fl(){if(Xa)return Wa;Xa=1;var e="object"==typeof t&&t&&t.Object===Object&&t;return Wa=e}function Bl(){if(Qa)return Za;Qa=1;var e=Fl(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Za=n}function zl(){if(tu)return eu;tu=1;var e=Bl().Symbol;return eu=e}function Ul(){if(au)return su;au=1;var e=zl(),t=function(){if(ru)return nu;ru=1;var e=zl(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return nu=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(ou)return iu;ou=1;var e=Object.prototype.toString;return iu=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return su=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Hl(){if(cu)return uu;cu=1;var e=Array.isArray;return uu=e}function Gl(){if(fu)return lu;return fu=1,lu=function(e){return null!=e&&"object"==typeof e}}function ql(){if(bu)return gu;return bu=1,gu=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},gu}function Yl(){if(wu)return Eu;wu=1;return Eu=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}},Eu}function Jl(){if(Au)return Ou;return Au=1,Ou=function(e,t){return e===t||e!=e&&t!=t}}function Kl(){if(ku)return Su;ku=1;var e=Jl();return Su=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function Wl(){if(Iu)return $u;Iu=1;var e=Tu?ju:(Tu=1,ju=function(){this.__data__=[],this.size=0}),t=function(){if(Pu)return xu;Pu=1;var e=Kl(),t=Array.prototype.splice;return xu=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(Mu)return _u;Mu=1;var e=Kl();return _u=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(Cu)return Nu;Cu=1;var e=Kl();return Nu=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(Lu)return Ru;Lu=1;var e=Kl();return Ru=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,$u=o}function Xl(){if(Yu)return qu;Yu=1;var e=Ul(),t=ql();return qu=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function Zl(){if(Xu)return Wu;Xu=1;var e=function(){if(Ku)return Ju;Ku=1;var e=Bl()["__core-js_shared__"];return Ju=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return Wu=function(e){return!!t&&t in e}}function Ql(){if(Qu)return Zu;Qu=1;var e=Function.prototype.toString;return Zu=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function ef(){if(oc)return ic;oc=1;var e=function(){if(tc)return ec;tc=1;var e=Xl(),t=Zl(),n=ql(),r=Ql(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,a=o.toString,u=s.hasOwnProperty,c=RegExp("^"+a.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return ec=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}(),t=rc?nc:(rc=1,nc=function(e,t){return null==e?void 0:e[t]});return ic=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function tf(){if(ac)return sc;ac=1;var e=ef()(Bl(),"Map");return sc=e}function nf(){if(cc)return uc;cc=1;var e=ef()(Object,"create");return uc=e}function rf(){if(wc)return Ec;wc=1;var e=function(){if(fc)return lc;fc=1;var e=nf();return lc=function(){this.__data__=e?e(null):{},this.size=0}}(),t=pc?hc:(pc=1,hc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(yc)return mc;yc=1;var e=nf(),t=Object.prototype.hasOwnProperty;return mc=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(vc)return dc;vc=1;var e=nf(),t=Object.prototype.hasOwnProperty;return dc=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(bc)return gc;bc=1;var e=nf();return gc=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Ec=o}function of(){if(kc)return Sc;kc=1;var e=(Ac||(Ac=1,Oc=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),Oc);return Sc=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},Sc}function sf(){if(Ic)return $c;Ic=1;var e=function(){if(Tc)return jc;Tc=1;var e=rf(),t=Wl(),n=tf();return jc=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Pc)return xc;Pc=1;var e=of();return xc=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Mc)return _c;Mc=1;var e=of();return _c=function(t){return e(this,t).get(t)}}(),r=function(){if(Cc)return Nc;Cc=1;var e=of();return Nc=function(t){return e(this,t).has(t)}}(),i=function(){if(Lc)return Rc;Lc=1;var e=of();return Rc=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,$c=o}function af(){if(Bc)return Fc;Bc=1;var e=Wl(),t=function(){if(Du)return Vu;Du=1;var e=Wl();return Vu=function(){this.__data__=new e,this.size=0}}(),n=Bu?Fu:(Bu=1,Fu=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Uu?zu:(Uu=1,zu=function(e){return this.__data__.get(e)}),i=Gu?Hu:(Gu=1,Hu=function(e){return this.__data__.has(e)}),o=function(){if(Dc)return Vc;Dc=1;var e=Wl(),t=tf(),n=sf();return Vc=function(r,i){var o=this.__data__;if(o instanceof e){var s=o.__data__;if(!t||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,Fc=s}function uf(){if(Yc)return qc;Yc=1;var e=sf(),t=Uc?zc:(Uc=1,zc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Gc?Hc:(Gc=1,Hc=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,qc=r}function cf(){if(Qc)return Zc;Qc=1;var e=uf(),t=Kc?Jc:(Kc=1,Jc=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=Xc?Wc:(Xc=1,Wc=function(e,t){return e.has(t)});return Zc=function(r,i,o,s,a,u){var c=1&o,l=r.length,f=i.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(r),p=u.get(i);if(h&&p)return h==i&&p==r;var m=-1,y=!0,d=2&o?new e:void 0;for(u.set(r,i),u.set(i,r);++m<l;){var v=r[m],g=i[m];if(s)var b=c?s(g,v,m,i,r,u):s(v,g,m,r,i,u);if(void 0!==b){if(b)continue;y=!1;break}if(d){if(!t(i,(function(e,t){if(!n(d,t)&&(v===e||a(v,e,o,s,u)))return d.push(t)}))){y=!1;break}}else if(v!==g&&!a(v,g,o,s,u)){y=!1;break}}return u.delete(r),u.delete(i),y}}function lf(){if(al)return sl;al=1;var e=zl(),t=function(){if(tl)return el;tl=1;var e=Bl().Uint8Array;return el=e}(),n=Jl(),r=cf(),i=(rl||(rl=1,nl=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}),nl),o=ol?il:(ol=1,il=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}),s=e?e.prototype:void 0,a=s?s.valueOf:void 0;return sl=function(e,s,u,c,l,f,h){switch(u){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!f(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var p=i;case"[object Set]":var m=1&c;if(p||(p=o),e.size!=s.size&&!m)return!1;var y=h.get(e);if(y)return y==s;c|=2,h.set(e,s);var d=r(p(e),p(s),c,l,f,h);return h.delete(e),d;case"[object Symbol]":if(a)return a.call(e)==a.call(s)}return!1}}function ff(){if(fl)return ll;fl=1;var e=cl?ul:(cl=1,ul=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),t=Hl();return ll=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}}function hf(){if(vl)return dl;vl=1;var e=pl?hl:(pl=1,hl=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}),t=yl?ml:(yl=1,ml=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return dl=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function pf(){if(Tl)return jl;Tl=1;var e=function(){if(wl)return El;wl=1;var e=Ul(),t=Gl();return El=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Gl(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return jl=o}var mf,yf,df,vf,gf,bf,Ef,wf,jf,Tf,Of,Af={exports:{}};function Sf(){return df||(df=1,function(e,t){var n=Bl(),r=yf?mf:(yf=1,mf=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(Af,Af.exports)),Af.exports}function kf(){if(Ef)return bf;Ef=1;return bf=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}var xf,Pf,_f,Mf,Nf,Cf,Rf,Lf,$f,If,Vf,Df,Ff,Bf,zf,Uf,Hf,Gf,qf,Yf,Jf,Kf,Wf,Xf,Zf,Qf,eh,th,nh,rh,ih,oh,sh,ah,uh,ch,lh,fh,hh,ph,mh,yh,dh,vh,gh,bh,Eh,wh,jh,Th,Oh,Ah,Sh,kh,xh,Ph,_h,Mh,Nh,Ch,Rh,Lh,$h,Ih,Vh,Dh,Fh,Bh,zh,Uh,Hh,Gh,qh={exports:{}};function Yh(){if(_f)return Pf;_f=1;var e=function(){if(jf)return wf;jf=1;var e=Ul(),t=kf(),n=Gl(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,wf=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=Of?Tf:(Of=1,Tf=function(e){return function(t){return e(t)}}),n=(xf||(xf=1,function(e,t){var n=Fl(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(qh,qh.exports)),qh.exports),r=n&&n.isTypedArray,i=r?t(r):e;return Pf=i}function Jh(){if(Nf)return Mf;Nf=1;var e=bl?gl:(bl=1,gl=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),t=pf(),n=Hl(),r=Sf(),i=function(){if(gf)return vf;gf=1;var e=/^(?:0|[1-9]\d*)$/;return vf=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},vf}(),o=Yh(),s=Object.prototype.hasOwnProperty;return Mf=function(a,u){var c=n(a),l=!c&&t(a),f=!c&&!l&&r(a),h=!c&&!l&&!f&&o(a),p=c||l||f||h,m=p?e(a.length,String):[],y=m.length;for(var d in a)!u&&!s.call(a,d)||p&&("length"==d||f&&("offset"==d||"parent"==d)||h&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||i(d,y))||m.push(d);return m}}function Kh(){if(Vf)return If;Vf=1;var e=($f?Lf:($f=1,Lf=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return If=e}function Wh(){if(Ff)return Df;Ff=1;var e=function(){if(Rf)return Cf;Rf=1;var e=Object.prototype;return Cf=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}(),t=Kh(),n=Object.prototype.hasOwnProperty;return Df=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function Xh(){if(Hf)return Uf;Hf=1;var e=Jh(),t=Wh(),n=function(){if(zf)return Bf;zf=1;var e=Xl(),t=kf();return Bf=function(n){return null!=n&&t(n.length)&&!e(n)}}();return Uf=function(r){return n(r)?e(r):t(r)}}function Zh(){if(Jf)return Yf;Jf=1;var e=function(){if(qf)return Gf;qf=1;var e=ff(),t=hf(),n=Xh();return Gf=function(r){return e(r,n,t)}}(),t=Object.prototype.hasOwnProperty;return Yf=function(n,r,i,o,s,a){var u=1&i,c=e(n),l=c.length;if(l!=e(r).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in r:t.call(r,h)))return!1}var p=a.get(n),m=a.get(r);if(p&&m)return p==r&&m==n;var y=!0;a.set(n,r),a.set(r,n);for(var d=u;++f<l;){var v=n[h=c[f]],g=r[h];if(o)var b=u?o(g,v,h,r,n,a):o(v,g,h,n,r,a);if(!(void 0===b?v===g||s(v,g,i,o,a):b)){y=!1;break}d||(d="constructor"==h)}if(y&&!d){var E=n.constructor,w=r.constructor;E==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(n),a.delete(r),y}}function Qh(){if(ih)return rh;ih=1;var e=function(){if(Wf)return Kf;Wf=1;var e=ef()(Bl(),"DataView");return Kf=e}(),t=tf(),n=function(){if(Zf)return Xf;Zf=1;var e=ef()(Bl(),"Promise");return Xf=e}(),r=function(){if(eh)return Qf;eh=1;var e=ef()(Bl(),"Set");return Qf=e}(),i=function(){if(nh)return th;nh=1;var e=ef()(Bl(),"WeakMap");return th=e}(),o=Ul(),s=Ql(),a="[object Map]",u="[object Promise]",c="[object Set]",l="[object WeakMap]",f="[object DataView]",h=s(e),p=s(t),m=s(n),y=s(r),d=s(i),v=o;return(e&&v(new e(new ArrayBuffer(1)))!=f||t&&v(new t)!=a||n&&v(n.resolve())!=u||r&&v(new r)!=c||i&&v(new i)!=l)&&(v=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return f;case p:return a;case m:return u;case y:return c;case d:return l}return t}),rh=v}function ep(){if(uh)return ah;uh=1;var e=function(){if(sh)return oh;sh=1;var e=af(),t=cf(),n=lf(),r=Zh(),i=Qh(),o=Hl(),s=Sf(),a=Yh(),u="[object Arguments]",c="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return oh=function(h,p,m,y,d,v){var g=o(h),b=o(p),E=g?c:i(h),w=b?c:i(p),j=(E=E==u?l:E)==l,T=(w=w==u?l:w)==l,O=E==w;if(O&&s(h)){if(!s(p))return!1;g=!0,j=!1}if(O&&!j)return v||(v=new e),g||a(h)?t(h,p,m,y,d,v):n(h,p,E,m,y,d,v);if(!(1&m)){var A=j&&f.call(h,"__wrapped__"),S=T&&f.call(p,"__wrapped__");if(A||S){var k=A?h.value():h,x=S?p.value():p;return v||(v=new e),d(k,x,m,y,v)}}return!!O&&(v||(v=new e),r(h,p,m,y,d,v))}}(),t=Gl();return ah=function n(r,i,o,s,a){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,s,n,a))},ah}function tp(){if(hh)return fh;hh=1;class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}return fh=e}function np(){if(mh)return ph;mh=1;return ph=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},ph}function rp(){if(dh)return yh;dh=1;const e=np();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class n{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,r){return e=t(e),new n(this.elements.filter(e,r))}reject(r,i){return r=t(r),new n(this.elements.filter(e(r),i))}find(e,n){return e=t(e),this.elements.find(e,n)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}return"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),yh=n}function ip(){if(gh)return vh;gh=1;const e=function(){if(lh)return ch;lh=1;var e=ep();return ch=function(t,n){return e(t,n)}}(),t=tp(),n=rp();class r{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof r?this.content.toValue():this.content instanceof t?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const r=e.pop();let i=new n;const o=(e,t)=>(e.push(t),e),s=(e,n)=>{n.element===r&&e.push(n);const i=n.findRecursive(r);return i&&i.reduce(o,e),n.content instanceof t&&(n.content.key&&s(e,n.content.key),n.content.value&&s(e,n.content.value)),e};return this.content&&(this.content.element&&s(i,this.content),Array.isArray(this.content)&&this.content.reduce(s,i)),e.isEmpty||(i=i.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],i=n.indexOf(r);if(-1===i)return!1;n=n.splice(0,i)}return!0}))),i}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof r)this._content=e;else if(e instanceof n)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof t)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new n;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new n(this.content);if(this.content instanceof t){const e=new n([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof r?new n([this.content]):new n}get recursiveChildren(){const e=new n;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return vh=r}function op(){if(xh)return kh;xh=1;const e=np(),t=ip(),n=rp();class r extends t{constructor(e,t,n){super(e||[],t,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,t){return new n(this.content.filter(e,t))}reject(t,n){return this.filter(e(t),n)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,i=void 0===n.results?[]:n.results;return this.forEach(((t,n,o)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:i,recursive:r}),e(t,n,o)&&i.push(t)})),i}find(e){return new n(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return r.empty=function(){return new this},r["fantasy-land/empty"]=r.empty,"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),kh=r}function sp(){if(_h)return Ph;_h=1;const e=tp(),t=ip();return Ph=class extends t{constructor(t,n,r,i){super(new e,r,i),this.element="member",this.key=t,this.value=n}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}}function ap(){if(Nh)return Mh;Nh=1;const e=np(),t=rp();class n extends t{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new n(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(t,n){return this.filter(e(t.bind(n)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return Mh=n}function up(){if(Fh)return Dh;Fh=1;const e=ip(),t=function(){if(Eh)return bh;Eh=1;const e=ip();return bh=class extends e{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),n=function(){if(jh)return wh;jh=1;const e=ip();return wh=class extends e{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),r=function(){if(Oh)return Th;Oh=1;const e=ip();return Th=class extends e{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}}(),i=function(){if(Sh)return Ah;Sh=1;const e=ip();return Ah=class extends e{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}}(),o=op(),s=sp(),a=function(){if(Rh)return Ch;Rh=1;const e=np(),t=ql(),n=op(),r=sp(),i=ap();return Ch=class extends n{constructor(e,t,n){super(e||[],t,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,n){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const i=e,o=this.getMember(i);return o?o.value=n:this.content.push(new r(i,n)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,i,o)=>{const s=e.bind(t)(r,i,o);s&&n.push(s)})),n}filter(e,t){return new i(this.content).filter(e,t)}reject(t,n){return this.filter(e(t),n)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}}(),u=function(){if($h)return Lh;$h=1;const e=ip();return Lh=class extends e{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}}(),c=function(){if(Vh)return Ih;Vh=1;const e=ip();return Ih=class extends e{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}}(),l=rp(),f=ap(),h=tp();function p(s){if(s instanceof e)return s;if("string"==typeof s)return new n(s);if("number"==typeof s)return new r(s);if("boolean"==typeof s)return new i(s);if(null===s)return new t;if(Array.isArray(s))return new o(s.map(p));if("object"==typeof s){return new a(s)}return s}return e.prototype.ObjectElement=a,e.prototype.RefElement=c,e.prototype.MemberElement=s,e.prototype.refract=p,l.prototype.refract=p,Dh={Element:e,NullElement:t,StringElement:n,NumberElement:r,BooleanElement:i,ArrayElement:o,MemberElement:s,ObjectElement:a,LinkElement:u,RefElement:c,refract:p,ArraySlice:l,ObjectSlice:f,KeyValuePair:h}}function cp(){if(zh)return Bh;zh=1;const e=Ka?Ja:(Ka=1,Ja=function(e){return null===e}),t=function(){if(pu)return hu;pu=1;var e=Ul(),t=Hl(),n=Gl();return hu=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),n=function(){if(yu)return mu;yu=1;var e=Ul(),t=Gl();return mu=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}(),r=function(){if(vu)return du;vu=1;var e=Ul(),t=Gl();return du=function(n){return!0===n||!1===n||t(n)&&"[object Boolean]"==e(n)}}(),i=ql(),o=Yl(),s=up();class a{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=s.Element,this.KeyValuePair=s.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",s.NullElement).register("string",s.StringElement).register("number",s.NumberElement).register("boolean",s.BooleanElement).register("array",s.ArrayElement).register("object",s.ObjectElement).register("member",s.MemberElement).register("ref",s.RefElement).register("link",s.LinkElement),this.detect(e,s.NullElement,!1).detect(t,s.StringElement,!1).detect(n,s.NumberElement,!1).detect(r,s.BooleanElement,!1).detect(Array.isArray,s.ArrayElement,!1).detect(i,s.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(e)){t=new i(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new o(this)}}return o.prototype.Namespace=a,Bh=a}var lp=function(){if(Gh)return Dl;Gh=1;const e=cp(),t=up();return Dl.Namespace=e,Dl.namespace=function(t){return new e(t)},Dl.KeyValuePair=tp(),Dl.ArraySlice=t.ArraySlice,Dl.ObjectSlice=t.ObjectSlice,Dl.Element=t.Element,Dl.StringElement=t.StringElement,Dl.NumberElement=t.NumberElement,Dl.BooleanElement=t.BooleanElement,Dl.NullElement=t.NullElement,Dl.ArrayElement=t.ArrayElement,Dl.ObjectElement=t.ObjectElement,Dl.MemberElement=t.MemberElement,Dl.RefElement=t.RefElement,Dl.LinkElement=t.LinkElement,Dl.refract=t.refract,Dl.JSONSerialiser=Yl(),Dl.JSON06Serialiser=function(){if(Hh)return Uh;Hh=1;const e=Yl();return Uh=class extends e{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let i=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),i.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&i.unshift(e.content),i=i.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),i.length&&t.set("samples",i),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const i=new t(r);i.element=n.element,e.push(i)}))}));const i=e.shift();n.content=i?i.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}}(),Dl}();class fp extends lp.StringElement{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class hp extends lp.StringElement{constructor(e,t,n){super(e,t,n),this.element="comment"}}class pp extends lp.ArrayElement{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(_l(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const mp=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],yp=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,dp=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),vp=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof lp.ArrayElement)&&t.classes.includes(e),gp=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,bp=e=>e({hasMethod:mp,hasBasicElementProps:yp,primitiveEq:dp,isElementType:gp,hasClass:vp}),Ep=bp((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof lp.Element||e(n)&&t(void 0,n))),wp=bp((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof lp.StringElement||e(n)&&t("string",n))),jp=bp((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof lp.NumberElement||e(n)&&t("number",n))),Tp=bp((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof lp.NullElement||e(n)&&t("null",n))),Op=bp((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof lp.BooleanElement||e(n)&&t("boolean",n))),Ap=bp((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof lp.ObjectElement||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),Sp=bp((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof lp.ArrayElement&&!(r instanceof lp.ObjectElement)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),kp=bp((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lp.MemberElement||e(r)&&t("member",r)&&n(void 0,r))),xp=bp((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lp.LinkElement||e(r)&&t("link",r)&&n(void 0,r))),Pp=bp((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lp.RefElement||e(r)&&t("ref",r)&&n(void 0,r))),_p=bp((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fp||e(r)&&t("annotation",r)&&n("array",r))),Mp=bp((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof hp||e(r)&&t("comment",r)&&n("string",r))),Np=bp((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof pp||e(r)&&t("parseResult",r)&&n("array",r))),Cp=e=>!!Ep(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),Rp=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Cp,includesClasses:(e,t)=>0===e.length||Ps(Il(t.classes.toValue()),e),includesSymbols:(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!Sp(n)&&Ps(Il(n.toValue()),e)},isAnnotationElement:_p,isArrayElement:Sp,isBooleanElement:Op,isCommentElement:Mp,isElement:Ep,isLinkElement:xp,isMemberElement:kp,isNullElement:Tp,isNumberElement:jp,isObjectElement:Ap,isParseResultElement:Np,isPrimitiveElement:e=>gp("object",e)||gp("array",e)||gp("boolean",e)||gp("number",e)||gp("string",e)||gp("null",e)||gp("member",e),isRefElement:Pp,isStringElement:wp},Symbol.toStringTag,{value:"Module"}));class Lp extends lp.Namespace{constructor(){super(),this.register("annotation",fp),this.register("comment",hp),this.register("parseResult",pp)}}const $p=new Lp,Ip=()=>({predicates:{...Rp},namespace:$p}),Vp=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Dp={},Fp=e=>null==e?void 0:e.type,Bp=e=>"string"==typeof Fp(e),zp=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Up=(e,{visitFnGetter:t=Vp,nodeTypeGetter:n=Fp,breakSymbol:r=Dp,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const a=Symbol("skip"),u=new Array(e.length).fill(a);return{enter(c,l,f,h,p,m){let y=c,d=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),y=e}};for(let c=0;c<e.length;c+=1)if(u[c]===a){const a=t(e[c],n(y),!1);if("function"==typeof a){const t=a.call(e[c],y,l,f,h,p,v);if("function"==typeof(null==t?void 0:t.then))throw new Po("Async visitor not supported in sync mode",{visitor:e[c],visitFn:a});if(t===o)u[c]=y;else if(t===r)u[c]=r;else{if(t===i)return t;if(void 0!==t){if(!s)return t;y=t,d=!0}}}}return d?y:void 0},leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(u[i]===a){const a=t(e[i],n(p),!0);if("function"==typeof a){const t=a.call(e[i],p,s,c,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new Po("Async visitor not supported in sync mode",{visitor:e[i],visitFn:a});if(t===r)u[i]=r;else if(void 0!==t&&t!==o)return t}}else u[i]===p&&(u[i]=a)}}};Up[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Vp,nodeTypeGetter:n=Fp,breakSymbol:r=Dp,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const a=Symbol("skip"),u=new Array(e.length).fill(a);return{async enter(c,l,f,h,p,m){let y=c,d=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),y=e}};for(let c=0;c<e.length;c+=1)if(u[c]===a){const a=t(e[c],n(y),!1);if("function"==typeof a){const t=await a.call(e[c],y,l,f,h,p,v);if(t===o)u[c]=y;else if(t===r)u[c]=r;else{if(t===i)return t;if(void 0!==t){if(!s)return t;y=t,d=!0}}}}return d?y:void 0},async leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(u[i]===a){const a=t(e[i],n(p),!0);if("function"==typeof a){const t=await a.call(e[i],p,s,c,l,f,m);if(t===r)u[i]=r;else if(void 0!==t&&t!==o)return t}}else u[i]===p&&(u[i]=a)}}};const Hp=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=Dp,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:a=Vp,nodeTypeGetter:u=Fp,nodePredicate:c=Bp,nodeCloneFn:l=zp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(e),v=[e],g=-1,b=[],E=e;const w=[],j=[];do{g+=1;const e=g===v.length;let n;const A=e&&0!==b.length;if(e){if(n=0===j.length?void 0:w.pop(),E=y,y=j.pop(),A)if(d){E=E.slice();let e=0;for(const[t,n]of b){const r=t-e;n===o?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of b)E[e]=t}g=m.index,v=m.keys,b=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?g:v[g],E=y[n],E===o||void 0===E)continue;w.push(n)}let S;if(!Array.isArray(E)){var T;if(!c(E))throw new Po(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&j.includes(E)){"function"==typeof h&&h(E,n,y,w,j),w.pop();continue}const o=a(t,u(E),e);if(o){for(const[e,n]of Object.entries(r))t[e]=n;const i={replaceWith(t,r){"function"==typeof r?r(t,E,n,y,w,j):y&&(y[n]=t),e||(E=t)}};S=o.call(t,E,n,y,w,j,i)}if("function"==typeof(null===(T=S)||void 0===T?void 0:T.then))throw new Po("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(S===i)break;if(S===s){if(!e){w.pop();continue}}else if(void 0!==S&&(b.push([n,S]),!e)){if(!c(S)){w.pop();continue}E=S}}var O;if(void 0===S&&A&&b.push([n,E]),!e)m={inArray:d,index:g,keys:v,edits:b,prev:m},d=Array.isArray(E),v=d?E:null!==(O=p[u(E)])&&void 0!==O?O:[],g=-1,b=[],y!==o&&void 0!==y&&j.push(y),y=E}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};Hp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:i=Dp,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:a=Vp,nodeTypeGetter:u=Fp,nodePredicate:c=Bp,nodeCloneFn:l=zp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(e),v=[e],g=-1,b=[],E=e;const w=[],j=[];do{g+=1;const e=g===v.length;let n;const O=e&&0!==b.length;if(e){if(n=0===j.length?void 0:w.pop(),E=y,y=j.pop(),O)if(d){E=E.slice();let e=0;for(const[t,n]of b){const r=t-e;n===o?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of b)E[e]=t}g=m.index,v=m.keys,b=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?g:v[g],E=y[n],E===o||void 0===E)continue;w.push(n)}let A;if(!Array.isArray(E)){if(!c(E))throw new Po(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&j.includes(E)){"function"==typeof h&&h(E,n,y,w,j),w.pop();continue}const o=a(t,u(E),e);if(o){for(const[e,n]of Object.entries(r))t[e]=n;const i={replaceWith(t,r){"function"==typeof r?r(t,E,n,y,w,j):y&&(y[n]=t),e||(E=t)}};A=await o.call(t,E,n,y,w,j,i)}if(A===i)break;if(A===s){if(!e){w.pop();continue}}else if(void 0!==A&&(b.push([n,A]),!e)){if(!c(A)){w.pop();continue}E=A}}var T;if(void 0===A&&O&&b.push([n,E]),!e)m={inArray:d,index:g,keys:v,edits:b,prev:m},d=Array.isArray(E),v=d?E:null!==(T=p[u(E)])&&void 0!==T?T:[],g=-1,b=[],y!==o&&void 0!==y&&j.push(y),y=E}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};class Gp extends Po{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class qp extends Gp{}class Yp extends Gp{}const Jp=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof lp.KeyValuePair){const{key:t,value:i}=e,o=Ep(t)?Jp(t,r):t,s=Ep(i)?Jp(i,r):i,a=new lp.KeyValuePair(o,s);return n.set(e,a),a}if(e instanceof lp.ObjectSlice){const t=e=>Jp(e,r),i=[...e].map(t),o=new lp.ObjectSlice(i);return n.set(e,o),o}if(e instanceof lp.ArraySlice){const t=e=>Jp(e,r),i=[...e].map(t),o=new lp.ArraySlice(i);return n.set(e,o),o}if(Ep(e)){const t=Xp(e);if(n.set(e,t),e.content)if(Ep(e.content))t.content=Jp(e.content,r);else if(e.content instanceof lp.KeyValuePair)t.content=Jp(e.content,r);else if(Array.isArray(e.content)){const n=e=>Jp(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new qp("Value provided to cloneDeep function couldn't be cloned",{value:e})};Jp.safe=e=>{try{return Jp(e)}catch{return e}};const Kp=e=>{const{key:t,value:n}=e;return new lp.KeyValuePair(t,n)},Wp=e=>{const t=new e.constructor;var n,r;if(t.element=e.element,Cp(e)&&(r=e,(n=t).startPositionRow=null==r?void 0:r.startPositionRow,n.startPositionColumn=null==r?void 0:r.startPositionColumn,n.startIndex=null==r?void 0:r.startIndex,n.endPositionRow=null==r?void 0:r.endPositionRow,n.endPositionColumn=null==r?void 0:r.endPositionColumn,n.endIndex=null==r?void 0:r.endIndex),e.meta.length>0&&(t._meta=Jp(e.meta)),e.attributes.length>0&&(t._attributes=Jp(e.attributes)),Ep(e.content)){const n=e.content;t.content=Wp(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof lp.KeyValuePair?t.content=Kp(e.content):t.content=e.content;return t},Xp=e=>{if(e instanceof lp.KeyValuePair)return Kp(e);if(e instanceof lp.ObjectSlice)return(e=>{const t=[...e];return new lp.ObjectSlice(t)})(e);if(e instanceof lp.ArraySlice)return(e=>{const t=[...e];return new lp.ArraySlice(t)})(e);if(Ep(e))return Wp(e);throw new Yp("Value provided to cloneShallow function couldn't be cloned",{value:e})};Xp.safe=e=>{try{return Xp(e)}catch{return e}};const Zp=e=>Ap(e)?"ObjectElement":Sp(e)?"ArrayElement":kp(e)?"MemberElement":wp(e)?"StringElement":Op(e)?"BooleanElement":jp(e)?"NumberElement":Tp(e)?"NullElement":xp(e)?"LinkElement":Pp(e)?"RefElement":void 0,Qp=e=>Ep(e)?Xp(e):zp(e),em=Va(Zp,Ll),tm={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},nm=(e,t,{keyMap:n=tm,...r}={})=>Hp(e,t,{keyMap:n,nodeTypeGetter:Zp,nodePredicate:em,nodeCloneFn:Qp,...r});nm[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=tm,...r}={})=>Hp[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:Zp,nodePredicate:em,nodeCloneFn:Qp,...r});const rm={toolboxCreator:Ip,visitorOptions:{nodeTypeGetter:Zp,exposeEdits:!0}},im=(e,t,n={})=>{if(0===t.length)return e;const r=Sl(rm,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),a=t.map((e=>e(s))),u=Up(a.map(xl({},"visitor")),{...o});a.forEach(Vl(["pre"],[]));const c=nm(e,u,o);return a.forEach(Vl(["post"],[])),c};im[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=Sl(rm,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),a=t.map((e=>e(s))),u=Up[Symbol.for("nodejs.util.promisify.custom")],c=nm[Symbol.for("nodejs.util.promisify.custom")],l=u(a.map(xl({},"visitor")),{...o});await Promise.allSettled(a.map(Vl(["pre"],[])));const f=await c(e,l,o);return await Promise.allSettled(a.map(Vl(["post"],[]))),f};const om=e=>(t,n={})=>((e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Ep(e)&&(e.meta.length>0&&(r.meta=Jp(e.meta)),e.attributes.length>0&&(r.attributes=Jp(e.attributes))),im(r,n,{toolboxCreator:Ip,visitorOptions:{nodeTypeGetter:Zp}})})(t,{...n,Type:e});lp.ObjectElement.refract=om(lp.ObjectElement),lp.ArrayElement.refract=om(lp.ArrayElement),lp.StringElement.refract=om(lp.StringElement),lp.BooleanElement.refract=om(lp.BooleanElement),lp.NullElement.refract=om(lp.NullElement),lp.NumberElement.refract=om(lp.NumberElement),lp.LinkElement.refract=om(lp.LinkElement),lp.RefElement.refract=om(lp.RefElement),fp.refract=om(fp),hp.refract=om(hp),pp.refract=om(pp);class sm extends cs{name="apidom";isArray(e){return Sp(e)}isObject(e){return Ap(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const n=Number(t),r=n>>>0;if(n!==r)throw new fs(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return r<this.sizeOf(e)}if(this.isObject(e)){const n=e.keys(),r=new Set(n);if(n.length!==r.size)throw new ms(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}}const am=new RegExp("^(?<nonNegativeIntegerPrefix>[1-9]\\d*|0)(?<indexManipulation>[+-][1-9]\\d*|0)?((?<hashCharacter>#)|(?<jsonPointer>\\/.*))?$"),um=e=>{const t=e.match(am);if(null===t||void 0===t.groups)throw new Co(`Invalid Relative JSON Pointer "${e}".`,{relativePointer:e});try{const e=parseInt(t.groups.nonNegativeIntegerPrefix,10),n="string"==typeof t.groups.indexManipulation?parseInt(t.groups.indexManipulation,10):void 0,r="string"==typeof t.groups.jsonPointer?ts(t.groups.jsonPointer).tree:void 0;return{nonNegativeIntegerPrefix:e,indexManipulation:n,jsonPointerTokens:r,hashCharacter:"string"==typeof t.groups.hashCharacter}}catch(t){throw new Co(`Relative JSON Pointer parsing of "${e}" encountered an error.`,{relativePointer:e,cause:t})}};e.CompilationRelativeJsonPointerError=Do,e.EvaluationRelativeJsonPointerError=$o,e.InvalidRelativeJsonPointerError=Co,e.RelativeJsonPointerError=_o,e.compile=e=>{try{let t="";return t+=String(e.nonNegativeIntegerPrefix),"number"==typeof e.indexManipulation&&(t+=String(e.indexManipulation)),Array.isArray(e.jsonPointerTokens)?t+=as(e.jsonPointerTokens):e.hashCharacter&&(t+="#"),t}catch(t){throw new Do("Relative JSON Pointer compilation encountered an error.",{relativePointer:e,cause:t})}},e.evaluate=(e,t,n)=>{let r,i=[],o=t;if(nm(n,{enter(e,n,r,o,s){if(e===t)return i=[...s,r].filter(Ep),Dp}}),0===i.length)throw new $o("Relative JSON Pointer evaluation failed. Current element not found inside the root element",{relativePointer:e,currentElement:Jp(t),rootElement:Jp(n),cursorElement:Jp.safe(o)});if(Fa(i)===n)throw new $o("Relative JSON Pointer evaluation failed. Current element cannot be the root element",{relativePointer:e,currentElement:t,rootElement:n,cursorElement:o});try{r=um(e)}catch(n){throw new $o("Relative JSON Pointer evaluation failed while parsing the pointer.",{relativePointer:e,currentElement:Jp(t),rootElement:Jp(t),cursorElement:Jp.safe(o),cause:n})}if(r.nonNegativeIntegerPrefix>0){const s=[...i];for(let{nonNegativeIntegerPrefix:e}=r;e>0;e-=1)o=s.pop(),kp(o)&&(o=s.pop());if(void 0===o)throw new $o(`Relative JSON Pointer evaluation failed on non-negative-integer prefix of "${r.nonNegativeIntegerPrefix}"`,{relativePointer:e,currentElement:Jp(t),rootElement:Jp(n),cursorElement:Jp.safe(o)});i=s}if("number"==typeof r.indexManipulation){const s=Fa(i);if(void 0===s||!Sp(s))throw new $o(`Relative JSON Pointer evaluation failed failed on index-manipulation "${r.indexManipulation}"`,{relativePointer:e,currentElement:Jp(t),rootElement:Jp(n),cursorElement:Jp.safe(o)});const a=s.content.indexOf(o)+r.indexManipulation;if(o=s.content[a],void 0===o)throw new $o(`Relative JSON Pointer evaluation failed on index-manipulation "${r.indexManipulation}"`,{relativePointer:e,currentElement:Jp(t),rootElement:Jp(n),cursorElement:Jp.safe(o)})}if(Array.isArray(r.jsonPointerTokens)){o=((e,t,n={})=>ys(e,t,{...n,realm:new sm}))(o,as(r.jsonPointerTokens))}else if(r.hashCharacter){if(o===n)throw new $o('Relative JSON Pointer evaluation failed. Current element cannot be the root element to apply "#"',{relativePointer:e,currentElement:Jp(t),rootElement:Jp(n),cursorElement:Jp.safe(o)});const r=Fa(i);void 0!==r&&(kp(r)?o=r.key:Sp(r)&&(o=new lp.NumberElement(r.content.indexOf(o))))}return o},e.isRelativeJsonPointer=e=>"string"==typeof e&&am.test(e),e.parse=um,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(e, t) {
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).apidomJsonPointerRelative = {});
|
|
3
|
+
})(this, (function(e) {
|
|
4
|
+
Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
|
|
5
|
+
var t = Object.create, r = Object.defineProperty, n = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, a = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, t) => {
|
|
6
|
+
let n = {};
|
|
7
|
+
for (var o in e) r(n, o, {
|
|
8
|
+
get: e[o],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
return t || r(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, u = (e, a, c) => (c = null != e ? t(s(e)) : {}, ((e, t, s, a) => {
|
|
13
|
+
if (t && "object" == typeof t || "function" == typeof t) for (var c, u = o(t), l = 0, f = u.length; l < f; l++) c = u[l], i.call(e, c) || c === s || r(e, c, {
|
|
14
|
+
get: ((e) => t[e]).bind(null, c),
|
|
15
|
+
enumerable: !(a = n(t, c)) || a.enumerable
|
|
16
|
+
});
|
|
17
|
+
return e;
|
|
18
|
+
})(!a && e && e.__esModule ? c : r(c, "default", {
|
|
19
|
+
value: e,
|
|
20
|
+
enumerable: !0
|
|
21
|
+
}), e)), l = a(((e, t) => {
|
|
22
|
+
var r = function(e) {
|
|
23
|
+
return e && e.Math === Math && e;
|
|
24
|
+
};
|
|
25
|
+
t.exports = r("object" == typeof globalThis && globalThis) || r("object" == typeof window && window) || r("object" == typeof self && self) || r("object" == typeof global && global) || r("object" == typeof e && e) || function() {
|
|
26
|
+
return this;
|
|
27
|
+
}() || Function("return this")();
|
|
28
|
+
})), f = a(((e, t) => {
|
|
29
|
+
t.exports = function(e) {
|
|
30
|
+
try {
|
|
31
|
+
return !!e();
|
|
32
|
+
} catch (e) {
|
|
33
|
+
return !0;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
})), p = a(((e, t) => {
|
|
37
|
+
t.exports = !f()((function() {
|
|
38
|
+
var e = function() {}.bind();
|
|
39
|
+
return "function" != typeof e || e.hasOwnProperty("prototype");
|
|
40
|
+
}));
|
|
41
|
+
})), h = a(((e, t) => {
|
|
42
|
+
var r = p(), n = Function.prototype, o = n.apply, s = n.call;
|
|
43
|
+
t.exports = "object" == typeof Reflect && Reflect.apply || (r ? s.bind(o) : function() {
|
|
44
|
+
return s.apply(o, arguments);
|
|
45
|
+
});
|
|
46
|
+
})), m = a(((e, t) => {
|
|
47
|
+
var r = p(), n = Function.prototype, o = n.call, s = r && n.bind.bind(o, o);
|
|
48
|
+
t.exports = r ? s : function(e) {
|
|
49
|
+
return function() {
|
|
50
|
+
return o.apply(e, arguments);
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
})), y = a(((e, t) => {
|
|
54
|
+
var r = m(), n = r({}.toString), o = r("".slice);
|
|
55
|
+
t.exports = function(e) {
|
|
56
|
+
return o(n(e), 8, -1);
|
|
57
|
+
};
|
|
58
|
+
})), d = a(((e, t) => {
|
|
59
|
+
var r = y(), n = m();
|
|
60
|
+
t.exports = function(e) {
|
|
61
|
+
if ("Function" === r(e)) return n(e);
|
|
62
|
+
};
|
|
63
|
+
})), v = a(((e, t) => {
|
|
64
|
+
var r = "object" == typeof document && document.all;
|
|
65
|
+
t.exports = void 0 === r && void 0 !== r ? function(e) {
|
|
66
|
+
return "function" == typeof e || e === r;
|
|
67
|
+
} : function(e) {
|
|
68
|
+
return "function" == typeof e;
|
|
69
|
+
};
|
|
70
|
+
})), g = a(((e, t) => {
|
|
71
|
+
t.exports = !f()((function() {
|
|
72
|
+
return 7 !== Object.defineProperty({}, 1, { get: function() {
|
|
73
|
+
return 7;
|
|
74
|
+
} })[1];
|
|
75
|
+
}));
|
|
76
|
+
})), b = a(((e, t) => {
|
|
77
|
+
var r = p(), n = Function.prototype.call;
|
|
78
|
+
t.exports = r ? n.bind(n) : function() {
|
|
79
|
+
return n.apply(n, arguments);
|
|
80
|
+
};
|
|
81
|
+
})), x = a(((e) => {
|
|
82
|
+
var t = {}.propertyIsEnumerable, r = Object.getOwnPropertyDescriptor;
|
|
83
|
+
e.f = r && !t.call({ 1: 2 }, 1) ? function(e) {
|
|
84
|
+
var t = r(this, e);
|
|
85
|
+
return !!t && t.enumerable;
|
|
86
|
+
} : t;
|
|
87
|
+
})), E = a(((e, t) => {
|
|
88
|
+
t.exports = function(e, t) {
|
|
89
|
+
return {
|
|
90
|
+
enumerable: !(1 & e),
|
|
91
|
+
configurable: !(2 & e),
|
|
92
|
+
writable: !(4 & e),
|
|
93
|
+
value: t
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
})), w = a(((e, t) => {
|
|
97
|
+
var r = m(), n = f(), o = y(), s = Object, i = r("".split);
|
|
98
|
+
t.exports = n((function() {
|
|
99
|
+
return !s("z").propertyIsEnumerable(0);
|
|
100
|
+
})) ? function(e) {
|
|
101
|
+
return "String" === o(e) ? i(e, "") : s(e);
|
|
102
|
+
} : s;
|
|
103
|
+
})), j = a(((e, t) => {
|
|
104
|
+
t.exports = function(e) {
|
|
105
|
+
return null == e;
|
|
106
|
+
};
|
|
107
|
+
})), T = a(((e, t) => {
|
|
108
|
+
var r = j(), n = TypeError;
|
|
109
|
+
t.exports = function(e) {
|
|
110
|
+
if (r(e)) throw new n("Can't call method on " + e);
|
|
111
|
+
return e;
|
|
112
|
+
};
|
|
113
|
+
})), O = a(((e, t) => {
|
|
114
|
+
var r = w(), n = T();
|
|
115
|
+
t.exports = function(e) {
|
|
116
|
+
return r(n(e));
|
|
117
|
+
};
|
|
118
|
+
})), A = a(((e, t) => {
|
|
119
|
+
var r = v();
|
|
120
|
+
t.exports = function(e) {
|
|
121
|
+
return "object" == typeof e ? null !== e : r(e);
|
|
122
|
+
};
|
|
123
|
+
})), S = a(((e, t) => {
|
|
124
|
+
t.exports = {};
|
|
125
|
+
})), k = a(((e, t) => {
|
|
126
|
+
var r = S(), n = l(), o = v(), s = function(e) {
|
|
127
|
+
return o(e) ? e : void 0;
|
|
128
|
+
};
|
|
129
|
+
t.exports = function(e, t) {
|
|
130
|
+
return arguments.length < 2 ? s(r[e]) || s(n[e]) : r[e] && r[e][t] || n[e] && n[e][t];
|
|
131
|
+
};
|
|
132
|
+
})), P = a(((e, t) => {
|
|
133
|
+
t.exports = m()({}.isPrototypeOf);
|
|
134
|
+
})), _ = a(((e, t) => {
|
|
135
|
+
var r = l().navigator, n = r && r.userAgent;
|
|
136
|
+
t.exports = n ? String(n) : "";
|
|
137
|
+
})), M = a(((e, t) => {
|
|
138
|
+
var r, n, o = l(), s = _(), i = o.process, a = o.Deno, c = i && i.versions || a && a.version, u = c && c.v8;
|
|
139
|
+
u && (n = (r = u.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !n && s && (!(r = s.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = s.match(/Chrome\/(\d+)/)) && (n = +r[1]), t.exports = n;
|
|
140
|
+
})), N = a(((e, t) => {
|
|
141
|
+
var r = M(), n = f(), o = l().String;
|
|
142
|
+
t.exports = !!Object.getOwnPropertySymbols && !n((function() {
|
|
143
|
+
var e = Symbol("symbol detection");
|
|
144
|
+
return !o(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && r && r < 41;
|
|
145
|
+
}));
|
|
146
|
+
})), C = a(((e, t) => {
|
|
147
|
+
t.exports = N() && !Symbol.sham && "symbol" == typeof Symbol.iterator;
|
|
148
|
+
})), R = a(((e, t) => {
|
|
149
|
+
var r = k(), n = v(), o = P(), s = C(), i = Object;
|
|
150
|
+
t.exports = s ? function(e) {
|
|
151
|
+
return "symbol" == typeof e;
|
|
152
|
+
} : function(e) {
|
|
153
|
+
var t = r("Symbol");
|
|
154
|
+
return n(t) && o(t.prototype, i(e));
|
|
155
|
+
};
|
|
156
|
+
})), L = a(((e, t) => {
|
|
157
|
+
var r = String;
|
|
158
|
+
t.exports = function(e) {
|
|
159
|
+
try {
|
|
160
|
+
return r(e);
|
|
161
|
+
} catch (e) {
|
|
162
|
+
return "Object";
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
})), $ = a(((e, t) => {
|
|
166
|
+
var r = v(), n = L(), o = TypeError;
|
|
167
|
+
t.exports = function(e) {
|
|
168
|
+
if (r(e)) return e;
|
|
169
|
+
throw new o(n(e) + " is not a function");
|
|
170
|
+
};
|
|
171
|
+
})), I = a(((e, t) => {
|
|
172
|
+
var r = $(), n = j();
|
|
173
|
+
t.exports = function(e, t) {
|
|
174
|
+
var o = e[t];
|
|
175
|
+
return n(o) ? void 0 : r(o);
|
|
176
|
+
};
|
|
177
|
+
})), V = a(((e, t) => {
|
|
178
|
+
var r = b(), n = v(), o = A(), s = TypeError;
|
|
179
|
+
t.exports = function(e, t) {
|
|
180
|
+
var i, a;
|
|
181
|
+
if ("string" === t && n(i = e.toString) && !o(a = r(i, e))) return a;
|
|
182
|
+
if (n(i = e.valueOf) && !o(a = r(i, e))) return a;
|
|
183
|
+
if ("string" !== t && n(i = e.toString) && !o(a = r(i, e))) return a;
|
|
184
|
+
throw new s("Can't convert object to primitive value");
|
|
185
|
+
};
|
|
186
|
+
})), D = a(((e, t) => {
|
|
187
|
+
t.exports = !0;
|
|
188
|
+
})), F = a(((e, t) => {
|
|
189
|
+
var r = l(), n = Object.defineProperty;
|
|
190
|
+
t.exports = function(e, t) {
|
|
191
|
+
try {
|
|
192
|
+
n(r, e, {
|
|
193
|
+
value: t,
|
|
194
|
+
configurable: !0,
|
|
195
|
+
writable: !0
|
|
196
|
+
});
|
|
197
|
+
} catch (n) {
|
|
198
|
+
r[e] = t;
|
|
199
|
+
}
|
|
200
|
+
return t;
|
|
201
|
+
};
|
|
202
|
+
})), B = a(((e, t) => {
|
|
203
|
+
var r = D(), n = l(), o = F(), s = "__core-js_shared__", i = t.exports = n[s] || o(s, {});
|
|
204
|
+
(i.versions || (i.versions = [])).push({
|
|
205
|
+
version: "3.42.0",
|
|
206
|
+
mode: r ? "pure" : "global",
|
|
207
|
+
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
208
|
+
license: "https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",
|
|
209
|
+
source: "https://github.com/zloirock/core-js"
|
|
210
|
+
});
|
|
211
|
+
})), z = a(((e, t) => {
|
|
212
|
+
var r = B();
|
|
213
|
+
t.exports = function(e, t) {
|
|
214
|
+
return r[e] || (r[e] = t || {});
|
|
215
|
+
};
|
|
216
|
+
})), U = a(((e, t) => {
|
|
217
|
+
var r = T(), n = Object;
|
|
218
|
+
t.exports = function(e) {
|
|
219
|
+
return n(r(e));
|
|
220
|
+
};
|
|
221
|
+
})), H = a(((e, t) => {
|
|
222
|
+
var r = m(), n = U(), o = r({}.hasOwnProperty);
|
|
223
|
+
t.exports = Object.hasOwn || function(e, t) {
|
|
224
|
+
return o(n(e), t);
|
|
225
|
+
};
|
|
226
|
+
})), G = a(((e, t) => {
|
|
227
|
+
var r = m(), n = 0, o = Math.random(), s = r(1 .toString);
|
|
228
|
+
t.exports = function(e) {
|
|
229
|
+
return "Symbol(" + (void 0 === e ? "" : e) + ")_" + s(++n + o, 36);
|
|
230
|
+
};
|
|
231
|
+
})), q = a(((e, t) => {
|
|
232
|
+
var r = l(), n = z(), o = H(), s = G(), i = N(), a = C(), c = r.Symbol, u = n("wks"), f = a ? c.for || c : c && c.withoutSetter || s;
|
|
233
|
+
t.exports = function(e) {
|
|
234
|
+
return o(u, e) || (u[e] = i && o(c, e) ? c[e] : f("Symbol." + e)), u[e];
|
|
235
|
+
};
|
|
236
|
+
})), Y = a(((e, t) => {
|
|
237
|
+
var r = b(), n = A(), o = R(), s = I(), i = V(), a = q(), c = TypeError, u = a("toPrimitive");
|
|
238
|
+
t.exports = function(e, t) {
|
|
239
|
+
if (!n(e) || o(e)) return e;
|
|
240
|
+
var a, l = s(e, u);
|
|
241
|
+
if (l) {
|
|
242
|
+
if (void 0 === t && (t = "default"), a = r(l, e, t), !n(a) || o(a)) return a;
|
|
243
|
+
throw new c("Can't convert object to primitive value");
|
|
244
|
+
}
|
|
245
|
+
return void 0 === t && (t = "number"), i(e, t);
|
|
246
|
+
};
|
|
247
|
+
})), J = a(((e, t) => {
|
|
248
|
+
var r = Y(), n = R();
|
|
249
|
+
t.exports = function(e) {
|
|
250
|
+
var t = r(e, "string");
|
|
251
|
+
return n(t) ? t : t + "";
|
|
252
|
+
};
|
|
253
|
+
})), K = a(((e, t) => {
|
|
254
|
+
var r = l(), n = A(), o = r.document, s = n(o) && n(o.createElement);
|
|
255
|
+
t.exports = function(e) {
|
|
256
|
+
return s ? o.createElement(e) : {};
|
|
257
|
+
};
|
|
258
|
+
})), W = a(((e, t) => {
|
|
259
|
+
var r = g(), n = f(), o = K();
|
|
260
|
+
t.exports = !r && !n((function() {
|
|
261
|
+
return 7 !== Object.defineProperty(o("div"), "a", { get: function() {
|
|
262
|
+
return 7;
|
|
263
|
+
} }).a;
|
|
264
|
+
}));
|
|
265
|
+
})), X = a(((e) => {
|
|
266
|
+
var t = g(), r = b(), n = x(), o = E(), s = O(), i = J(), a = H(), c = W(), u = Object.getOwnPropertyDescriptor;
|
|
267
|
+
e.f = t ? u : function(e, t) {
|
|
268
|
+
if (e = s(e), t = i(t), c) try {
|
|
269
|
+
return u(e, t);
|
|
270
|
+
} catch (e) {}
|
|
271
|
+
if (a(e, t)) return o(!r(n.f, e, t), e[t]);
|
|
272
|
+
};
|
|
273
|
+
})), Z = a(((e, t) => {
|
|
274
|
+
var r = f(), n = v(), o = /#|\.prototype\./, s = function(e, t) {
|
|
275
|
+
var o = a[i(e)];
|
|
276
|
+
return o === u || o !== c && (n(t) ? r(t) : !!t);
|
|
277
|
+
}, i = s.normalize = function(e) {
|
|
278
|
+
return String(e).replace(o, ".").toLowerCase();
|
|
279
|
+
}, a = s.data = {}, c = s.NATIVE = "N", u = s.POLYFILL = "P";
|
|
280
|
+
t.exports = s;
|
|
281
|
+
})), Q = a(((e, t) => {
|
|
282
|
+
var r = d(), n = $(), o = p(), s = r(r.bind);
|
|
283
|
+
t.exports = function(e, t) {
|
|
284
|
+
return n(e), void 0 === t ? e : o ? s(e, t) : function() {
|
|
285
|
+
return e.apply(t, arguments);
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
})), ee = a(((e, t) => {
|
|
289
|
+
var r = g(), n = f();
|
|
290
|
+
t.exports = r && n((function() {
|
|
291
|
+
return 42 !== Object.defineProperty((function() {}), "prototype", {
|
|
292
|
+
value: 42,
|
|
293
|
+
writable: !1
|
|
294
|
+
}).prototype;
|
|
295
|
+
}));
|
|
296
|
+
})), te = a(((e, t) => {
|
|
297
|
+
var r = A(), n = String, o = TypeError;
|
|
298
|
+
t.exports = function(e) {
|
|
299
|
+
if (r(e)) return e;
|
|
300
|
+
throw new o(n(e) + " is not an object");
|
|
301
|
+
};
|
|
302
|
+
})), re = a(((e) => {
|
|
303
|
+
var t = g(), r = W(), n = ee(), o = te(), s = J(), i = TypeError, a = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = "enumerable", l = "configurable", f = "writable";
|
|
304
|
+
e.f = t ? n ? function(e, t, r) {
|
|
305
|
+
if (o(e), t = s(t), o(r), "function" == typeof e && "prototype" === t && "value" in r && f in r && !r[f]) {
|
|
306
|
+
var n = c(e, t);
|
|
307
|
+
n && n[f] && (e[t] = r.value, r = {
|
|
308
|
+
configurable: l in r ? r[l] : n[l],
|
|
309
|
+
enumerable: u in r ? r[u] : n[u],
|
|
310
|
+
writable: !1
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
return a(e, t, r);
|
|
314
|
+
} : a : function(e, t, n) {
|
|
315
|
+
if (o(e), t = s(t), o(n), r) try {
|
|
316
|
+
return a(e, t, n);
|
|
317
|
+
} catch (e) {}
|
|
318
|
+
if ("get" in n || "set" in n) throw new i("Accessors not supported");
|
|
319
|
+
return "value" in n && (e[t] = n.value), e;
|
|
320
|
+
};
|
|
321
|
+
})), ne = a(((e, t) => {
|
|
322
|
+
var r = g(), n = re(), o = E();
|
|
323
|
+
t.exports = r ? function(e, t, r) {
|
|
324
|
+
return n.f(e, t, o(1, r));
|
|
325
|
+
} : function(e, t, r) {
|
|
326
|
+
return e[t] = r, e;
|
|
327
|
+
};
|
|
328
|
+
})), oe = a(((e, t) => {
|
|
329
|
+
var r = l(), n = h(), o = d(), s = v(), i = X().f, a = Z(), c = S(), u = Q(), f = ne(), p = H();
|
|
330
|
+
B();
|
|
331
|
+
var m = function(e) {
|
|
332
|
+
var t = function(r, o, s) {
|
|
333
|
+
if (this instanceof t) {
|
|
334
|
+
switch (arguments.length) {
|
|
335
|
+
case 0: return new e();
|
|
336
|
+
case 1: return new e(r);
|
|
337
|
+
case 2: return new e(r, o);
|
|
338
|
+
}
|
|
339
|
+
return new e(r, o, s);
|
|
340
|
+
}
|
|
341
|
+
return n(e, this, arguments);
|
|
342
|
+
};
|
|
343
|
+
return t.prototype = e.prototype, t;
|
|
344
|
+
};
|
|
345
|
+
t.exports = function(e, t) {
|
|
346
|
+
var n, l, h, y, d, v, g, b, x, E = e.target, w = e.global, j = e.stat, T = e.proto, O = w ? r : j ? r[E] : r[E] && r[E].prototype, A = w ? c : c[E] || f(c, E, {})[E], S = A.prototype;
|
|
347
|
+
for (y in t) l = !(n = a(w ? y : E + (j ? "." : "#") + y, e.forced)) && O && p(O, y), v = A[y], l && (g = e.dontCallGetSet ? (x = i(O, y)) && x.value : O[y]), d = l && g ? g : t[y], (n || T || typeof v != typeof d) && (b = e.bind && l ? u(d, r) : e.wrap && l ? m(d) : T && s(d) ? o(d) : d, (e.sham || d && d.sham || v && v.sham) && f(b, "sham", !0), f(A, y, b), T && (p(c, h = E + "Prototype") || f(c, h, {}), f(c[h], y, d), e.real && S && (n || !S[y]) && f(S, y, d)));
|
|
348
|
+
};
|
|
349
|
+
})), se = a(((e, t) => {
|
|
350
|
+
var r = z(), n = G(), o = r("keys");
|
|
351
|
+
t.exports = function(e) {
|
|
352
|
+
return o[e] || (o[e] = n(e));
|
|
353
|
+
};
|
|
354
|
+
})), ie = a(((e, t) => {
|
|
355
|
+
t.exports = !f()((function() {
|
|
356
|
+
function e() {}
|
|
357
|
+
return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
|
|
358
|
+
}));
|
|
359
|
+
})), ae = a(((e, t) => {
|
|
360
|
+
var r = H(), n = v(), o = U(), s = se(), i = ie(), a = s("IE_PROTO"), c = Object, u = c.prototype;
|
|
361
|
+
t.exports = i ? c.getPrototypeOf : function(e) {
|
|
362
|
+
var t = o(e);
|
|
363
|
+
if (r(t, a)) return t[a];
|
|
364
|
+
var s = t.constructor;
|
|
365
|
+
return n(s) && t instanceof s ? s.prototype : t instanceof c ? u : null;
|
|
366
|
+
};
|
|
367
|
+
})), ce = a(((e, t) => {
|
|
368
|
+
var r = m(), n = $();
|
|
369
|
+
t.exports = function(e, t, o) {
|
|
370
|
+
try {
|
|
371
|
+
return r(n(Object.getOwnPropertyDescriptor(e, t)[o]));
|
|
372
|
+
} catch (e) {}
|
|
373
|
+
};
|
|
374
|
+
})), ue = a(((e, t) => {
|
|
375
|
+
var r = A();
|
|
376
|
+
t.exports = function(e) {
|
|
377
|
+
return r(e) || null === e;
|
|
378
|
+
};
|
|
379
|
+
})), le = a(((e, t) => {
|
|
380
|
+
var r = ue(), n = String, o = TypeError;
|
|
381
|
+
t.exports = function(e) {
|
|
382
|
+
if (r(e)) return e;
|
|
383
|
+
throw new o("Can't set " + n(e) + " as a prototype");
|
|
384
|
+
};
|
|
385
|
+
})), fe = a(((e, t) => {
|
|
386
|
+
var r = ce(), n = A(), o = T(), s = le();
|
|
387
|
+
t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
388
|
+
var e, t = !1, i = {};
|
|
389
|
+
try {
|
|
390
|
+
(e = r(Object.prototype, "__proto__", "set"))(i, []), t = i instanceof Array;
|
|
391
|
+
} catch (e) {}
|
|
392
|
+
return function(r, i) {
|
|
393
|
+
return o(r), s(i), n(r) ? (t ? e(r, i) : r.__proto__ = i, r) : r;
|
|
394
|
+
};
|
|
395
|
+
}() : void 0);
|
|
396
|
+
})), pe = a(((e, t) => {
|
|
397
|
+
var r = Math.ceil, n = Math.floor;
|
|
398
|
+
t.exports = Math.trunc || function(e) {
|
|
399
|
+
var t = +e;
|
|
400
|
+
return (t > 0 ? n : r)(t);
|
|
401
|
+
};
|
|
402
|
+
})), he = a(((e, t) => {
|
|
403
|
+
var r = pe();
|
|
404
|
+
t.exports = function(e) {
|
|
405
|
+
var t = +e;
|
|
406
|
+
return t != t || 0 === t ? 0 : r(t);
|
|
407
|
+
};
|
|
408
|
+
})), me = a(((e, t) => {
|
|
409
|
+
var r = he(), n = Math.max, o = Math.min;
|
|
410
|
+
t.exports = function(e, t) {
|
|
411
|
+
var s = r(e);
|
|
412
|
+
return s < 0 ? n(s + t, 0) : o(s, t);
|
|
413
|
+
};
|
|
414
|
+
})), ye = a(((e, t) => {
|
|
415
|
+
var r = he(), n = Math.min;
|
|
416
|
+
t.exports = function(e) {
|
|
417
|
+
var t = r(e);
|
|
418
|
+
return t > 0 ? n(t, 9007199254740991) : 0;
|
|
419
|
+
};
|
|
420
|
+
})), de = a(((e, t) => {
|
|
421
|
+
var r = ye();
|
|
422
|
+
t.exports = function(e) {
|
|
423
|
+
return r(e.length);
|
|
424
|
+
};
|
|
425
|
+
})), ve = a(((e, t) => {
|
|
426
|
+
var r = O(), n = me(), o = de(), s = function(e) {
|
|
427
|
+
return function(t, s, i) {
|
|
428
|
+
var a = r(t), c = o(a);
|
|
429
|
+
if (0 === c) return !e && -1;
|
|
430
|
+
var u, l = n(i, c);
|
|
431
|
+
if (e && s != s) {
|
|
432
|
+
for (; c > l;) if ((u = a[l++]) != u) return !0;
|
|
433
|
+
} else for (; c > l; l++) if ((e || l in a) && a[l] === s) return e || l || 0;
|
|
434
|
+
return !e && -1;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
t.exports = {
|
|
438
|
+
includes: s(!0),
|
|
439
|
+
indexOf: s(!1)
|
|
440
|
+
};
|
|
441
|
+
})), ge = a(((e, t) => {
|
|
442
|
+
t.exports = {};
|
|
443
|
+
})), be = a(((e, t) => {
|
|
444
|
+
var r = m(), n = H(), o = O(), s = ve().indexOf, i = ge(), a = r([].push);
|
|
445
|
+
t.exports = function(e, t) {
|
|
446
|
+
var r, c = o(e), u = 0, l = [];
|
|
447
|
+
for (r in c) !n(i, r) && n(c, r) && a(l, r);
|
|
448
|
+
for (; t.length > u;) n(c, r = t[u++]) && (~s(l, r) || a(l, r));
|
|
449
|
+
return l;
|
|
450
|
+
};
|
|
451
|
+
})), xe = a(((e, t) => {
|
|
452
|
+
t.exports = [
|
|
453
|
+
"constructor",
|
|
454
|
+
"hasOwnProperty",
|
|
455
|
+
"isPrototypeOf",
|
|
456
|
+
"propertyIsEnumerable",
|
|
457
|
+
"toLocaleString",
|
|
458
|
+
"toString",
|
|
459
|
+
"valueOf"
|
|
460
|
+
];
|
|
461
|
+
})), Ee = a(((e) => {
|
|
462
|
+
var t = be(), r = xe().concat("length", "prototype");
|
|
463
|
+
e.f = Object.getOwnPropertyNames || function(e) {
|
|
464
|
+
return t(e, r);
|
|
465
|
+
};
|
|
466
|
+
})), we = a(((e) => {
|
|
467
|
+
e.f = Object.getOwnPropertySymbols;
|
|
468
|
+
})), je = a(((e, t) => {
|
|
469
|
+
var r = k(), n = m(), o = Ee(), s = we(), i = te(), a = n([].concat);
|
|
470
|
+
t.exports = r("Reflect", "ownKeys") || function(e) {
|
|
471
|
+
var t = o.f(i(e)), r = s.f;
|
|
472
|
+
return r ? a(t, r(e)) : t;
|
|
473
|
+
};
|
|
474
|
+
})), Te = a(((e, t) => {
|
|
475
|
+
var r = H(), n = je(), o = X(), s = re();
|
|
476
|
+
t.exports = function(e, t, i) {
|
|
477
|
+
for (var a = n(t), c = s.f, u = o.f, l = 0; l < a.length; l++) {
|
|
478
|
+
var f = a[l];
|
|
479
|
+
r(e, f) || i && r(i, f) || c(e, f, u(t, f));
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
})), Oe = a(((e, t) => {
|
|
483
|
+
var r = be(), n = xe();
|
|
484
|
+
t.exports = Object.keys || function(e) {
|
|
485
|
+
return r(e, n);
|
|
486
|
+
};
|
|
487
|
+
})), Ae = a(((e) => {
|
|
488
|
+
var t = g(), r = ee(), n = re(), o = te(), s = O(), i = Oe();
|
|
489
|
+
e.f = t && !r ? Object.defineProperties : function(e, t) {
|
|
490
|
+
o(e);
|
|
491
|
+
for (var r, a = s(t), c = i(t), u = c.length, l = 0; u > l;) n.f(e, r = c[l++], a[r]);
|
|
492
|
+
return e;
|
|
493
|
+
};
|
|
494
|
+
})), Se = a(((e, t) => {
|
|
495
|
+
t.exports = k()("document", "documentElement");
|
|
496
|
+
})), ke = a(((e, t) => {
|
|
497
|
+
var r, n = te(), o = Ae(), s = xe(), i = ge(), a = Se(), c = K(), u = se(), l = "prototype", f = "script", p = u("IE_PROTO"), h = function() {}, m = function(e) {
|
|
498
|
+
return "<" + f + ">" + e + "</" + f + ">";
|
|
499
|
+
}, y = function(e) {
|
|
500
|
+
e.write(m("")), e.close();
|
|
501
|
+
var t = e.parentWindow.Object;
|
|
502
|
+
return e = null, t;
|
|
503
|
+
}, d = function() {
|
|
504
|
+
try {
|
|
505
|
+
r = new ActiveXObject("htmlfile");
|
|
506
|
+
} catch (e) {}
|
|
507
|
+
var e, t, n;
|
|
508
|
+
d = "undefined" != typeof document ? document.domain && r ? y(r) : (t = c("iframe"), n = "java" + f + ":", t.style.display = "none", a.appendChild(t), t.src = String(n), (e = t.contentWindow.document).open(), e.write(m("document.F=Object")), e.close(), e.F) : y(r);
|
|
509
|
+
for (var o = s.length; o--;) delete d[l][s[o]];
|
|
510
|
+
return d();
|
|
511
|
+
};
|
|
512
|
+
i[p] = !0, t.exports = Object.create || function(e, t) {
|
|
513
|
+
var r;
|
|
514
|
+
return null !== e ? (h[l] = n(e), r = new h(), h[l] = null, r[p] = e) : r = d(), void 0 === t ? r : o.f(r, t);
|
|
515
|
+
};
|
|
516
|
+
})), Pe = a(((e, t) => {
|
|
517
|
+
var r = A(), n = ne();
|
|
518
|
+
t.exports = function(e, t) {
|
|
519
|
+
r(t) && "cause" in t && n(e, "cause", t.cause);
|
|
520
|
+
};
|
|
521
|
+
})), _e = a(((e, t) => {
|
|
522
|
+
var r = m(), n = Error, o = r("".replace), s = String(new n("zxcasd").stack), i = /\n\s*at [^:]*:[^\n]*/, a = i.test(s);
|
|
523
|
+
t.exports = function(e, t) {
|
|
524
|
+
if (a && "string" == typeof e && !n.prepareStackTrace) for (; t--;) e = o(e, i, "");
|
|
525
|
+
return e;
|
|
526
|
+
};
|
|
527
|
+
})), Me = a(((e, t) => {
|
|
528
|
+
var r = f(), n = E();
|
|
529
|
+
t.exports = !r((function() {
|
|
530
|
+
var e = /* @__PURE__ */ new Error("a");
|
|
531
|
+
return !("stack" in e) || (Object.defineProperty(e, "stack", n(1, 7)), 7 !== e.stack);
|
|
532
|
+
}));
|
|
533
|
+
})), Ne = a(((e, t) => {
|
|
534
|
+
var r = ne(), n = _e(), o = Me(), s = Error.captureStackTrace;
|
|
535
|
+
t.exports = function(e, t, i, a) {
|
|
536
|
+
o && (s ? s(e, t) : r(e, "stack", n(i, a)));
|
|
537
|
+
};
|
|
538
|
+
})), Ce = a(((e, t) => {
|
|
539
|
+
t.exports = {};
|
|
540
|
+
})), Re = a(((e, t) => {
|
|
541
|
+
var r = q(), n = Ce(), o = r("iterator"), s = Array.prototype;
|
|
542
|
+
t.exports = function(e) {
|
|
543
|
+
return void 0 !== e && (n.Array === e || s[o] === e);
|
|
544
|
+
};
|
|
545
|
+
})), Le = a(((e, t) => {
|
|
546
|
+
var r = {};
|
|
547
|
+
r[q()("toStringTag")] = "z", t.exports = "[object z]" === String(r);
|
|
548
|
+
})), $e = a(((e, t) => {
|
|
549
|
+
var r = Le(), n = v(), o = y(), s = q()("toStringTag"), i = Object, a = "Arguments" === o(function() {
|
|
550
|
+
return arguments;
|
|
551
|
+
}());
|
|
552
|
+
t.exports = r ? o : function(e) {
|
|
553
|
+
var t, r, c;
|
|
554
|
+
return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (r = function(e, t) {
|
|
555
|
+
try {
|
|
556
|
+
return e[t];
|
|
557
|
+
} catch (e) {}
|
|
558
|
+
}(t = i(e), s)) ? r : a ? o(t) : "Object" === (c = o(t)) && n(t.callee) ? "Arguments" : c;
|
|
559
|
+
};
|
|
560
|
+
})), Ie = a(((e, t) => {
|
|
561
|
+
var r = $e(), n = I(), o = j(), s = Ce(), i = q()("iterator");
|
|
562
|
+
t.exports = function(e) {
|
|
563
|
+
if (!o(e)) return n(e, i) || n(e, "@@iterator") || s[r(e)];
|
|
564
|
+
};
|
|
565
|
+
})), Ve = a(((e, t) => {
|
|
566
|
+
var r = b(), n = $(), o = te(), s = L(), i = Ie(), a = TypeError;
|
|
567
|
+
t.exports = function(e, t) {
|
|
568
|
+
var c = arguments.length < 2 ? i(e) : t;
|
|
569
|
+
if (n(c)) return o(r(c, e));
|
|
570
|
+
throw new a(s(e) + " is not iterable");
|
|
571
|
+
};
|
|
572
|
+
})), De = a(((e, t) => {
|
|
573
|
+
var r = b(), n = te(), o = I();
|
|
574
|
+
t.exports = function(e, t, s) {
|
|
575
|
+
var i, a;
|
|
576
|
+
n(e);
|
|
577
|
+
try {
|
|
578
|
+
if (!(i = o(e, "return"))) {
|
|
579
|
+
if ("throw" === t) throw s;
|
|
580
|
+
return s;
|
|
581
|
+
}
|
|
582
|
+
i = r(i, e);
|
|
583
|
+
} catch (e) {
|
|
584
|
+
a = !0, i = e;
|
|
585
|
+
}
|
|
586
|
+
if ("throw" === t) throw s;
|
|
587
|
+
if (a) throw i;
|
|
588
|
+
return n(i), s;
|
|
589
|
+
};
|
|
590
|
+
})), Fe = a(((e, t) => {
|
|
591
|
+
var r = Q(), n = b(), o = te(), s = L(), i = Re(), a = de(), c = P(), u = Ve(), l = Ie(), f = De(), p = TypeError, h = function(e, t) {
|
|
592
|
+
this.stopped = e, this.result = t;
|
|
593
|
+
}, m = h.prototype;
|
|
594
|
+
t.exports = function(e, t, y) {
|
|
595
|
+
var d, v, g, b, x, E, w, j = y && y.that, T = !(!y || !y.AS_ENTRIES), O = !(!y || !y.IS_RECORD), A = !(!y || !y.IS_ITERATOR), S = !(!y || !y.INTERRUPTED), k = r(t, j), P = function(e) {
|
|
596
|
+
return d && f(d, "normal", e), new h(!0, e);
|
|
597
|
+
}, _ = function(e) {
|
|
598
|
+
return T ? (o(e), S ? k(e[0], e[1], P) : k(e[0], e[1])) : S ? k(e, P) : k(e);
|
|
599
|
+
};
|
|
600
|
+
if (O) d = e.iterator;
|
|
601
|
+
else if (A) d = e;
|
|
602
|
+
else {
|
|
603
|
+
if (!(v = l(e))) throw new p(s(e) + " is not iterable");
|
|
604
|
+
if (i(v)) {
|
|
605
|
+
for (g = 0, b = a(e); b > g; g++) if ((x = _(e[g])) && c(m, x)) return x;
|
|
606
|
+
return new h(!1);
|
|
607
|
+
}
|
|
608
|
+
d = u(e, v);
|
|
609
|
+
}
|
|
610
|
+
for (E = O ? e.next : d.next; !(w = n(E, d)).done;) {
|
|
611
|
+
try {
|
|
612
|
+
x = _(w.value);
|
|
613
|
+
} catch (e) {
|
|
614
|
+
f(d, "throw", e);
|
|
615
|
+
}
|
|
616
|
+
if ("object" == typeof x && x && c(m, x)) return x;
|
|
617
|
+
}
|
|
618
|
+
return new h(!1);
|
|
619
|
+
};
|
|
620
|
+
})), Be = a(((e, t) => {
|
|
621
|
+
var r = $e(), n = String;
|
|
622
|
+
t.exports = function(e) {
|
|
623
|
+
if ("Symbol" === r(e)) throw new TypeError("Cannot convert a Symbol value to a string");
|
|
624
|
+
return n(e);
|
|
625
|
+
};
|
|
626
|
+
})), ze = a(((e, t) => {
|
|
627
|
+
var r = Be();
|
|
628
|
+
t.exports = function(e, t) {
|
|
629
|
+
return void 0 === e ? arguments.length < 2 ? "" : t : r(e);
|
|
630
|
+
};
|
|
631
|
+
})), Ue = a((() => {
|
|
632
|
+
var e = oe(), t = P(), r = ae(), n = fe(), o = Te(), s = ke(), i = ne(), a = E(), c = Pe(), u = Ne(), l = Fe(), f = ze(), p = q()("toStringTag"), h = Error, m = [].push, y = function(e, o) {
|
|
633
|
+
var a, v = t(d, this);
|
|
634
|
+
n ? a = n(new h(), v ? r(this) : d) : (a = v ? this : s(d), i(a, p, "Error")), void 0 !== o && i(a, "message", f(o)), u(a, y, a.stack, 1), arguments.length > 2 && c(a, arguments[2]);
|
|
635
|
+
var g = [];
|
|
636
|
+
return l(e, m, { that: g }), i(a, "errors", g), a;
|
|
637
|
+
};
|
|
638
|
+
n ? n(y, h) : o(y, h, { name: !0 });
|
|
639
|
+
var d = y.prototype = s(h.prototype, {
|
|
640
|
+
constructor: a(1, y),
|
|
641
|
+
message: a(1, ""),
|
|
642
|
+
name: a(1, "AggregateError")
|
|
643
|
+
});
|
|
644
|
+
e({
|
|
645
|
+
global: !0,
|
|
646
|
+
constructor: !0,
|
|
647
|
+
arity: 2
|
|
648
|
+
}, { AggregateError: y });
|
|
649
|
+
})), He = a((() => {
|
|
650
|
+
Ue();
|
|
651
|
+
})), Ge = a((() => {
|
|
652
|
+
He();
|
|
653
|
+
})), qe = a(((e, t) => {
|
|
654
|
+
var r = re().f;
|
|
655
|
+
t.exports = function(e, t, n) {
|
|
656
|
+
n in e || r(e, n, {
|
|
657
|
+
configurable: !0,
|
|
658
|
+
get: function() {
|
|
659
|
+
return t[n];
|
|
660
|
+
},
|
|
661
|
+
set: function(e) {
|
|
662
|
+
t[n] = e;
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
})), Ye = a(((e, t) => {
|
|
667
|
+
var r = v(), n = A(), o = fe();
|
|
668
|
+
t.exports = function(e, t, s) {
|
|
669
|
+
var i, a;
|
|
670
|
+
return o && r(i = t.constructor) && i !== s && n(a = i.prototype) && a !== s.prototype && o(e, a), e;
|
|
671
|
+
};
|
|
672
|
+
})), Je = a(((e, t) => {
|
|
673
|
+
var r = k(), n = H(), o = ne(), s = P(), i = fe(), a = Te(), c = qe(), u = Ye(), l = ze(), f = Pe(), p = Ne(), h = g(), m = D();
|
|
674
|
+
t.exports = function(e, t, y, d) {
|
|
675
|
+
var v = "stackTraceLimit", g = d ? 2 : 1, b = e.split("."), x = b[b.length - 1], E = r.apply(null, b);
|
|
676
|
+
if (E) {
|
|
677
|
+
var w = E.prototype;
|
|
678
|
+
if (!m && n(w, "cause") && delete w.cause, !y) return E;
|
|
679
|
+
var j = r("Error"), T = t((function(e, t) {
|
|
680
|
+
var r = l(d ? t : e, void 0), n = d ? new E(e) : new E();
|
|
681
|
+
return void 0 !== r && o(n, "message", r), p(n, T, n.stack, 2), this && s(w, this) && u(n, this, T), arguments.length > g && f(n, arguments[g]), n;
|
|
682
|
+
}));
|
|
683
|
+
if (T.prototype = w, "Error" !== x ? i ? i(T, j) : a(T, j, { name: !0 }) : h && v in E && (c(T, E, v), c(T, E, "prepareStackTrace")), a(T, E), !m) try {
|
|
684
|
+
w.name !== x && o(w, "name", x), w.constructor = T;
|
|
685
|
+
} catch (e) {}
|
|
686
|
+
return T;
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
})), Ke = a((() => {
|
|
690
|
+
var e = oe(), t = l(), r = h(), n = Je(), o = "WebAssembly", s = t[o], i = 7 !== new Error("e", { cause: 7 }).cause, a = function(t, r) {
|
|
691
|
+
var o = {};
|
|
692
|
+
o[t] = n(t, r, i), e({
|
|
693
|
+
global: !0,
|
|
694
|
+
constructor: !0,
|
|
695
|
+
arity: 1,
|
|
696
|
+
forced: i
|
|
697
|
+
}, o);
|
|
698
|
+
}, c = function(t, r) {
|
|
699
|
+
if (s && s[t]) {
|
|
700
|
+
var a = {};
|
|
701
|
+
a[t] = n(o + "." + t, r, i), e({
|
|
702
|
+
target: o,
|
|
703
|
+
stat: !0,
|
|
704
|
+
constructor: !0,
|
|
705
|
+
arity: 1,
|
|
706
|
+
forced: i
|
|
707
|
+
}, a);
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
a("Error", (function(e) {
|
|
711
|
+
return function(t) {
|
|
712
|
+
return r(e, this, arguments);
|
|
713
|
+
};
|
|
714
|
+
})), a("EvalError", (function(e) {
|
|
715
|
+
return function(t) {
|
|
716
|
+
return r(e, this, arguments);
|
|
717
|
+
};
|
|
718
|
+
})), a("RangeError", (function(e) {
|
|
719
|
+
return function(t) {
|
|
720
|
+
return r(e, this, arguments);
|
|
721
|
+
};
|
|
722
|
+
})), a("ReferenceError", (function(e) {
|
|
723
|
+
return function(t) {
|
|
724
|
+
return r(e, this, arguments);
|
|
725
|
+
};
|
|
726
|
+
})), a("SyntaxError", (function(e) {
|
|
727
|
+
return function(t) {
|
|
728
|
+
return r(e, this, arguments);
|
|
729
|
+
};
|
|
730
|
+
})), a("TypeError", (function(e) {
|
|
731
|
+
return function(t) {
|
|
732
|
+
return r(e, this, arguments);
|
|
733
|
+
};
|
|
734
|
+
})), a("URIError", (function(e) {
|
|
735
|
+
return function(t) {
|
|
736
|
+
return r(e, this, arguments);
|
|
737
|
+
};
|
|
738
|
+
})), c("CompileError", (function(e) {
|
|
739
|
+
return function(t) {
|
|
740
|
+
return r(e, this, arguments);
|
|
741
|
+
};
|
|
742
|
+
})), c("LinkError", (function(e) {
|
|
743
|
+
return function(t) {
|
|
744
|
+
return r(e, this, arguments);
|
|
745
|
+
};
|
|
746
|
+
})), c("RuntimeError", (function(e) {
|
|
747
|
+
return function(t) {
|
|
748
|
+
return r(e, this, arguments);
|
|
749
|
+
};
|
|
750
|
+
}));
|
|
751
|
+
})), We = a((() => {
|
|
752
|
+
var e = oe(), t = k(), r = h(), n = f(), o = Je(), s = "AggregateError", i = t(s), a = !n((function() {
|
|
753
|
+
return 1 !== i([1]).errors[0];
|
|
754
|
+
})) && n((function() {
|
|
755
|
+
return 7 !== i([1], s, { cause: 7 }).cause;
|
|
756
|
+
}));
|
|
757
|
+
e({
|
|
758
|
+
global: !0,
|
|
759
|
+
constructor: !0,
|
|
760
|
+
arity: 2,
|
|
761
|
+
forced: a
|
|
762
|
+
}, { AggregateError: o(s, (function(e) {
|
|
763
|
+
return function(t, n) {
|
|
764
|
+
return r(e, this, arguments);
|
|
765
|
+
};
|
|
766
|
+
}), a, !0) });
|
|
767
|
+
})), Xe = a(((e, t) => {
|
|
768
|
+
t.exports = function() {};
|
|
769
|
+
})), Ze = a(((e, t) => {
|
|
770
|
+
var r = l(), n = v(), o = r.WeakMap;
|
|
771
|
+
t.exports = n(o) && /native code/.test(String(o));
|
|
772
|
+
})), Qe = a(((e, t) => {
|
|
773
|
+
var r, n, o, s = Ze(), i = l(), a = A(), c = ne(), u = H(), f = B(), p = se(), h = ge(), m = "Object already initialized", y = i.TypeError, d = i.WeakMap;
|
|
774
|
+
if (s || f.state) {
|
|
775
|
+
var v = f.state || (f.state = new d());
|
|
776
|
+
v.get = v.get, v.has = v.has, v.set = v.set, r = function(e, t) {
|
|
777
|
+
if (v.has(e)) throw new y(m);
|
|
778
|
+
return t.facade = e, v.set(e, t), t;
|
|
779
|
+
}, n = function(e) {
|
|
780
|
+
return v.get(e) || {};
|
|
781
|
+
}, o = function(e) {
|
|
782
|
+
return v.has(e);
|
|
783
|
+
};
|
|
784
|
+
} else {
|
|
785
|
+
var g = p("state");
|
|
786
|
+
h[g] = !0, r = function(e, t) {
|
|
787
|
+
if (u(e, g)) throw new y(m);
|
|
788
|
+
return t.facade = e, c(e, g, t), t;
|
|
789
|
+
}, n = function(e) {
|
|
790
|
+
return u(e, g) ? e[g] : {};
|
|
791
|
+
}, o = function(e) {
|
|
792
|
+
return u(e, g);
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
t.exports = {
|
|
796
|
+
set: r,
|
|
797
|
+
get: n,
|
|
798
|
+
has: o,
|
|
799
|
+
enforce: function(e) {
|
|
800
|
+
return o(e) ? n(e) : r(e, {});
|
|
801
|
+
},
|
|
802
|
+
getterFor: function(e) {
|
|
803
|
+
return function(t) {
|
|
804
|
+
var r;
|
|
805
|
+
if (!a(t) || (r = n(t)).type !== e) throw new y("Incompatible receiver, " + e + " required");
|
|
806
|
+
return r;
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
})), et = a(((e, t) => {
|
|
811
|
+
var r = g(), n = H(), o = Function.prototype, s = r && Object.getOwnPropertyDescriptor, i = n(o, "name");
|
|
812
|
+
t.exports = {
|
|
813
|
+
EXISTS: i,
|
|
814
|
+
PROPER: i && "something" === function() {}.name,
|
|
815
|
+
CONFIGURABLE: i && (!r || r && s(o, "name").configurable)
|
|
816
|
+
};
|
|
817
|
+
})), tt = a(((e, t) => {
|
|
818
|
+
var r = ne();
|
|
819
|
+
t.exports = function(e, t, n, o) {
|
|
820
|
+
return o && o.enumerable ? e[t] = n : r(e, t, n), e;
|
|
821
|
+
};
|
|
822
|
+
})), rt = a(((e, t) => {
|
|
823
|
+
var r, n, o, s = f(), i = v(), a = A(), c = ke(), u = ae(), l = tt(), p = q(), h = D(), m = p("iterator"), y = !1;
|
|
824
|
+
[].keys && ("next" in (o = [].keys()) ? (n = u(u(o))) !== Object.prototype && (r = n) : y = !0), !a(r) || s((function() {
|
|
825
|
+
var e = {};
|
|
826
|
+
return r[m].call(e) !== e;
|
|
827
|
+
})) ? r = {} : h && (r = c(r)), i(r[m]) || l(r, m, (function() {
|
|
828
|
+
return this;
|
|
829
|
+
})), t.exports = {
|
|
830
|
+
IteratorPrototype: r,
|
|
831
|
+
BUGGY_SAFARI_ITERATORS: y
|
|
832
|
+
};
|
|
833
|
+
})), nt = a(((e, t) => {
|
|
834
|
+
var r = Le(), n = $e();
|
|
835
|
+
t.exports = r ? {}.toString : function() {
|
|
836
|
+
return "[object " + n(this) + "]";
|
|
837
|
+
};
|
|
838
|
+
})), ot = a(((e, t) => {
|
|
839
|
+
var r = Le(), n = re().f, o = ne(), s = H(), i = nt(), a = q()("toStringTag");
|
|
840
|
+
t.exports = function(e, t, c, u) {
|
|
841
|
+
var l = c ? e : e && e.prototype;
|
|
842
|
+
l && (s(l, a) || n(l, a, {
|
|
843
|
+
configurable: !0,
|
|
844
|
+
value: t
|
|
845
|
+
}), u && !r && o(l, "toString", i));
|
|
846
|
+
};
|
|
847
|
+
})), st = a(((e, t) => {
|
|
848
|
+
var r = rt().IteratorPrototype, n = ke(), o = E(), s = ot(), i = Ce(), a = function() {
|
|
849
|
+
return this;
|
|
850
|
+
};
|
|
851
|
+
t.exports = function(e, t, c, u) {
|
|
852
|
+
var l = t + " Iterator";
|
|
853
|
+
return e.prototype = n(r, { next: o(+!u, c) }), s(e, l, !1, !0), i[l] = a, e;
|
|
854
|
+
};
|
|
855
|
+
})), it = a(((e, t) => {
|
|
856
|
+
var r = oe(), n = b(), o = D(), s = et(), i = v(), a = st(), c = ae(), u = fe(), l = ot(), f = ne(), p = tt(), h = q(), m = Ce(), y = rt(), d = s.PROPER, g = s.CONFIGURABLE, x = y.IteratorPrototype, E = y.BUGGY_SAFARI_ITERATORS, w = h("iterator"), j = "keys", T = "values", O = "entries", A = function() {
|
|
857
|
+
return this;
|
|
858
|
+
};
|
|
859
|
+
t.exports = function(e, t, s, h, y, v, b) {
|
|
860
|
+
a(s, t, h);
|
|
861
|
+
var S, k, P, _ = function(e) {
|
|
862
|
+
if (e === y && L) return L;
|
|
863
|
+
if (!E && e && e in C) return C[e];
|
|
864
|
+
switch (e) {
|
|
865
|
+
case j:
|
|
866
|
+
case T:
|
|
867
|
+
case O: return function() {
|
|
868
|
+
return new s(this, e);
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
return function() {
|
|
872
|
+
return new s(this);
|
|
873
|
+
};
|
|
874
|
+
}, M = t + " Iterator", N = !1, C = e.prototype, R = C[w] || C["@@iterator"] || y && C[y], L = !E && R || _(y), $ = "Array" === t && C.entries || R;
|
|
875
|
+
if ($ && (S = c($.call(new e()))) !== Object.prototype && S.next && (o || c(S) === x || (u ? u(S, x) : i(S[w]) || p(S, w, A)), l(S, M, !0, !0), o && (m[M] = A)), d && y === T && R && R.name !== T && (!o && g ? f(C, "name", T) : (N = !0, L = function() {
|
|
876
|
+
return n(R, this);
|
|
877
|
+
})), y) if (k = {
|
|
878
|
+
values: _(T),
|
|
879
|
+
keys: v ? L : _(j),
|
|
880
|
+
entries: _(O)
|
|
881
|
+
}, b) for (P in k) (E || N || !(P in C)) && p(C, P, k[P]);
|
|
882
|
+
else r({
|
|
883
|
+
target: t,
|
|
884
|
+
proto: !0,
|
|
885
|
+
forced: E || N
|
|
886
|
+
}, k);
|
|
887
|
+
return o && !b || C[w] === L || p(C, w, L, { name: y }), m[t] = L, k;
|
|
888
|
+
};
|
|
889
|
+
})), at = a(((e, t) => {
|
|
890
|
+
t.exports = function(e, t) {
|
|
891
|
+
return {
|
|
892
|
+
value: e,
|
|
893
|
+
done: t
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
})), ct = a(((e, t) => {
|
|
897
|
+
var r = O(), n = Xe(), o = Ce(), s = Qe(), i = re().f, a = it(), c = at(), u = D(), l = g(), f = "Array Iterator", p = s.set, h = s.getterFor(f);
|
|
898
|
+
t.exports = a(Array, "Array", (function(e, t) {
|
|
899
|
+
p(this, {
|
|
900
|
+
type: f,
|
|
901
|
+
target: r(e),
|
|
902
|
+
index: 0,
|
|
903
|
+
kind: t
|
|
904
|
+
});
|
|
905
|
+
}), (function() {
|
|
906
|
+
var e = h(this), t = e.target, r = e.index++;
|
|
907
|
+
if (!t || r >= t.length) return e.target = null, c(void 0, !0);
|
|
908
|
+
switch (e.kind) {
|
|
909
|
+
case "keys": return c(r, !1);
|
|
910
|
+
case "values": return c(t[r], !1);
|
|
911
|
+
}
|
|
912
|
+
return c([r, t[r]], !1);
|
|
913
|
+
}), "values");
|
|
914
|
+
var m = o.Arguments = o.Array;
|
|
915
|
+
if (n("keys"), n("values"), n("entries"), !u && l && "values" !== m.name) try {
|
|
916
|
+
i(m, "name", { value: "values" });
|
|
917
|
+
} catch (e) {}
|
|
918
|
+
})), ut = a(((e, t) => {
|
|
919
|
+
var r = m(), n = he(), o = Be(), s = T(), i = r("".charAt), a = r("".charCodeAt), c = r("".slice), u = function(e) {
|
|
920
|
+
return function(t, r) {
|
|
921
|
+
var u, l, f = o(s(t)), p = n(r), h = f.length;
|
|
922
|
+
return p < 0 || p >= h ? e ? "" : void 0 : (u = a(f, p)) < 55296 || u > 56319 || p + 1 === h || (l = a(f, p + 1)) < 56320 || l > 57343 ? e ? i(f, p) : u : e ? c(f, p, p + 2) : l - 56320 + (u - 55296 << 10) + 65536;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
t.exports = {
|
|
926
|
+
codeAt: u(!1),
|
|
927
|
+
charAt: u(!0)
|
|
928
|
+
};
|
|
929
|
+
})), lt = a((() => {
|
|
930
|
+
var e = ut().charAt, t = Be(), r = Qe(), n = it(), o = at(), s = "String Iterator", i = r.set, a = r.getterFor(s);
|
|
931
|
+
n(String, "String", (function(e) {
|
|
932
|
+
i(this, {
|
|
933
|
+
type: s,
|
|
934
|
+
string: t(e),
|
|
935
|
+
index: 0
|
|
936
|
+
});
|
|
937
|
+
}), (function() {
|
|
938
|
+
var t, r = a(this), n = r.string, s = r.index;
|
|
939
|
+
return s >= n.length ? o(void 0, !0) : (t = e(n, s), r.index += t.length, o(t, !1));
|
|
940
|
+
}));
|
|
941
|
+
})), ft = a(((e, t) => {
|
|
942
|
+
Ke(), He(), We(), ct(), lt();
|
|
943
|
+
t.exports = S().AggregateError;
|
|
944
|
+
})), pt = a(((e, t) => {
|
|
945
|
+
t.exports = {
|
|
946
|
+
CSSRuleList: 0,
|
|
947
|
+
CSSStyleDeclaration: 0,
|
|
948
|
+
CSSValueList: 0,
|
|
949
|
+
ClientRectList: 0,
|
|
950
|
+
DOMRectList: 0,
|
|
951
|
+
DOMStringList: 0,
|
|
952
|
+
DOMTokenList: 1,
|
|
953
|
+
DataTransferItemList: 0,
|
|
954
|
+
FileList: 0,
|
|
955
|
+
HTMLAllCollection: 0,
|
|
956
|
+
HTMLCollection: 0,
|
|
957
|
+
HTMLFormElement: 0,
|
|
958
|
+
HTMLSelectElement: 0,
|
|
959
|
+
MediaList: 0,
|
|
960
|
+
MimeTypeArray: 0,
|
|
961
|
+
NamedNodeMap: 0,
|
|
962
|
+
NodeList: 1,
|
|
963
|
+
PaintRequestList: 0,
|
|
964
|
+
Plugin: 0,
|
|
965
|
+
PluginArray: 0,
|
|
966
|
+
SVGLengthList: 0,
|
|
967
|
+
SVGNumberList: 0,
|
|
968
|
+
SVGPathSegList: 0,
|
|
969
|
+
SVGPointList: 0,
|
|
970
|
+
SVGStringList: 0,
|
|
971
|
+
SVGTransformList: 0,
|
|
972
|
+
SourceBufferList: 0,
|
|
973
|
+
StyleSheetList: 0,
|
|
974
|
+
TextTrackCueList: 0,
|
|
975
|
+
TextTrackList: 0,
|
|
976
|
+
TouchList: 0
|
|
977
|
+
};
|
|
978
|
+
})), ht = a((() => {
|
|
979
|
+
ct();
|
|
980
|
+
var e = pt(), t = l(), r = ot(), n = Ce();
|
|
981
|
+
for (var o in e) r(t[o], o), n[o] = n.Array;
|
|
982
|
+
})), mt = a(((e, t) => {
|
|
983
|
+
Ge();
|
|
984
|
+
var r = ft();
|
|
985
|
+
ht(), t.exports = r;
|
|
986
|
+
})), yt = a(((e, t) => {
|
|
987
|
+
t.exports = mt();
|
|
988
|
+
})), dt = a(((e, t) => {
|
|
989
|
+
Ge();
|
|
990
|
+
t.exports = yt();
|
|
991
|
+
})), vt = a(((e, t) => {
|
|
992
|
+
t.exports = dt();
|
|
993
|
+
})), gt = u(a(((e, t) => {
|
|
994
|
+
t.exports = vt();
|
|
995
|
+
}))(), 1), bt = class extends gt.default {
|
|
996
|
+
constructor(e, t, r) {
|
|
997
|
+
if (super(e, t, r), this.name = this.constructor.name, "string" == typeof t && (this.message = t), "function" == typeof Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(t).stack, null != r && "object" == typeof r && Object.hasOwn(r, "cause") && !("cause" in this)) {
|
|
998
|
+
const { cause: e } = r;
|
|
999
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}, xt = class extends Error {
|
|
1003
|
+
static [Symbol.hasInstance](e) {
|
|
1004
|
+
return super[Symbol.hasInstance](e) || Function.prototype[Symbol.hasInstance].call(bt, e);
|
|
1005
|
+
}
|
|
1006
|
+
constructor(e, t) {
|
|
1007
|
+
if (super(e, t), this.name = this.constructor.name, "string" == typeof e && (this.message = e), "function" == typeof Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(e).stack, null != t && "object" == typeof t && Object.hasOwn(t, "cause") && !("cause" in this)) {
|
|
1008
|
+
const { cause: e } = t;
|
|
1009
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}, Et = class extends xt {
|
|
1013
|
+
constructor(e, t) {
|
|
1014
|
+
if (super(e, t), null != t && "object" == typeof t) {
|
|
1015
|
+
const { cause: e, ...r } = t;
|
|
1016
|
+
Object.assign(this, r);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}, wt = class extends Et {}, jt = class extends wt {
|
|
1020
|
+
relativePointer;
|
|
1021
|
+
constructor(e, t) {
|
|
1022
|
+
super(e, t), void 0 !== t && (this.relativePointer = t.relativePointer);
|
|
1023
|
+
}
|
|
1024
|
+
}, Tt = class extends wt {
|
|
1025
|
+
relativePointer;
|
|
1026
|
+
currentElement;
|
|
1027
|
+
rootElement;
|
|
1028
|
+
cursorElement;
|
|
1029
|
+
constructor(e, t) {
|
|
1030
|
+
super(e, t), void 0 !== t && (this.relativePointer = t.relativePointer, this.currentElement = t.currentElement, this.rootElement = t.rootElement, this.cursorElement = t.cursorElement);
|
|
1031
|
+
}
|
|
1032
|
+
}, Ot = class extends wt {
|
|
1033
|
+
nonNegativeIntegerPrefix;
|
|
1034
|
+
indexManipulation;
|
|
1035
|
+
jsonPointerTokens;
|
|
1036
|
+
hashCharacter;
|
|
1037
|
+
constructor(e, t) {
|
|
1038
|
+
super(e, t), void 0 !== t && (this.nonNegativeIntegerPrefix = t.relativePointer.nonNegativeIntegerPrefix, this.indexManipulation = t.relativePointer.indexManipulation, this.hashCharacter = t.relativePointer.hashCharacter, Array.isArray(t.relativePointer.jsonPointerTokens) && (this.jsonPointerTokens = [...t.relativePointer.jsonPointerTokens]));
|
|
1039
|
+
}
|
|
1040
|
+
};
|
|
1041
|
+
function At() {
|
|
1042
|
+
this.grammarObject = "grammarObject", this.rules = [], this.rules[0] = {
|
|
1043
|
+
name: "json-pointer",
|
|
1044
|
+
lower: "json-pointer",
|
|
1045
|
+
index: 0,
|
|
1046
|
+
isBkr: !1
|
|
1047
|
+
}, this.rules[1] = {
|
|
1048
|
+
name: "reference-token",
|
|
1049
|
+
lower: "reference-token",
|
|
1050
|
+
index: 1,
|
|
1051
|
+
isBkr: !1
|
|
1052
|
+
}, this.rules[2] = {
|
|
1053
|
+
name: "unescaped",
|
|
1054
|
+
lower: "unescaped",
|
|
1055
|
+
index: 2,
|
|
1056
|
+
isBkr: !1
|
|
1057
|
+
}, this.rules[3] = {
|
|
1058
|
+
name: "escaped",
|
|
1059
|
+
lower: "escaped",
|
|
1060
|
+
index: 3,
|
|
1061
|
+
isBkr: !1
|
|
1062
|
+
}, this.rules[4] = {
|
|
1063
|
+
name: "array-location",
|
|
1064
|
+
lower: "array-location",
|
|
1065
|
+
index: 4,
|
|
1066
|
+
isBkr: !1
|
|
1067
|
+
}, this.rules[5] = {
|
|
1068
|
+
name: "array-index",
|
|
1069
|
+
lower: "array-index",
|
|
1070
|
+
index: 5,
|
|
1071
|
+
isBkr: !1
|
|
1072
|
+
}, this.rules[6] = {
|
|
1073
|
+
name: "array-dash",
|
|
1074
|
+
lower: "array-dash",
|
|
1075
|
+
index: 6,
|
|
1076
|
+
isBkr: !1
|
|
1077
|
+
}, this.rules[7] = {
|
|
1078
|
+
name: "slash",
|
|
1079
|
+
lower: "slash",
|
|
1080
|
+
index: 7,
|
|
1081
|
+
isBkr: !1
|
|
1082
|
+
}, this.udts = [], this.rules[0].opcodes = [], this.rules[0].opcodes[0] = {
|
|
1083
|
+
type: 3,
|
|
1084
|
+
min: 0,
|
|
1085
|
+
max: Infinity
|
|
1086
|
+
}, this.rules[0].opcodes[1] = {
|
|
1087
|
+
type: 2,
|
|
1088
|
+
children: [2, 3]
|
|
1089
|
+
}, this.rules[0].opcodes[2] = {
|
|
1090
|
+
type: 4,
|
|
1091
|
+
index: 7
|
|
1092
|
+
}, this.rules[0].opcodes[3] = {
|
|
1093
|
+
type: 4,
|
|
1094
|
+
index: 1
|
|
1095
|
+
}, this.rules[1].opcodes = [], this.rules[1].opcodes[0] = {
|
|
1096
|
+
type: 3,
|
|
1097
|
+
min: 0,
|
|
1098
|
+
max: Infinity
|
|
1099
|
+
}, this.rules[1].opcodes[1] = {
|
|
1100
|
+
type: 1,
|
|
1101
|
+
children: [2, 3]
|
|
1102
|
+
}, this.rules[1].opcodes[2] = {
|
|
1103
|
+
type: 4,
|
|
1104
|
+
index: 2
|
|
1105
|
+
}, this.rules[1].opcodes[3] = {
|
|
1106
|
+
type: 4,
|
|
1107
|
+
index: 3
|
|
1108
|
+
}, this.rules[2].opcodes = [], this.rules[2].opcodes[0] = {
|
|
1109
|
+
type: 1,
|
|
1110
|
+
children: [
|
|
1111
|
+
1,
|
|
1112
|
+
2,
|
|
1113
|
+
3
|
|
1114
|
+
]
|
|
1115
|
+
}, this.rules[2].opcodes[1] = {
|
|
1116
|
+
type: 5,
|
|
1117
|
+
min: 0,
|
|
1118
|
+
max: 46
|
|
1119
|
+
}, this.rules[2].opcodes[2] = {
|
|
1120
|
+
type: 5,
|
|
1121
|
+
min: 48,
|
|
1122
|
+
max: 125
|
|
1123
|
+
}, this.rules[2].opcodes[3] = {
|
|
1124
|
+
type: 5,
|
|
1125
|
+
min: 127,
|
|
1126
|
+
max: 1114111
|
|
1127
|
+
}, this.rules[3].opcodes = [], this.rules[3].opcodes[0] = {
|
|
1128
|
+
type: 2,
|
|
1129
|
+
children: [1, 2]
|
|
1130
|
+
}, this.rules[3].opcodes[1] = {
|
|
1131
|
+
type: 7,
|
|
1132
|
+
string: [126]
|
|
1133
|
+
}, this.rules[3].opcodes[2] = {
|
|
1134
|
+
type: 1,
|
|
1135
|
+
children: [3, 4]
|
|
1136
|
+
}, this.rules[3].opcodes[3] = {
|
|
1137
|
+
type: 7,
|
|
1138
|
+
string: [48]
|
|
1139
|
+
}, this.rules[3].opcodes[4] = {
|
|
1140
|
+
type: 7,
|
|
1141
|
+
string: [49]
|
|
1142
|
+
}, this.rules[4].opcodes = [], this.rules[4].opcodes[0] = {
|
|
1143
|
+
type: 1,
|
|
1144
|
+
children: [1, 2]
|
|
1145
|
+
}, this.rules[4].opcodes[1] = {
|
|
1146
|
+
type: 4,
|
|
1147
|
+
index: 5
|
|
1148
|
+
}, this.rules[4].opcodes[2] = {
|
|
1149
|
+
type: 4,
|
|
1150
|
+
index: 6
|
|
1151
|
+
}, this.rules[5].opcodes = [], this.rules[5].opcodes[0] = {
|
|
1152
|
+
type: 1,
|
|
1153
|
+
children: [1, 2]
|
|
1154
|
+
}, this.rules[5].opcodes[1] = {
|
|
1155
|
+
type: 6,
|
|
1156
|
+
string: [48]
|
|
1157
|
+
}, this.rules[5].opcodes[2] = {
|
|
1158
|
+
type: 2,
|
|
1159
|
+
children: [3, 4]
|
|
1160
|
+
}, this.rules[5].opcodes[3] = {
|
|
1161
|
+
type: 5,
|
|
1162
|
+
min: 49,
|
|
1163
|
+
max: 57
|
|
1164
|
+
}, this.rules[5].opcodes[4] = {
|
|
1165
|
+
type: 3,
|
|
1166
|
+
min: 0,
|
|
1167
|
+
max: Infinity
|
|
1168
|
+
}, this.rules[5].opcodes[5] = {
|
|
1169
|
+
type: 5,
|
|
1170
|
+
min: 48,
|
|
1171
|
+
max: 57
|
|
1172
|
+
}, this.rules[6].opcodes = [], this.rules[6].opcodes[0] = {
|
|
1173
|
+
type: 7,
|
|
1174
|
+
string: [45]
|
|
1175
|
+
}, this.rules[7].opcodes = [], this.rules[7].opcodes[0] = {
|
|
1176
|
+
type: 7,
|
|
1177
|
+
string: [47]
|
|
1178
|
+
}, this.toString = function() {
|
|
1179
|
+
let e = "";
|
|
1180
|
+
return e += "; JavaScript Object Notation (JSON) Pointer ABNF syntax\n", e += "; https://datatracker.ietf.org/doc/html/rfc6901\n", e += "json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n", e += "reference-token = *( unescaped / escaped )\n", e += "unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n", e += " ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n", e += "escaped = \"~\" ( \"0\" / \"1\" )\n", e += " ; representing '~' and '/', respectively\n", e += "\n", e += "; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n", e += "array-location = array-index / array-dash\n", e += "array-index = %x30 / ( %x31-39 *(%x30-39) )\n", e += " ; \"0\", or digits without a leading \"0\"\n", e += "array-dash = \"-\"\n", e += "\n", e += "; Surrogate named rules\n", e += "slash = \"/\"\n", "; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\nescaped = \"~\" ( \"0\" / \"1\" )\n ; representing '~' and '/', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; \"0\", or digits without a leading \"0\"\narray-dash = \"-\"\n\n; Surrogate named rules\nslash = \"/\"\n";
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
var St = function() {
|
|
1184
|
+
const e = Nt, t = Mt, r = this, n = "parser.js: Parser(): ";
|
|
1185
|
+
r.ast = void 0, r.stats = void 0, r.trace = void 0, r.callbacks = [];
|
|
1186
|
+
let o, s, i, a, c, u, l, f = 0, p = 0, h = 0, m = 0, y = 0, d = new function() {
|
|
1187
|
+
this.state = e.ACTIVE, this.phraseLength = 0, this.refresh = () => {
|
|
1188
|
+
this.state = e.ACTIVE, this.phraseLength = 0;
|
|
1189
|
+
};
|
|
1190
|
+
}();
|
|
1191
|
+
r.parse = (v, g, x, E) => {
|
|
1192
|
+
const w = `${n}parse(): `;
|
|
1193
|
+
f = 0, p = 0, h = 0, m = 0, y = 0, o = void 0, s = void 0, i = void 0, a = void 0, d.refresh(), c = void 0, u = void 0, l = void 0, a = t.stringToChars(x), o = v.rules, s = v.udts;
|
|
1194
|
+
const j = g.toLowerCase();
|
|
1195
|
+
let T;
|
|
1196
|
+
for (const e in o) if (o.hasOwnProperty(e) && j === o[e].lower) {
|
|
1197
|
+
T = o[e].index;
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
if (void 0 === T) throw new Error(`${w}start rule name '${startRule}' not recognized`);
|
|
1201
|
+
(() => {
|
|
1202
|
+
const e = `${n}initializeCallbacks(): `;
|
|
1203
|
+
let t, i;
|
|
1204
|
+
for (c = [], u = [], t = 0; t < o.length; t += 1) c[t] = void 0;
|
|
1205
|
+
for (t = 0; t < s.length; t += 1) u[t] = void 0;
|
|
1206
|
+
const a = [];
|
|
1207
|
+
for (t = 0; t < o.length; t += 1) a.push(o[t].lower);
|
|
1208
|
+
for (t = 0; t < s.length; t += 1) a.push(s[t].lower);
|
|
1209
|
+
for (const n in r.callbacks) if (r.callbacks.hasOwnProperty(n)) {
|
|
1210
|
+
if (t = a.indexOf(n.toLowerCase()), t < 0) throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);
|
|
1211
|
+
if (i = r.callbacks[n] ? r.callbacks[n] : void 0, "function" != typeof i && void 0 !== i) throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);
|
|
1212
|
+
t < o.length ? c[t] = i : u[t - o.length] = i;
|
|
1213
|
+
}
|
|
1214
|
+
})(), r.trace && r.trace.init(o, s, a), r.stats && r.stats.init(o, s), r.ast && r.ast.init(o, s, a), l = E, i = [{
|
|
1215
|
+
type: e.RNM,
|
|
1216
|
+
index: T
|
|
1217
|
+
}], b(0, 0), i = void 0;
|
|
1218
|
+
let O = !1;
|
|
1219
|
+
switch (d.state) {
|
|
1220
|
+
case e.ACTIVE: throw new Error(`${w}final state should never be 'ACTIVE'`);
|
|
1221
|
+
case e.NOMATCH:
|
|
1222
|
+
O = !1;
|
|
1223
|
+
break;
|
|
1224
|
+
case e.EMPTY:
|
|
1225
|
+
case e.MATCH:
|
|
1226
|
+
O = d.phraseLength === a.length;
|
|
1227
|
+
break;
|
|
1228
|
+
default: throw new Error("unrecognized state");
|
|
1229
|
+
}
|
|
1230
|
+
return {
|
|
1231
|
+
success: O,
|
|
1232
|
+
state: d.state,
|
|
1233
|
+
stateName: e.idName(d.state),
|
|
1234
|
+
length: a.length,
|
|
1235
|
+
matched: d.phraseLength,
|
|
1236
|
+
maxMatched: y,
|
|
1237
|
+
maxTreeDepth: h,
|
|
1238
|
+
nodeHits: m
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
const v = (t, r, o, s) => {
|
|
1242
|
+
if (r.phraseLength > o) {
|
|
1243
|
+
let e = `${n}opRNM(${t.name}): callback function error: `;
|
|
1244
|
+
throw e += `sysData.phraseLength: ${r.phraseLength}`, e += ` must be <= remaining chars: ${o}`, new Error(e);
|
|
1245
|
+
}
|
|
1246
|
+
switch (r.state) {
|
|
1247
|
+
case e.ACTIVE:
|
|
1248
|
+
if (!s) throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);
|
|
1249
|
+
break;
|
|
1250
|
+
case e.EMPTY:
|
|
1251
|
+
r.phraseLength = 0;
|
|
1252
|
+
break;
|
|
1253
|
+
case e.MATCH:
|
|
1254
|
+
0 === r.phraseLength && (r.state = e.EMPTY);
|
|
1255
|
+
break;
|
|
1256
|
+
case e.NOMATCH:
|
|
1257
|
+
r.phraseLength = 0;
|
|
1258
|
+
break;
|
|
1259
|
+
default: throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`);
|
|
1260
|
+
}
|
|
1261
|
+
}, g = (t, c) => {
|
|
1262
|
+
let p, h, m;
|
|
1263
|
+
const y = i[t], v = s[y.index];
|
|
1264
|
+
d.UdtIndex = v.index, f || (m = r.ast && r.ast.udtDefined(y.index), m && (h = o.length + y.index, p = r.ast.getLength(), r.ast.down(h, v.name)));
|
|
1265
|
+
const g = a.length - c;
|
|
1266
|
+
u[y.index](d, a, c, l), ((t, r, o) => {
|
|
1267
|
+
if (r.phraseLength > o) {
|
|
1268
|
+
let e = `${n}opUDT(${t.name}): callback function error: `;
|
|
1269
|
+
throw e += `sysData.phraseLength: ${r.phraseLength}`, e += ` must be <= remaining chars: ${o}`, new Error(e);
|
|
1270
|
+
}
|
|
1271
|
+
switch (r.state) {
|
|
1272
|
+
case e.ACTIVE: throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);
|
|
1273
|
+
case e.EMPTY:
|
|
1274
|
+
if (!t.empty) throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);
|
|
1275
|
+
r.phraseLength = 0;
|
|
1276
|
+
break;
|
|
1277
|
+
case e.MATCH:
|
|
1278
|
+
if (0 === r.phraseLength) {
|
|
1279
|
+
if (!t.empty) throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);
|
|
1280
|
+
r.state = e.EMPTY;
|
|
1281
|
+
}
|
|
1282
|
+
break;
|
|
1283
|
+
case e.NOMATCH:
|
|
1284
|
+
r.phraseLength = 0;
|
|
1285
|
+
break;
|
|
1286
|
+
default: throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`);
|
|
1287
|
+
}
|
|
1288
|
+
})(v, d, g), f || m && (d.state === e.NOMATCH ? r.ast.setLength(p) : r.ast.up(h, v.name, c, d.phraseLength));
|
|
1289
|
+
}, b = (t, s) => {
|
|
1290
|
+
const u = `${n}opExecute(): `, x = i[t];
|
|
1291
|
+
switch (m += 1, p > h && (h = p), p += 1, d.refresh(), r.trace && r.trace.down(x, s), x.type) {
|
|
1292
|
+
case e.ALT:
|
|
1293
|
+
((t, r) => {
|
|
1294
|
+
const n = i[t];
|
|
1295
|
+
for (let t = 0; t < n.children.length && (b(n.children[t], r), d.state === e.NOMATCH); t += 1);
|
|
1296
|
+
})(t, s);
|
|
1297
|
+
break;
|
|
1298
|
+
case e.CAT:
|
|
1299
|
+
((t, n) => {
|
|
1300
|
+
let o, s, a, c;
|
|
1301
|
+
const u = i[t];
|
|
1302
|
+
r.ast && (s = r.ast.getLength()), o = !0, a = n, c = 0;
|
|
1303
|
+
for (let t = 0; t < u.children.length; t += 1) {
|
|
1304
|
+
if (b(u.children[t], a), d.state === e.NOMATCH) {
|
|
1305
|
+
o = !1;
|
|
1306
|
+
break;
|
|
1307
|
+
}
|
|
1308
|
+
a += d.phraseLength, c += d.phraseLength;
|
|
1309
|
+
}
|
|
1310
|
+
o ? (d.state = 0 === c ? e.EMPTY : e.MATCH, d.phraseLength = c) : (d.state = e.NOMATCH, d.phraseLength = 0, r.ast && r.ast.setLength(s));
|
|
1311
|
+
})(t, s);
|
|
1312
|
+
break;
|
|
1313
|
+
case e.REP:
|
|
1314
|
+
((t, n) => {
|
|
1315
|
+
let o, s, c, u;
|
|
1316
|
+
const l = i[t];
|
|
1317
|
+
if (0 === l.max) return d.state = e.EMPTY, void (d.phraseLength = 0);
|
|
1318
|
+
for (s = n, c = 0, u = 0, r.ast && (o = r.ast.getLength()); !(s >= a.length) && (b(t + 1, s), d.state !== e.NOMATCH) && d.state !== e.EMPTY && (u += 1, c += d.phraseLength, s += d.phraseLength, u !== l.max););
|
|
1319
|
+
d.state === e.EMPTY || u >= l.min ? (d.state = 0 === c ? e.EMPTY : e.MATCH, d.phraseLength = c) : (d.state = e.NOMATCH, d.phraseLength = 0, r.ast && r.ast.setLength(o));
|
|
1320
|
+
})(t, s);
|
|
1321
|
+
break;
|
|
1322
|
+
case e.RNM:
|
|
1323
|
+
((t, n) => {
|
|
1324
|
+
let s, u, p;
|
|
1325
|
+
const h = i[t], m = o[h.index], y = c[m.index];
|
|
1326
|
+
if (f || (u = r.ast && r.ast.ruleDefined(h.index), u && (s = r.ast.getLength(), r.ast.down(h.index, o[h.index].name))), y) {
|
|
1327
|
+
const t = a.length - n;
|
|
1328
|
+
y(d, a, n, l), v(m, d, t, !0), d.state === e.ACTIVE && (p = i, i = m.opcodes, b(0, n), i = p, y(d, a, n, l), v(m, d, t, !1));
|
|
1329
|
+
} else p = i, i = m.opcodes, b(0, n, d), i = p;
|
|
1330
|
+
f || u && (d.state === e.NOMATCH ? r.ast.setLength(s) : r.ast.up(h.index, m.name, n, d.phraseLength));
|
|
1331
|
+
})(t, s);
|
|
1332
|
+
break;
|
|
1333
|
+
case e.TRG:
|
|
1334
|
+
((t, r) => {
|
|
1335
|
+
const n = i[t];
|
|
1336
|
+
d.state = e.NOMATCH, r < a.length && n.min <= a[r] && a[r] <= n.max && (d.state = e.MATCH, d.phraseLength = 1);
|
|
1337
|
+
})(t, s);
|
|
1338
|
+
break;
|
|
1339
|
+
case e.TBS:
|
|
1340
|
+
((t, r) => {
|
|
1341
|
+
const n = i[t], o = n.string.length;
|
|
1342
|
+
if (d.state = e.NOMATCH, r + o <= a.length) {
|
|
1343
|
+
for (let e = 0; e < o; e += 1) if (a[r + e] !== n.string[e]) return;
|
|
1344
|
+
d.state = e.MATCH, d.phraseLength = o;
|
|
1345
|
+
}
|
|
1346
|
+
})(t, s);
|
|
1347
|
+
break;
|
|
1348
|
+
case e.TLS:
|
|
1349
|
+
((t, r) => {
|
|
1350
|
+
let n;
|
|
1351
|
+
const o = i[t];
|
|
1352
|
+
d.state = e.NOMATCH;
|
|
1353
|
+
const s = o.string.length;
|
|
1354
|
+
if (0 !== s) {
|
|
1355
|
+
if (r + s <= a.length) {
|
|
1356
|
+
for (let e = 0; e < s; e += 1) if (n = a[r + e], n >= 65 && n <= 90 && (n += 32), n !== o.string[e]) return;
|
|
1357
|
+
d.state = e.MATCH, d.phraseLength = s;
|
|
1358
|
+
}
|
|
1359
|
+
} else d.state = e.EMPTY;
|
|
1360
|
+
})(t, s);
|
|
1361
|
+
break;
|
|
1362
|
+
case e.UDT:
|
|
1363
|
+
g(t, s);
|
|
1364
|
+
break;
|
|
1365
|
+
case e.AND:
|
|
1366
|
+
((t, r) => {
|
|
1367
|
+
switch (f += 1, b(t + 1, r), f -= 1, d.phraseLength = 0, d.state) {
|
|
1368
|
+
case e.EMPTY:
|
|
1369
|
+
case e.MATCH:
|
|
1370
|
+
d.state = e.EMPTY;
|
|
1371
|
+
break;
|
|
1372
|
+
case e.NOMATCH:
|
|
1373
|
+
d.state = e.NOMATCH;
|
|
1374
|
+
break;
|
|
1375
|
+
default: throw new Error(`opAND: invalid state ${d.state}`);
|
|
1376
|
+
}
|
|
1377
|
+
})(t, s);
|
|
1378
|
+
break;
|
|
1379
|
+
case e.NOT:
|
|
1380
|
+
((t, r) => {
|
|
1381
|
+
switch (f += 1, b(t + 1, r), f -= 1, d.phraseLength = 0, d.state) {
|
|
1382
|
+
case e.EMPTY:
|
|
1383
|
+
case e.MATCH:
|
|
1384
|
+
d.state = e.NOMATCH;
|
|
1385
|
+
break;
|
|
1386
|
+
case e.NOMATCH:
|
|
1387
|
+
d.state = e.EMPTY;
|
|
1388
|
+
break;
|
|
1389
|
+
default: throw new Error(`opNOT: invalid state ${d.state}`);
|
|
1390
|
+
}
|
|
1391
|
+
})(t, s);
|
|
1392
|
+
break;
|
|
1393
|
+
default: throw new Error(`${u}unrecognized operator`);
|
|
1394
|
+
}
|
|
1395
|
+
f || s + d.phraseLength > y && (y = s + d.phraseLength), r.stats && r.stats.collect(x, d), r.trace && r.trace.up(x, d.state, s, d.phraseLength), p -= 1;
|
|
1396
|
+
};
|
|
1397
|
+
}, kt = function() {
|
|
1398
|
+
const e = Nt, t = Mt, r = this;
|
|
1399
|
+
let n, o, s, i = 0;
|
|
1400
|
+
const a = [], c = [], u = [];
|
|
1401
|
+
function l(e) {
|
|
1402
|
+
let t = "";
|
|
1403
|
+
for (; e-- > 0;) t += " ";
|
|
1404
|
+
return t;
|
|
1405
|
+
}
|
|
1406
|
+
r.callbacks = [], r.init = (e, t, l) => {
|
|
1407
|
+
let f;
|
|
1408
|
+
c.length = 0, u.length = 0, i = 0, n = e, o = t, s = l;
|
|
1409
|
+
const p = [];
|
|
1410
|
+
for (f = 0; f < n.length; f += 1) p.push(n[f].lower);
|
|
1411
|
+
for (f = 0; f < o.length; f += 1) p.push(o[f].lower);
|
|
1412
|
+
for (i = n.length + o.length, f = 0; f < i; f += 1) a[f] = void 0;
|
|
1413
|
+
for (const e in r.callbacks) if (r.callbacks.hasOwnProperty(e)) {
|
|
1414
|
+
const t = e.toLowerCase();
|
|
1415
|
+
if (f = p.indexOf(t), f < 0) throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);
|
|
1416
|
+
a[f] = r.callbacks[e];
|
|
1417
|
+
}
|
|
1418
|
+
}, r.ruleDefined = (e) => !!a[e], r.udtDefined = (e) => !!a[n.length + e], r.down = (t, r) => {
|
|
1419
|
+
const n = u.length;
|
|
1420
|
+
return c.push(n), u.push({
|
|
1421
|
+
name: r,
|
|
1422
|
+
thisIndex: n,
|
|
1423
|
+
thatIndex: void 0,
|
|
1424
|
+
state: e.SEM_PRE,
|
|
1425
|
+
callbackIndex: t,
|
|
1426
|
+
phraseIndex: void 0,
|
|
1427
|
+
phraseLength: void 0,
|
|
1428
|
+
stack: c.length
|
|
1429
|
+
}), n;
|
|
1430
|
+
}, r.up = (t, r, n, o) => {
|
|
1431
|
+
const s = u.length, i = c.pop();
|
|
1432
|
+
return u.push({
|
|
1433
|
+
name: r,
|
|
1434
|
+
thisIndex: s,
|
|
1435
|
+
thatIndex: i,
|
|
1436
|
+
state: e.SEM_POST,
|
|
1437
|
+
callbackIndex: t,
|
|
1438
|
+
phraseIndex: n,
|
|
1439
|
+
phraseLength: o,
|
|
1440
|
+
stack: c.length
|
|
1441
|
+
}), u[i].thatIndex = s, u[i].phraseIndex = n, u[i].phraseLength = o, s;
|
|
1442
|
+
}, r.translate = (t) => {
|
|
1443
|
+
let r, n;
|
|
1444
|
+
for (let o = 0; o < u.length; o += 1) n = u[o], r = a[n.callbackIndex], r && (n.state === e.SEM_PRE ? r(e.SEM_PRE, s, n.phraseIndex, n.phraseLength, t) : r && r(e.SEM_POST, s, n.phraseIndex, n.phraseLength, t));
|
|
1445
|
+
}, r.setLength = (e) => {
|
|
1446
|
+
u.length = e, c.length = e > 0 ? u[e - 1].stack : 0;
|
|
1447
|
+
}, r.getLength = () => u.length, r.toXml = () => {
|
|
1448
|
+
let r = "", n = 0;
|
|
1449
|
+
return r += "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n", r += `<root nodes="${u.length / 2}" characters="${s.length}">\n`, r += "<!-- input string -->\n", r += l(n + 2), r += t.charsToString(s), r += "\n", u.forEach(((o) => {
|
|
1450
|
+
o.state === e.SEM_PRE ? (n += 1, r += l(n), r += `<node name="${o.name}" index="${o.phraseIndex}" length="${o.phraseLength}">\n`, r += l(n + 2), r += t.charsToString(s, o.phraseIndex, o.phraseLength), r += "\n") : (r += l(n), r += `</node>\x3c!-- name="${o.name}" --\x3e\n`, n -= 1);
|
|
1451
|
+
})), r += "</root>\n", r;
|
|
1452
|
+
};
|
|
1453
|
+
}, Pt = function() {
|
|
1454
|
+
const e = Nt, t = Mt, r = "parser.js: Trace(): ";
|
|
1455
|
+
let n, o, s, i = "", a = 0;
|
|
1456
|
+
const c = this, u = (e) => {
|
|
1457
|
+
let t = "", r = 0;
|
|
1458
|
+
if (e >= 0) for (; e--;) r += 1, 5 === r ? (t += "|", r = 0) : t += ".";
|
|
1459
|
+
return t;
|
|
1460
|
+
};
|
|
1461
|
+
c.init = (e, t, r) => {
|
|
1462
|
+
o = e, s = t, n = r;
|
|
1463
|
+
};
|
|
1464
|
+
const l = (n) => {
|
|
1465
|
+
let i;
|
|
1466
|
+
switch (n.type) {
|
|
1467
|
+
case e.ALT:
|
|
1468
|
+
i = "ALT";
|
|
1469
|
+
break;
|
|
1470
|
+
case e.CAT:
|
|
1471
|
+
i = "CAT";
|
|
1472
|
+
break;
|
|
1473
|
+
case e.REP:
|
|
1474
|
+
i = n.max === Infinity ? `REP(${n.min},inf)` : `REP(${n.min},${n.max})`;
|
|
1475
|
+
break;
|
|
1476
|
+
case e.RNM:
|
|
1477
|
+
i = `RNM(${o[n.index].name})`;
|
|
1478
|
+
break;
|
|
1479
|
+
case e.TRG:
|
|
1480
|
+
i = `TRG(${n.min},${n.max})`;
|
|
1481
|
+
break;
|
|
1482
|
+
case e.TBS:
|
|
1483
|
+
i = n.string.length > 6 ? `TBS(${t.charsToString(n.string, 0, 3)}...)` : `TBS(${t.charsToString(n.string, 0, 6)})`;
|
|
1484
|
+
break;
|
|
1485
|
+
case e.TLS:
|
|
1486
|
+
i = n.string.length > 6 ? `TLS(${t.charsToString(n.string, 0, 3)}...)` : `TLS(${t.charsToString(n.string, 0, 6)})`;
|
|
1487
|
+
break;
|
|
1488
|
+
case e.UDT:
|
|
1489
|
+
i = `UDT(${s[n.index].name})`;
|
|
1490
|
+
break;
|
|
1491
|
+
case e.AND:
|
|
1492
|
+
i = "AND";
|
|
1493
|
+
break;
|
|
1494
|
+
case e.NOT:
|
|
1495
|
+
i = "NOT";
|
|
1496
|
+
break;
|
|
1497
|
+
default: throw new Error(`${r}Trace: opName: unrecognized opcode`);
|
|
1498
|
+
}
|
|
1499
|
+
return i;
|
|
1500
|
+
};
|
|
1501
|
+
c.down = (e, r) => {
|
|
1502
|
+
const o = u(a), s = Math.min(100, n.length - r);
|
|
1503
|
+
let c = t.charsToString(n, r, s);
|
|
1504
|
+
s < n.length - r && (c += "..."), c = `${o}|-|[${l(e)}]${c}\n`, i += c, a += 1;
|
|
1505
|
+
}, c.up = (o, s, c, f) => {
|
|
1506
|
+
const p = `${r}trace.up: `;
|
|
1507
|
+
a -= 1;
|
|
1508
|
+
const h = u(a);
|
|
1509
|
+
let m, y, d;
|
|
1510
|
+
switch (s) {
|
|
1511
|
+
case e.EMPTY:
|
|
1512
|
+
d = "|E|", y = "''";
|
|
1513
|
+
break;
|
|
1514
|
+
case e.MATCH:
|
|
1515
|
+
d = "|M|", m = Math.min(100, f), y = m < f ? `'${t.charsToString(n, c, m)}...'` : `'${t.charsToString(n, c, m)}'`;
|
|
1516
|
+
break;
|
|
1517
|
+
case e.NOMATCH:
|
|
1518
|
+
d = "|N|", y = "";
|
|
1519
|
+
break;
|
|
1520
|
+
default: throw new Error(`${p} unrecognized state`);
|
|
1521
|
+
}
|
|
1522
|
+
y = `${h}${d}[${l(o)}]${y}\n`, i += y;
|
|
1523
|
+
}, c.displayTrace = () => i;
|
|
1524
|
+
}, _t = function() {
|
|
1525
|
+
const e = Nt;
|
|
1526
|
+
let t, r, n;
|
|
1527
|
+
const o = [], s = [], i = [];
|
|
1528
|
+
this.init = (e, n) => {
|
|
1529
|
+
t = e, r = n, p();
|
|
1530
|
+
}, this.collect = (t, r) => {
|
|
1531
|
+
h(n, r.state, r.phraseLength), h(o[t.type], r.state, r.phraseLength), t.type === e.RNM && h(s[t.index], r.state, r.phraseLength), t.type === e.UDT && h(i[t.index], r.state, r.phraseLength);
|
|
1532
|
+
}, this.displayStats = () => {
|
|
1533
|
+
let t = "";
|
|
1534
|
+
const r = {
|
|
1535
|
+
match: 0,
|
|
1536
|
+
empty: 0,
|
|
1537
|
+
nomatch: 0,
|
|
1538
|
+
total: 0
|
|
1539
|
+
}, n = (e, t, n, o, s) => (r.match += t, r.empty += n, r.nomatch += o, r.total += s, `${e} | ${a(t)} | ${a(n)} | ${a(o)} | ${a(s)} |\n`);
|
|
1540
|
+
return t += " OPERATOR STATS\n", t += " | MATCH | EMPTY | NOMATCH | TOTAL |\n", t += n(" ALT", o[e.ALT].match, o[e.ALT].empty, o[e.ALT].nomatch, o[e.ALT].total), t += n(" CAT", o[e.CAT].match, o[e.CAT].empty, o[e.CAT].nomatch, o[e.CAT].total), t += n(" REP", o[e.REP].match, o[e.REP].empty, o[e.REP].nomatch, o[e.REP].total), t += n(" RNM", o[e.RNM].match, o[e.RNM].empty, o[e.RNM].nomatch, o[e.RNM].total), t += n(" TRG", o[e.TRG].match, o[e.TRG].empty, o[e.TRG].nomatch, o[e.TRG].total), t += n(" TBS", o[e.TBS].match, o[e.TBS].empty, o[e.TBS].nomatch, o[e.TBS].total), t += n(" TLS", o[e.TLS].match, o[e.TLS].empty, o[e.TLS].nomatch, o[e.TLS].total), t += n(" UDT", o[e.UDT].match, o[e.UDT].empty, o[e.UDT].nomatch, o[e.UDT].total), t += n(" AND", o[e.AND].match, o[e.AND].empty, o[e.AND].nomatch, o[e.AND].total), t += n(" NOT", o[e.NOT].match, o[e.NOT].empty, o[e.NOT].nomatch, o[e.NOT].total), t += n("TOTAL", r.match, r.empty, r.nomatch, r.total), t;
|
|
1541
|
+
}, this.displayHits = (e) => {
|
|
1542
|
+
let t = "";
|
|
1543
|
+
const r = (e, t, r, o, s) => (n.match += e, n.empty += t, n.nomatch += r, n.total += o, `| ${a(e)} | ${a(t)} | ${a(r)} | ${a(o)} | ${s}\n`);
|
|
1544
|
+
"string" == typeof e && "a" === e.toLowerCase()[0] ? (s.sort(c), i.sort(c), t += " RULES/UDTS ALPHABETICALLY\n") : "string" == typeof e && "i" === e.toLowerCase()[0] ? (s.sort(l), i.sort(l), t += " RULES/UDTS BY INDEX\n") : (s.sort(u), i.sort(u), t += " RULES/UDTS BY HIT COUNT\n"), t += "| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";
|
|
1545
|
+
for (let e = 0; e < s.length; e += 1) {
|
|
1546
|
+
let n = s[e];
|
|
1547
|
+
n.total && (t += r(n.match, n.empty, n.nomatch, n.total, n.name));
|
|
1548
|
+
}
|
|
1549
|
+
for (let e = 0; e < i.length; e += 1) {
|
|
1550
|
+
let n = i[e];
|
|
1551
|
+
n.total && (t += r(n.match, n.empty, n.nomatch, n.total, n.name));
|
|
1552
|
+
}
|
|
1553
|
+
return t;
|
|
1554
|
+
};
|
|
1555
|
+
const a = (e) => e < 10 ? ` ${e}` : e < 100 ? ` ${e}` : e < 1e3 ? ` ${e}` : e < 1e4 ? ` ${e}` : e < 1e5 ? ` ${e}` : e < 1e6 ? ` ${e}` : `${e}`, c = (e, t) => e.lower < t.lower ? -1 : e.lower > t.lower ? 1 : 0, u = (e, t) => e.total < t.total ? 1 : e.total > t.total ? -1 : c(e, t), l = (e, t) => e.index < t.index ? -1 : e.index > t.index ? 1 : 0, f = function() {
|
|
1556
|
+
this.empty = 0, this.match = 0, this.nomatch = 0, this.total = 0;
|
|
1557
|
+
}, p = () => {
|
|
1558
|
+
o.length = 0, n = new f(), o[e.ALT] = new f(), o[e.CAT] = new f(), o[e.REP] = new f(), o[e.RNM] = new f(), o[e.TRG] = new f(), o[e.TBS] = new f(), o[e.TLS] = new f(), o[e.UDT] = new f(), o[e.AND] = new f(), o[e.NOT] = new f(), s.length = 0;
|
|
1559
|
+
for (let e = 0; e < t.length; e += 1) s.push({
|
|
1560
|
+
empty: 0,
|
|
1561
|
+
match: 0,
|
|
1562
|
+
nomatch: 0,
|
|
1563
|
+
total: 0,
|
|
1564
|
+
name: t[e].name,
|
|
1565
|
+
lower: t[e].lower,
|
|
1566
|
+
index: t[e].index
|
|
1567
|
+
});
|
|
1568
|
+
if (r.length > 0) {
|
|
1569
|
+
i.length = 0;
|
|
1570
|
+
for (let e = 0; e < r.length; e += 1) i.push({
|
|
1571
|
+
empty: 0,
|
|
1572
|
+
match: 0,
|
|
1573
|
+
nomatch: 0,
|
|
1574
|
+
total: 0,
|
|
1575
|
+
name: r[e].name,
|
|
1576
|
+
lower: r[e].lower,
|
|
1577
|
+
index: r[e].index
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
}, h = (t, r) => {
|
|
1581
|
+
switch (t.total += 1, r) {
|
|
1582
|
+
case e.EMPTY:
|
|
1583
|
+
t.empty += 1;
|
|
1584
|
+
break;
|
|
1585
|
+
case e.MATCH:
|
|
1586
|
+
t.match += 1;
|
|
1587
|
+
break;
|
|
1588
|
+
case e.NOMATCH:
|
|
1589
|
+
t.nomatch += 1;
|
|
1590
|
+
break;
|
|
1591
|
+
default: throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${r}`);
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
}, Mt = {
|
|
1595
|
+
stringToChars: (e) => [...e].map(((e) => e.codePointAt(0))),
|
|
1596
|
+
charsToString: (e, t, r) => {
|
|
1597
|
+
let n = e;
|
|
1598
|
+
for (; !(void 0 === t || t < 0);) {
|
|
1599
|
+
if (void 0 === r) {
|
|
1600
|
+
n = e.slice(t);
|
|
1601
|
+
break;
|
|
1602
|
+
}
|
|
1603
|
+
if (r <= 0) return "";
|
|
1604
|
+
n = e.slice(t, t + r);
|
|
1605
|
+
break;
|
|
1606
|
+
}
|
|
1607
|
+
return String.fromCodePoint(...n);
|
|
1608
|
+
}
|
|
1609
|
+
}, Nt = {
|
|
1610
|
+
ALT: 1,
|
|
1611
|
+
CAT: 2,
|
|
1612
|
+
REP: 3,
|
|
1613
|
+
RNM: 4,
|
|
1614
|
+
TRG: 5,
|
|
1615
|
+
TBS: 6,
|
|
1616
|
+
TLS: 7,
|
|
1617
|
+
UDT: 11,
|
|
1618
|
+
AND: 12,
|
|
1619
|
+
NOT: 13,
|
|
1620
|
+
ACTIVE: 100,
|
|
1621
|
+
MATCH: 101,
|
|
1622
|
+
EMPTY: 102,
|
|
1623
|
+
NOMATCH: 103,
|
|
1624
|
+
SEM_PRE: 200,
|
|
1625
|
+
SEM_POST: 201,
|
|
1626
|
+
SEM_OK: 300,
|
|
1627
|
+
idName: (e) => {
|
|
1628
|
+
switch (e) {
|
|
1629
|
+
case Nt.ALT: return "ALT";
|
|
1630
|
+
case Nt.CAT: return "CAT";
|
|
1631
|
+
case Nt.REP: return "REP";
|
|
1632
|
+
case Nt.RNM: return "RNM";
|
|
1633
|
+
case Nt.TRG: return "TRG";
|
|
1634
|
+
case Nt.TBS: return "TBS";
|
|
1635
|
+
case Nt.TLS: return "TLS";
|
|
1636
|
+
case Nt.UDT: return "UDT";
|
|
1637
|
+
case Nt.AND: return "AND";
|
|
1638
|
+
case Nt.NOT: return "NOT";
|
|
1639
|
+
case Nt.ACTIVE: return "ACTIVE";
|
|
1640
|
+
case Nt.EMPTY: return "EMPTY";
|
|
1641
|
+
case Nt.MATCH: return "MATCH";
|
|
1642
|
+
case Nt.NOMATCH: return "NOMATCH";
|
|
1643
|
+
case Nt.SEM_PRE: return "SEM_PRE";
|
|
1644
|
+
case Nt.SEM_POST: return "SEM_POST";
|
|
1645
|
+
case Nt.SEM_OK: return "SEM_OK";
|
|
1646
|
+
default: return "UNRECOGNIZED STATE";
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}, Ct = class extends Error {
|
|
1650
|
+
constructor(e, t = void 0) {
|
|
1651
|
+
if (super(e, t), this.name = this.constructor.name, "string" == typeof e && (this.message = e), "function" == typeof Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(e).stack, null != t && "object" == typeof t && Object.prototype.hasOwnProperty.call(t, "cause") && !("cause" in this)) {
|
|
1652
|
+
const { cause: e } = t;
|
|
1653
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
1654
|
+
}
|
|
1655
|
+
if (null != t && "object" == typeof t) {
|
|
1656
|
+
const { cause: e, ...r } = t;
|
|
1657
|
+
Object.assign(this, r);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
}, Rt = class extends Ct {}, Lt = (e) => (t, r, n, o, s) => {
|
|
1661
|
+
if ("object" != typeof s || null === s || Array.isArray(s)) throw new Rt("parser's user data must be an object");
|
|
1662
|
+
if (t === Nt.SEM_PRE) {
|
|
1663
|
+
const t = {
|
|
1664
|
+
type: e,
|
|
1665
|
+
text: Mt.charsToString(r, n, o),
|
|
1666
|
+
start: n,
|
|
1667
|
+
length: o,
|
|
1668
|
+
children: []
|
|
1669
|
+
};
|
|
1670
|
+
s.stack.length > 0 ? s.stack[s.stack.length - 1].children.push(t) : s.root = t, s.stack.push(t);
|
|
1671
|
+
}
|
|
1672
|
+
t === Nt.SEM_POST && s.stack.pop();
|
|
1673
|
+
}, $t = class extends kt {
|
|
1674
|
+
constructor() {
|
|
1675
|
+
super(), this.callbacks["json-pointer"] = Lt("json-pointer"), this.callbacks["reference-token"] = Lt("reference-token"), this.callbacks.slash = Lt("text");
|
|
1676
|
+
}
|
|
1677
|
+
getTree() {
|
|
1678
|
+
const e = {
|
|
1679
|
+
stack: [],
|
|
1680
|
+
root: null
|
|
1681
|
+
};
|
|
1682
|
+
return this.translate(e), delete e.stack, e;
|
|
1683
|
+
}
|
|
1684
|
+
}, It = class extends $t {
|
|
1685
|
+
getTree() {
|
|
1686
|
+
const { root: e } = super.getTree();
|
|
1687
|
+
return e.children.filter((({ type: e }) => "reference-token" === e)).map((({ text: e }) => ((e) => {
|
|
1688
|
+
if ("string" != typeof e) throw new TypeError("Reference token must be a string");
|
|
1689
|
+
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1690
|
+
})(e)));
|
|
1691
|
+
}
|
|
1692
|
+
}, Vt = class extends Array {
|
|
1693
|
+
toString() {
|
|
1694
|
+
return this.map(((e) => `"${String(e)}"`)).join(", ");
|
|
1695
|
+
}
|
|
1696
|
+
}, Dt = class extends Pt {
|
|
1697
|
+
inferExpectations() {
|
|
1698
|
+
const e = this.displayTrace().split("\n"), t = /* @__PURE__ */ new Set();
|
|
1699
|
+
let r = -1;
|
|
1700
|
+
for (let n = 0; n < e.length; n++) {
|
|
1701
|
+
const o = e[n];
|
|
1702
|
+
if (o.includes("M|")) {
|
|
1703
|
+
const e = o.match(/]'(.*)'$/);
|
|
1704
|
+
e && e[1] && (r = n);
|
|
1705
|
+
}
|
|
1706
|
+
if (n > r) {
|
|
1707
|
+
const e = o.match(/N\|\[TLS\(([^)]+)\)]/);
|
|
1708
|
+
e && t.add(e[1]);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
return new Vt(...t);
|
|
1712
|
+
}
|
|
1713
|
+
}, Ft = new At(), Bt = (e, { translator: t = new It(), stats: r = !1, trace: n = !1 } = {}) => {
|
|
1714
|
+
if ("string" != typeof e) throw new TypeError("JSON Pointer must be a string");
|
|
1715
|
+
try {
|
|
1716
|
+
const o = new St();
|
|
1717
|
+
t && (o.ast = t), r && (o.stats = new _t()), n && (o.trace = new Dt());
|
|
1718
|
+
const s = o.parse(Ft, "json-pointer", e);
|
|
1719
|
+
return {
|
|
1720
|
+
result: s,
|
|
1721
|
+
tree: s.success && t ? o.ast.getTree() : void 0,
|
|
1722
|
+
stats: o.stats,
|
|
1723
|
+
trace: o.trace
|
|
1724
|
+
};
|
|
1725
|
+
} catch (t) {
|
|
1726
|
+
throw new Rt("Unexpected error during JSON Pointer parsing", {
|
|
1727
|
+
cause: t,
|
|
1728
|
+
jsonPointer: e
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
}, zt = (new At(), new St(), new At(), new St(), new At()), Ut = new St(), Ht = new At(), Gt = new St(), qt = class extends Ct {}, Yt = (e) => {
|
|
1732
|
+
if (!Array.isArray(e)) throw new TypeError("Reference tokens must be a list of strings or numbers");
|
|
1733
|
+
try {
|
|
1734
|
+
return 0 === e.length ? "" : `/${e.map(((e) => {
|
|
1735
|
+
if ("string" != typeof e && "number" != typeof e) throw new TypeError("Reference token must be a string or number");
|
|
1736
|
+
return ((e) => {
|
|
1737
|
+
if ("string" != typeof e && "number" != typeof e) throw new TypeError("Reference token must be a string or number");
|
|
1738
|
+
return String(e).replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1739
|
+
})(String(e));
|
|
1740
|
+
})).join("/")}`;
|
|
1741
|
+
} catch (t) {
|
|
1742
|
+
throw new qt("Unexpected error during JSON Pointer compilation", {
|
|
1743
|
+
cause: t,
|
|
1744
|
+
referenceTokens: e
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
}, Jt = class {
|
|
1748
|
+
#e;
|
|
1749
|
+
#t;
|
|
1750
|
+
#r;
|
|
1751
|
+
constructor(e, t = {}) {
|
|
1752
|
+
this.#e = e, this.#e.steps = [], this.#e.failed = !1, this.#e.failedAt = -1, this.#e.message = `JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`, this.#e.context = {
|
|
1753
|
+
...t,
|
|
1754
|
+
realm: t.realm.name
|
|
1755
|
+
}, this.#t = [], this.#r = t.realm;
|
|
1756
|
+
}
|
|
1757
|
+
step({ referenceToken: e, input: t, output: r, success: n = !0, reason: o }) {
|
|
1758
|
+
const s = this.#t.length;
|
|
1759
|
+
this.#t.push(e);
|
|
1760
|
+
const i = {
|
|
1761
|
+
referenceToken: e,
|
|
1762
|
+
referenceTokenPosition: s,
|
|
1763
|
+
input: t,
|
|
1764
|
+
inputType: this.#r.isObject(t) ? "object" : this.#r.isArray(t) ? "array" : "unrecognized",
|
|
1765
|
+
output: r,
|
|
1766
|
+
success: n
|
|
1767
|
+
};
|
|
1768
|
+
o && (i.reason = o), this.#e.steps.push(i), n || (this.#e.failed = !0, this.#e.failedAt = s, this.#e.message = o);
|
|
1769
|
+
}
|
|
1770
|
+
}, Kt = class {
|
|
1771
|
+
name = "";
|
|
1772
|
+
isArray(e) {
|
|
1773
|
+
throw new Ct("Realm.isArray(node) must be implemented in a subclass");
|
|
1774
|
+
}
|
|
1775
|
+
isObject(e) {
|
|
1776
|
+
throw new Ct("Realm.isObject(node) must be implemented in a subclass");
|
|
1777
|
+
}
|
|
1778
|
+
sizeOf(e) {
|
|
1779
|
+
throw new Ct("Realm.sizeOf(node) must be implemented in a subclass");
|
|
1780
|
+
}
|
|
1781
|
+
has(e, t) {
|
|
1782
|
+
throw new Ct("Realm.has(node) must be implemented in a subclass");
|
|
1783
|
+
}
|
|
1784
|
+
evaluate(e, t) {
|
|
1785
|
+
throw new Ct("Realm.evaluate(node) must be implemented in a subclass");
|
|
1786
|
+
}
|
|
1787
|
+
}, Wt = class extends Ct {}, Xt = class extends Wt {}, Zt = class extends Kt {
|
|
1788
|
+
name = "json";
|
|
1789
|
+
isArray(e) {
|
|
1790
|
+
return Array.isArray(e);
|
|
1791
|
+
}
|
|
1792
|
+
isObject(e) {
|
|
1793
|
+
return "object" == typeof e && null !== e && !this.isArray(e);
|
|
1794
|
+
}
|
|
1795
|
+
sizeOf(e) {
|
|
1796
|
+
return this.isArray(e) ? e.length : this.isObject(e) ? Object.keys(e).length : 0;
|
|
1797
|
+
}
|
|
1798
|
+
has(e, t) {
|
|
1799
|
+
if (this.isArray(e)) {
|
|
1800
|
+
const r = Number(t), n = r >>> 0;
|
|
1801
|
+
if (r !== n) throw new Xt(`Invalid array index "${t}": index must be an unsinged 32-bit integer`, {
|
|
1802
|
+
referenceToken: t,
|
|
1803
|
+
currentValue: e,
|
|
1804
|
+
realm: this.name
|
|
1805
|
+
});
|
|
1806
|
+
return n < this.sizeOf(e) && Object.prototype.hasOwnProperty.call(e, r);
|
|
1807
|
+
}
|
|
1808
|
+
return !!this.isObject(e) && Object.prototype.hasOwnProperty.call(e, t);
|
|
1809
|
+
}
|
|
1810
|
+
evaluate(e, t) {
|
|
1811
|
+
return this.isArray(e) ? e[Number(t)] : e[t];
|
|
1812
|
+
}
|
|
1813
|
+
}, Qt = class extends Wt {}, er = class extends Wt {}, tr = (e, t, { strictArrays: r = !0, strictObjects: n = !0, realm: o = new Zt(), trace: s = !0 } = {}) => {
|
|
1814
|
+
const { result: i, tree: a, trace: c } = Bt(t, { trace: !!s }), u = "object" == typeof s && null !== s ? new Jt(s, {
|
|
1815
|
+
jsonPointer: t,
|
|
1816
|
+
referenceTokens: a,
|
|
1817
|
+
strictArrays: r,
|
|
1818
|
+
strictObjects: n,
|
|
1819
|
+
realm: o,
|
|
1820
|
+
value: e
|
|
1821
|
+
}) : null;
|
|
1822
|
+
try {
|
|
1823
|
+
let s;
|
|
1824
|
+
if (!i.success) {
|
|
1825
|
+
let r = `Invalid JSON Pointer: "${t}". Syntax error at position ${i.maxMatched}`;
|
|
1826
|
+
throw r += c ? `, expected ${c.inferExpectations()}` : "", new Wt(r, {
|
|
1827
|
+
jsonPointer: t,
|
|
1828
|
+
currentValue: e,
|
|
1829
|
+
realm: o.name
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1832
|
+
return a.reduce(((e, i, c) => {
|
|
1833
|
+
if (o.isArray(e)) {
|
|
1834
|
+
if (((e) => {
|
|
1835
|
+
if ("string" != typeof e) return !1;
|
|
1836
|
+
try {
|
|
1837
|
+
return Gt.parse(Ht, "array-dash", e).success;
|
|
1838
|
+
} catch {
|
|
1839
|
+
return !1;
|
|
1840
|
+
}
|
|
1841
|
+
})(i)) {
|
|
1842
|
+
if (r) throw new Xt(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`, {
|
|
1843
|
+
jsonPointer: t,
|
|
1844
|
+
referenceTokens: a,
|
|
1845
|
+
referenceToken: i,
|
|
1846
|
+
referenceTokenPosition: c,
|
|
1847
|
+
currentValue: e,
|
|
1848
|
+
realm: o.name
|
|
1849
|
+
});
|
|
1850
|
+
return s = o.evaluate(e, String(o.sizeOf(e))), null == u || u.step({
|
|
1851
|
+
referenceToken: i,
|
|
1852
|
+
input: e,
|
|
1853
|
+
output: s
|
|
1854
|
+
}), s;
|
|
1855
|
+
}
|
|
1856
|
+
if (!((e) => {
|
|
1857
|
+
if ("string" != typeof e) return !1;
|
|
1858
|
+
try {
|
|
1859
|
+
return Ut.parse(zt, "array-index", e).success;
|
|
1860
|
+
} catch {
|
|
1861
|
+
return !1;
|
|
1862
|
+
}
|
|
1863
|
+
})(i)) throw new Xt(`Invalid array index "${i}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`, {
|
|
1864
|
+
jsonPointer: t,
|
|
1865
|
+
referenceTokens: a,
|
|
1866
|
+
referenceToken: i,
|
|
1867
|
+
referenceTokenPosition: c,
|
|
1868
|
+
currentValue: e,
|
|
1869
|
+
realm: o.name
|
|
1870
|
+
});
|
|
1871
|
+
const n = Number(i);
|
|
1872
|
+
if (!Number.isSafeInteger(n)) throw new Xt(`Invalid array index "${i}" at position ${c} in "${t}": index must be a safe integer`, {
|
|
1873
|
+
jsonPointer: t,
|
|
1874
|
+
referenceTokens: a,
|
|
1875
|
+
referenceToken: i,
|
|
1876
|
+
referenceTokenPosition: c,
|
|
1877
|
+
currentValue: e,
|
|
1878
|
+
realm: o.name
|
|
1879
|
+
});
|
|
1880
|
+
if (!o.has(e, i) && r) throw new Xt(`Invalid array index "${i}" at position ${c} in "${t}": index not found in array`, {
|
|
1881
|
+
jsonPointer: t,
|
|
1882
|
+
referenceTokens: a,
|
|
1883
|
+
referenceToken: i,
|
|
1884
|
+
referenceTokenPosition: c,
|
|
1885
|
+
currentValue: e,
|
|
1886
|
+
realm: o.name
|
|
1887
|
+
});
|
|
1888
|
+
return s = o.evaluate(e, i), null == u || u.step({
|
|
1889
|
+
referenceToken: i,
|
|
1890
|
+
input: e,
|
|
1891
|
+
output: s
|
|
1892
|
+
}), s;
|
|
1893
|
+
}
|
|
1894
|
+
if (o.isObject(e)) {
|
|
1895
|
+
if (!o.has(e, i) && n) throw new er(`Invalid object key "${i}" at position ${c} in "${t}": key not found in object`, {
|
|
1896
|
+
jsonPointer: t,
|
|
1897
|
+
referenceTokens: a,
|
|
1898
|
+
referenceToken: i,
|
|
1899
|
+
referenceTokenPosition: c,
|
|
1900
|
+
currentValue: e,
|
|
1901
|
+
realm: o.name
|
|
1902
|
+
});
|
|
1903
|
+
return s = o.evaluate(e, i), null == u || u.step({
|
|
1904
|
+
referenceToken: i,
|
|
1905
|
+
input: e,
|
|
1906
|
+
output: s
|
|
1907
|
+
}), s;
|
|
1908
|
+
}
|
|
1909
|
+
throw new Qt(`Invalid reference token "${i}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`, {
|
|
1910
|
+
jsonPointer: t,
|
|
1911
|
+
referenceTokens: a,
|
|
1912
|
+
referenceToken: i,
|
|
1913
|
+
referenceTokenPosition: c,
|
|
1914
|
+
currentValue: e,
|
|
1915
|
+
realm: o.name
|
|
1916
|
+
});
|
|
1917
|
+
}), e);
|
|
1918
|
+
} catch (e) {
|
|
1919
|
+
if (null == u || u.step({
|
|
1920
|
+
referenceToken: e.referenceToken,
|
|
1921
|
+
input: e.currentValue,
|
|
1922
|
+
success: !1,
|
|
1923
|
+
reason: e.message
|
|
1924
|
+
}), e instanceof Wt) throw e;
|
|
1925
|
+
throw new Wt("Unexpected error during JSON Pointer evaluation", {
|
|
1926
|
+
cause: e,
|
|
1927
|
+
jsonPointer: t,
|
|
1928
|
+
referenceTokens: a
|
|
1929
|
+
});
|
|
1930
|
+
}
|
|
1931
|
+
};
|
|
1932
|
+
function rr(e) {
|
|
1933
|
+
return null != e && "object" == typeof e && !0 === e["@@functional/placeholder"];
|
|
1934
|
+
}
|
|
1935
|
+
function nr(e) {
|
|
1936
|
+
return function t(r) {
|
|
1937
|
+
return 0 === arguments.length || rr(r) ? t : e.apply(this, arguments);
|
|
1938
|
+
};
|
|
1939
|
+
}
|
|
1940
|
+
function or(e) {
|
|
1941
|
+
return function t(r, n) {
|
|
1942
|
+
switch (arguments.length) {
|
|
1943
|
+
case 0: return t;
|
|
1944
|
+
case 1: return rr(r) ? t : nr((function(t) {
|
|
1945
|
+
return e(r, t);
|
|
1946
|
+
}));
|
|
1947
|
+
default: return rr(r) && rr(n) ? t : rr(r) ? nr((function(t) {
|
|
1948
|
+
return e(t, n);
|
|
1949
|
+
})) : rr(n) ? nr((function(t) {
|
|
1950
|
+
return e(r, t);
|
|
1951
|
+
})) : e(r, n);
|
|
1952
|
+
}
|
|
1953
|
+
};
|
|
1954
|
+
}
|
|
1955
|
+
function sr(e, t) {
|
|
1956
|
+
switch (e) {
|
|
1957
|
+
case 0: return function() {
|
|
1958
|
+
return t.apply(this, arguments);
|
|
1959
|
+
};
|
|
1960
|
+
case 1: return function(e) {
|
|
1961
|
+
return t.apply(this, arguments);
|
|
1962
|
+
};
|
|
1963
|
+
case 2: return function(e, r) {
|
|
1964
|
+
return t.apply(this, arguments);
|
|
1965
|
+
};
|
|
1966
|
+
case 3: return function(e, r, n) {
|
|
1967
|
+
return t.apply(this, arguments);
|
|
1968
|
+
};
|
|
1969
|
+
case 4: return function(e, r, n, o) {
|
|
1970
|
+
return t.apply(this, arguments);
|
|
1971
|
+
};
|
|
1972
|
+
case 5: return function(e, r, n, o, s) {
|
|
1973
|
+
return t.apply(this, arguments);
|
|
1974
|
+
};
|
|
1975
|
+
case 6: return function(e, r, n, o, s, i) {
|
|
1976
|
+
return t.apply(this, arguments);
|
|
1977
|
+
};
|
|
1978
|
+
case 7: return function(e, r, n, o, s, i, a) {
|
|
1979
|
+
return t.apply(this, arguments);
|
|
1980
|
+
};
|
|
1981
|
+
case 8: return function(e, r, n, o, s, i, a, c) {
|
|
1982
|
+
return t.apply(this, arguments);
|
|
1983
|
+
};
|
|
1984
|
+
case 9: return function(e, r, n, o, s, i, a, c, u) {
|
|
1985
|
+
return t.apply(this, arguments);
|
|
1986
|
+
};
|
|
1987
|
+
case 10: return function(e, r, n, o, s, i, a, c, u, l) {
|
|
1988
|
+
return t.apply(this, arguments);
|
|
1989
|
+
};
|
|
1990
|
+
default: throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
function ir(e, t, r) {
|
|
1994
|
+
return function() {
|
|
1995
|
+
for (var n = [], o = 0, s = e, i = 0, a = !1; i < t.length || o < arguments.length;) {
|
|
1996
|
+
var c;
|
|
1997
|
+
i < t.length && (!rr(t[i]) || o >= arguments.length) ? c = t[i] : (c = arguments[o], o += 1), n[i] = c, rr(c) ? a = !0 : s -= 1, i += 1;
|
|
1998
|
+
}
|
|
1999
|
+
return !a && s <= 0 ? r.apply(this, n) : sr(Math.max(0, s), ir(e, n, r));
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
var ar = or((function(e, t) {
|
|
2003
|
+
return 1 === e ? nr(t) : sr(e, ir(e, [], t));
|
|
2004
|
+
}));
|
|
2005
|
+
function cr(e) {
|
|
2006
|
+
return function t(r, n, o) {
|
|
2007
|
+
switch (arguments.length) {
|
|
2008
|
+
case 0: return t;
|
|
2009
|
+
case 1: return rr(r) ? t : or((function(t, n) {
|
|
2010
|
+
return e(r, t, n);
|
|
2011
|
+
}));
|
|
2012
|
+
case 2: return rr(r) && rr(n) ? t : rr(r) ? or((function(t, r) {
|
|
2013
|
+
return e(t, n, r);
|
|
2014
|
+
})) : rr(n) ? or((function(t, n) {
|
|
2015
|
+
return e(r, t, n);
|
|
2016
|
+
})) : nr((function(t) {
|
|
2017
|
+
return e(r, n, t);
|
|
2018
|
+
}));
|
|
2019
|
+
default: return rr(r) && rr(n) && rr(o) ? t : rr(r) && rr(n) ? or((function(t, r) {
|
|
2020
|
+
return e(t, r, o);
|
|
2021
|
+
})) : rr(r) && rr(o) ? or((function(t, r) {
|
|
2022
|
+
return e(t, n, r);
|
|
2023
|
+
})) : rr(n) && rr(o) ? or((function(t, n) {
|
|
2024
|
+
return e(r, t, n);
|
|
2025
|
+
})) : rr(r) ? nr((function(t) {
|
|
2026
|
+
return e(t, n, o);
|
|
2027
|
+
})) : rr(n) ? nr((function(t) {
|
|
2028
|
+
return e(r, t, o);
|
|
2029
|
+
})) : rr(o) ? nr((function(t) {
|
|
2030
|
+
return e(r, n, t);
|
|
2031
|
+
})) : e(r, n, o);
|
|
2032
|
+
}
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2035
|
+
var ur = Array.isArray || function(e) {
|
|
2036
|
+
return null != e && e.length >= 0 && "[object Array]" === Object.prototype.toString.call(e);
|
|
2037
|
+
};
|
|
2038
|
+
function lr(e, t, r) {
|
|
2039
|
+
return function() {
|
|
2040
|
+
if (0 === arguments.length) return r();
|
|
2041
|
+
var n = arguments[arguments.length - 1];
|
|
2042
|
+
if (!ur(n)) {
|
|
2043
|
+
for (var o = 0; o < e.length;) {
|
|
2044
|
+
if ("function" == typeof n[e[o]]) return n[e[o]].apply(n, Array.prototype.slice.call(arguments, 0, -1));
|
|
2045
|
+
o += 1;
|
|
2046
|
+
}
|
|
2047
|
+
if (function(e) {
|
|
2048
|
+
return null != e && "function" == typeof e["@@transducer/step"];
|
|
2049
|
+
}(n)) return t.apply(null, Array.prototype.slice.call(arguments, 0, -1))(n);
|
|
2050
|
+
}
|
|
2051
|
+
return r.apply(this, arguments);
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
var fr = function() {
|
|
2055
|
+
return this.xf["@@transducer/init"]();
|
|
2056
|
+
}, pr = function(e) {
|
|
2057
|
+
return this.xf["@@transducer/result"](e);
|
|
2058
|
+
}, hr = function() {
|
|
2059
|
+
function e(e, t) {
|
|
2060
|
+
this.xf = t, this.f = e, this.all = !0;
|
|
2061
|
+
}
|
|
2062
|
+
return e.prototype["@@transducer/init"] = fr, e.prototype["@@transducer/result"] = function(e) {
|
|
2063
|
+
return this.all && (e = this.xf["@@transducer/step"](e, !0)), this.xf["@@transducer/result"](e);
|
|
2064
|
+
}, e.prototype["@@transducer/step"] = function(e, t) {
|
|
2065
|
+
var r;
|
|
2066
|
+
return this.f(t) || (this.all = !1, e = (r = this.xf["@@transducer/step"](e, !1)) && r["@@transducer/reduced"] ? r : {
|
|
2067
|
+
"@@transducer/value": r,
|
|
2068
|
+
"@@transducer/reduced": !0
|
|
2069
|
+
}), e;
|
|
2070
|
+
}, e;
|
|
2071
|
+
}();
|
|
2072
|
+
function mr(e) {
|
|
2073
|
+
return function(t) {
|
|
2074
|
+
return new hr(e, t);
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2077
|
+
var yr = or(lr(["all"], mr, (function(e, t) {
|
|
2078
|
+
for (var r = 0; r < t.length;) {
|
|
2079
|
+
if (!e(t[r])) return !1;
|
|
2080
|
+
r += 1;
|
|
2081
|
+
}
|
|
2082
|
+
return !0;
|
|
2083
|
+
})));
|
|
2084
|
+
function dr(e) {
|
|
2085
|
+
for (var t, r = []; !(t = e.next()).done;) r.push(t.value);
|
|
2086
|
+
return r;
|
|
2087
|
+
}
|
|
2088
|
+
function vr(e, t, r) {
|
|
2089
|
+
for (var n = 0, o = r.length; n < o;) {
|
|
2090
|
+
if (e(t, r[n])) return !0;
|
|
2091
|
+
n += 1;
|
|
2092
|
+
}
|
|
2093
|
+
return !1;
|
|
2094
|
+
}
|
|
2095
|
+
function gr(e, t) {
|
|
2096
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
2097
|
+
}
|
|
2098
|
+
var br = "function" == typeof Object.is ? Object.is : function(e, t) {
|
|
2099
|
+
return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
|
|
2100
|
+
}, xr = Object.prototype.toString, Er = function() {
|
|
2101
|
+
return "[object Arguments]" === xr.call(arguments) ? function(e) {
|
|
2102
|
+
return "[object Arguments]" === xr.call(e);
|
|
2103
|
+
} : function(e) {
|
|
2104
|
+
return gr("callee", e);
|
|
2105
|
+
};
|
|
2106
|
+
}(), wr = !{ toString: null }.propertyIsEnumerable("toString"), jr = [
|
|
2107
|
+
"constructor",
|
|
2108
|
+
"valueOf",
|
|
2109
|
+
"isPrototypeOf",
|
|
2110
|
+
"toString",
|
|
2111
|
+
"propertyIsEnumerable",
|
|
2112
|
+
"hasOwnProperty",
|
|
2113
|
+
"toLocaleString"
|
|
2114
|
+
], Tr = function() {
|
|
2115
|
+
"use strict";
|
|
2116
|
+
return arguments.propertyIsEnumerable("length");
|
|
2117
|
+
}(), Or = function(e, t) {
|
|
2118
|
+
for (var r = 0; r < e.length;) {
|
|
2119
|
+
if (e[r] === t) return !0;
|
|
2120
|
+
r += 1;
|
|
2121
|
+
}
|
|
2122
|
+
return !1;
|
|
2123
|
+
}, Ar = "function" != typeof Object.keys || Tr ? nr((function(e) {
|
|
2124
|
+
if (Object(e) !== e) return [];
|
|
2125
|
+
var t, r, n = [], o = Tr && Er(e);
|
|
2126
|
+
for (t in e) !gr(t, e) || o && "length" === t || (n[n.length] = t);
|
|
2127
|
+
if (wr) for (r = jr.length - 1; r >= 0;) gr(t = jr[r], e) && !Or(n, t) && (n[n.length] = t), r -= 1;
|
|
2128
|
+
return n;
|
|
2129
|
+
})) : nr((function(e) {
|
|
2130
|
+
return Object(e) !== e ? [] : Object.keys(e);
|
|
2131
|
+
})), Sr = nr((function(e) {
|
|
2132
|
+
return null === e ? "Null" : void 0 === e ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
|
|
2133
|
+
}));
|
|
2134
|
+
function kr(e, t, r, n) {
|
|
2135
|
+
var o = dr(e);
|
|
2136
|
+
function s(e, t) {
|
|
2137
|
+
return Pr(e, t, r.slice(), n.slice());
|
|
2138
|
+
}
|
|
2139
|
+
return !vr((function(e, t) {
|
|
2140
|
+
return !vr(s, t, e);
|
|
2141
|
+
}), dr(t), o);
|
|
2142
|
+
}
|
|
2143
|
+
function Pr(e, t, r, n) {
|
|
2144
|
+
if (br(e, t)) return !0;
|
|
2145
|
+
var o, s, i = Sr(e);
|
|
2146
|
+
if (i !== Sr(t)) return !1;
|
|
2147
|
+
if ("function" == typeof e["fantasy-land/equals"] || "function" == typeof t["fantasy-land/equals"]) return "function" == typeof e["fantasy-land/equals"] && e["fantasy-land/equals"](t) && "function" == typeof t["fantasy-land/equals"] && t["fantasy-land/equals"](e);
|
|
2148
|
+
if ("function" == typeof e.equals || "function" == typeof t.equals) return "function" == typeof e.equals && e.equals(t) && "function" == typeof t.equals && t.equals(e);
|
|
2149
|
+
switch (i) {
|
|
2150
|
+
case "Arguments":
|
|
2151
|
+
case "Array":
|
|
2152
|
+
case "Object":
|
|
2153
|
+
if ("function" == typeof e.constructor && "Promise" === (o = e.constructor, null == (s = String(o).match(/^function (\w*)/)) ? "" : s[1])) return e === t;
|
|
2154
|
+
break;
|
|
2155
|
+
case "Boolean":
|
|
2156
|
+
case "Number":
|
|
2157
|
+
case "String":
|
|
2158
|
+
if (typeof e != typeof t || !br(e.valueOf(), t.valueOf())) return !1;
|
|
2159
|
+
break;
|
|
2160
|
+
case "Date":
|
|
2161
|
+
if (!br(e.valueOf(), t.valueOf())) return !1;
|
|
2162
|
+
break;
|
|
2163
|
+
case "Error": return e.name === t.name && e.message === t.message;
|
|
2164
|
+
case "RegExp": if (e.source !== t.source || e.global !== t.global || e.ignoreCase !== t.ignoreCase || e.multiline !== t.multiline || e.sticky !== t.sticky || e.unicode !== t.unicode) return !1;
|
|
2165
|
+
}
|
|
2166
|
+
for (var a = r.length - 1; a >= 0;) {
|
|
2167
|
+
if (r[a] === e) return n[a] === t;
|
|
2168
|
+
a -= 1;
|
|
2169
|
+
}
|
|
2170
|
+
switch (i) {
|
|
2171
|
+
case "Map": return e.size === t.size && kr(e.entries(), t.entries(), r.concat([e]), n.concat([t]));
|
|
2172
|
+
case "Set": return e.size === t.size && kr(e.values(), t.values(), r.concat([e]), n.concat([t]));
|
|
2173
|
+
case "Arguments":
|
|
2174
|
+
case "Array":
|
|
2175
|
+
case "Object":
|
|
2176
|
+
case "Boolean":
|
|
2177
|
+
case "Number":
|
|
2178
|
+
case "String":
|
|
2179
|
+
case "Date":
|
|
2180
|
+
case "Error":
|
|
2181
|
+
case "RegExp":
|
|
2182
|
+
case "Int8Array":
|
|
2183
|
+
case "Uint8Array":
|
|
2184
|
+
case "Uint8ClampedArray":
|
|
2185
|
+
case "Int16Array":
|
|
2186
|
+
case "Uint16Array":
|
|
2187
|
+
case "Int32Array":
|
|
2188
|
+
case "Uint32Array":
|
|
2189
|
+
case "Float32Array":
|
|
2190
|
+
case "Float64Array":
|
|
2191
|
+
case "ArrayBuffer": break;
|
|
2192
|
+
default: return !1;
|
|
2193
|
+
}
|
|
2194
|
+
var c = Ar(e);
|
|
2195
|
+
if (c.length !== Ar(t).length) return !1;
|
|
2196
|
+
var u = r.concat([e]), l = n.concat([t]);
|
|
2197
|
+
for (a = c.length - 1; a >= 0;) {
|
|
2198
|
+
var f = c[a];
|
|
2199
|
+
if (!gr(f, t) || !Pr(t[f], e[f], u, l)) return !1;
|
|
2200
|
+
a -= 1;
|
|
2201
|
+
}
|
|
2202
|
+
return !0;
|
|
2203
|
+
}
|
|
2204
|
+
var _r = or((function(e, t) {
|
|
2205
|
+
return Pr(e, t, [], []);
|
|
2206
|
+
}));
|
|
2207
|
+
function Mr(e, t) {
|
|
2208
|
+
return function(e, t, r) {
|
|
2209
|
+
var n, o;
|
|
2210
|
+
if ("function" == typeof e.indexOf) switch (typeof t) {
|
|
2211
|
+
case "number":
|
|
2212
|
+
if (0 === t) {
|
|
2213
|
+
for (n = 1 / t; r < e.length;) {
|
|
2214
|
+
if (0 === (o = e[r]) && 1 / o === n) return r;
|
|
2215
|
+
r += 1;
|
|
2216
|
+
}
|
|
2217
|
+
return -1;
|
|
2218
|
+
}
|
|
2219
|
+
if (t != t) {
|
|
2220
|
+
for (; r < e.length;) {
|
|
2221
|
+
if ("number" == typeof (o = e[r]) && o != o) return r;
|
|
2222
|
+
r += 1;
|
|
2223
|
+
}
|
|
2224
|
+
return -1;
|
|
2225
|
+
}
|
|
2226
|
+
return e.indexOf(t, r);
|
|
2227
|
+
case "string":
|
|
2228
|
+
case "boolean":
|
|
2229
|
+
case "function":
|
|
2230
|
+
case "undefined": return e.indexOf(t, r);
|
|
2231
|
+
case "object": if (null === t) return e.indexOf(t, r);
|
|
2232
|
+
}
|
|
2233
|
+
for (; r < e.length;) {
|
|
2234
|
+
if (_r(e[r], t)) return r;
|
|
2235
|
+
r += 1;
|
|
2236
|
+
}
|
|
2237
|
+
return -1;
|
|
2238
|
+
}(t, e, 0) >= 0;
|
|
2239
|
+
}
|
|
2240
|
+
function Nr(e, t) {
|
|
2241
|
+
for (var r = 0, n = t.length, o = Array(n); r < n;) o[r] = e(t[r]), r += 1;
|
|
2242
|
+
return o;
|
|
2243
|
+
}
|
|
2244
|
+
function Cr(e) {
|
|
2245
|
+
return "\"" + e.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0").replace(/"/g, "\\\"") + "\"";
|
|
2246
|
+
}
|
|
2247
|
+
var Rr = function(e) {
|
|
2248
|
+
return (e < 10 ? "0" : "") + e;
|
|
2249
|
+
}, Lr = "function" == typeof Date.prototype.toISOString ? function(e) {
|
|
2250
|
+
return e.toISOString();
|
|
2251
|
+
} : function(e) {
|
|
2252
|
+
return e.getUTCFullYear() + "-" + Rr(e.getUTCMonth() + 1) + "-" + Rr(e.getUTCDate()) + "T" + Rr(e.getUTCHours()) + ":" + Rr(e.getUTCMinutes()) + ":" + Rr(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
|
|
2253
|
+
};
|
|
2254
|
+
function $r(e, t, r) {
|
|
2255
|
+
for (var n = 0, o = r.length; n < o;) t = e(t, r[n]), n += 1;
|
|
2256
|
+
return t;
|
|
2257
|
+
}
|
|
2258
|
+
function Ir(e) {
|
|
2259
|
+
return "[object Object]" === Object.prototype.toString.call(e);
|
|
2260
|
+
}
|
|
2261
|
+
var Vr = function() {
|
|
2262
|
+
function e(e, t) {
|
|
2263
|
+
this.xf = t, this.f = e;
|
|
2264
|
+
}
|
|
2265
|
+
return e.prototype["@@transducer/init"] = fr, e.prototype["@@transducer/result"] = pr, e.prototype["@@transducer/step"] = function(e, t) {
|
|
2266
|
+
return this.f(t) ? this.xf["@@transducer/step"](e, t) : e;
|
|
2267
|
+
}, e;
|
|
2268
|
+
}();
|
|
2269
|
+
function Dr(e) {
|
|
2270
|
+
return function(t) {
|
|
2271
|
+
return new Vr(e, t);
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
var Fr = or(lr(["fantasy-land/filter", "filter"], Dr, (function(e, t) {
|
|
2275
|
+
return Ir(t) ? $r((function(r, n) {
|
|
2276
|
+
return e(t[n]) && (r[n] = t[n]), r;
|
|
2277
|
+
}), {}, Ar(t)) : function(e, t) {
|
|
2278
|
+
for (var r = 0, n = t.length, o = []; r < n;) e(t[r]) && (o[o.length] = t[r]), r += 1;
|
|
2279
|
+
return o;
|
|
2280
|
+
}(e, t);
|
|
2281
|
+
}))), Br = or((function(e, t) {
|
|
2282
|
+
return Fr((r = e, function() {
|
|
2283
|
+
return !r.apply(this, arguments);
|
|
2284
|
+
}), t);
|
|
2285
|
+
var r;
|
|
2286
|
+
}));
|
|
2287
|
+
function zr(e, t) {
|
|
2288
|
+
var r = function(r) {
|
|
2289
|
+
var n = t.concat([e]);
|
|
2290
|
+
return Mr(r, n) ? "<Circular>" : zr(r, n);
|
|
2291
|
+
}, n = function(e, t) {
|
|
2292
|
+
return Nr((function(t) {
|
|
2293
|
+
return Cr(t) + ": " + r(e[t]);
|
|
2294
|
+
}), t.slice().sort());
|
|
2295
|
+
};
|
|
2296
|
+
switch (Object.prototype.toString.call(e)) {
|
|
2297
|
+
case "[object Arguments]": return "(function() { return arguments; }(" + Nr(r, e).join(", ") + "))";
|
|
2298
|
+
case "[object Array]": return "[" + Nr(r, e).concat(n(e, Br((function(e) {
|
|
2299
|
+
return /^\d+$/.test(e);
|
|
2300
|
+
}), Ar(e)))).join(", ") + "]";
|
|
2301
|
+
case "[object Boolean]": return "object" == typeof e ? "new Boolean(" + r(e.valueOf()) + ")" : e.toString();
|
|
2302
|
+
case "[object Date]": return "new Date(" + (isNaN(e.valueOf()) ? r(NaN) : Cr(Lr(e))) + ")";
|
|
2303
|
+
case "[object Map]": return "new Map(" + r(Array.from(e)) + ")";
|
|
2304
|
+
case "[object Null]": return "null";
|
|
2305
|
+
case "[object Number]": return "object" == typeof e ? "new Number(" + r(e.valueOf()) + ")" : 1 / e == -Infinity ? "-0" : e.toString(10);
|
|
2306
|
+
case "[object Set]": return "new Set(" + r(Array.from(e).sort()) + ")";
|
|
2307
|
+
case "[object String]": return "object" == typeof e ? "new String(" + r(e.valueOf()) + ")" : Cr(e);
|
|
2308
|
+
case "[object Undefined]": return "undefined";
|
|
2309
|
+
default:
|
|
2310
|
+
if ("function" == typeof e.toString) {
|
|
2311
|
+
var o = e.toString();
|
|
2312
|
+
if ("[object Object]" !== o) return o;
|
|
2313
|
+
}
|
|
2314
|
+
return "{" + n(e, Ar(e)).join(", ") + "}";
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
var Ur = nr((function(e) {
|
|
2318
|
+
return zr(e, []);
|
|
2319
|
+
})), Hr = or((function(e, t) {
|
|
2320
|
+
if (e === t) return t;
|
|
2321
|
+
function r(e, t) {
|
|
2322
|
+
if (e > t != t > e) return t > e ? t : e;
|
|
2323
|
+
}
|
|
2324
|
+
var n = r(e, t);
|
|
2325
|
+
if (void 0 !== n) return n;
|
|
2326
|
+
var o = r(typeof e, typeof t);
|
|
2327
|
+
if (void 0 !== o) return o === typeof e ? e : t;
|
|
2328
|
+
var s = Ur(e), i = r(s, Ur(t));
|
|
2329
|
+
return void 0 !== i && i === s ? e : t;
|
|
2330
|
+
})), Gr = function() {
|
|
2331
|
+
function e(e, t) {
|
|
2332
|
+
this.xf = t, this.f = e;
|
|
2333
|
+
}
|
|
2334
|
+
return e.prototype["@@transducer/init"] = fr, e.prototype["@@transducer/result"] = pr, e.prototype["@@transducer/step"] = function(e, t) {
|
|
2335
|
+
return this.xf["@@transducer/step"](e, this.f(t));
|
|
2336
|
+
}, e;
|
|
2337
|
+
}(), qr = or(lr(["fantasy-land/map", "map"], (function(e) {
|
|
2338
|
+
return function(t) {
|
|
2339
|
+
return new Gr(e, t);
|
|
2340
|
+
};
|
|
2341
|
+
}), (function(e, t) {
|
|
2342
|
+
switch (Object.prototype.toString.call(t)) {
|
|
2343
|
+
case "[object Function]": return ar(t.length, (function() {
|
|
2344
|
+
return e.call(this, t.apply(this, arguments));
|
|
2345
|
+
}));
|
|
2346
|
+
case "[object Object]": return $r((function(r, n) {
|
|
2347
|
+
return r[n] = e(t[n]), r;
|
|
2348
|
+
}), {}, Ar(t));
|
|
2349
|
+
default: return Nr(e, t);
|
|
2350
|
+
}
|
|
2351
|
+
}))), Yr = Number.isInteger || function(e) {
|
|
2352
|
+
return (e | 0) === e;
|
|
2353
|
+
};
|
|
2354
|
+
function Jr(e) {
|
|
2355
|
+
return "[object String]" === Object.prototype.toString.call(e);
|
|
2356
|
+
}
|
|
2357
|
+
function Kr(e, t) {
|
|
2358
|
+
var r = e < 0 ? t.length + e : e;
|
|
2359
|
+
return Jr(t) ? t.charAt(r) : t[r];
|
|
2360
|
+
}
|
|
2361
|
+
var Wr = or((function(e, t) {
|
|
2362
|
+
if (null != t) return Yr(e) ? Kr(e, t) : t[e];
|
|
2363
|
+
})), Xr = or((function(e, t) {
|
|
2364
|
+
return qr(Wr(e), t);
|
|
2365
|
+
})), Zr = nr((function(e) {
|
|
2366
|
+
return !!ur(e) || !!e && "object" == typeof e && !Jr(e) && (0 === e.length || e.length > 0 && e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1));
|
|
2367
|
+
})), Qr = "undefined" != typeof Symbol ? Symbol.iterator : "@@iterator";
|
|
2368
|
+
function en(e, t, r) {
|
|
2369
|
+
return function(n, o, s) {
|
|
2370
|
+
if (Zr(s)) return e(n, o, s);
|
|
2371
|
+
if (null == s) return o;
|
|
2372
|
+
if ("function" == typeof s["fantasy-land/reduce"]) return t(n, o, s, "fantasy-land/reduce");
|
|
2373
|
+
if (null != s[Qr]) return r(n, o, s[Qr]());
|
|
2374
|
+
if ("function" == typeof s.next) return r(n, o, s);
|
|
2375
|
+
if ("function" == typeof s.reduce) return t(n, o, s, "reduce");
|
|
2376
|
+
throw new TypeError("reduce: list must be array or iterable");
|
|
2377
|
+
};
|
|
2378
|
+
}
|
|
2379
|
+
function tn(e, t, r) {
|
|
2380
|
+
for (var n = 0, o = r.length; n < o;) {
|
|
2381
|
+
if ((t = e["@@transducer/step"](t, r[n])) && t["@@transducer/reduced"]) {
|
|
2382
|
+
t = t["@@transducer/value"];
|
|
2383
|
+
break;
|
|
2384
|
+
}
|
|
2385
|
+
n += 1;
|
|
2386
|
+
}
|
|
2387
|
+
return e["@@transducer/result"](t);
|
|
2388
|
+
}
|
|
2389
|
+
var rn = or((function(e, t) {
|
|
2390
|
+
return sr(e.length, (function() {
|
|
2391
|
+
return e.apply(t, arguments);
|
|
2392
|
+
}));
|
|
2393
|
+
}));
|
|
2394
|
+
function nn(e, t, r) {
|
|
2395
|
+
for (var n = r.next(); !n.done;) {
|
|
2396
|
+
if ((t = e["@@transducer/step"](t, n.value)) && t["@@transducer/reduced"]) {
|
|
2397
|
+
t = t["@@transducer/value"];
|
|
2398
|
+
break;
|
|
2399
|
+
}
|
|
2400
|
+
n = r.next();
|
|
2401
|
+
}
|
|
2402
|
+
return e["@@transducer/result"](t);
|
|
2403
|
+
}
|
|
2404
|
+
function on(e, t, r, n) {
|
|
2405
|
+
return e["@@transducer/result"](r[n](rn(e["@@transducer/step"], e), t));
|
|
2406
|
+
}
|
|
2407
|
+
var sn = en(tn, on, nn), an = function() {
|
|
2408
|
+
function e(e) {
|
|
2409
|
+
this.f = e;
|
|
2410
|
+
}
|
|
2411
|
+
return e.prototype["@@transducer/init"] = function() {
|
|
2412
|
+
throw new Error("init not implemented on XWrap");
|
|
2413
|
+
}, e.prototype["@@transducer/result"] = function(e) {
|
|
2414
|
+
return e;
|
|
2415
|
+
}, e.prototype["@@transducer/step"] = function(e, t) {
|
|
2416
|
+
return this.f(e, t);
|
|
2417
|
+
}, e;
|
|
2418
|
+
}();
|
|
2419
|
+
var cn = cr((function(e, t, r) {
|
|
2420
|
+
return sn("function" == typeof e ? new an(e) : e, t, r);
|
|
2421
|
+
})), un = nr((function(e) {
|
|
2422
|
+
return function() {
|
|
2423
|
+
return e;
|
|
2424
|
+
};
|
|
2425
|
+
})), ln = or((function(e, t) {
|
|
2426
|
+
return e && t;
|
|
2427
|
+
})), fn = nr((function(e) {
|
|
2428
|
+
return ar(cn(Hr, 0, Xr("length", e)), (function() {
|
|
2429
|
+
for (var t = 0, r = e.length; t < r;) {
|
|
2430
|
+
if (e[t].apply(this, arguments)) return !0;
|
|
2431
|
+
t += 1;
|
|
2432
|
+
}
|
|
2433
|
+
return !1;
|
|
2434
|
+
}));
|
|
2435
|
+
}));
|
|
2436
|
+
function pn(e, t, r) {
|
|
2437
|
+
for (var n = r.next(); !n.done;) t = e(t, n.value), n = r.next();
|
|
2438
|
+
return t;
|
|
2439
|
+
}
|
|
2440
|
+
function hn(e, t, r, n) {
|
|
2441
|
+
return r[n](e, t);
|
|
2442
|
+
}
|
|
2443
|
+
var mn = en($r, hn, pn), yn = or((function(e, t) {
|
|
2444
|
+
return "function" == typeof t["fantasy-land/ap"] ? t["fantasy-land/ap"](e) : "function" == typeof e.ap ? e.ap(t) : "function" == typeof e ? function(r) {
|
|
2445
|
+
return e(r)(t(r));
|
|
2446
|
+
} : mn((function(e, r) {
|
|
2447
|
+
return function(e, t) {
|
|
2448
|
+
var r;
|
|
2449
|
+
t = t || [];
|
|
2450
|
+
var n = (e = e || []).length, o = t.length, s = [];
|
|
2451
|
+
for (r = 0; r < n;) s[s.length] = e[r], r += 1;
|
|
2452
|
+
for (r = 0; r < o;) s[s.length] = t[r], r += 1;
|
|
2453
|
+
return s;
|
|
2454
|
+
}(e, qr(r, t));
|
|
2455
|
+
}), [], e);
|
|
2456
|
+
})), dn = or((function(e, t) {
|
|
2457
|
+
return e.apply(this, t);
|
|
2458
|
+
}));
|
|
2459
|
+
var vn = or((function(e, t) {
|
|
2460
|
+
var r = ar(e, t);
|
|
2461
|
+
return ar(e, (function() {
|
|
2462
|
+
return $r(yn, qr(r, arguments[0]), Array.prototype.slice.call(arguments, 1));
|
|
2463
|
+
}));
|
|
2464
|
+
})), gn = nr((function(e) {
|
|
2465
|
+
return vn(e.length, e);
|
|
2466
|
+
})), bn = or((function(e, t) {
|
|
2467
|
+
return function(e) {
|
|
2468
|
+
var t = Object.prototype.toString.call(e);
|
|
2469
|
+
return "[object Function]" === t || "[object AsyncFunction]" === t || "[object GeneratorFunction]" === t || "[object AsyncGeneratorFunction]" === t;
|
|
2470
|
+
}(e) ? function() {
|
|
2471
|
+
return e.apply(this, arguments) && t.apply(this, arguments);
|
|
2472
|
+
} : gn(ln)(e, t);
|
|
2473
|
+
})), xn = gn(nr((function(e) {
|
|
2474
|
+
return !e;
|
|
2475
|
+
})));
|
|
2476
|
+
function En(e, t) {
|
|
2477
|
+
return function() {
|
|
2478
|
+
return t.call(this, e.apply(this, arguments));
|
|
2479
|
+
};
|
|
2480
|
+
}
|
|
2481
|
+
function wn(e, t) {
|
|
2482
|
+
return function() {
|
|
2483
|
+
var r = arguments.length;
|
|
2484
|
+
if (0 === r) return t();
|
|
2485
|
+
var n = arguments[r - 1];
|
|
2486
|
+
return ur(n) || "function" != typeof n[e] ? t.apply(this, arguments) : n[e].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
2487
|
+
};
|
|
2488
|
+
}
|
|
2489
|
+
var jn = cr(wn("slice", (function(e, t, r) {
|
|
2490
|
+
return Array.prototype.slice.call(r, e, t);
|
|
2491
|
+
}))), Tn = nr(wn("tail", jn(1, Infinity)));
|
|
2492
|
+
function On() {
|
|
2493
|
+
if (0 === arguments.length) throw new Error("pipe requires at least one argument");
|
|
2494
|
+
return sr(arguments[0].length, cn(En, arguments[0], Tn(arguments)));
|
|
2495
|
+
}
|
|
2496
|
+
var An = or((function(e, t) {
|
|
2497
|
+
return null == t || t != t ? e : t;
|
|
2498
|
+
})), Sn = nr((function(e) {
|
|
2499
|
+
return Kr(-1, e);
|
|
2500
|
+
}));
|
|
2501
|
+
var kn = nr((function(e) {
|
|
2502
|
+
return null != e && "function" == typeof e["fantasy-land/empty"] ? e["fantasy-land/empty"]() : null != e && null != e.constructor && "function" == typeof e.constructor["fantasy-land/empty"] ? e.constructor["fantasy-land/empty"]() : null != e && "function" == typeof e.empty ? e.empty() : null != e && null != e.constructor && "function" == typeof e.constructor.empty ? e.constructor.empty() : ur(e) ? [] : Jr(e) ? "" : Ir(e) ? {} : Er(e) ? function() {
|
|
2503
|
+
return arguments;
|
|
2504
|
+
}() : function(e) {
|
|
2505
|
+
var t = Object.prototype.toString.call(e);
|
|
2506
|
+
return "[object Uint8ClampedArray]" === t || "[object Int8Array]" === t || "[object Uint8Array]" === t || "[object Int16Array]" === t || "[object Uint16Array]" === t || "[object Int32Array]" === t || "[object Uint32Array]" === t || "[object Float32Array]" === t || "[object Float64Array]" === t || "[object BigInt64Array]" === t || "[object BigUint64Array]" === t;
|
|
2507
|
+
}(e) ? e.constructor.from("") : void 0;
|
|
2508
|
+
})), Pn = nr((function(e) {
|
|
2509
|
+
return ar(e.length, (function(t, r) {
|
|
2510
|
+
var n = Array.prototype.slice.call(arguments, 0);
|
|
2511
|
+
return n[0] = r, n[1] = t, e.apply(this, n);
|
|
2512
|
+
}));
|
|
2513
|
+
})), _n = function(e, t) {
|
|
2514
|
+
switch (arguments.length) {
|
|
2515
|
+
case 0: return _n;
|
|
2516
|
+
case 1: return function t(r) {
|
|
2517
|
+
return 0 === arguments.length ? t : br(e, r);
|
|
2518
|
+
};
|
|
2519
|
+
default: return br(e, t);
|
|
2520
|
+
}
|
|
2521
|
+
}, Mn = or(Mr), Nn = jn(0, -1), Cn = nr((function(e) {
|
|
2522
|
+
return null != e && _r(e, kn(e));
|
|
2523
|
+
}));
|
|
2524
|
+
function Rn(e, t) {
|
|
2525
|
+
for (var r = t, n = 0; n < e.length; n += 1) {
|
|
2526
|
+
if (null == r) return;
|
|
2527
|
+
var o = e[n];
|
|
2528
|
+
r = Yr(o) ? Kr(o, r) : r[o];
|
|
2529
|
+
}
|
|
2530
|
+
return r;
|
|
2531
|
+
}
|
|
2532
|
+
var Ln = cr((function(e, t, r) {
|
|
2533
|
+
var n, o = {};
|
|
2534
|
+
for (n in r = r || {}, t = t || {}) gr(n, t) && (o[n] = gr(n, r) ? e(n, t[n], r[n]) : t[n]);
|
|
2535
|
+
for (n in r) gr(n, r) && !gr(n, o) && (o[n] = r[n]);
|
|
2536
|
+
return o;
|
|
2537
|
+
})), $n = cr((function e(t, r, n) {
|
|
2538
|
+
return Ln((function(r, n, o) {
|
|
2539
|
+
return Ir(n) && Ir(o) ? e(t, n, o) : t(r, n, o);
|
|
2540
|
+
}), r, n);
|
|
2541
|
+
})), In = or((function(e, t) {
|
|
2542
|
+
return $n((function(e, t, r) {
|
|
2543
|
+
return r;
|
|
2544
|
+
}), e, t);
|
|
2545
|
+
})), Vn = or(Rn), Dn = cr((function(e, t, r) {
|
|
2546
|
+
return An(e, Wr(t, r));
|
|
2547
|
+
})), Bn = _r(un(void 0)()), zn = ar(1, On(Sr, _n("GeneratorFunction"))), Un = ar(1, On(Sr, _n("AsyncFunction"))), Hn = fn([
|
|
2548
|
+
On(Sr, _n("Function")),
|
|
2549
|
+
zn,
|
|
2550
|
+
Un
|
|
2551
|
+
]), Gn = bn(ar(1, Hn(Array.isArray) ? Array.isArray : On(Sr, _n("Array"))), Cn), qn = ar(1, On(Sr, _n("String"))), Yn = xn(Hn), Jn = Pn(Mn), Kn = ar(3, (function(e, t, r) {
|
|
2552
|
+
var n = Vn(e, r), o = Vn(Nn(e), r);
|
|
2553
|
+
if (!Yn(n) && !Gn(e)) return dn(rn(n, o), t);
|
|
2554
|
+
})), Wn = a(((e, t) => {
|
|
2555
|
+
t.exports = function(e) {
|
|
2556
|
+
return null === e;
|
|
2557
|
+
};
|
|
2558
|
+
})), Xn = a(((e, t) => {
|
|
2559
|
+
t.exports = "object" == typeof global && global && global.Object === Object && global;
|
|
2560
|
+
})), Zn = a(((e, t) => {
|
|
2561
|
+
var r = Xn(), n = "object" == typeof self && self && self.Object === Object && self;
|
|
2562
|
+
t.exports = r || n || Function("return this")();
|
|
2563
|
+
})), Qn = a(((e, t) => {
|
|
2564
|
+
t.exports = Zn().Symbol;
|
|
2565
|
+
})), eo = a(((e, t) => {
|
|
2566
|
+
var r = Qn(), n = Object.prototype, o = n.hasOwnProperty, s = n.toString, i = r ? r.toStringTag : void 0;
|
|
2567
|
+
t.exports = function(e) {
|
|
2568
|
+
var t = o.call(e, i), r = e[i];
|
|
2569
|
+
try {
|
|
2570
|
+
e[i] = void 0;
|
|
2571
|
+
var n = !0;
|
|
2572
|
+
} catch (e) {}
|
|
2573
|
+
var a = s.call(e);
|
|
2574
|
+
return n && (t ? e[i] = r : delete e[i]), a;
|
|
2575
|
+
};
|
|
2576
|
+
})), to = a(((e, t) => {
|
|
2577
|
+
var r = Object.prototype.toString;
|
|
2578
|
+
t.exports = function(e) {
|
|
2579
|
+
return r.call(e);
|
|
2580
|
+
};
|
|
2581
|
+
})), ro = a(((e, t) => {
|
|
2582
|
+
var r = Qn(), n = eo(), o = to(), s = r ? r.toStringTag : void 0;
|
|
2583
|
+
t.exports = function(e) {
|
|
2584
|
+
return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : s && s in Object(e) ? n(e) : o(e);
|
|
2585
|
+
};
|
|
2586
|
+
})), no = a(((e, t) => {
|
|
2587
|
+
t.exports = Array.isArray;
|
|
2588
|
+
})), oo = a(((e, t) => {
|
|
2589
|
+
t.exports = function(e) {
|
|
2590
|
+
return null != e && "object" == typeof e;
|
|
2591
|
+
};
|
|
2592
|
+
})), so = a(((e, t) => {
|
|
2593
|
+
var r = ro(), n = no(), o = oo();
|
|
2594
|
+
t.exports = function(e) {
|
|
2595
|
+
return "string" == typeof e || !n(e) && o(e) && "[object String]" == r(e);
|
|
2596
|
+
};
|
|
2597
|
+
})), io = a(((e, t) => {
|
|
2598
|
+
var r = ro(), n = oo();
|
|
2599
|
+
t.exports = function(e) {
|
|
2600
|
+
return "number" == typeof e || n(e) && "[object Number]" == r(e);
|
|
2601
|
+
};
|
|
2602
|
+
})), ao = a(((e, t) => {
|
|
2603
|
+
var r = ro(), n = oo();
|
|
2604
|
+
t.exports = function(e) {
|
|
2605
|
+
return !0 === e || !1 === e || n(e) && "[object Boolean]" == r(e);
|
|
2606
|
+
};
|
|
2607
|
+
})), co = a(((e, t) => {
|
|
2608
|
+
t.exports = function(e) {
|
|
2609
|
+
var t = typeof e;
|
|
2610
|
+
return null != e && ("object" == t || "function" == t);
|
|
2611
|
+
};
|
|
2612
|
+
})), uo = a(((e, t) => {
|
|
2613
|
+
t.exports = class {
|
|
2614
|
+
constructor(e) {
|
|
2615
|
+
this.namespace = e || new this.Namespace();
|
|
2616
|
+
}
|
|
2617
|
+
serialise(e) {
|
|
2618
|
+
if (!(e instanceof this.namespace.elements.Element)) throw new TypeError(`Given element \`${e}\` is not an Element instance`);
|
|
2619
|
+
const t = { element: e.element };
|
|
2620
|
+
e._meta && e._meta.length > 0 && (t.meta = this.serialiseObject(e.meta)), e._attributes && e._attributes.length > 0 && (t.attributes = this.serialiseObject(e.attributes));
|
|
2621
|
+
const r = this.serialiseContent(e.content);
|
|
2622
|
+
return void 0 !== r && (t.content = r), t;
|
|
2623
|
+
}
|
|
2624
|
+
deserialise(e) {
|
|
2625
|
+
if (!e.element) throw new Error("Given value is not an object containing an element name");
|
|
2626
|
+
const t = new (this.namespace.getElementClass(e.element))();
|
|
2627
|
+
t.element !== e.element && (t.element = e.element), e.meta && this.deserialiseObject(e.meta, t.meta), e.attributes && this.deserialiseObject(e.attributes, t.attributes);
|
|
2628
|
+
const r = this.deserialiseContent(e.content);
|
|
2629
|
+
return void 0 === r && null !== t.content || (t.content = r), t;
|
|
2630
|
+
}
|
|
2631
|
+
serialiseContent(e) {
|
|
2632
|
+
if (e instanceof this.namespace.elements.Element) return this.serialise(e);
|
|
2633
|
+
if (e instanceof this.namespace.KeyValuePair) {
|
|
2634
|
+
const t = { key: this.serialise(e.key) };
|
|
2635
|
+
return e.value && (t.value = this.serialise(e.value)), t;
|
|
2636
|
+
}
|
|
2637
|
+
if (e && e.map) {
|
|
2638
|
+
if (0 === e.length) return;
|
|
2639
|
+
return e.map(this.serialise, this);
|
|
2640
|
+
}
|
|
2641
|
+
return e;
|
|
2642
|
+
}
|
|
2643
|
+
deserialiseContent(e) {
|
|
2644
|
+
if (e) {
|
|
2645
|
+
if (e.element) return this.deserialise(e);
|
|
2646
|
+
if (e.key) {
|
|
2647
|
+
const t = new this.namespace.KeyValuePair(this.deserialise(e.key));
|
|
2648
|
+
return e.value && (t.value = this.deserialise(e.value)), t;
|
|
2649
|
+
}
|
|
2650
|
+
if (e.map) return e.map(this.deserialise, this);
|
|
2651
|
+
}
|
|
2652
|
+
return e;
|
|
2653
|
+
}
|
|
2654
|
+
serialiseObject(e) {
|
|
2655
|
+
const t = {};
|
|
2656
|
+
if (e.forEach(((e, r) => {
|
|
2657
|
+
e && (t[r.toValue()] = this.serialise(e));
|
|
2658
|
+
})), 0 !== Object.keys(t).length) return t;
|
|
2659
|
+
}
|
|
2660
|
+
deserialiseObject(e, t) {
|
|
2661
|
+
Object.keys(e).forEach(((r) => {
|
|
2662
|
+
t.set(r, this.deserialise(e[r]));
|
|
2663
|
+
}));
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
})), lo = a(((e, t) => {
|
|
2667
|
+
t.exports = function() {
|
|
2668
|
+
this.__data__ = [], this.size = 0;
|
|
2669
|
+
};
|
|
2670
|
+
})), fo = a(((e, t) => {
|
|
2671
|
+
t.exports = function(e, t) {
|
|
2672
|
+
return e === t || e != e && t != t;
|
|
2673
|
+
};
|
|
2674
|
+
})), po = a(((e, t) => {
|
|
2675
|
+
var r = fo();
|
|
2676
|
+
t.exports = function(e, t) {
|
|
2677
|
+
for (var n = e.length; n--;) if (r(e[n][0], t)) return n;
|
|
2678
|
+
return -1;
|
|
2679
|
+
};
|
|
2680
|
+
})), ho = a(((e, t) => {
|
|
2681
|
+
var r = po(), n = Array.prototype.splice;
|
|
2682
|
+
t.exports = function(e) {
|
|
2683
|
+
var t = this.__data__, o = r(t, e);
|
|
2684
|
+
return !(o < 0) && (o == t.length - 1 ? t.pop() : n.call(t, o, 1), --this.size, !0);
|
|
2685
|
+
};
|
|
2686
|
+
})), mo = a(((e, t) => {
|
|
2687
|
+
var r = po();
|
|
2688
|
+
t.exports = function(e) {
|
|
2689
|
+
var t = this.__data__, n = r(t, e);
|
|
2690
|
+
return n < 0 ? void 0 : t[n][1];
|
|
2691
|
+
};
|
|
2692
|
+
})), yo = a(((e, t) => {
|
|
2693
|
+
var r = po();
|
|
2694
|
+
t.exports = function(e) {
|
|
2695
|
+
return r(this.__data__, e) > -1;
|
|
2696
|
+
};
|
|
2697
|
+
})), vo = a(((e, t) => {
|
|
2698
|
+
var r = po();
|
|
2699
|
+
t.exports = function(e, t) {
|
|
2700
|
+
var n = this.__data__, o = r(n, e);
|
|
2701
|
+
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
2702
|
+
};
|
|
2703
|
+
})), go = a(((e, t) => {
|
|
2704
|
+
var r = lo(), n = ho(), o = mo(), s = yo(), i = vo();
|
|
2705
|
+
function a(e) {
|
|
2706
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
2707
|
+
for (this.clear(); ++t < r;) {
|
|
2708
|
+
var n = e[t];
|
|
2709
|
+
this.set(n[0], n[1]);
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = o, a.prototype.has = s, a.prototype.set = i, t.exports = a;
|
|
2713
|
+
})), bo = a(((e, t) => {
|
|
2714
|
+
var r = go();
|
|
2715
|
+
t.exports = function() {
|
|
2716
|
+
this.__data__ = new r(), this.size = 0;
|
|
2717
|
+
};
|
|
2718
|
+
})), xo = a(((e, t) => {
|
|
2719
|
+
t.exports = function(e) {
|
|
2720
|
+
var t = this.__data__, r = t.delete(e);
|
|
2721
|
+
return this.size = t.size, r;
|
|
2722
|
+
};
|
|
2723
|
+
})), Eo = a(((e, t) => {
|
|
2724
|
+
t.exports = function(e) {
|
|
2725
|
+
return this.__data__.get(e);
|
|
2726
|
+
};
|
|
2727
|
+
})), wo = a(((e, t) => {
|
|
2728
|
+
t.exports = function(e) {
|
|
2729
|
+
return this.__data__.has(e);
|
|
2730
|
+
};
|
|
2731
|
+
})), jo = a(((e, t) => {
|
|
2732
|
+
var r = ro(), n = co();
|
|
2733
|
+
t.exports = function(e) {
|
|
2734
|
+
if (!n(e)) return !1;
|
|
2735
|
+
var t = r(e);
|
|
2736
|
+
return "[object Function]" == t || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t;
|
|
2737
|
+
};
|
|
2738
|
+
})), To = a(((e, t) => {
|
|
2739
|
+
t.exports = Zn()["__core-js_shared__"];
|
|
2740
|
+
})), Oo = a(((e, t) => {
|
|
2741
|
+
var r, n = To(), o = (r = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "")) ? "Symbol(src)_1." + r : "";
|
|
2742
|
+
t.exports = function(e) {
|
|
2743
|
+
return !!o && o in e;
|
|
2744
|
+
};
|
|
2745
|
+
})), Ao = a(((e, t) => {
|
|
2746
|
+
var r = Function.prototype.toString;
|
|
2747
|
+
t.exports = function(e) {
|
|
2748
|
+
if (null != e) {
|
|
2749
|
+
try {
|
|
2750
|
+
return r.call(e);
|
|
2751
|
+
} catch (e) {}
|
|
2752
|
+
try {
|
|
2753
|
+
return e + "";
|
|
2754
|
+
} catch (e) {}
|
|
2755
|
+
}
|
|
2756
|
+
return "";
|
|
2757
|
+
};
|
|
2758
|
+
})), So = a(((e, t) => {
|
|
2759
|
+
var r = jo(), n = Oo(), o = co(), s = Ao(), i = /^\[object .+?Constructor\]$/, a = Function.prototype, c = Object.prototype, u = a.toString, l = c.hasOwnProperty, f = RegExp("^" + u.call(l).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
2760
|
+
t.exports = function(e) {
|
|
2761
|
+
return !(!o(e) || n(e)) && (r(e) ? f : i).test(s(e));
|
|
2762
|
+
};
|
|
2763
|
+
})), ko = a(((e, t) => {
|
|
2764
|
+
t.exports = function(e, t) {
|
|
2765
|
+
return null == e ? void 0 : e[t];
|
|
2766
|
+
};
|
|
2767
|
+
})), Po = a(((e, t) => {
|
|
2768
|
+
var r = So(), n = ko();
|
|
2769
|
+
t.exports = function(e, t) {
|
|
2770
|
+
var o = n(e, t);
|
|
2771
|
+
return r(o) ? o : void 0;
|
|
2772
|
+
};
|
|
2773
|
+
})), _o = a(((e, t) => {
|
|
2774
|
+
t.exports = Po()(Zn(), "Map");
|
|
2775
|
+
})), Mo = a(((e, t) => {
|
|
2776
|
+
t.exports = Po()(Object, "create");
|
|
2777
|
+
})), No = a(((e, t) => {
|
|
2778
|
+
var r = Mo();
|
|
2779
|
+
t.exports = function() {
|
|
2780
|
+
this.__data__ = r ? r(null) : {}, this.size = 0;
|
|
2781
|
+
};
|
|
2782
|
+
})), Co = a(((e, t) => {
|
|
2783
|
+
t.exports = function(e) {
|
|
2784
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
2785
|
+
return this.size -= t ? 1 : 0, t;
|
|
2786
|
+
};
|
|
2787
|
+
})), Ro = a(((e, t) => {
|
|
2788
|
+
var r = Mo(), n = Object.prototype.hasOwnProperty;
|
|
2789
|
+
t.exports = function(e) {
|
|
2790
|
+
var t = this.__data__;
|
|
2791
|
+
if (r) {
|
|
2792
|
+
var o = t[e];
|
|
2793
|
+
return "__lodash_hash_undefined__" === o ? void 0 : o;
|
|
2794
|
+
}
|
|
2795
|
+
return n.call(t, e) ? t[e] : void 0;
|
|
2796
|
+
};
|
|
2797
|
+
})), Lo = a(((e, t) => {
|
|
2798
|
+
var r = Mo(), n = Object.prototype.hasOwnProperty;
|
|
2799
|
+
t.exports = function(e) {
|
|
2800
|
+
var t = this.__data__;
|
|
2801
|
+
return r ? void 0 !== t[e] : n.call(t, e);
|
|
2802
|
+
};
|
|
2803
|
+
})), $o = a(((e, t) => {
|
|
2804
|
+
var r = Mo();
|
|
2805
|
+
t.exports = function(e, t) {
|
|
2806
|
+
var n = this.__data__;
|
|
2807
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = r && void 0 === t ? "__lodash_hash_undefined__" : t, this;
|
|
2808
|
+
};
|
|
2809
|
+
})), Io = a(((e, t) => {
|
|
2810
|
+
var r = No(), n = Co(), o = Ro(), s = Lo(), i = $o();
|
|
2811
|
+
function a(e) {
|
|
2812
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
2813
|
+
for (this.clear(); ++t < r;) {
|
|
2814
|
+
var n = e[t];
|
|
2815
|
+
this.set(n[0], n[1]);
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = o, a.prototype.has = s, a.prototype.set = i, t.exports = a;
|
|
2819
|
+
})), Vo = a(((e, t) => {
|
|
2820
|
+
var r = Io(), n = go(), o = _o();
|
|
2821
|
+
t.exports = function() {
|
|
2822
|
+
this.size = 0, this.__data__ = {
|
|
2823
|
+
hash: new r(),
|
|
2824
|
+
map: new (o || n)(),
|
|
2825
|
+
string: new r()
|
|
2826
|
+
};
|
|
2827
|
+
};
|
|
2828
|
+
})), Do = a(((e, t) => {
|
|
2829
|
+
t.exports = function(e) {
|
|
2830
|
+
var t = typeof e;
|
|
2831
|
+
return "string" == t || "number" == t || "symbol" == t || "boolean" == t ? "__proto__" !== e : null === e;
|
|
2832
|
+
};
|
|
2833
|
+
})), Fo = a(((e, t) => {
|
|
2834
|
+
var r = Do();
|
|
2835
|
+
t.exports = function(e, t) {
|
|
2836
|
+
var n = e.__data__;
|
|
2837
|
+
return r(t) ? n["string" == typeof t ? "string" : "hash"] : n.map;
|
|
2838
|
+
};
|
|
2839
|
+
})), Bo = a(((e, t) => {
|
|
2840
|
+
var r = Fo();
|
|
2841
|
+
t.exports = function(e) {
|
|
2842
|
+
var t = r(this, e).delete(e);
|
|
2843
|
+
return this.size -= t ? 1 : 0, t;
|
|
2844
|
+
};
|
|
2845
|
+
})), zo = a(((e, t) => {
|
|
2846
|
+
var r = Fo();
|
|
2847
|
+
t.exports = function(e) {
|
|
2848
|
+
return r(this, e).get(e);
|
|
2849
|
+
};
|
|
2850
|
+
})), Uo = a(((e, t) => {
|
|
2851
|
+
var r = Fo();
|
|
2852
|
+
t.exports = function(e) {
|
|
2853
|
+
return r(this, e).has(e);
|
|
2854
|
+
};
|
|
2855
|
+
})), Ho = a(((e, t) => {
|
|
2856
|
+
var r = Fo();
|
|
2857
|
+
t.exports = function(e, t) {
|
|
2858
|
+
var n = r(this, e), o = n.size;
|
|
2859
|
+
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
2860
|
+
};
|
|
2861
|
+
})), Go = a(((e, t) => {
|
|
2862
|
+
var r = Vo(), n = Bo(), o = zo(), s = Uo(), i = Ho();
|
|
2863
|
+
function a(e) {
|
|
2864
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
2865
|
+
for (this.clear(); ++t < r;) {
|
|
2866
|
+
var n = e[t];
|
|
2867
|
+
this.set(n[0], n[1]);
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = o, a.prototype.has = s, a.prototype.set = i, t.exports = a;
|
|
2871
|
+
})), qo = a(((e, t) => {
|
|
2872
|
+
var r = go(), n = _o(), o = Go();
|
|
2873
|
+
t.exports = function(e, t) {
|
|
2874
|
+
var s = this.__data__;
|
|
2875
|
+
if (s instanceof r) {
|
|
2876
|
+
var i = s.__data__;
|
|
2877
|
+
if (!n || i.length < 199) return i.push([e, t]), this.size = ++s.size, this;
|
|
2878
|
+
s = this.__data__ = new o(i);
|
|
2879
|
+
}
|
|
2880
|
+
return s.set(e, t), this.size = s.size, this;
|
|
2881
|
+
};
|
|
2882
|
+
})), Yo = a(((e, t) => {
|
|
2883
|
+
var r = go(), n = bo(), o = xo(), s = Eo(), i = wo(), a = qo();
|
|
2884
|
+
function c(e) {
|
|
2885
|
+
var t = this.__data__ = new r(e);
|
|
2886
|
+
this.size = t.size;
|
|
2887
|
+
}
|
|
2888
|
+
c.prototype.clear = n, c.prototype.delete = o, c.prototype.get = s, c.prototype.has = i, c.prototype.set = a, t.exports = c;
|
|
2889
|
+
})), Jo = a(((e, t) => {
|
|
2890
|
+
t.exports = function(e) {
|
|
2891
|
+
return this.__data__.set(e, "__lodash_hash_undefined__"), this;
|
|
2892
|
+
};
|
|
2893
|
+
})), Ko = a(((e, t) => {
|
|
2894
|
+
t.exports = function(e) {
|
|
2895
|
+
return this.__data__.has(e);
|
|
2896
|
+
};
|
|
2897
|
+
})), Wo = a(((e, t) => {
|
|
2898
|
+
var r = Go(), n = Jo(), o = Ko();
|
|
2899
|
+
function s(e) {
|
|
2900
|
+
var t = -1, n = null == e ? 0 : e.length;
|
|
2901
|
+
for (this.__data__ = new r(); ++t < n;) this.add(e[t]);
|
|
2902
|
+
}
|
|
2903
|
+
s.prototype.add = s.prototype.push = n, s.prototype.has = o, t.exports = s;
|
|
2904
|
+
})), Xo = a(((e, t) => {
|
|
2905
|
+
t.exports = function(e, t) {
|
|
2906
|
+
for (var r = -1, n = null == e ? 0 : e.length; ++r < n;) if (t(e[r], r, e)) return !0;
|
|
2907
|
+
return !1;
|
|
2908
|
+
};
|
|
2909
|
+
})), Zo = a(((e, t) => {
|
|
2910
|
+
t.exports = function(e, t) {
|
|
2911
|
+
return e.has(t);
|
|
2912
|
+
};
|
|
2913
|
+
})), Qo = a(((e, t) => {
|
|
2914
|
+
var r = Wo(), n = Xo(), o = Zo();
|
|
2915
|
+
t.exports = function(e, t, s, i, a, c) {
|
|
2916
|
+
var u = 1 & s, l = e.length, f = t.length;
|
|
2917
|
+
if (l != f && !(u && f > l)) return !1;
|
|
2918
|
+
var p = c.get(e), h = c.get(t);
|
|
2919
|
+
if (p && h) return p == t && h == e;
|
|
2920
|
+
var m = -1, y = !0, d = 2 & s ? new r() : void 0;
|
|
2921
|
+
for (c.set(e, t), c.set(t, e); ++m < l;) {
|
|
2922
|
+
var v = e[m], g = t[m];
|
|
2923
|
+
if (i) var b = u ? i(g, v, m, t, e, c) : i(v, g, m, e, t, c);
|
|
2924
|
+
if (void 0 !== b) {
|
|
2925
|
+
if (b) continue;
|
|
2926
|
+
y = !1;
|
|
2927
|
+
break;
|
|
2928
|
+
}
|
|
2929
|
+
if (d) {
|
|
2930
|
+
if (!n(t, (function(e, t) {
|
|
2931
|
+
if (!o(d, t) && (v === e || a(v, e, s, i, c))) return d.push(t);
|
|
2932
|
+
}))) {
|
|
2933
|
+
y = !1;
|
|
2934
|
+
break;
|
|
2935
|
+
}
|
|
2936
|
+
} else if (v !== g && !a(v, g, s, i, c)) {
|
|
2937
|
+
y = !1;
|
|
2938
|
+
break;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
return c.delete(e), c.delete(t), y;
|
|
2942
|
+
};
|
|
2943
|
+
})), es = a(((e, t) => {
|
|
2944
|
+
t.exports = Zn().Uint8Array;
|
|
2945
|
+
})), ts = a(((e, t) => {
|
|
2946
|
+
t.exports = function(e) {
|
|
2947
|
+
var t = -1, r = Array(e.size);
|
|
2948
|
+
return e.forEach((function(e, n) {
|
|
2949
|
+
r[++t] = [n, e];
|
|
2950
|
+
})), r;
|
|
2951
|
+
};
|
|
2952
|
+
})), rs = a(((e, t) => {
|
|
2953
|
+
t.exports = function(e) {
|
|
2954
|
+
var t = -1, r = Array(e.size);
|
|
2955
|
+
return e.forEach((function(e) {
|
|
2956
|
+
r[++t] = e;
|
|
2957
|
+
})), r;
|
|
2958
|
+
};
|
|
2959
|
+
})), ns = a(((e, t) => {
|
|
2960
|
+
var r = Qn(), n = es(), o = fo(), s = Qo(), i = ts(), a = rs(), c = r ? r.prototype : void 0, u = c ? c.valueOf : void 0;
|
|
2961
|
+
t.exports = function(e, t, r, c, l, f, p) {
|
|
2962
|
+
switch (r) {
|
|
2963
|
+
case "[object DataView]":
|
|
2964
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
2965
|
+
e = e.buffer, t = t.buffer;
|
|
2966
|
+
case "[object ArrayBuffer]": return !(e.byteLength != t.byteLength || !f(new n(e), new n(t)));
|
|
2967
|
+
case "[object Boolean]":
|
|
2968
|
+
case "[object Date]":
|
|
2969
|
+
case "[object Number]": return o(+e, +t);
|
|
2970
|
+
case "[object Error]": return e.name == t.name && e.message == t.message;
|
|
2971
|
+
case "[object RegExp]":
|
|
2972
|
+
case "[object String]": return e == t + "";
|
|
2973
|
+
case "[object Map]": var h = i;
|
|
2974
|
+
case "[object Set]":
|
|
2975
|
+
var m = 1 & c;
|
|
2976
|
+
if (h || (h = a), e.size != t.size && !m) return !1;
|
|
2977
|
+
var y = p.get(e);
|
|
2978
|
+
if (y) return y == t;
|
|
2979
|
+
c |= 2, p.set(e, t);
|
|
2980
|
+
var d = s(h(e), h(t), c, l, f, p);
|
|
2981
|
+
return p.delete(e), d;
|
|
2982
|
+
case "[object Symbol]": if (u) return u.call(e) == u.call(t);
|
|
2983
|
+
}
|
|
2984
|
+
return !1;
|
|
2985
|
+
};
|
|
2986
|
+
})), os = a(((e, t) => {
|
|
2987
|
+
t.exports = function(e, t) {
|
|
2988
|
+
for (var r = -1, n = t.length, o = e.length; ++r < n;) e[o + r] = t[r];
|
|
2989
|
+
return e;
|
|
2990
|
+
};
|
|
2991
|
+
})), ss = a(((e, t) => {
|
|
2992
|
+
var r = os(), n = no();
|
|
2993
|
+
t.exports = function(e, t, o) {
|
|
2994
|
+
var s = t(e);
|
|
2995
|
+
return n(e) ? s : r(s, o(e));
|
|
2996
|
+
};
|
|
2997
|
+
})), is = a(((e, t) => {
|
|
2998
|
+
t.exports = function(e, t) {
|
|
2999
|
+
for (var r = -1, n = null == e ? 0 : e.length, o = 0, s = []; ++r < n;) {
|
|
3000
|
+
var i = e[r];
|
|
3001
|
+
t(i, r, e) && (s[o++] = i);
|
|
3002
|
+
}
|
|
3003
|
+
return s;
|
|
3004
|
+
};
|
|
3005
|
+
})), as = a(((e, t) => {
|
|
3006
|
+
t.exports = function() {
|
|
3007
|
+
return [];
|
|
3008
|
+
};
|
|
3009
|
+
})), cs = a(((e, t) => {
|
|
3010
|
+
var r = is(), n = as(), o = Object.prototype.propertyIsEnumerable, s = Object.getOwnPropertySymbols;
|
|
3011
|
+
t.exports = s ? function(e) {
|
|
3012
|
+
return null == e ? [] : (e = Object(e), r(s(e), (function(t) {
|
|
3013
|
+
return o.call(e, t);
|
|
3014
|
+
})));
|
|
3015
|
+
} : n;
|
|
3016
|
+
})), us = a(((e, t) => {
|
|
3017
|
+
t.exports = function(e, t) {
|
|
3018
|
+
for (var r = -1, n = Array(e); ++r < e;) n[r] = t(r);
|
|
3019
|
+
return n;
|
|
3020
|
+
};
|
|
3021
|
+
})), ls = a(((e, t) => {
|
|
3022
|
+
var r = ro(), n = oo();
|
|
3023
|
+
t.exports = function(e) {
|
|
3024
|
+
return n(e) && "[object Arguments]" == r(e);
|
|
3025
|
+
};
|
|
3026
|
+
})), fs = a(((e, t) => {
|
|
3027
|
+
var r = ls(), n = oo(), o = Object.prototype, s = o.hasOwnProperty, i = o.propertyIsEnumerable;
|
|
3028
|
+
t.exports = r(function() {
|
|
3029
|
+
return arguments;
|
|
3030
|
+
}()) ? r : function(e) {
|
|
3031
|
+
return n(e) && s.call(e, "callee") && !i.call(e, "callee");
|
|
3032
|
+
};
|
|
3033
|
+
})), ps = a(((e, t) => {
|
|
3034
|
+
t.exports = function() {
|
|
3035
|
+
return !1;
|
|
3036
|
+
};
|
|
3037
|
+
})), hs = a(((e, t) => {
|
|
3038
|
+
var r = Zn(), n = ps(), o = "object" == typeof e && e && !e.nodeType && e, s = o && "object" == typeof t && t && !t.nodeType && t, i = s && s.exports === o ? r.Buffer : void 0;
|
|
3039
|
+
t.exports = (i ? i.isBuffer : void 0) || n;
|
|
3040
|
+
})), ms = a(((e, t) => {
|
|
3041
|
+
var r = /^(?:0|[1-9]\d*)$/;
|
|
3042
|
+
t.exports = function(e, t) {
|
|
3043
|
+
var n = typeof e;
|
|
3044
|
+
return !!(t = null == t ? 9007199254740991 : t) && ("number" == n || "symbol" != n && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
3045
|
+
};
|
|
3046
|
+
})), ys = a(((e, t) => {
|
|
3047
|
+
t.exports = function(e) {
|
|
3048
|
+
return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991;
|
|
3049
|
+
};
|
|
3050
|
+
})), ds = a(((e, t) => {
|
|
3051
|
+
var r = ro(), n = ys(), o = oo(), s = {};
|
|
3052
|
+
s["[object Float32Array]"] = s["[object Float64Array]"] = s["[object Int8Array]"] = s["[object Int16Array]"] = s["[object Int32Array]"] = s["[object Uint8Array]"] = s["[object Uint8ClampedArray]"] = s["[object Uint16Array]"] = s["[object Uint32Array]"] = !0, s["[object Arguments]"] = s["[object Array]"] = s["[object ArrayBuffer]"] = s["[object Boolean]"] = s["[object DataView]"] = s["[object Date]"] = s["[object Error]"] = s["[object Function]"] = s["[object Map]"] = s["[object Number]"] = s["[object Object]"] = s["[object RegExp]"] = s["[object Set]"] = s["[object String]"] = s["[object WeakMap]"] = !1, t.exports = function(e) {
|
|
3053
|
+
return o(e) && n(e.length) && !!s[r(e)];
|
|
3054
|
+
};
|
|
3055
|
+
})), vs = a(((e, t) => {
|
|
3056
|
+
t.exports = function(e) {
|
|
3057
|
+
return function(t) {
|
|
3058
|
+
return e(t);
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
})), gs = a(((e, t) => {
|
|
3062
|
+
var r = Xn(), n = "object" == typeof e && e && !e.nodeType && e, o = n && "object" == typeof t && t && !t.nodeType && t, s = o && o.exports === n && r.process;
|
|
3063
|
+
t.exports = function() {
|
|
3064
|
+
try {
|
|
3065
|
+
return o && o.require && o.require("util").types || s && s.binding && s.binding("util");
|
|
3066
|
+
} catch (e) {}
|
|
3067
|
+
}();
|
|
3068
|
+
})), bs = a(((e, t) => {
|
|
3069
|
+
var r = ds(), n = vs(), o = gs(), s = o && o.isTypedArray;
|
|
3070
|
+
t.exports = s ? n(s) : r;
|
|
3071
|
+
})), xs = a(((e, t) => {
|
|
3072
|
+
var r = us(), n = fs(), o = no(), s = hs(), i = ms(), a = bs(), c = Object.prototype.hasOwnProperty;
|
|
3073
|
+
t.exports = function(e, t) {
|
|
3074
|
+
var u = o(e), l = !u && n(e), f = !u && !l && s(e), p = !u && !l && !f && a(e), h = u || l || f || p, m = h ? r(e.length, String) : [], y = m.length;
|
|
3075
|
+
for (var d in e) !t && !c.call(e, d) || h && ("length" == d || f && ("offset" == d || "parent" == d) || p && ("buffer" == d || "byteLength" == d || "byteOffset" == d) || i(d, y)) || m.push(d);
|
|
3076
|
+
return m;
|
|
3077
|
+
};
|
|
3078
|
+
})), Es = a(((e, t) => {
|
|
3079
|
+
var r = Object.prototype;
|
|
3080
|
+
t.exports = function(e) {
|
|
3081
|
+
var t = e && e.constructor;
|
|
3082
|
+
return e === ("function" == typeof t && t.prototype || r);
|
|
3083
|
+
};
|
|
3084
|
+
})), ws = a(((e, t) => {
|
|
3085
|
+
t.exports = function(e, t) {
|
|
3086
|
+
return function(r) {
|
|
3087
|
+
return e(t(r));
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
})), js = a(((e, t) => {
|
|
3091
|
+
t.exports = ws()(Object.keys, Object);
|
|
3092
|
+
})), Ts = a(((e, t) => {
|
|
3093
|
+
var r = Es(), n = js(), o = Object.prototype.hasOwnProperty;
|
|
3094
|
+
t.exports = function(e) {
|
|
3095
|
+
if (!r(e)) return n(e);
|
|
3096
|
+
var t = [];
|
|
3097
|
+
for (var s in Object(e)) o.call(e, s) && "constructor" != s && t.push(s);
|
|
3098
|
+
return t;
|
|
3099
|
+
};
|
|
3100
|
+
})), Os = a(((e, t) => {
|
|
3101
|
+
var r = jo(), n = ys();
|
|
3102
|
+
t.exports = function(e) {
|
|
3103
|
+
return null != e && n(e.length) && !r(e);
|
|
3104
|
+
};
|
|
3105
|
+
})), As = a(((e, t) => {
|
|
3106
|
+
var r = xs(), n = Ts(), o = Os();
|
|
3107
|
+
t.exports = function(e) {
|
|
3108
|
+
return o(e) ? r(e) : n(e);
|
|
3109
|
+
};
|
|
3110
|
+
})), Ss = a(((e, t) => {
|
|
3111
|
+
var r = ss(), n = cs(), o = As();
|
|
3112
|
+
t.exports = function(e) {
|
|
3113
|
+
return r(e, o, n);
|
|
3114
|
+
};
|
|
3115
|
+
})), ks = a(((e, t) => {
|
|
3116
|
+
var r = Ss(), n = Object.prototype.hasOwnProperty;
|
|
3117
|
+
t.exports = function(e, t, o, s, i, a) {
|
|
3118
|
+
var c = 1 & o, u = r(e), l = u.length;
|
|
3119
|
+
if (l != r(t).length && !c) return !1;
|
|
3120
|
+
for (var f = l; f--;) {
|
|
3121
|
+
var p = u[f];
|
|
3122
|
+
if (!(c ? p in t : n.call(t, p))) return !1;
|
|
3123
|
+
}
|
|
3124
|
+
var h = a.get(e), m = a.get(t);
|
|
3125
|
+
if (h && m) return h == t && m == e;
|
|
3126
|
+
var y = !0;
|
|
3127
|
+
a.set(e, t), a.set(t, e);
|
|
3128
|
+
for (var d = c; ++f < l;) {
|
|
3129
|
+
var v = e[p = u[f]], g = t[p];
|
|
3130
|
+
if (s) var b = c ? s(g, v, p, t, e, a) : s(v, g, p, e, t, a);
|
|
3131
|
+
if (!(void 0 === b ? v === g || i(v, g, o, s, a) : b)) {
|
|
3132
|
+
y = !1;
|
|
3133
|
+
break;
|
|
3134
|
+
}
|
|
3135
|
+
d || (d = "constructor" == p);
|
|
3136
|
+
}
|
|
3137
|
+
if (y && !d) {
|
|
3138
|
+
var x = e.constructor, E = t.constructor;
|
|
3139
|
+
x == E || !("constructor" in e) || !("constructor" in t) || "function" == typeof x && x instanceof x && "function" == typeof E && E instanceof E || (y = !1);
|
|
3140
|
+
}
|
|
3141
|
+
return a.delete(e), a.delete(t), y;
|
|
3142
|
+
};
|
|
3143
|
+
})), Ps = a(((e, t) => {
|
|
3144
|
+
t.exports = Po()(Zn(), "DataView");
|
|
3145
|
+
})), _s = a(((e, t) => {
|
|
3146
|
+
t.exports = Po()(Zn(), "Promise");
|
|
3147
|
+
})), Ms = a(((e, t) => {
|
|
3148
|
+
t.exports = Po()(Zn(), "Set");
|
|
3149
|
+
})), Ns = a(((e, t) => {
|
|
3150
|
+
t.exports = Po()(Zn(), "WeakMap");
|
|
3151
|
+
})), Cs = a(((e, t) => {
|
|
3152
|
+
var r = Ps(), n = _o(), o = _s(), s = Ms(), i = Ns(), a = ro(), c = Ao(), u = "[object Map]", l = "[object Promise]", f = "[object Set]", p = "[object WeakMap]", h = "[object DataView]", m = c(r), y = c(n), d = c(o), v = c(s), g = c(i), b = a;
|
|
3153
|
+
(r && b(new r(/* @__PURE__ */ new ArrayBuffer(1))) != h || n && b(new n()) != u || o && b(o.resolve()) != l || s && b(new s()) != f || i && b(new i()) != p) && (b = function(e) {
|
|
3154
|
+
var t = a(e), r = "[object Object]" == t ? e.constructor : void 0, n = r ? c(r) : "";
|
|
3155
|
+
if (n) switch (n) {
|
|
3156
|
+
case m: return h;
|
|
3157
|
+
case y: return u;
|
|
3158
|
+
case d: return l;
|
|
3159
|
+
case v: return f;
|
|
3160
|
+
case g: return p;
|
|
3161
|
+
}
|
|
3162
|
+
return t;
|
|
3163
|
+
}), t.exports = b;
|
|
3164
|
+
})), Rs = a(((e, t) => {
|
|
3165
|
+
var r = Yo(), n = Qo(), o = ns(), s = ks(), i = Cs(), a = no(), c = hs(), u = bs(), l = "[object Arguments]", f = "[object Array]", p = "[object Object]", h = Object.prototype.hasOwnProperty;
|
|
3166
|
+
t.exports = function(e, t, m, y, d, v) {
|
|
3167
|
+
var g = a(e), b = a(t), x = g ? f : i(e), E = b ? f : i(t), w = (x = x == l ? p : x) == p, j = (E = E == l ? p : E) == p, T = x == E;
|
|
3168
|
+
if (T && c(e)) {
|
|
3169
|
+
if (!c(t)) return !1;
|
|
3170
|
+
g = !0, w = !1;
|
|
3171
|
+
}
|
|
3172
|
+
if (T && !w) return v || (v = new r()), g || u(e) ? n(e, t, m, y, d, v) : o(e, t, x, m, y, d, v);
|
|
3173
|
+
if (!(1 & m)) {
|
|
3174
|
+
var O = w && h.call(e, "__wrapped__"), A = j && h.call(t, "__wrapped__");
|
|
3175
|
+
if (O || A) {
|
|
3176
|
+
var S = O ? e.value() : e, k = A ? t.value() : t;
|
|
3177
|
+
return v || (v = new r()), d(S, k, m, y, v);
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
return !!T && (v || (v = new r()), s(e, t, m, y, d, v));
|
|
3181
|
+
};
|
|
3182
|
+
})), Ls = a(((e, t) => {
|
|
3183
|
+
var r = Rs(), n = oo();
|
|
3184
|
+
t.exports = function e(t, o, s, i, a) {
|
|
3185
|
+
return t === o || (null == t || null == o || !n(t) && !n(o) ? t != t && o != o : r(t, o, s, i, e, a));
|
|
3186
|
+
};
|
|
3187
|
+
})), $s = a(((e, t) => {
|
|
3188
|
+
var r = Ls();
|
|
3189
|
+
t.exports = function(e, t) {
|
|
3190
|
+
return r(e, t);
|
|
3191
|
+
};
|
|
3192
|
+
})), Is = a(((e, t) => {
|
|
3193
|
+
t.exports = class e {
|
|
3194
|
+
constructor(e, t) {
|
|
3195
|
+
this.key = e, this.value = t;
|
|
3196
|
+
}
|
|
3197
|
+
clone() {
|
|
3198
|
+
const t = new e();
|
|
3199
|
+
return this.key && (t.key = this.key.clone()), this.value && (t.value = this.value.clone()), t;
|
|
3200
|
+
}
|
|
3201
|
+
};
|
|
3202
|
+
})), Vs = a(((e, t) => {
|
|
3203
|
+
t.exports = function(e) {
|
|
3204
|
+
if ("function" != typeof e) throw new TypeError("Expected a function");
|
|
3205
|
+
return function() {
|
|
3206
|
+
var t = arguments;
|
|
3207
|
+
switch (t.length) {
|
|
3208
|
+
case 0: return !e.call(this);
|
|
3209
|
+
case 1: return !e.call(this, t[0]);
|
|
3210
|
+
case 2: return !e.call(this, t[0], t[1]);
|
|
3211
|
+
case 3: return !e.call(this, t[0], t[1], t[2]);
|
|
3212
|
+
}
|
|
3213
|
+
return !e.apply(this, t);
|
|
3214
|
+
};
|
|
3215
|
+
};
|
|
3216
|
+
})), Ds = a(((e, t) => {
|
|
3217
|
+
var r = Vs();
|
|
3218
|
+
function n(e) {
|
|
3219
|
+
return "string" == typeof e ? (t) => t.element === e : e.constructor && e.extend ? (t) => t instanceof e : e;
|
|
3220
|
+
}
|
|
3221
|
+
var o = class e {
|
|
3222
|
+
constructor(e) {
|
|
3223
|
+
this.elements = e || [];
|
|
3224
|
+
}
|
|
3225
|
+
toValue() {
|
|
3226
|
+
return this.elements.map(((e) => e.toValue()));
|
|
3227
|
+
}
|
|
3228
|
+
map(e, t) {
|
|
3229
|
+
return this.elements.map(e, t);
|
|
3230
|
+
}
|
|
3231
|
+
flatMap(e, t) {
|
|
3232
|
+
return this.map(e, t).reduce(((e, t) => e.concat(t)), []);
|
|
3233
|
+
}
|
|
3234
|
+
compactMap(e, t) {
|
|
3235
|
+
const r = [];
|
|
3236
|
+
return this.forEach(((n) => {
|
|
3237
|
+
const o = e.bind(t)(n);
|
|
3238
|
+
o && r.push(o);
|
|
3239
|
+
})), r;
|
|
3240
|
+
}
|
|
3241
|
+
filter(t, r) {
|
|
3242
|
+
return t = n(t), new e(this.elements.filter(t, r));
|
|
3243
|
+
}
|
|
3244
|
+
reject(t, o) {
|
|
3245
|
+
return t = n(t), new e(this.elements.filter(r(t), o));
|
|
3246
|
+
}
|
|
3247
|
+
find(e, t) {
|
|
3248
|
+
return e = n(e), this.elements.find(e, t);
|
|
3249
|
+
}
|
|
3250
|
+
forEach(e, t) {
|
|
3251
|
+
this.elements.forEach(e, t);
|
|
3252
|
+
}
|
|
3253
|
+
reduce(e, t) {
|
|
3254
|
+
return this.elements.reduce(e, t);
|
|
3255
|
+
}
|
|
3256
|
+
includes(e) {
|
|
3257
|
+
return this.elements.some(((t) => t.equals(e)));
|
|
3258
|
+
}
|
|
3259
|
+
shift() {
|
|
3260
|
+
return this.elements.shift();
|
|
3261
|
+
}
|
|
3262
|
+
unshift(e) {
|
|
3263
|
+
this.elements.unshift(this.refract(e));
|
|
3264
|
+
}
|
|
3265
|
+
push(e) {
|
|
3266
|
+
return this.elements.push(this.refract(e)), this;
|
|
3267
|
+
}
|
|
3268
|
+
add(e) {
|
|
3269
|
+
this.push(e);
|
|
3270
|
+
}
|
|
3271
|
+
get(e) {
|
|
3272
|
+
return this.elements[e];
|
|
3273
|
+
}
|
|
3274
|
+
getValue(e) {
|
|
3275
|
+
const t = this.elements[e];
|
|
3276
|
+
if (t) return t.toValue();
|
|
3277
|
+
}
|
|
3278
|
+
get length() {
|
|
3279
|
+
return this.elements.length;
|
|
3280
|
+
}
|
|
3281
|
+
get isEmpty() {
|
|
3282
|
+
return 0 === this.elements.length;
|
|
3283
|
+
}
|
|
3284
|
+
get first() {
|
|
3285
|
+
return this.elements[0];
|
|
3286
|
+
}
|
|
3287
|
+
};
|
|
3288
|
+
"undefined" != typeof Symbol && (o.prototype[Symbol.iterator] = function() {
|
|
3289
|
+
return this.elements[Symbol.iterator]();
|
|
3290
|
+
}), t.exports = o;
|
|
3291
|
+
})), Fs = a(((e, t) => {
|
|
3292
|
+
var r = $s(), n = Is(), o = Ds();
|
|
3293
|
+
t.exports = class e {
|
|
3294
|
+
constructor(e, t, r) {
|
|
3295
|
+
t && (this.meta = t), r && (this.attributes = r), this.content = e;
|
|
3296
|
+
}
|
|
3297
|
+
freeze() {
|
|
3298
|
+
Object.isFrozen(this) || (this._meta && (this.meta.parent = this, this.meta.freeze()), this._attributes && (this.attributes.parent = this, this.attributes.freeze()), this.children.forEach(((e) => {
|
|
3299
|
+
e.parent = this, e.freeze();
|
|
3300
|
+
}), this), this.content && Array.isArray(this.content) && Object.freeze(this.content), Object.freeze(this));
|
|
3301
|
+
}
|
|
3302
|
+
primitive() {}
|
|
3303
|
+
clone() {
|
|
3304
|
+
const e = new this.constructor();
|
|
3305
|
+
return e.element = this.element, this.meta.length && (e._meta = this.meta.clone()), this.attributes.length && (e._attributes = this.attributes.clone()), this.content ? this.content.clone ? e.content = this.content.clone() : Array.isArray(this.content) ? e.content = this.content.map(((e) => e.clone())) : e.content = this.content : e.content = this.content, e;
|
|
3306
|
+
}
|
|
3307
|
+
toValue() {
|
|
3308
|
+
return this.content instanceof e ? this.content.toValue() : this.content instanceof n ? {
|
|
3309
|
+
key: this.content.key.toValue(),
|
|
3310
|
+
value: this.content.value ? this.content.value.toValue() : void 0
|
|
3311
|
+
} : this.content && this.content.map ? this.content.map(((e) => e.toValue()), this) : this.content;
|
|
3312
|
+
}
|
|
3313
|
+
toRef(e) {
|
|
3314
|
+
if ("" === this.id.toValue()) throw Error("Cannot create reference to an element that does not contain an ID");
|
|
3315
|
+
const t = new this.RefElement(this.id.toValue());
|
|
3316
|
+
return e && (t.path = e), t;
|
|
3317
|
+
}
|
|
3318
|
+
findRecursive(...e) {
|
|
3319
|
+
if (arguments.length > 1 && !this.isFrozen) throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");
|
|
3320
|
+
const t = e.pop();
|
|
3321
|
+
let r = new o();
|
|
3322
|
+
const s = (e, t) => (e.push(t), e), i = (e, r) => {
|
|
3323
|
+
r.element === t && e.push(r);
|
|
3324
|
+
const o = r.findRecursive(t);
|
|
3325
|
+
return o && o.reduce(s, e), r.content instanceof n && (r.content.key && i(e, r.content.key), r.content.value && i(e, r.content.value)), e;
|
|
3326
|
+
};
|
|
3327
|
+
return this.content && (this.content.element && i(r, this.content), Array.isArray(this.content) && this.content.reduce(i, r)), e.isEmpty || (r = r.filter(((t) => {
|
|
3328
|
+
let r = t.parents.map(((e) => e.element));
|
|
3329
|
+
for (const t in e) {
|
|
3330
|
+
const n = e[t], o = r.indexOf(n);
|
|
3331
|
+
if (-1 === o) return !1;
|
|
3332
|
+
r = r.splice(0, o);
|
|
3333
|
+
}
|
|
3334
|
+
return !0;
|
|
3335
|
+
}))), r;
|
|
3336
|
+
}
|
|
3337
|
+
set(e) {
|
|
3338
|
+
return this.content = e, this;
|
|
3339
|
+
}
|
|
3340
|
+
equals(e) {
|
|
3341
|
+
return r(this.toValue(), e);
|
|
3342
|
+
}
|
|
3343
|
+
getMetaProperty(e, t) {
|
|
3344
|
+
if (!this.meta.hasKey(e)) {
|
|
3345
|
+
if (this.isFrozen) {
|
|
3346
|
+
const e = this.refract(t);
|
|
3347
|
+
return e.freeze(), e;
|
|
3348
|
+
}
|
|
3349
|
+
this.meta.set(e, t);
|
|
3350
|
+
}
|
|
3351
|
+
return this.meta.get(e);
|
|
3352
|
+
}
|
|
3353
|
+
setMetaProperty(e, t) {
|
|
3354
|
+
this.meta.set(e, t);
|
|
3355
|
+
}
|
|
3356
|
+
get element() {
|
|
3357
|
+
return this._storedElement || "element";
|
|
3358
|
+
}
|
|
3359
|
+
set element(e) {
|
|
3360
|
+
this._storedElement = e;
|
|
3361
|
+
}
|
|
3362
|
+
get content() {
|
|
3363
|
+
return this._content;
|
|
3364
|
+
}
|
|
3365
|
+
set content(t) {
|
|
3366
|
+
if (t instanceof e) this._content = t;
|
|
3367
|
+
else if (t instanceof o) this.content = t.elements;
|
|
3368
|
+
else if ("string" == typeof t || "number" == typeof t || "boolean" == typeof t || "null" === t || null == t) this._content = t;
|
|
3369
|
+
else if (t instanceof n) this._content = t;
|
|
3370
|
+
else if (Array.isArray(t)) this._content = t.map(this.refract);
|
|
3371
|
+
else {
|
|
3372
|
+
if ("object" != typeof t) throw new Error("Cannot set content to given value");
|
|
3373
|
+
this._content = Object.keys(t).map(((e) => new this.MemberElement(e, t[e])));
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
get meta() {
|
|
3377
|
+
if (!this._meta) {
|
|
3378
|
+
if (this.isFrozen) {
|
|
3379
|
+
const e = new this.ObjectElement();
|
|
3380
|
+
return e.freeze(), e;
|
|
3381
|
+
}
|
|
3382
|
+
this._meta = new this.ObjectElement();
|
|
3383
|
+
}
|
|
3384
|
+
return this._meta;
|
|
3385
|
+
}
|
|
3386
|
+
set meta(e) {
|
|
3387
|
+
e instanceof this.ObjectElement ? this._meta = e : this.meta.set(e || {});
|
|
3388
|
+
}
|
|
3389
|
+
get attributes() {
|
|
3390
|
+
if (!this._attributes) {
|
|
3391
|
+
if (this.isFrozen) {
|
|
3392
|
+
const e = new this.ObjectElement();
|
|
3393
|
+
return e.freeze(), e;
|
|
3394
|
+
}
|
|
3395
|
+
this._attributes = new this.ObjectElement();
|
|
3396
|
+
}
|
|
3397
|
+
return this._attributes;
|
|
3398
|
+
}
|
|
3399
|
+
set attributes(e) {
|
|
3400
|
+
e instanceof this.ObjectElement ? this._attributes = e : this.attributes.set(e || {});
|
|
3401
|
+
}
|
|
3402
|
+
get id() {
|
|
3403
|
+
return this.getMetaProperty("id", "");
|
|
3404
|
+
}
|
|
3405
|
+
set id(e) {
|
|
3406
|
+
this.setMetaProperty("id", e);
|
|
3407
|
+
}
|
|
3408
|
+
get classes() {
|
|
3409
|
+
return this.getMetaProperty("classes", []);
|
|
3410
|
+
}
|
|
3411
|
+
set classes(e) {
|
|
3412
|
+
this.setMetaProperty("classes", e);
|
|
3413
|
+
}
|
|
3414
|
+
get title() {
|
|
3415
|
+
return this.getMetaProperty("title", "");
|
|
3416
|
+
}
|
|
3417
|
+
set title(e) {
|
|
3418
|
+
this.setMetaProperty("title", e);
|
|
3419
|
+
}
|
|
3420
|
+
get description() {
|
|
3421
|
+
return this.getMetaProperty("description", "");
|
|
3422
|
+
}
|
|
3423
|
+
set description(e) {
|
|
3424
|
+
this.setMetaProperty("description", e);
|
|
3425
|
+
}
|
|
3426
|
+
get links() {
|
|
3427
|
+
return this.getMetaProperty("links", []);
|
|
3428
|
+
}
|
|
3429
|
+
set links(e) {
|
|
3430
|
+
this.setMetaProperty("links", e);
|
|
3431
|
+
}
|
|
3432
|
+
get isFrozen() {
|
|
3433
|
+
return Object.isFrozen(this);
|
|
3434
|
+
}
|
|
3435
|
+
get parents() {
|
|
3436
|
+
let { parent: e } = this;
|
|
3437
|
+
const t = new o();
|
|
3438
|
+
for (; e;) t.push(e), e = e.parent;
|
|
3439
|
+
return t;
|
|
3440
|
+
}
|
|
3441
|
+
get children() {
|
|
3442
|
+
if (Array.isArray(this.content)) return new o(this.content);
|
|
3443
|
+
if (this.content instanceof n) {
|
|
3444
|
+
const e = new o([this.content.key]);
|
|
3445
|
+
return this.content.value && e.push(this.content.value), e;
|
|
3446
|
+
}
|
|
3447
|
+
return this.content instanceof e ? new o([this.content]) : new o();
|
|
3448
|
+
}
|
|
3449
|
+
get recursiveChildren() {
|
|
3450
|
+
const e = new o();
|
|
3451
|
+
return this.children.forEach(((t) => {
|
|
3452
|
+
e.push(t), t.recursiveChildren.forEach(((t) => {
|
|
3453
|
+
e.push(t);
|
|
3454
|
+
}));
|
|
3455
|
+
})), e;
|
|
3456
|
+
}
|
|
3457
|
+
};
|
|
3458
|
+
})), Bs = a(((e, t) => {
|
|
3459
|
+
var r = Fs();
|
|
3460
|
+
t.exports = class extends r {
|
|
3461
|
+
constructor(e, t, r) {
|
|
3462
|
+
super(e || null, t, r), this.element = "null";
|
|
3463
|
+
}
|
|
3464
|
+
primitive() {
|
|
3465
|
+
return "null";
|
|
3466
|
+
}
|
|
3467
|
+
set() {
|
|
3468
|
+
return /* @__PURE__ */ new Error("Cannot set the value of null");
|
|
3469
|
+
}
|
|
3470
|
+
};
|
|
3471
|
+
})), zs = a(((e, t) => {
|
|
3472
|
+
var r = Fs();
|
|
3473
|
+
t.exports = class extends r {
|
|
3474
|
+
constructor(e, t, r) {
|
|
3475
|
+
super(e, t, r), this.element = "string";
|
|
3476
|
+
}
|
|
3477
|
+
primitive() {
|
|
3478
|
+
return "string";
|
|
3479
|
+
}
|
|
3480
|
+
get length() {
|
|
3481
|
+
return this.content.length;
|
|
3482
|
+
}
|
|
3483
|
+
};
|
|
3484
|
+
})), Us = a(((e, t) => {
|
|
3485
|
+
var r = Fs();
|
|
3486
|
+
t.exports = class extends r {
|
|
3487
|
+
constructor(e, t, r) {
|
|
3488
|
+
super(e, t, r), this.element = "number";
|
|
3489
|
+
}
|
|
3490
|
+
primitive() {
|
|
3491
|
+
return "number";
|
|
3492
|
+
}
|
|
3493
|
+
};
|
|
3494
|
+
})), Hs = a(((e, t) => {
|
|
3495
|
+
var r = Fs();
|
|
3496
|
+
t.exports = class extends r {
|
|
3497
|
+
constructor(e, t, r) {
|
|
3498
|
+
super(e, t, r), this.element = "boolean";
|
|
3499
|
+
}
|
|
3500
|
+
primitive() {
|
|
3501
|
+
return "boolean";
|
|
3502
|
+
}
|
|
3503
|
+
};
|
|
3504
|
+
})), Gs = a(((e, t) => {
|
|
3505
|
+
var r = Vs(), n = Fs(), o = Ds(), s = class extends n {
|
|
3506
|
+
constructor(e, t, r) {
|
|
3507
|
+
super(e || [], t, r), this.element = "array";
|
|
3508
|
+
}
|
|
3509
|
+
primitive() {
|
|
3510
|
+
return "array";
|
|
3511
|
+
}
|
|
3512
|
+
get(e) {
|
|
3513
|
+
return this.content[e];
|
|
3514
|
+
}
|
|
3515
|
+
getValue(e) {
|
|
3516
|
+
const t = this.get(e);
|
|
3517
|
+
if (t) return t.toValue();
|
|
3518
|
+
}
|
|
3519
|
+
getIndex(e) {
|
|
3520
|
+
return this.content[e];
|
|
3521
|
+
}
|
|
3522
|
+
set(e, t) {
|
|
3523
|
+
return this.content[e] = this.refract(t), this;
|
|
3524
|
+
}
|
|
3525
|
+
remove(e) {
|
|
3526
|
+
const t = this.content.splice(e, 1);
|
|
3527
|
+
return t.length ? t[0] : null;
|
|
3528
|
+
}
|
|
3529
|
+
map(e, t) {
|
|
3530
|
+
return this.content.map(e, t);
|
|
3531
|
+
}
|
|
3532
|
+
flatMap(e, t) {
|
|
3533
|
+
return this.map(e, t).reduce(((e, t) => e.concat(t)), []);
|
|
3534
|
+
}
|
|
3535
|
+
compactMap(e, t) {
|
|
3536
|
+
const r = [];
|
|
3537
|
+
return this.forEach(((n) => {
|
|
3538
|
+
const o = e.bind(t)(n);
|
|
3539
|
+
o && r.push(o);
|
|
3540
|
+
})), r;
|
|
3541
|
+
}
|
|
3542
|
+
filter(e, t) {
|
|
3543
|
+
return new o(this.content.filter(e, t));
|
|
3544
|
+
}
|
|
3545
|
+
reject(e, t) {
|
|
3546
|
+
return this.filter(r(e), t);
|
|
3547
|
+
}
|
|
3548
|
+
reduce(e, t) {
|
|
3549
|
+
let r, n;
|
|
3550
|
+
void 0 !== t ? (r = 0, n = this.refract(t)) : (r = 1, n = "object" === this.primitive() ? this.first.value : this.first);
|
|
3551
|
+
for (let t = r; t < this.length; t += 1) {
|
|
3552
|
+
const r = this.content[t];
|
|
3553
|
+
n = "object" === this.primitive() ? this.refract(e(n, r.value, r.key, r, this)) : this.refract(e(n, r, t, this));
|
|
3554
|
+
}
|
|
3555
|
+
return n;
|
|
3556
|
+
}
|
|
3557
|
+
forEach(e, t) {
|
|
3558
|
+
this.content.forEach(((r, n) => {
|
|
3559
|
+
e.bind(t)(r, this.refract(n));
|
|
3560
|
+
}));
|
|
3561
|
+
}
|
|
3562
|
+
shift() {
|
|
3563
|
+
return this.content.shift();
|
|
3564
|
+
}
|
|
3565
|
+
unshift(e) {
|
|
3566
|
+
this.content.unshift(this.refract(e));
|
|
3567
|
+
}
|
|
3568
|
+
push(e) {
|
|
3569
|
+
return this.content.push(this.refract(e)), this;
|
|
3570
|
+
}
|
|
3571
|
+
add(e) {
|
|
3572
|
+
this.push(e);
|
|
3573
|
+
}
|
|
3574
|
+
findElements(e, t) {
|
|
3575
|
+
const r = t || {}, n = !!r.recursive, o = void 0 === r.results ? [] : r.results;
|
|
3576
|
+
return this.forEach(((t, r, s) => {
|
|
3577
|
+
n && void 0 !== t.findElements && t.findElements(e, {
|
|
3578
|
+
results: o,
|
|
3579
|
+
recursive: n
|
|
3580
|
+
}), e(t, r, s) && o.push(t);
|
|
3581
|
+
})), o;
|
|
3582
|
+
}
|
|
3583
|
+
find(e) {
|
|
3584
|
+
return new o(this.findElements(e, { recursive: !0 }));
|
|
3585
|
+
}
|
|
3586
|
+
findByElement(e) {
|
|
3587
|
+
return this.find(((t) => t.element === e));
|
|
3588
|
+
}
|
|
3589
|
+
findByClass(e) {
|
|
3590
|
+
return this.find(((t) => t.classes.includes(e)));
|
|
3591
|
+
}
|
|
3592
|
+
getById(e) {
|
|
3593
|
+
return this.find(((t) => t.id.toValue() === e)).first;
|
|
3594
|
+
}
|
|
3595
|
+
includes(e) {
|
|
3596
|
+
return this.content.some(((t) => t.equals(e)));
|
|
3597
|
+
}
|
|
3598
|
+
contains(e) {
|
|
3599
|
+
return this.includes(e);
|
|
3600
|
+
}
|
|
3601
|
+
empty() {
|
|
3602
|
+
return new this.constructor([]);
|
|
3603
|
+
}
|
|
3604
|
+
"fantasy-land/empty"() {
|
|
3605
|
+
return this.empty();
|
|
3606
|
+
}
|
|
3607
|
+
concat(e) {
|
|
3608
|
+
return new this.constructor(this.content.concat(e.content));
|
|
3609
|
+
}
|
|
3610
|
+
"fantasy-land/concat"(e) {
|
|
3611
|
+
return this.concat(e);
|
|
3612
|
+
}
|
|
3613
|
+
"fantasy-land/map"(e) {
|
|
3614
|
+
return new this.constructor(this.map(e));
|
|
3615
|
+
}
|
|
3616
|
+
"fantasy-land/chain"(e) {
|
|
3617
|
+
return this.map(((t) => e(t)), this).reduce(((e, t) => e.concat(t)), this.empty());
|
|
3618
|
+
}
|
|
3619
|
+
"fantasy-land/filter"(e) {
|
|
3620
|
+
return new this.constructor(this.content.filter(e));
|
|
3621
|
+
}
|
|
3622
|
+
"fantasy-land/reduce"(e, t) {
|
|
3623
|
+
return this.content.reduce(e, t);
|
|
3624
|
+
}
|
|
3625
|
+
get length() {
|
|
3626
|
+
return this.content.length;
|
|
3627
|
+
}
|
|
3628
|
+
get isEmpty() {
|
|
3629
|
+
return 0 === this.content.length;
|
|
3630
|
+
}
|
|
3631
|
+
get first() {
|
|
3632
|
+
return this.getIndex(0);
|
|
3633
|
+
}
|
|
3634
|
+
get second() {
|
|
3635
|
+
return this.getIndex(1);
|
|
3636
|
+
}
|
|
3637
|
+
get last() {
|
|
3638
|
+
return this.getIndex(this.length - 1);
|
|
3639
|
+
}
|
|
3640
|
+
};
|
|
3641
|
+
s.empty = function() {
|
|
3642
|
+
return new this();
|
|
3643
|
+
}, s["fantasy-land/empty"] = s.empty, "undefined" != typeof Symbol && (s.prototype[Symbol.iterator] = function() {
|
|
3644
|
+
return this.content[Symbol.iterator]();
|
|
3645
|
+
}), t.exports = s;
|
|
3646
|
+
})), qs = a(((e, t) => {
|
|
3647
|
+
var r = Is(), n = Fs();
|
|
3648
|
+
t.exports = class extends n {
|
|
3649
|
+
constructor(e, t, n, o) {
|
|
3650
|
+
super(new r(), n, o), this.element = "member", this.key = e, this.value = t;
|
|
3651
|
+
}
|
|
3652
|
+
get key() {
|
|
3653
|
+
return this.content.key;
|
|
3654
|
+
}
|
|
3655
|
+
set key(e) {
|
|
3656
|
+
this.content.key = this.refract(e);
|
|
3657
|
+
}
|
|
3658
|
+
get value() {
|
|
3659
|
+
return this.content.value;
|
|
3660
|
+
}
|
|
3661
|
+
set value(e) {
|
|
3662
|
+
this.content.value = this.refract(e);
|
|
3663
|
+
}
|
|
3664
|
+
};
|
|
3665
|
+
})), Ys = a(((e, t) => {
|
|
3666
|
+
var r = Vs(), n = Ds();
|
|
3667
|
+
t.exports = class e extends n {
|
|
3668
|
+
map(e, t) {
|
|
3669
|
+
return this.elements.map(((r) => e.bind(t)(r.value, r.key, r)));
|
|
3670
|
+
}
|
|
3671
|
+
filter(t, r) {
|
|
3672
|
+
return new e(this.elements.filter(((e) => t.bind(r)(e.value, e.key, e))));
|
|
3673
|
+
}
|
|
3674
|
+
reject(e, t) {
|
|
3675
|
+
return this.filter(r(e.bind(t)));
|
|
3676
|
+
}
|
|
3677
|
+
forEach(e, t) {
|
|
3678
|
+
return this.elements.forEach(((r, n) => {
|
|
3679
|
+
e.bind(t)(r.value, r.key, r, n);
|
|
3680
|
+
}));
|
|
3681
|
+
}
|
|
3682
|
+
keys() {
|
|
3683
|
+
return this.map(((e, t) => t.toValue()));
|
|
3684
|
+
}
|
|
3685
|
+
values() {
|
|
3686
|
+
return this.map(((e) => e.toValue()));
|
|
3687
|
+
}
|
|
3688
|
+
};
|
|
3689
|
+
})), Js = a(((e, t) => {
|
|
3690
|
+
var r = Vs(), n = co(), o = Gs(), s = qs(), i = Ys();
|
|
3691
|
+
t.exports = class extends o {
|
|
3692
|
+
constructor(e, t, r) {
|
|
3693
|
+
super(e || [], t, r), this.element = "object";
|
|
3694
|
+
}
|
|
3695
|
+
primitive() {
|
|
3696
|
+
return "object";
|
|
3697
|
+
}
|
|
3698
|
+
toValue() {
|
|
3699
|
+
return this.content.reduce(((e, t) => (e[t.key.toValue()] = t.value ? t.value.toValue() : void 0, e)), {});
|
|
3700
|
+
}
|
|
3701
|
+
get(e) {
|
|
3702
|
+
const t = this.getMember(e);
|
|
3703
|
+
if (t) return t.value;
|
|
3704
|
+
}
|
|
3705
|
+
getMember(e) {
|
|
3706
|
+
if (void 0 !== e) return this.content.find(((t) => t.key.toValue() === e));
|
|
3707
|
+
}
|
|
3708
|
+
remove(e) {
|
|
3709
|
+
let t = null;
|
|
3710
|
+
return this.content = this.content.filter(((r) => r.key.toValue() !== e || (t = r, !1))), t;
|
|
3711
|
+
}
|
|
3712
|
+
getKey(e) {
|
|
3713
|
+
const t = this.getMember(e);
|
|
3714
|
+
if (t) return t.key;
|
|
3715
|
+
}
|
|
3716
|
+
set(e, t) {
|
|
3717
|
+
if (n(e)) return Object.keys(e).forEach(((t) => {
|
|
3718
|
+
this.set(t, e[t]);
|
|
3719
|
+
})), this;
|
|
3720
|
+
const r = e, o = this.getMember(r);
|
|
3721
|
+
return o ? o.value = t : this.content.push(new s(r, t)), this;
|
|
3722
|
+
}
|
|
3723
|
+
keys() {
|
|
3724
|
+
return this.content.map(((e) => e.key.toValue()));
|
|
3725
|
+
}
|
|
3726
|
+
values() {
|
|
3727
|
+
return this.content.map(((e) => e.value.toValue()));
|
|
3728
|
+
}
|
|
3729
|
+
hasKey(e) {
|
|
3730
|
+
return this.content.some(((t) => t.key.equals(e)));
|
|
3731
|
+
}
|
|
3732
|
+
items() {
|
|
3733
|
+
return this.content.map(((e) => [e.key.toValue(), e.value.toValue()]));
|
|
3734
|
+
}
|
|
3735
|
+
map(e, t) {
|
|
3736
|
+
return this.content.map(((r) => e.bind(t)(r.value, r.key, r)));
|
|
3737
|
+
}
|
|
3738
|
+
compactMap(e, t) {
|
|
3739
|
+
const r = [];
|
|
3740
|
+
return this.forEach(((n, o, s) => {
|
|
3741
|
+
const i = e.bind(t)(n, o, s);
|
|
3742
|
+
i && r.push(i);
|
|
3743
|
+
})), r;
|
|
3744
|
+
}
|
|
3745
|
+
filter(e, t) {
|
|
3746
|
+
return new i(this.content).filter(e, t);
|
|
3747
|
+
}
|
|
3748
|
+
reject(e, t) {
|
|
3749
|
+
return this.filter(r(e), t);
|
|
3750
|
+
}
|
|
3751
|
+
forEach(e, t) {
|
|
3752
|
+
return this.content.forEach(((r) => e.bind(t)(r.value, r.key, r)));
|
|
3753
|
+
}
|
|
3754
|
+
};
|
|
3755
|
+
})), Ks = a(((e, t) => {
|
|
3756
|
+
var r = Fs();
|
|
3757
|
+
t.exports = class extends r {
|
|
3758
|
+
constructor(e, t, r) {
|
|
3759
|
+
super(e || [], t, r), this.element = "link";
|
|
3760
|
+
}
|
|
3761
|
+
get relation() {
|
|
3762
|
+
return this.attributes.get("relation");
|
|
3763
|
+
}
|
|
3764
|
+
set relation(e) {
|
|
3765
|
+
this.attributes.set("relation", e);
|
|
3766
|
+
}
|
|
3767
|
+
get href() {
|
|
3768
|
+
return this.attributes.get("href");
|
|
3769
|
+
}
|
|
3770
|
+
set href(e) {
|
|
3771
|
+
this.attributes.set("href", e);
|
|
3772
|
+
}
|
|
3773
|
+
};
|
|
3774
|
+
})), Ws = a(((e, t) => {
|
|
3775
|
+
var r = Fs();
|
|
3776
|
+
t.exports = class extends r {
|
|
3777
|
+
constructor(e, t, r) {
|
|
3778
|
+
super(e || [], t, r), this.element = "ref", this.path || (this.path = "element");
|
|
3779
|
+
}
|
|
3780
|
+
get path() {
|
|
3781
|
+
return this.attributes.get("path");
|
|
3782
|
+
}
|
|
3783
|
+
set path(e) {
|
|
3784
|
+
this.attributes.set("path", e);
|
|
3785
|
+
}
|
|
3786
|
+
};
|
|
3787
|
+
})), Xs = a(((e, t) => {
|
|
3788
|
+
var r = Fs(), n = Bs(), o = zs(), s = Us(), i = Hs(), a = Gs(), c = qs(), u = Js(), l = Ks(), f = Ws(), p = Ds(), h = Ys(), m = Is();
|
|
3789
|
+
function y(e) {
|
|
3790
|
+
return e instanceof r ? e : "string" == typeof e ? new o(e) : "number" == typeof e ? new s(e) : "boolean" == typeof e ? new i(e) : null === e ? new n() : Array.isArray(e) ? new a(e.map(y)) : "object" == typeof e ? new u(e) : e;
|
|
3791
|
+
}
|
|
3792
|
+
r.prototype.ObjectElement = u, r.prototype.RefElement = f, r.prototype.MemberElement = c, r.prototype.refract = y, p.prototype.refract = y, t.exports = {
|
|
3793
|
+
Element: r,
|
|
3794
|
+
NullElement: n,
|
|
3795
|
+
StringElement: o,
|
|
3796
|
+
NumberElement: s,
|
|
3797
|
+
BooleanElement: i,
|
|
3798
|
+
ArrayElement: a,
|
|
3799
|
+
MemberElement: c,
|
|
3800
|
+
ObjectElement: u,
|
|
3801
|
+
LinkElement: l,
|
|
3802
|
+
RefElement: f,
|
|
3803
|
+
refract: y,
|
|
3804
|
+
ArraySlice: p,
|
|
3805
|
+
ObjectSlice: h,
|
|
3806
|
+
KeyValuePair: m
|
|
3807
|
+
};
|
|
3808
|
+
})), Zs = a(((e, t) => {
|
|
3809
|
+
var r = Wn(), n = so(), o = io(), s = ao(), i = co(), a = uo(), c = Xs(), u = class {
|
|
3810
|
+
constructor(e) {
|
|
3811
|
+
this.elementMap = {}, this.elementDetection = [], this.Element = c.Element, this.KeyValuePair = c.KeyValuePair, e && e.noDefault || this.useDefault(), this._attributeElementKeys = [], this._attributeElementArrayKeys = [];
|
|
3812
|
+
}
|
|
3813
|
+
use(e) {
|
|
3814
|
+
return e.namespace && e.namespace({ base: this }), e.load && e.load({ base: this }), this;
|
|
3815
|
+
}
|
|
3816
|
+
useDefault() {
|
|
3817
|
+
return this.register("null", c.NullElement).register("string", c.StringElement).register("number", c.NumberElement).register("boolean", c.BooleanElement).register("array", c.ArrayElement).register("object", c.ObjectElement).register("member", c.MemberElement).register("ref", c.RefElement).register("link", c.LinkElement), this.detect(r, c.NullElement, !1).detect(n, c.StringElement, !1).detect(o, c.NumberElement, !1).detect(s, c.BooleanElement, !1).detect(Array.isArray, c.ArrayElement, !1).detect(i, c.ObjectElement, !1), this;
|
|
3818
|
+
}
|
|
3819
|
+
register(e, t) {
|
|
3820
|
+
return this._elements = void 0, this.elementMap[e] = t, this;
|
|
3821
|
+
}
|
|
3822
|
+
unregister(e) {
|
|
3823
|
+
return this._elements = void 0, delete this.elementMap[e], this;
|
|
3824
|
+
}
|
|
3825
|
+
detect(e, t, r) {
|
|
3826
|
+
return void 0 === r || r ? this.elementDetection.unshift([e, t]) : this.elementDetection.push([e, t]), this;
|
|
3827
|
+
}
|
|
3828
|
+
toElement(e) {
|
|
3829
|
+
if (e instanceof this.Element) return e;
|
|
3830
|
+
let t;
|
|
3831
|
+
for (let r = 0; r < this.elementDetection.length; r += 1) {
|
|
3832
|
+
const n = this.elementDetection[r][0], o = this.elementDetection[r][1];
|
|
3833
|
+
if (n(e)) {
|
|
3834
|
+
t = new o(e);
|
|
3835
|
+
break;
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
return t;
|
|
3839
|
+
}
|
|
3840
|
+
getElementClass(e) {
|
|
3841
|
+
const t = this.elementMap[e];
|
|
3842
|
+
return void 0 === t ? this.Element : t;
|
|
3843
|
+
}
|
|
3844
|
+
fromRefract(e) {
|
|
3845
|
+
return this.serialiser.deserialise(e);
|
|
3846
|
+
}
|
|
3847
|
+
toRefract(e) {
|
|
3848
|
+
return this.serialiser.serialise(e);
|
|
3849
|
+
}
|
|
3850
|
+
get elements() {
|
|
3851
|
+
return void 0 === this._elements && (this._elements = { Element: this.Element }, Object.keys(this.elementMap).forEach(((e) => {
|
|
3852
|
+
const t = e[0].toUpperCase() + e.substr(1);
|
|
3853
|
+
this._elements[t] = this.elementMap[e];
|
|
3854
|
+
}))), this._elements;
|
|
3855
|
+
}
|
|
3856
|
+
get serialiser() {
|
|
3857
|
+
return new a(this);
|
|
3858
|
+
}
|
|
3859
|
+
};
|
|
3860
|
+
a.prototype.Namespace = u, t.exports = u;
|
|
3861
|
+
})), Qs = a(((e, t) => {
|
|
3862
|
+
var r = uo();
|
|
3863
|
+
t.exports = class extends r {
|
|
3864
|
+
serialise(e) {
|
|
3865
|
+
if (!(e instanceof this.namespace.elements.Element)) throw new TypeError(`Given element \`${e}\` is not an Element instance`);
|
|
3866
|
+
let t;
|
|
3867
|
+
e._attributes && e.attributes.get("variable") && (t = e.attributes.get("variable"));
|
|
3868
|
+
const r = { element: e.element };
|
|
3869
|
+
e._meta && e._meta.length > 0 && (r.meta = this.serialiseObject(e.meta));
|
|
3870
|
+
const n = "enum" === e.element || -1 !== e.attributes.keys().indexOf("enumerations");
|
|
3871
|
+
if (n) {
|
|
3872
|
+
const t = this.enumSerialiseAttributes(e);
|
|
3873
|
+
t && (r.attributes = t);
|
|
3874
|
+
} else if (e._attributes && e._attributes.length > 0) {
|
|
3875
|
+
let { attributes: n } = e;
|
|
3876
|
+
n.get("metadata") && (n = n.clone(), n.set("meta", n.get("metadata")), n.remove("metadata")), "member" === e.element && t && (n = n.clone(), n.remove("variable")), n.length > 0 && (r.attributes = this.serialiseObject(n));
|
|
3877
|
+
}
|
|
3878
|
+
if (n) r.content = this.enumSerialiseContent(e, r);
|
|
3879
|
+
else if (this[`${e.element}SerialiseContent`]) r.content = this[`${e.element}SerialiseContent`](e, r);
|
|
3880
|
+
else if (void 0 !== e.content) {
|
|
3881
|
+
let n;
|
|
3882
|
+
t && e.content.key ? (n = e.content.clone(), n.key.attributes.set("variable", t), n = this.serialiseContent(n)) : n = this.serialiseContent(e.content), this.shouldSerialiseContent(e, n) && (r.content = n);
|
|
3883
|
+
} else this.shouldSerialiseContent(e, e.content) && e instanceof this.namespace.elements.Array && (r.content = []);
|
|
3884
|
+
return r;
|
|
3885
|
+
}
|
|
3886
|
+
shouldSerialiseContent(e, t) {
|
|
3887
|
+
return "parseResult" === e.element || "httpRequest" === e.element || "httpResponse" === e.element || "category" === e.element || "link" === e.element || void 0 !== t && (!Array.isArray(t) || 0 !== t.length);
|
|
3888
|
+
}
|
|
3889
|
+
refSerialiseContent(e, t) {
|
|
3890
|
+
return delete t.attributes, {
|
|
3891
|
+
href: e.toValue(),
|
|
3892
|
+
path: e.path.toValue()
|
|
3893
|
+
};
|
|
3894
|
+
}
|
|
3895
|
+
sourceMapSerialiseContent(e) {
|
|
3896
|
+
return e.toValue();
|
|
3897
|
+
}
|
|
3898
|
+
dataStructureSerialiseContent(e) {
|
|
3899
|
+
return [this.serialiseContent(e.content)];
|
|
3900
|
+
}
|
|
3901
|
+
enumSerialiseAttributes(e) {
|
|
3902
|
+
const t = e.attributes.clone(), r = t.remove("enumerations") || new this.namespace.elements.Array([]), n = t.get("default");
|
|
3903
|
+
let o = t.get("samples") || new this.namespace.elements.Array([]);
|
|
3904
|
+
if (n && n.content && (n.content.attributes && n.content.attributes.remove("typeAttributes"), t.set("default", new this.namespace.elements.Array([n.content]))), o.forEach(((e) => {
|
|
3905
|
+
e.content && e.content.element && e.content.attributes.remove("typeAttributes");
|
|
3906
|
+
})), e.content && 0 !== r.length && o.unshift(e.content), o = o.map(((e) => e instanceof this.namespace.elements.Array ? [e] : new this.namespace.elements.Array([e.content]))), o.length && t.set("samples", o), t.length > 0) return this.serialiseObject(t);
|
|
3907
|
+
}
|
|
3908
|
+
enumSerialiseContent(e) {
|
|
3909
|
+
if (e._attributes) {
|
|
3910
|
+
const t = e.attributes.get("enumerations");
|
|
3911
|
+
if (t && t.length > 0) return t.content.map(((e) => {
|
|
3912
|
+
const t = e.clone();
|
|
3913
|
+
return t.attributes.remove("typeAttributes"), this.serialise(t);
|
|
3914
|
+
}));
|
|
3915
|
+
}
|
|
3916
|
+
if (e.content) {
|
|
3917
|
+
const t = e.content.clone();
|
|
3918
|
+
return t.attributes.remove("typeAttributes"), [this.serialise(t)];
|
|
3919
|
+
}
|
|
3920
|
+
return [];
|
|
3921
|
+
}
|
|
3922
|
+
deserialise(e) {
|
|
3923
|
+
if ("string" == typeof e) return new this.namespace.elements.String(e);
|
|
3924
|
+
if ("number" == typeof e) return new this.namespace.elements.Number(e);
|
|
3925
|
+
if ("boolean" == typeof e) return new this.namespace.elements.Boolean(e);
|
|
3926
|
+
if (null === e) return new this.namespace.elements.Null();
|
|
3927
|
+
if (Array.isArray(e)) return new this.namespace.elements.Array(e.map(this.deserialise, this));
|
|
3928
|
+
const t = this.namespace.getElementClass(e.element), r = new t();
|
|
3929
|
+
r.element !== e.element && (r.element = e.element), e.meta && this.deserialiseObject(e.meta, r.meta), e.attributes && this.deserialiseObject(e.attributes, r.attributes);
|
|
3930
|
+
const n = this.deserialiseContent(e.content);
|
|
3931
|
+
if (void 0 === n && null !== r.content || (r.content = n), "enum" === r.element) {
|
|
3932
|
+
r.content && r.attributes.set("enumerations", r.content);
|
|
3933
|
+
let e = r.attributes.get("samples");
|
|
3934
|
+
if (r.attributes.remove("samples"), e) {
|
|
3935
|
+
const n = e;
|
|
3936
|
+
e = new this.namespace.elements.Array(), n.forEach(((n) => {
|
|
3937
|
+
n.forEach(((n) => {
|
|
3938
|
+
const o = new t(n);
|
|
3939
|
+
o.element = r.element, e.push(o);
|
|
3940
|
+
}));
|
|
3941
|
+
}));
|
|
3942
|
+
const o = e.shift();
|
|
3943
|
+
r.content = o ? o.content : void 0, r.attributes.set("samples", e);
|
|
3944
|
+
} else r.content = void 0;
|
|
3945
|
+
let n = r.attributes.get("default");
|
|
3946
|
+
if (n && n.length > 0) {
|
|
3947
|
+
n = n.get(0);
|
|
3948
|
+
const e = new t(n);
|
|
3949
|
+
e.element = r.element, r.attributes.set("default", e);
|
|
3950
|
+
}
|
|
3951
|
+
} else if ("dataStructure" === r.element && Array.isArray(r.content)) [r.content] = r.content;
|
|
3952
|
+
else if ("category" === r.element) {
|
|
3953
|
+
const e = r.attributes.get("meta");
|
|
3954
|
+
e && (r.attributes.set("metadata", e), r.attributes.remove("meta"));
|
|
3955
|
+
} else "member" === r.element && r.key && r.key._attributes && r.key._attributes.getValue("variable") && (r.attributes.set("variable", r.key.attributes.get("variable")), r.key.attributes.remove("variable"));
|
|
3956
|
+
return r;
|
|
3957
|
+
}
|
|
3958
|
+
serialiseContent(e) {
|
|
3959
|
+
if (e instanceof this.namespace.elements.Element) return this.serialise(e);
|
|
3960
|
+
if (e instanceof this.namespace.KeyValuePair) {
|
|
3961
|
+
const t = { key: this.serialise(e.key) };
|
|
3962
|
+
return e.value && (t.value = this.serialise(e.value)), t;
|
|
3963
|
+
}
|
|
3964
|
+
return e && e.map ? e.map(this.serialise, this) : e;
|
|
3965
|
+
}
|
|
3966
|
+
deserialiseContent(e) {
|
|
3967
|
+
if (e) {
|
|
3968
|
+
if (e.element) return this.deserialise(e);
|
|
3969
|
+
if (e.key) {
|
|
3970
|
+
const t = new this.namespace.KeyValuePair(this.deserialise(e.key));
|
|
3971
|
+
return e.value && (t.value = this.deserialise(e.value)), t;
|
|
3972
|
+
}
|
|
3973
|
+
if (e.map) return e.map(this.deserialise, this);
|
|
3974
|
+
}
|
|
3975
|
+
return e;
|
|
3976
|
+
}
|
|
3977
|
+
shouldRefract(e) {
|
|
3978
|
+
return !!(e._attributes && e.attributes.keys().length || e._meta && e.meta.keys().length) || "enum" !== e.element && (e.element !== e.primitive() || "member" === e.element);
|
|
3979
|
+
}
|
|
3980
|
+
convertKeyToRefract(e, t) {
|
|
3981
|
+
return this.shouldRefract(t) ? this.serialise(t) : "enum" === t.element ? this.serialiseEnum(t) : "array" === t.element ? t.map(((t) => this.shouldRefract(t) || "default" === e ? this.serialise(t) : "array" === t.element || "object" === t.element || "enum" === t.element ? t.children.map(((e) => this.serialise(e))) : t.toValue())) : "object" === t.element ? (t.content || []).map(this.serialise, this) : t.toValue();
|
|
3982
|
+
}
|
|
3983
|
+
serialiseEnum(e) {
|
|
3984
|
+
return e.children.map(((e) => this.serialise(e)));
|
|
3985
|
+
}
|
|
3986
|
+
serialiseObject(e) {
|
|
3987
|
+
const t = {};
|
|
3988
|
+
return e.forEach(((e, r) => {
|
|
3989
|
+
if (e) {
|
|
3990
|
+
const n = r.toValue();
|
|
3991
|
+
t[n] = this.convertKeyToRefract(n, e);
|
|
3992
|
+
}
|
|
3993
|
+
})), t;
|
|
3994
|
+
}
|
|
3995
|
+
deserialiseObject(e, t) {
|
|
3996
|
+
Object.keys(e).forEach(((r) => {
|
|
3997
|
+
t.set(r, this.deserialise(e[r]));
|
|
3998
|
+
}));
|
|
3999
|
+
}
|
|
4000
|
+
};
|
|
4001
|
+
})), ti = a(((e) => {
|
|
4002
|
+
var t = Zs(), r = Xs();
|
|
4003
|
+
e.Namespace = t, e.KeyValuePair = Is(), e.ArraySlice = r.ArraySlice, e.ObjectSlice = r.ObjectSlice, e.Element = r.Element, e.StringElement = r.StringElement, e.NumberElement = r.NumberElement, e.BooleanElement = r.BooleanElement, e.NullElement = r.NullElement, e.ArrayElement = r.ArrayElement, e.ObjectElement = r.ObjectElement, e.MemberElement = r.MemberElement, e.RefElement = r.RefElement, e.LinkElement = r.LinkElement, e.refract = r.refract, e.JSONSerialiser = uo(), e.JSON06Serialiser = Qs();
|
|
4004
|
+
}))(), ri = class extends ti.StringElement {
|
|
4005
|
+
constructor(e, t, r) {
|
|
4006
|
+
super(e, t, r), this.element = "annotation";
|
|
4007
|
+
}
|
|
4008
|
+
get code() {
|
|
4009
|
+
return this.attributes.get("code");
|
|
4010
|
+
}
|
|
4011
|
+
set code(e) {
|
|
4012
|
+
this.attributes.set("code", e);
|
|
4013
|
+
}
|
|
4014
|
+
}, ni = class extends ti.StringElement {
|
|
4015
|
+
constructor(e, t, r) {
|
|
4016
|
+
super(e, t, r), this.element = "comment";
|
|
4017
|
+
}
|
|
4018
|
+
}, oi = class extends ti.ArrayElement {
|
|
4019
|
+
constructor(e, t, r) {
|
|
4020
|
+
super(e, t, r), this.element = "parseResult";
|
|
4021
|
+
}
|
|
4022
|
+
get api() {
|
|
4023
|
+
return this.children.filter(((e) => e.classes.contains("api"))).first;
|
|
4024
|
+
}
|
|
4025
|
+
get results() {
|
|
4026
|
+
return this.children.filter(((e) => e.classes.contains("result")));
|
|
4027
|
+
}
|
|
4028
|
+
get result() {
|
|
4029
|
+
return this.results.first;
|
|
4030
|
+
}
|
|
4031
|
+
get annotations() {
|
|
4032
|
+
return this.children.filter(((e) => "annotation" === e.element));
|
|
4033
|
+
}
|
|
4034
|
+
get warnings() {
|
|
4035
|
+
return this.children.filter(((e) => "annotation" === e.element && e.classes.contains("warning")));
|
|
4036
|
+
}
|
|
4037
|
+
get errors() {
|
|
4038
|
+
return this.children.filter(((e) => "annotation" === e.element && e.classes.contains("error")));
|
|
4039
|
+
}
|
|
4040
|
+
get isEmpty() {
|
|
4041
|
+
return this.children.reject(((e) => "annotation" === e.element)).isEmpty;
|
|
4042
|
+
}
|
|
4043
|
+
replaceResult(e) {
|
|
4044
|
+
const { result: t } = this;
|
|
4045
|
+
if (Bn(t)) return !1;
|
|
4046
|
+
const r = this.content.findIndex(((e) => e === t));
|
|
4047
|
+
return -1 !== r && (this.content[r] = e, !0);
|
|
4048
|
+
}
|
|
4049
|
+
}, si = (e, t) => "object" == typeof t && null !== t && e in t && "function" == typeof t[e], ii = (e) => "object" == typeof e && null != e && "_storedElement" in e && "string" == typeof e._storedElement && "_content" in e, ai = (e, t) => "object" == typeof t && null !== t && "primitive" in t && "function" == typeof t.primitive && t.primitive() === e, ci = (e, t) => "object" == typeof t && null !== t && "classes" in t && (Array.isArray(t.classes) || t.classes instanceof ti.ArrayElement) && t.classes.includes(e), ui = (e, t) => "object" == typeof t && null !== t && "element" in t && t.element === e, li = (e) => e({
|
|
4050
|
+
hasMethod: si,
|
|
4051
|
+
hasBasicElementProps: ii,
|
|
4052
|
+
primitiveEq: ai,
|
|
4053
|
+
isElementType: ui,
|
|
4054
|
+
hasClass: ci
|
|
4055
|
+
}), fi = c({
|
|
4056
|
+
hasElementSourceMap: () => Ai,
|
|
4057
|
+
includesClasses: () => ki,
|
|
4058
|
+
includesSymbols: () => Si,
|
|
4059
|
+
isAnnotationElement: () => wi,
|
|
4060
|
+
isArrayElement: () => gi,
|
|
4061
|
+
isBooleanElement: () => di,
|
|
4062
|
+
isCommentElement: () => ji,
|
|
4063
|
+
isElement: () => pi,
|
|
4064
|
+
isLinkElement: () => xi,
|
|
4065
|
+
isMemberElement: () => bi,
|
|
4066
|
+
isNullElement: () => yi,
|
|
4067
|
+
isNumberElement: () => mi,
|
|
4068
|
+
isObjectElement: () => vi,
|
|
4069
|
+
isParseResultElement: () => Ti,
|
|
4070
|
+
isPrimitiveElement: () => Oi,
|
|
4071
|
+
isRefElement: () => Ei,
|
|
4072
|
+
isStringElement: () => hi
|
|
4073
|
+
}), pi = li((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof ti.Element || e(r) && t(void 0, r))), hi = li((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof ti.StringElement || e(r) && t("string", r))), mi = li((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof ti.NumberElement || e(r) && t("number", r))), yi = li((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof ti.NullElement || e(r) && t("null", r))), di = li((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof ti.BooleanElement || e(r) && t("boolean", r))), vi = li((({ hasBasicElementProps: e, primitiveEq: t, hasMethod: r }) => (n) => n instanceof ti.ObjectElement || e(n) && t("object", n) && r("keys", n) && r("values", n) && r("items", n))), gi = li((({ hasBasicElementProps: e, primitiveEq: t, hasMethod: r }) => (n) => n instanceof ti.ArrayElement && !(n instanceof ti.ObjectElement) || e(n) && t("array", n) && r("push", n) && r("unshift", n) && r("map", n) && r("reduce", n))), bi = li((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof ti.MemberElement || e(n) && t("member", n) && r(void 0, n))), xi = li((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof ti.LinkElement || e(n) && t("link", n) && r(void 0, n))), Ei = li((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof ti.RefElement || e(n) && t("ref", n) && r(void 0, n))), wi = li((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof ri || e(n) && t("annotation", n) && r("array", n))), ji = li((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof ni || e(n) && t("comment", n) && r("string", n))), Ti = li((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof oi || e(n) && t("parseResult", n) && r("array", n))), Oi = (e) => ui("object", e) || ui("array", e) || ui("boolean", e) || ui("number", e) || ui("string", e) || ui("null", e) || ui("member", e), Ai = (e) => !!pi(e) && Number.isInteger(e.startPositionRow) && Number.isInteger(e.startPositionColumn) && Number.isInteger(e.startIndex) && Number.isInteger(e.endPositionRow) && Number.isInteger(e.endPositionColumn) && Number.isInteger(e.endIndex), Si = (e, t) => {
|
|
4074
|
+
if (0 === e.length) return !0;
|
|
4075
|
+
const r = t.attributes.get("symbols");
|
|
4076
|
+
return !!gi(r) && yr(Jn(r.toValue()), e);
|
|
4077
|
+
}, ki = (e, t) => 0 === e.length || yr(Jn(t.classes.toValue()), e), Pi = new class extends ti.Namespace {
|
|
4078
|
+
constructor() {
|
|
4079
|
+
super(), this.register("annotation", ri), this.register("comment", ni), this.register("parseResult", oi);
|
|
4080
|
+
}
|
|
4081
|
+
}(), _i = () => ({
|
|
4082
|
+
predicates: { ...fi },
|
|
4083
|
+
namespace: Pi
|
|
4084
|
+
}), Mi = (e, t, r) => {
|
|
4085
|
+
const n = e[t];
|
|
4086
|
+
if (null != n) {
|
|
4087
|
+
if (!r && "function" == typeof n) return n;
|
|
4088
|
+
const e = r ? n.leave : n.enter;
|
|
4089
|
+
if ("function" == typeof e) return e;
|
|
4090
|
+
} else {
|
|
4091
|
+
const n = r ? e.leave : e.enter;
|
|
4092
|
+
if (null != n) {
|
|
4093
|
+
if ("function" == typeof n) return n;
|
|
4094
|
+
const e = n[t];
|
|
4095
|
+
if ("function" == typeof e) return e;
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
return null;
|
|
4099
|
+
}, Ni = {}, Ci = (e) => null == e ? void 0 : e.type, Ri = (e) => "string" == typeof Ci(e), Li = (e) => Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)), $i = (e, { visitFnGetter: t = Mi, nodeTypeGetter: r = Ci, breakSymbol: n = Ni, deleteNodeSymbol: o = null, skipVisitingNodeSymbol: s = !1, exposeEdits: i = !1 } = {}) => {
|
|
4100
|
+
const a = Symbol("skip"), c = new Array(e.length).fill(a);
|
|
4101
|
+
return {
|
|
4102
|
+
enter(u, l, f, p, h, m) {
|
|
4103
|
+
let y = u, d = !1;
|
|
4104
|
+
const v = {
|
|
4105
|
+
...m,
|
|
4106
|
+
replaceWith(e, t) {
|
|
4107
|
+
m.replaceWith(e, t), y = e;
|
|
4108
|
+
}
|
|
4109
|
+
};
|
|
4110
|
+
for (let u = 0; u < e.length; u += 1) if (c[u] === a) {
|
|
4111
|
+
const a = t(e[u], r(y), !1);
|
|
4112
|
+
if ("function" == typeof a) {
|
|
4113
|
+
const t = a.call(e[u], y, l, f, p, h, v);
|
|
4114
|
+
if ("function" == typeof (null == t ? void 0 : t.then)) throw new Et("Async visitor not supported in sync mode", {
|
|
4115
|
+
visitor: e[u],
|
|
4116
|
+
visitFn: a
|
|
4117
|
+
});
|
|
4118
|
+
if (t === s) c[u] = y;
|
|
4119
|
+
else if (t === n) c[u] = n;
|
|
4120
|
+
else {
|
|
4121
|
+
if (t === o) return t;
|
|
4122
|
+
if (void 0 !== t) {
|
|
4123
|
+
if (!i) return t;
|
|
4124
|
+
y = t, d = !0;
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
}
|
|
4129
|
+
return d ? y : void 0;
|
|
4130
|
+
},
|
|
4131
|
+
leave(o, i, u, l, f, p) {
|
|
4132
|
+
let h = o;
|
|
4133
|
+
const m = {
|
|
4134
|
+
...p,
|
|
4135
|
+
replaceWith(e, t) {
|
|
4136
|
+
p.replaceWith(e, t), h = e;
|
|
4137
|
+
}
|
|
4138
|
+
};
|
|
4139
|
+
for (let o = 0; o < e.length; o += 1) if (c[o] === a) {
|
|
4140
|
+
const a = t(e[o], r(h), !0);
|
|
4141
|
+
if ("function" == typeof a) {
|
|
4142
|
+
const t = a.call(e[o], h, i, u, l, f, m);
|
|
4143
|
+
if ("function" == typeof (null == t ? void 0 : t.then)) throw new Et("Async visitor not supported in sync mode", {
|
|
4144
|
+
visitor: e[o],
|
|
4145
|
+
visitFn: a
|
|
4146
|
+
});
|
|
4147
|
+
if (t === n) c[o] = n;
|
|
4148
|
+
else if (void 0 !== t && t !== s) return t;
|
|
4149
|
+
}
|
|
4150
|
+
} else c[o] === h && (c[o] = a);
|
|
4151
|
+
}
|
|
4152
|
+
};
|
|
4153
|
+
};
|
|
4154
|
+
$i[Symbol.for("nodejs.util.promisify.custom")] = (e, { visitFnGetter: t = Mi, nodeTypeGetter: r = Ci, breakSymbol: n = Ni, deleteNodeSymbol: o = null, skipVisitingNodeSymbol: s = !1, exposeEdits: i = !1 } = {}) => {
|
|
4155
|
+
const a = Symbol("skip"), c = new Array(e.length).fill(a);
|
|
4156
|
+
return {
|
|
4157
|
+
async enter(u, l, f, p, h, m) {
|
|
4158
|
+
let y = u, d = !1;
|
|
4159
|
+
const v = {
|
|
4160
|
+
...m,
|
|
4161
|
+
replaceWith(e, t) {
|
|
4162
|
+
m.replaceWith(e, t), y = e;
|
|
4163
|
+
}
|
|
4164
|
+
};
|
|
4165
|
+
for (let u = 0; u < e.length; u += 1) if (c[u] === a) {
|
|
4166
|
+
const a = t(e[u], r(y), !1);
|
|
4167
|
+
if ("function" == typeof a) {
|
|
4168
|
+
const t = await a.call(e[u], y, l, f, p, h, v);
|
|
4169
|
+
if (t === s) c[u] = y;
|
|
4170
|
+
else if (t === n) c[u] = n;
|
|
4171
|
+
else {
|
|
4172
|
+
if (t === o) return t;
|
|
4173
|
+
if (void 0 !== t) {
|
|
4174
|
+
if (!i) return t;
|
|
4175
|
+
y = t, d = !0;
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
return d ? y : void 0;
|
|
4181
|
+
},
|
|
4182
|
+
async leave(o, i, u, l, f, p) {
|
|
4183
|
+
let h = o;
|
|
4184
|
+
const m = {
|
|
4185
|
+
...p,
|
|
4186
|
+
replaceWith(e, t) {
|
|
4187
|
+
p.replaceWith(e, t), h = e;
|
|
4188
|
+
}
|
|
4189
|
+
};
|
|
4190
|
+
for (let o = 0; o < e.length; o += 1) if (c[o] === a) {
|
|
4191
|
+
const a = t(e[o], r(h), !0);
|
|
4192
|
+
if ("function" == typeof a) {
|
|
4193
|
+
const t = await a.call(e[o], h, i, u, l, f, m);
|
|
4194
|
+
if (t === n) c[o] = n;
|
|
4195
|
+
else if (void 0 !== t && t !== s) return t;
|
|
4196
|
+
}
|
|
4197
|
+
} else c[o] === h && (c[o] = a);
|
|
4198
|
+
}
|
|
4199
|
+
};
|
|
4200
|
+
};
|
|
4201
|
+
var Ii = (e, t, { keyMap: r = null, state: n = {}, breakSymbol: o = Ni, deleteNodeSymbol: s = null, skipVisitingNodeSymbol: i = !1, visitFnGetter: a = Mi, nodeTypeGetter: c = Ci, nodePredicate: u = Ri, nodeCloneFn: l = Li, detectCycles: f = !0, detectCyclesCallback: p = null } = {}) => {
|
|
4202
|
+
const h = r || {};
|
|
4203
|
+
let m, y, d = Array.isArray(e), v = [e], g = -1, b = [], x = e;
|
|
4204
|
+
const E = [], w = [];
|
|
4205
|
+
do {
|
|
4206
|
+
g += 1;
|
|
4207
|
+
const e = g === v.length;
|
|
4208
|
+
let r;
|
|
4209
|
+
const O = e && 0 !== b.length;
|
|
4210
|
+
if (e) {
|
|
4211
|
+
if (r = 0 === w.length ? void 0 : E.pop(), x = y, y = w.pop(), O) if (d) {
|
|
4212
|
+
x = x.slice();
|
|
4213
|
+
let e = 0;
|
|
4214
|
+
for (const [t, r] of b) {
|
|
4215
|
+
const n = t - e;
|
|
4216
|
+
r === s ? (x.splice(n, 1), e += 1) : x[n] = r;
|
|
4217
|
+
}
|
|
4218
|
+
} else {
|
|
4219
|
+
x = l(x);
|
|
4220
|
+
for (const [e, t] of b) x[e] = t;
|
|
4221
|
+
}
|
|
4222
|
+
g = m.index, v = m.keys, b = m.edits, d = m.inArray, m = m.prev;
|
|
4223
|
+
} else if (y !== s && void 0 !== y) {
|
|
4224
|
+
if (r = d ? g : v[g], x = y[r], x === s || void 0 === x) continue;
|
|
4225
|
+
E.push(r);
|
|
4226
|
+
}
|
|
4227
|
+
let A;
|
|
4228
|
+
if (!Array.isArray(x)) {
|
|
4229
|
+
var j;
|
|
4230
|
+
if (!u(x)) throw new Et(`Invalid AST Node: ${String(x)}`, { node: x });
|
|
4231
|
+
if (f && w.includes(x)) {
|
|
4232
|
+
"function" == typeof p && p(x, r, y, E, w), E.pop();
|
|
4233
|
+
continue;
|
|
4234
|
+
}
|
|
4235
|
+
const s = a(t, c(x), e);
|
|
4236
|
+
if (s) {
|
|
4237
|
+
for (const [e, r] of Object.entries(n)) t[e] = r;
|
|
4238
|
+
A = s.call(t, x, r, y, E, w, { replaceWith(t, n) {
|
|
4239
|
+
"function" == typeof n ? n(t, x, r, y, E, w) : y && (y[r] = t), e || (x = t);
|
|
4240
|
+
} });
|
|
4241
|
+
}
|
|
4242
|
+
if ("function" == typeof (null === (j = A) || void 0 === j ? void 0 : j.then)) throw new Et("Async visitor not supported in sync mode", {
|
|
4243
|
+
visitor: t,
|
|
4244
|
+
visitFn: s
|
|
4245
|
+
});
|
|
4246
|
+
if (A === o) break;
|
|
4247
|
+
if (A === i) {
|
|
4248
|
+
if (!e) {
|
|
4249
|
+
E.pop();
|
|
4250
|
+
continue;
|
|
4251
|
+
}
|
|
4252
|
+
} else if (void 0 !== A && (b.push([r, A]), !e)) {
|
|
4253
|
+
if (!u(A)) {
|
|
4254
|
+
E.pop();
|
|
4255
|
+
continue;
|
|
4256
|
+
}
|
|
4257
|
+
x = A;
|
|
4258
|
+
}
|
|
4259
|
+
}
|
|
4260
|
+
var T;
|
|
4261
|
+
if (void 0 === A && O && b.push([r, x]), !e) m = {
|
|
4262
|
+
inArray: d,
|
|
4263
|
+
index: g,
|
|
4264
|
+
keys: v,
|
|
4265
|
+
edits: b,
|
|
4266
|
+
prev: m
|
|
4267
|
+
}, d = Array.isArray(x), v = d ? x : null !== (T = h[c(x)]) && void 0 !== T ? T : [], g = -1, b = [], y !== s && void 0 !== y && w.push(y), y = x;
|
|
4268
|
+
} while (void 0 !== m);
|
|
4269
|
+
return 0 !== b.length ? b[b.length - 1][1] : e;
|
|
4270
|
+
};
|
|
4271
|
+
Ii[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, { keyMap: r = null, state: n = {}, breakSymbol: o = Ni, deleteNodeSymbol: s = null, skipVisitingNodeSymbol: i = !1, visitFnGetter: a = Mi, nodeTypeGetter: c = Ci, nodePredicate: u = Ri, nodeCloneFn: l = Li, detectCycles: f = !0, detectCyclesCallback: p = null } = {}) => {
|
|
4272
|
+
const h = r || {};
|
|
4273
|
+
let m, y, d = Array.isArray(e), v = [e], g = -1, b = [], x = e;
|
|
4274
|
+
const E = [], w = [];
|
|
4275
|
+
do {
|
|
4276
|
+
g += 1;
|
|
4277
|
+
const e = g === v.length;
|
|
4278
|
+
let r;
|
|
4279
|
+
const T = e && 0 !== b.length;
|
|
4280
|
+
if (e) {
|
|
4281
|
+
if (r = 0 === w.length ? void 0 : E.pop(), x = y, y = w.pop(), T) if (d) {
|
|
4282
|
+
x = x.slice();
|
|
4283
|
+
let e = 0;
|
|
4284
|
+
for (const [t, r] of b) {
|
|
4285
|
+
const n = t - e;
|
|
4286
|
+
r === s ? (x.splice(n, 1), e += 1) : x[n] = r;
|
|
4287
|
+
}
|
|
4288
|
+
} else {
|
|
4289
|
+
x = l(x);
|
|
4290
|
+
for (const [e, t] of b) x[e] = t;
|
|
4291
|
+
}
|
|
4292
|
+
g = m.index, v = m.keys, b = m.edits, d = m.inArray, m = m.prev;
|
|
4293
|
+
} else if (y !== s && void 0 !== y) {
|
|
4294
|
+
if (r = d ? g : v[g], x = y[r], x === s || void 0 === x) continue;
|
|
4295
|
+
E.push(r);
|
|
4296
|
+
}
|
|
4297
|
+
let O;
|
|
4298
|
+
if (!Array.isArray(x)) {
|
|
4299
|
+
if (!u(x)) throw new Et(`Invalid AST Node: ${String(x)}`, { node: x });
|
|
4300
|
+
if (f && w.includes(x)) {
|
|
4301
|
+
"function" == typeof p && p(x, r, y, E, w), E.pop();
|
|
4302
|
+
continue;
|
|
4303
|
+
}
|
|
4304
|
+
const s = a(t, c(x), e);
|
|
4305
|
+
if (s) {
|
|
4306
|
+
for (const [e, r] of Object.entries(n)) t[e] = r;
|
|
4307
|
+
O = await s.call(t, x, r, y, E, w, { replaceWith(t, n) {
|
|
4308
|
+
"function" == typeof n ? n(t, x, r, y, E, w) : y && (y[r] = t), e || (x = t);
|
|
4309
|
+
} });
|
|
4310
|
+
}
|
|
4311
|
+
if (O === o) break;
|
|
4312
|
+
if (O === i) {
|
|
4313
|
+
if (!e) {
|
|
4314
|
+
E.pop();
|
|
4315
|
+
continue;
|
|
4316
|
+
}
|
|
4317
|
+
} else if (void 0 !== O && (b.push([r, O]), !e)) {
|
|
4318
|
+
if (!u(O)) {
|
|
4319
|
+
E.pop();
|
|
4320
|
+
continue;
|
|
4321
|
+
}
|
|
4322
|
+
x = O;
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
var j;
|
|
4326
|
+
if (void 0 === O && T && b.push([r, x]), !e) m = {
|
|
4327
|
+
inArray: d,
|
|
4328
|
+
index: g,
|
|
4329
|
+
keys: v,
|
|
4330
|
+
edits: b,
|
|
4331
|
+
prev: m
|
|
4332
|
+
}, d = Array.isArray(x), v = d ? x : null !== (j = h[c(x)]) && void 0 !== j ? j : [], g = -1, b = [], y !== s && void 0 !== y && w.push(y), y = x;
|
|
4333
|
+
} while (void 0 !== m);
|
|
4334
|
+
return 0 !== b.length ? b[b.length - 1][1] : e;
|
|
4335
|
+
};
|
|
4336
|
+
var Vi = class extends Et {
|
|
4337
|
+
value;
|
|
4338
|
+
constructor(e, t) {
|
|
4339
|
+
super(e, t), void 0 !== t && (this.value = t.value);
|
|
4340
|
+
}
|
|
4341
|
+
}, Di = class extends Vi {}, Fi = class extends Vi {}, Bi = (e, t = {}) => {
|
|
4342
|
+
const { visited: r = /* @__PURE__ */ new WeakMap() } = t, n = {
|
|
4343
|
+
...t,
|
|
4344
|
+
visited: r
|
|
4345
|
+
};
|
|
4346
|
+
if (r.has(e)) return r.get(e);
|
|
4347
|
+
if (e instanceof ti.KeyValuePair) {
|
|
4348
|
+
const { key: t, value: o } = e, s = new ti.KeyValuePair(pi(t) ? Bi(t, n) : t, pi(o) ? Bi(o, n) : o);
|
|
4349
|
+
return r.set(e, s), s;
|
|
4350
|
+
}
|
|
4351
|
+
if (e instanceof ti.ObjectSlice) {
|
|
4352
|
+
const t = (e) => Bi(e, n), o = new ti.ObjectSlice([...e].map(t));
|
|
4353
|
+
return r.set(e, o), o;
|
|
4354
|
+
}
|
|
4355
|
+
if (e instanceof ti.ArraySlice) {
|
|
4356
|
+
const t = (e) => Bi(e, n), o = new ti.ArraySlice([...e].map(t));
|
|
4357
|
+
return r.set(e, o), o;
|
|
4358
|
+
}
|
|
4359
|
+
if (pi(e)) {
|
|
4360
|
+
const t = Hi(e);
|
|
4361
|
+
if (r.set(e, t), e.content) if (pi(e.content)) t.content = Bi(e.content, n);
|
|
4362
|
+
else if (e.content instanceof ti.KeyValuePair) t.content = Bi(e.content, n);
|
|
4363
|
+
else if (Array.isArray(e.content)) {
|
|
4364
|
+
const r = (e) => Bi(e, n);
|
|
4365
|
+
t.content = e.content.map(r);
|
|
4366
|
+
} else t.content = e.content;
|
|
4367
|
+
else t.content = e.content;
|
|
4368
|
+
return t;
|
|
4369
|
+
}
|
|
4370
|
+
throw new Di("Value provided to cloneDeep function couldn't be cloned", { value: e });
|
|
4371
|
+
};
|
|
4372
|
+
Bi.safe = (e) => {
|
|
4373
|
+
try {
|
|
4374
|
+
return Bi(e);
|
|
4375
|
+
} catch {
|
|
4376
|
+
return e;
|
|
4377
|
+
}
|
|
4378
|
+
};
|
|
4379
|
+
var zi = (e) => {
|
|
4380
|
+
const { key: t, value: r } = e;
|
|
4381
|
+
return new ti.KeyValuePair(t, r);
|
|
4382
|
+
}, Ui = (e) => {
|
|
4383
|
+
const t = new e.constructor();
|
|
4384
|
+
var r, n;
|
|
4385
|
+
if (t.element = e.element, Ai(e) && (n = e, (r = t).startPositionRow = null == n ? void 0 : n.startPositionRow, r.startPositionColumn = null == n ? void 0 : n.startPositionColumn, r.startIndex = null == n ? void 0 : n.startIndex, r.endPositionRow = null == n ? void 0 : n.endPositionRow, r.endPositionColumn = null == n ? void 0 : n.endPositionColumn, r.endIndex = null == n ? void 0 : n.endIndex), e.meta.length > 0 && (t._meta = Bi(e.meta)), e.attributes.length > 0 && (t._attributes = Bi(e.attributes)), pi(e.content)) {
|
|
4386
|
+
const r = e.content;
|
|
4387
|
+
t.content = Ui(r);
|
|
4388
|
+
} else Array.isArray(e.content) ? t.content = [...e.content] : e.content instanceof ti.KeyValuePair ? t.content = zi(e.content) : t.content = e.content;
|
|
4389
|
+
return t;
|
|
4390
|
+
}, Hi = (e) => {
|
|
4391
|
+
if (e instanceof ti.KeyValuePair) return zi(e);
|
|
4392
|
+
if (e instanceof ti.ObjectSlice) return t = e, new ti.ObjectSlice([...t]);
|
|
4393
|
+
var t, r;
|
|
4394
|
+
if (e instanceof ti.ArraySlice) return r = e, new ti.ArraySlice([...r]);
|
|
4395
|
+
if (pi(e)) return Ui(e);
|
|
4396
|
+
throw new Fi("Value provided to cloneShallow function couldn't be cloned", { value: e });
|
|
4397
|
+
};
|
|
4398
|
+
Hi.safe = (e) => {
|
|
4399
|
+
try {
|
|
4400
|
+
return Hi(e);
|
|
4401
|
+
} catch {
|
|
4402
|
+
return e;
|
|
4403
|
+
}
|
|
4404
|
+
};
|
|
4405
|
+
var Gi = (e) => vi(e) ? "ObjectElement" : gi(e) ? "ArrayElement" : bi(e) ? "MemberElement" : hi(e) ? "StringElement" : di(e) ? "BooleanElement" : mi(e) ? "NumberElement" : yi(e) ? "NullElement" : xi(e) ? "LinkElement" : Ei(e) ? "RefElement" : void 0, qi = (e) => pi(e) ? Hi(e) : Li(e), Yi = On(Gi, qn), Ji = {
|
|
4406
|
+
ObjectElement: ["content"],
|
|
4407
|
+
ArrayElement: ["content"],
|
|
4408
|
+
MemberElement: ["key", "value"],
|
|
4409
|
+
StringElement: [],
|
|
4410
|
+
BooleanElement: [],
|
|
4411
|
+
NumberElement: [],
|
|
4412
|
+
NullElement: [],
|
|
4413
|
+
RefElement: [],
|
|
4414
|
+
LinkElement: [],
|
|
4415
|
+
Annotation: [],
|
|
4416
|
+
Comment: [],
|
|
4417
|
+
ParseResultElement: ["content"]
|
|
4418
|
+
}, Ki = (e, t, { keyMap: r = Ji, ...n } = {}) => Ii(e, t, {
|
|
4419
|
+
keyMap: r,
|
|
4420
|
+
nodeTypeGetter: Gi,
|
|
4421
|
+
nodePredicate: Yi,
|
|
4422
|
+
nodeCloneFn: qi,
|
|
4423
|
+
...n
|
|
4424
|
+
});
|
|
4425
|
+
Ki[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, { keyMap: r = Ji, ...n } = {}) => Ii[Symbol.for("nodejs.util.promisify.custom")](e, t, {
|
|
4426
|
+
keyMap: r,
|
|
4427
|
+
nodeTypeGetter: Gi,
|
|
4428
|
+
nodePredicate: Yi,
|
|
4429
|
+
nodeCloneFn: qi,
|
|
4430
|
+
...n
|
|
4431
|
+
});
|
|
4432
|
+
var Wi = {
|
|
4433
|
+
toolboxCreator: _i,
|
|
4434
|
+
visitorOptions: {
|
|
4435
|
+
nodeTypeGetter: Gi,
|
|
4436
|
+
exposeEdits: !0
|
|
4437
|
+
}
|
|
4438
|
+
}, Xi = (e, t, r = {}) => {
|
|
4439
|
+
if (0 === t.length) return e;
|
|
4440
|
+
const { toolboxCreator: n, visitorOptions: o } = In(Wi, r), s = n(), i = t.map(((e) => e(s))), a = $i(i.map(Dn({}, "visitor")), { ...o });
|
|
4441
|
+
i.forEach(Kn(["pre"], []));
|
|
4442
|
+
const c = Ki(e, a, o);
|
|
4443
|
+
return i.forEach(Kn(["post"], [])), c;
|
|
4444
|
+
};
|
|
4445
|
+
Xi[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, r = {}) => {
|
|
4446
|
+
if (0 === t.length) return e;
|
|
4447
|
+
const { toolboxCreator: n, visitorOptions: o } = In(Wi, r), s = n(), i = t.map(((e) => e(s))), a = $i[Symbol.for("nodejs.util.promisify.custom")], c = Ki[Symbol.for("nodejs.util.promisify.custom")], u = a(i.map(Dn({}, "visitor")), { ...o });
|
|
4448
|
+
await Promise.allSettled(i.map(Kn(["pre"], [])));
|
|
4449
|
+
const l = await c(e, u, o);
|
|
4450
|
+
return await Promise.allSettled(i.map(Kn(["post"], []))), l;
|
|
4451
|
+
};
|
|
4452
|
+
var Zi = (e) => (t, r = {}) => ((e, { Type: t, plugins: r = [] }) => {
|
|
4453
|
+
const n = new t(e);
|
|
4454
|
+
return pi(e) && (e.meta.length > 0 && (n.meta = Bi(e.meta)), e.attributes.length > 0 && (n.attributes = Bi(e.attributes))), Xi(n, r, {
|
|
4455
|
+
toolboxCreator: _i,
|
|
4456
|
+
visitorOptions: { nodeTypeGetter: Gi }
|
|
4457
|
+
});
|
|
4458
|
+
})(t, {
|
|
4459
|
+
...r,
|
|
4460
|
+
Type: e
|
|
4461
|
+
});
|
|
4462
|
+
ti.ObjectElement.refract = Zi(ti.ObjectElement), ti.ArrayElement.refract = Zi(ti.ArrayElement), ti.StringElement.refract = Zi(ti.StringElement), ti.BooleanElement.refract = Zi(ti.BooleanElement), ti.NullElement.refract = Zi(ti.NullElement), ti.NumberElement.refract = Zi(ti.NumberElement), ti.LinkElement.refract = Zi(ti.LinkElement), ti.RefElement.refract = Zi(ti.RefElement), ri.refract = Zi(ri), ni.refract = Zi(ni), oi.refract = Zi(oi);
|
|
4463
|
+
var Qi = class extends Kt {
|
|
4464
|
+
name = "apidom";
|
|
4465
|
+
isArray(e) {
|
|
4466
|
+
return gi(e);
|
|
4467
|
+
}
|
|
4468
|
+
isObject(e) {
|
|
4469
|
+
return vi(e);
|
|
4470
|
+
}
|
|
4471
|
+
sizeOf(e) {
|
|
4472
|
+
return this.isArray(e) || this.isObject(e) ? e.length : 0;
|
|
4473
|
+
}
|
|
4474
|
+
has(e, t) {
|
|
4475
|
+
if (this.isArray(e)) {
|
|
4476
|
+
const r = Number(t), n = r >>> 0;
|
|
4477
|
+
if (r !== n) throw new Xt(`Invalid array index "${t}": index must be an unsinged 32-bit integer`, {
|
|
4478
|
+
referenceToken: t,
|
|
4479
|
+
currentValue: e,
|
|
4480
|
+
realm: this.name
|
|
4481
|
+
});
|
|
4482
|
+
return n < this.sizeOf(e);
|
|
4483
|
+
}
|
|
4484
|
+
if (this.isObject(e)) {
|
|
4485
|
+
const r = e.keys(), n = new Set(r);
|
|
4486
|
+
if (r.length !== n.size) throw new er(`Object key "${t}" is not unique — JSON Pointer requires unique member names`, {
|
|
4487
|
+
referenceToken: t,
|
|
4488
|
+
currentValue: e,
|
|
4489
|
+
realm: this.name
|
|
4490
|
+
});
|
|
4491
|
+
return e.hasKey(t);
|
|
4492
|
+
}
|
|
4493
|
+
return !1;
|
|
4494
|
+
}
|
|
4495
|
+
evaluate(e, t) {
|
|
4496
|
+
return this.isArray(e) ? e.get(Number(t)) : e.get(t);
|
|
4497
|
+
}
|
|
4498
|
+
}, ea = /* @__PURE__ */ new RegExp("^(?<nonNegativeIntegerPrefix>[1-9]\\d*|0)(?<indexManipulation>[+-][1-9]\\d*|0)?((?<hashCharacter>#)|(?<jsonPointer>\\/.*))?$"), ta = (e) => {
|
|
4499
|
+
const t = e.match(ea);
|
|
4500
|
+
if (null === t || void 0 === t.groups) throw new jt(`Invalid Relative JSON Pointer "${e}".`, { relativePointer: e });
|
|
4501
|
+
try {
|
|
4502
|
+
return {
|
|
4503
|
+
nonNegativeIntegerPrefix: parseInt(t.groups.nonNegativeIntegerPrefix, 10),
|
|
4504
|
+
indexManipulation: "string" == typeof t.groups.indexManipulation ? parseInt(t.groups.indexManipulation, 10) : void 0,
|
|
4505
|
+
jsonPointerTokens: "string" == typeof t.groups.jsonPointer ? Bt(t.groups.jsonPointer).tree : void 0,
|
|
4506
|
+
hashCharacter: "string" == typeof t.groups.hashCharacter
|
|
4507
|
+
};
|
|
4508
|
+
} catch (t) {
|
|
4509
|
+
throw new jt(`Relative JSON Pointer parsing of "${e}" encountered an error.`, {
|
|
4510
|
+
relativePointer: e,
|
|
4511
|
+
cause: t
|
|
4512
|
+
});
|
|
4513
|
+
}
|
|
4514
|
+
};
|
|
4515
|
+
e.CompilationRelativeJsonPointerError = Ot, e.EvaluationRelativeJsonPointerError = Tt, e.InvalidRelativeJsonPointerError = jt, e.RelativeJsonPointerError = wt, e.compile = (e) => {
|
|
4516
|
+
try {
|
|
4517
|
+
let t = "";
|
|
4518
|
+
return t += String(e.nonNegativeIntegerPrefix), "number" == typeof e.indexManipulation && (t += String(e.indexManipulation)), Array.isArray(e.jsonPointerTokens) ? t += Yt(e.jsonPointerTokens) : e.hashCharacter && (t += "#"), t;
|
|
4519
|
+
} catch (t) {
|
|
4520
|
+
throw new Ot("Relative JSON Pointer compilation encountered an error.", {
|
|
4521
|
+
relativePointer: e,
|
|
4522
|
+
cause: t
|
|
4523
|
+
});
|
|
4524
|
+
}
|
|
4525
|
+
}, e.evaluate = (e, t, r) => {
|
|
4526
|
+
let n, o = [], s = t;
|
|
4527
|
+
if (Ki(r, { enter(e, r, n, s, i) {
|
|
4528
|
+
if (e === t) return o = [...i, n].filter(pi), Ni;
|
|
4529
|
+
} }), 0 === o.length) throw new Tt("Relative JSON Pointer evaluation failed. Current element not found inside the root element", {
|
|
4530
|
+
relativePointer: e,
|
|
4531
|
+
currentElement: Bi(t),
|
|
4532
|
+
rootElement: Bi(r),
|
|
4533
|
+
cursorElement: Bi.safe(s)
|
|
4534
|
+
});
|
|
4535
|
+
if (Sn(o) === r) throw new Tt("Relative JSON Pointer evaluation failed. Current element cannot be the root element", {
|
|
4536
|
+
relativePointer: e,
|
|
4537
|
+
currentElement: t,
|
|
4538
|
+
rootElement: r,
|
|
4539
|
+
cursorElement: s
|
|
4540
|
+
});
|
|
4541
|
+
try {
|
|
4542
|
+
n = ta(e);
|
|
4543
|
+
} catch (r) {
|
|
4544
|
+
throw new Tt("Relative JSON Pointer evaluation failed while parsing the pointer.", {
|
|
4545
|
+
relativePointer: e,
|
|
4546
|
+
currentElement: Bi(t),
|
|
4547
|
+
rootElement: Bi(t),
|
|
4548
|
+
cursorElement: Bi.safe(s),
|
|
4549
|
+
cause: r
|
|
4550
|
+
});
|
|
4551
|
+
}
|
|
4552
|
+
if (n.nonNegativeIntegerPrefix > 0) {
|
|
4553
|
+
const i = [...o];
|
|
4554
|
+
for (let { nonNegativeIntegerPrefix: e } = n; e > 0; e -= 1) s = i.pop(), bi(s) && (s = i.pop());
|
|
4555
|
+
if (void 0 === s) throw new Tt(`Relative JSON Pointer evaluation failed on non-negative-integer prefix of "${n.nonNegativeIntegerPrefix}"`, {
|
|
4556
|
+
relativePointer: e,
|
|
4557
|
+
currentElement: Bi(t),
|
|
4558
|
+
rootElement: Bi(r),
|
|
4559
|
+
cursorElement: Bi.safe(s)
|
|
4560
|
+
});
|
|
4561
|
+
o = i;
|
|
4562
|
+
}
|
|
4563
|
+
if ("number" == typeof n.indexManipulation) {
|
|
4564
|
+
const i = Sn(o);
|
|
4565
|
+
if (void 0 === i || !gi(i)) throw new Tt(`Relative JSON Pointer evaluation failed failed on index-manipulation "${n.indexManipulation}"`, {
|
|
4566
|
+
relativePointer: e,
|
|
4567
|
+
currentElement: Bi(t),
|
|
4568
|
+
rootElement: Bi(r),
|
|
4569
|
+
cursorElement: Bi.safe(s)
|
|
4570
|
+
});
|
|
4571
|
+
const a = i.content.indexOf(s) + n.indexManipulation;
|
|
4572
|
+
if (s = i.content[a], void 0 === s) throw new Tt(`Relative JSON Pointer evaluation failed on index-manipulation "${n.indexManipulation}"`, {
|
|
4573
|
+
relativePointer: e,
|
|
4574
|
+
currentElement: Bi(t),
|
|
4575
|
+
rootElement: Bi(r),
|
|
4576
|
+
cursorElement: Bi.safe(s)
|
|
4577
|
+
});
|
|
4578
|
+
}
|
|
4579
|
+
if (Array.isArray(n.jsonPointerTokens)) s = ((e, t, r = {}) => tr(e, t, {
|
|
4580
|
+
...r,
|
|
4581
|
+
realm: new Qi()
|
|
4582
|
+
}))(s, Yt(n.jsonPointerTokens));
|
|
4583
|
+
else if (n.hashCharacter) {
|
|
4584
|
+
if (s === r) throw new Tt("Relative JSON Pointer evaluation failed. Current element cannot be the root element to apply \"#\"", {
|
|
4585
|
+
relativePointer: e,
|
|
4586
|
+
currentElement: Bi(t),
|
|
4587
|
+
rootElement: Bi(r),
|
|
4588
|
+
cursorElement: Bi.safe(s)
|
|
4589
|
+
});
|
|
4590
|
+
const n = Sn(o);
|
|
4591
|
+
void 0 !== n && (bi(n) ? s = n.key : gi(n) && (s = new ti.NumberElement(n.content.indexOf(s))));
|
|
4592
|
+
}
|
|
4593
|
+
return s;
|
|
4594
|
+
}, e.isRelativeJsonPointer = (e) => "string" == typeof e && ea.test(e), e.parse = ta;
|
|
4595
|
+
}));
|