@contentstack/management
Version:
The Content Management API is used to manage the content of your Contentstack account
2 lines • 295 kB
JavaScript
/*! For license information please see contentstack-management.js.LICENSE.txt */
(()=>{var t={123:(t,e,r)=>{"use strict";var n=r(4682),o=r(132),a=r(1103);t.exports={formats:a,parse:o,stringify:n}},132:(t,e,r)=>{"use strict";var n=r(3446),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},s=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},u=function(t,e,r,a){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,c=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=u?i.slice(0,u.index):i,p=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;p.push(l)}for(var f=0;r.depth>0&&null!==(u=c.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(u[1])}if(u){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");p.push("["+i.slice(u.index)+"]")}return function(t,e,r,o){var a=0;if(t.length>0&&"[]"===t[t.length-1]){var i=t.slice(0,-1).join("");a=Array.isArray(e)&&e[i]?e[i].length:0}for(var c=o?e:s(e,r,a),u=t.length-1;u>=0;--u){var l,p=t[u];if("[]"===p&&r.parseArrays)l=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c);else{l=r.plainObjects?{__proto__:null}:{};var f="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,h=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(h,10);r.parseArrays||""!==h?!isNaN(d)&&p!==h&&String(d)===h&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(l=[])[d]=c:"__proto__"!==h&&(l[h]=c):l={0:c}}c=l}return c}(p,e,r,a)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?i.charset:t.charset,r=void 0===t.duplicates?i.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||i.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:i.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var l="string"==typeof t?function(t,e){var r={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=e.parameterLimit===1/0?void 0:e.parameterLimit,p=u.split(e.delimiter,e.throwOnLimitExceeded?l+1:l);if(e.throwOnLimitExceeded&&p.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var f,h=-1,d=e.charset;if(e.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[f]?d="utf-8":"utf8=%26%2310003%3B"===p[f]&&(d="iso-8859-1"),h=f,f=p.length);for(f=0;f<p.length;++f)if(f!==h){var y,b,v=p[f],m=v.indexOf("]="),g=-1===m?v.indexOf("="):m+1;-1===g?(y=e.decoder(v,i.decoder,d,"key"),b=e.strictNullHandling?null:""):(y=e.decoder(v.slice(0,g),i.decoder,d,"key"),b=n.maybeMap(s(v.slice(g+1),e,a(r[y])?r[y].length:0),function(t){return e.decoder(t,i.decoder,d,"value")})),b&&e.interpretNumericEntities&&"iso-8859-1"===d&&(b=c(String(b))),v.indexOf("[]=")>-1&&(b=a(b)?[b]:b);var w=o.call(r,y);w&&"combine"===e.duplicates?r[y]=n.combine(r[y],b):w&&"last"!==e.duplicates||(r[y]=b)}return r}(t,r):t,p=r.plainObjects?{__proto__:null}:{},f=Object.keys(l),h=0;h<f.length;++h){var d=f[h],y=u(d,l[d],r,"string"==typeof t);p=n.merge(p,y,r)}return!0===r.allowSparse?p:n.compact(p)}},167:(t,e)=>{"use strict";var r;function n(t){return{text:t["#text"],itemUid:t["data-sys-entry-uid"]||t["data-sys-asset-uid"],itemType:t.type,styleType:t["sys-style-type"],attributes:t,contentTypeUid:t["data-sys-content-type-uid"]}}!function(t){t.BLOCK="block",t.INLINE="inline",t.LINK="link",t.DISPLAY="display",t.DOWNLOAD="download"}(r||(r={}));var o=r,a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},a(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var c=function(){return c=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},c.apply(this,arguments)};function s(t){for(var e={},r=0;r<t.attributes.length;r++)e[t.attributes.item(r).name]=t.attributes.item(r).value;return t.childNodes.forEach(function(t){var r=t;e=c(c({},e),function(t){var e={};return 3===t.nodeType?e["#text"]=t.textContent:1===t.nodeType&&(e[t.nodeName.toLowerCase()]=s(t)),e}(r))}),e}"function"==typeof SuppressedError&&SuppressedError;var u,l="documentfragmentcontainer";function p(t,e,r){return void 0===e&&(e=["p","a","strong","em","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","u","table","thead","tbody","tr","th","td","span","fragment","sup","strike","br","img","colgroup","col","div"]),void 0===r&&(r=["href","title","target","alt","src","class","id","style","colspan","rowspan","content-type-uid","data-sys-asset-uid","sys-style-type","data-type","data-width","data-rows","data-cols","data-mtec"]),(t=t.replace(/\n/g,"<br />")).replace(/<\/?([a-z][a-z0-9]*)\b[^<>]*>/gi,function(t,r){return e.includes(r.toLowerCase())?t:""}).replace(/<([a-z][a-z0-9]*)\b[^<>]*>/gi,function(t,n){return e.includes(n.toLowerCase())?t.replace(/\s([a-z\-]+)=['"][^'"]*['"]/gi,function(t,e){return r.includes(e.toLowerCase())?t:""}):t})}String.prototype.forEachEmbeddedItem=function(t){var e="<".concat(l,">").concat(this.toString(),"</").concat(l,">"),r=(new DOMParser).parseFromString(e,"text/html");r.querySelectorAll(".embedded-entry").forEach(function(e){t(e.outerHTML,n(s(e)))}),r.querySelectorAll(".embedded-asset").forEach(function(e){t(e.outerHTML,n(s(e)))})};var f;(u={})[o.BLOCK]=function(t){var e=p(t.title||t.uid),r=p(t._content_type_uid||(t.system?t.system.content_type_uid:""));return"<div><p>".concat(e,"</p><p>Content type: <span>").concat(r,"</span></p></div>")},u[o.INLINE]=function(t){var e=p(t.title||t.uid);return"<span>".concat(e,"</span>")},u[o.LINK]=function(t,e){var r=t.url?encodeURI(p(t.url)):null,n=p(e.text||t.title||t.uid||(t.system?t.system.uid:"")),o=r?' href="'.concat(r,'"'):"";return"<a".concat(o,">").concat(n,"</a>")},u[o.DISPLAY]=function(t,e){var r=t.url?encodeURI(p(t.url)):null,n=p(e.attributes.alt||t.title||t.filename||t.uid||(t.system?t.system.uid:"")),o=r?' src="'.concat(r,'"'):"";return"<img".concat(o,' alt="').concat(n,'" />')},u[o.DOWNLOAD]=function(t,e){var r=t.url?encodeURI(p(t.url)):null,n=p(e.text||t.title||t.uid||(t.system?t.system.content_type_uid:"")),o=r?' href="'.concat(r,'"'):"";return"<a".concat(o,">").concat(n,"</a>")};!function(t){t.DOCUMENT="doc",t.PARAGRAPH="p",t.LINK="a",t.IMAGE="img",t.EMBED="embed",t.HEADING_1="h1",t.HEADING_2="h2",t.HEADING_3="h3",t.HEADING_4="h4",t.HEADING_5="h5",t.HEADING_6="h6",t.ORDER_LIST="ol",t.UNORDER_LIST="ul",t.LIST_ITEM="li",t.FRAGMENT="fragment",t.HR="hr",t.TABLE="table",t.TABLE_HEADER="thead",t.TABLE_BODY="tbody",t.TABLE_FOOTER="tfoot",t.TABLE_ROW="tr",t.TABLE_HEAD="th",t.TABLE_DATA="td",t.COL_GROUP="colgroup",t.COL="col",t.BLOCK_QUOTE="blockquote",t.CODE="code",t.TEXT="text",t.REFERENCE="reference"}(f||(f={}));var h,d=f;!function(t){t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.CLASSNAME_OR_ID="classnameOrId",t.STRIKE_THROUGH="strikethrough",t.INLINE_CODE="inlineCode",t.SUBSCRIPT="subscript",t.SUPERSCRIPT="superscript",t.BREAK="break"}(h||(h={}));var y,b=h,v=function(){};(function(t){function e(){var e=t.call(this)||this;return e.type=d.DOCUMENT,e}i(e,t)})(v),function(t){function e(e){var r=t.call(this)||this;return r.text=e,r}i(e,t)}(v);function m(t,e){var r;return null===(r=t.attrs)||void 0===r?void 0:r[e]}function g(t,e){var r,n=null===(r=t.attrs)||void 0===r?void 0:r[e];return"string"==typeof n?n:void 0}function w(t){if(!t.attrs)return"";var e=[];return t.attrs.style&&e.push(' style="'.concat(t.attrs.style,'"')),t.attrs["class-name"]&&e.push(' class="'.concat(t.attrs["class-name"],'"')),t.attrs.id&&e.push(' id="'.concat(t.attrs.id,'"')),e.join("")}(y={})[d.DOCUMENT]=function(){return""},y[d.PARAGRAPH]=function(t,e){return"<p".concat(w(t),">").concat(p(e(t.children)),"</p>")},y[d.LINK]=function(t,e){var r=p(g(t,"href")||g(t,"url")||""),n=g(t,"target"),o=n?' target="'.concat(n,'"'):"";return"<a".concat(w(t)).concat(r?' href="'.concat(r,'"'):"").concat(o,">").concat(p(e(t.children)),"</a>")},y[d.IMAGE]=function(t,e){var r=g(t,"src")||g(t,"url"),n=r?encodeURI(p(r)):"";return"<img".concat(w(t)).concat(n?' src="'.concat(n,'"'):""," />").concat(p(e(t.children)))},y[d.EMBED]=function(t,e){var r=g(t,"src")||g(t,"url"),n=r?encodeURI(p(r)):"";return"<iframe".concat(w(t)).concat(n?' src="'.concat(n,'"'):"",">").concat(p(e(t.children)),"</iframe>")},y[d.HEADING_1]=function(t,e){return"<h1".concat(w(t),">").concat(p(e(t.children)),"</h1>")},y[d.HEADING_2]=function(t,e){return"<h2".concat(w(t),">").concat(p(e(t.children)),"</h2>")},y[d.HEADING_3]=function(t,e){return"<h3".concat(w(t),">").concat(p(e(t.children)),"</h3>")},y[d.HEADING_4]=function(t,e){return"<h4".concat(w(t),">").concat(p(e(t.children)),"</h4>")},y[d.HEADING_5]=function(t,e){return"<h5".concat(w(t),">").concat(p(e(t.children)),"</h5>")},y[d.HEADING_6]=function(t,e){return"<h6".concat(w(t),">").concat(p(e(t.children)),"</h6>")},y[d.ORDER_LIST]=function(t,e){return"<ol".concat(w(t),">").concat(p(e(t.children)),"</ol>")},y[d.FRAGMENT]=function(t,e){return"<fragment>".concat(p(e(t.children)),"</fragment>")},y[d.UNORDER_LIST]=function(t,e){return"<ul".concat(w(t),">").concat(p(e(t.children)),"</ul>")},y[d.LIST_ITEM]=function(t,e){return"<li".concat(w(t),">").concat(p(e(t.children)),"</li>")},y[d.HR]=function(){return"<hr>"},y[d.TABLE]=function(t,e){var r="",n=m(t,"colWidths");if(n&&Array.isArray(n)){var o=n.reduce(function(t,e){return t+e},0);r="<".concat(d.COL_GROUP,' data-width="').concat(o,'">'),n.forEach(function(t){var e=t/o*100;r+="<".concat(d.COL,' style="width:').concat(e.toFixed(2),'%"/>')}),r+="</".concat(d.COL_GROUP,">")}return"<table".concat(w(t),">").concat(r).concat(p(e(t.children)),"</table>")},y[d.TABLE_HEADER]=function(t,e){return"<thead".concat(w(t),">").concat(p(e(t.children)),"</thead>")},y[d.TABLE_BODY]=function(t,e){return"<tbody".concat(w(t),">").concat(p(e(t.children)),"</tbody>")},y[d.TABLE_FOOTER]=function(t,e){return"<tfoot".concat(w(t),">").concat(p(e(t.children)),"</tfoot>")},y[d.TABLE_ROW]=function(t,e){return"<tr".concat(w(t),">").concat(p(e(t.children)),"</tr>")},y[d.TABLE_HEAD]=function(t,e){if(m(t,"void"))return"";var r=m(t,"rowSpan"),n=m(t,"colSpan"),o=r?' rowspan="'.concat(r,'"'):"",a=n?' colspan="'.concat(n,'"'):"";return"<th".concat(o).concat(a).concat(w(t),">").concat(p(e(t.children)),"</th>")},y[d.TABLE_DATA]=function(t,e){if(m(t,"void"))return"";var r=m(t,"rowSpan"),n=m(t,"colSpan"),o=r?' rowspan="'.concat(r,'"'):"",a=n?' colspan="'.concat(n,'"'):"";return"<td".concat(o).concat(a).concat(w(t),">").concat(p(e(t.children)),"</td>")},y[d.BLOCK_QUOTE]=function(t,e){return"<blockquote".concat(w(t),">").concat(p(e(t.children)),"</blockquote>")},y[d.CODE]=function(t,e){return"<code".concat(w(t),">").concat(p(e(t.children)),"</code>")},y.reference=function(t,e){var r=m(t,"type"),n=m(t,"display-type");if(("entry"===r||"asset"===r)&&"link"===n){var o=g(t,"href")||g(t,"url")||"",a=g(t,"target"),i=g(t,"asset-uid"),c=w(t);return o&&(c+=' href="'.concat(o,'"')),a&&(c+=' target="'.concat(a,'"')),"asset"===r&&(c+=' type="asset" content-type-uid="sys_assets"',i&&(c+=' data-sys-asset-uid="'.concat(i,'"')),c+=' sys-style-type="download"'),"<a".concat(c,">").concat(p(e(t.children)),"</a>")}if("asset"===r){var s=g(t,"asset-link"),u=s?encodeURI(s):"",l=m(t,"redactor-attributes"),f=null==l?void 0:l.alt,h=g(t,"link"),d=(a=g(t,"target")||"",(null==l?void 0:l["asset-caption"])||g(t,"asset-caption")||""),y=g(t,"style"),b=(i=g(t,"asset-uid"),g(t,"class-name")),v=i?' asset_uid="'.concat(i,'"'):"",k=b?' class="'.concat(p(b),'"'):"",O=u?' src="'.concat(p(u),'"'):"",x=f?' alt="'.concat(f,'"'):"",j="_blank"===a?' target="_blank"':"",S=y?' style="'.concat(y,'"'):"",P="<img".concat(v).concat(k).concat(O).concat(x).concat(j).concat(S," />"),_=y?' style="'.concat(y,'"'):"";return"<figure".concat(_,">")+(h?'<a href="'.concat(h,'" target="').concat(a||"",'">'):"")+P+(h?"</a>":"")+(d?"<figcaption>".concat(d,"</figcaption>"):"")+"</figure>"}return""},y.default=function(t,e){return p(e(t.children))},y[b.BOLD]=function(t){return"<strong>".concat(p(t),"</strong>")},y[b.ITALIC]=function(t){return"<em>".concat(p(t),"</em>")},y[b.UNDERLINE]=function(t){return"<u>".concat(p(t),"</u>")},y[b.STRIKE_THROUGH]=function(t){return"<strike>".concat(p(t),"</strike>")},y[b.INLINE_CODE]=function(t){return"<span data-type='inlineCode'>".concat(p(t),"</span>")},y[b.SUBSCRIPT]=function(t){return"<sub>".concat(p(t),"</sub>")},y[b.SUPERSCRIPT]=function(t){return"<sup>".concat(p(t),"</sup>")},y[b.BREAK]=function(t){return/^\n+$/.test(t)?p(t):"<br />".concat(p(t))},y[b.CLASSNAME_OR_ID]=function(t,e,r){return"<span".concat(e?' class="'.concat(e,'"'):"").concat(r?' id="'.concat(r,'"'):"",">").concat(p(t),"</span>")};var k={regions:[{id:"na",name:"AWS North America",cloudProvider:"AWS",location:"North America",alias:["na","us","aws-na","aws_na","NA","US","AWS-NA","AWS_NA"],isDefault:!0,endpoints:{application:"https://app.contentstack.com",contentDelivery:"https://cdn.contentstack.io",contentManagement:"https://api.contentstack.io",auth:"https://auth-api.contentstack.com",graphqlDelivery:"https://graphql.contentstack.com",preview:"https://rest-preview.contentstack.com",graphqlPreview:"https://graphql-preview.contentstack.com",images:"https://images.contentstack.io",assets:"https://assets.contentstack.io",automate:"https://automations-api.contentstack.com",launch:"https://launch-api.contentstack.com",developerHub:"https://developerhub-api.contentstack.com",brandKit:"https://brand-kits-api.contentstack.com",genAI:"https://ai.contentstack.com/brand-kits",personalizeManagement:"https://personalize-api.contentstack.com",personalizeEdge:"https://personalize-edge.contentstack.com"}},{id:"eu",name:"AWS Europe",cloudProvider:"AWS",location:"Europe",alias:["eu","aws-eu","aws_eu","EU","AWS-EU","AWS_EU"],isDefault:!1,endpoints:{application:"https://eu-app.contentstack.com",contentDelivery:"https://eu-cdn.contentstack.com",contentManagement:"https://eu-api.contentstack.com",auth:"https://eu-auth-api.contentstack.com",graphqlDelivery:"https://eu-graphql.contentstack.com",preview:"https://eu-rest-preview.contentstack.com",graphqlPreview:"https://eu-graphql-preview.contentstack.com",images:"https://eu-images.contentstack.com",assets:"https://eu-assets.contentstack.com",automate:"https://eu-prod-automations-api.contentstack.com",launch:"https://eu-launch-api.contentstack.com",developerHub:"https://eu-developerhub-api.contentstack.com",brandKit:"https://eu-brand-kits-api.contentstack.com",genAI:"https://eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://eu-personalize-api.contentstack.com",personalizeEdge:"https://eu-personalize-edge.contentstack.com"}},{id:"au",name:"AWS Australia",cloudProvider:"AWS",location:"Australia",alias:["au","aws-au","aws_au","AU","AWS-AU","AWS_AU"],isDefault:!1,endpoints:{application:"https://au-app.contentstack.com",contentDelivery:"https://au-cdn.contentstack.com",contentManagement:"https://au-api.contentstack.com",auth:"https://au-auth-api.contentstack.com",graphqlDelivery:"https://au-graphql.contentstack.com",preview:"https://au-rest-preview.contentstack.com",graphqlPreview:"https://au-graphql-preview.contentstack.com",images:"https://au-images.contentstack.com",assets:"https://au-assets.contentstack.com",automate:"https://au-prod-automations-api.contentstack.com",launch:"https://au-launch-api.contentstack.com",developerHub:"https://au-developerhub-api.contentstack.com",brandKit:"https://au-brand-kits-api.contentstack.com",genAI:"https://au-ai.contentstack.com/brand-kits",personalizeManagement:"https://au-personalize-api.contentstack.com",personalizeEdge:"https://au-personalize-edge.contentstack.com"}},{id:"azure-na",name:"Azure North America",cloudProvider:"Azure",location:"North America",alias:["azure-na","azure_na","AZURE-NA","AZURE_NA"],isDefault:!1,endpoints:{application:"https://azure-na-app.contentstack.com",contentDelivery:"https://azure-na-cdn.contentstack.com",contentManagement:"https://azure-na-api.contentstack.com",auth:"https://azure-na-auth-api.contentstack.com",graphqlDelivery:"https://azure-na-graphql.contentstack.com",preview:"https://azure-na-rest-preview.contentstack.com",graphqlPreview:"https://azure-na-graphql-preview.contentstack.com",images:"https://azure-na-images.contentstack.com",assets:"https://azure-na-assets.contentstack.com",automate:"https://azure-na-automations-api.contentstack.com",launch:"https://azure-na-launch-api.contentstack.com",developerHub:"https://azure-na-developerhub-api.contentstack.com",brandKit:"https://azure-na-brand-kits-api.contentstack.com",genAI:"https://azure-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-na-personalize-api.contentstack.com",personalizeEdge:"https://azure-na-personalize-edge.contentstack.com"}},{id:"azure-eu",name:"Azure Europe",cloudProvider:"Azure",location:"Europe",alias:["azure-eu","azure_eu","AZURE-EU","AZURE_EU"],isDefault:!1,endpoints:{application:"https://azure-eu-app.contentstack.com",contentDelivery:"https://azure-eu-cdn.contentstack.com",contentManagement:"https://azure-eu-api.contentstack.com",auth:"https://azure-eu-auth-api.contentstack.com",graphqlDelivery:"https://azure-eu-graphql.contentstack.com",preview:"https://azure-eu-rest-preview.contentstack.com",graphqlPreview:"https://azure-eu-graphql-preview.contentstack.com",images:"https://azure-eu-images.contentstack.com",assets:"https://azure-eu-assets.contentstack.com",automate:"https://azure-eu-automations-api.contentstack.com",launch:"https://azure-eu-launch-api.contentstack.com",developerHub:"https://azure-eu-developerhub-api.contentstack.com",brandKit:"https://azure-eu-brand-kits-api.contentstack.com",genAI:"https://azure-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-eu-personalize-api.contentstack.com",personalizeEdge:"https://azure-eu-personalize-edge.contentstack.com"}},{id:"gcp-na",name:"GCP North America",cloudProvider:"GCP",location:"North America",alias:["gcp-na","gcp_na","GCP-NA","GCP_NA"],isDefault:!1,endpoints:{application:"https://gcp-na-app.contentstack.com",contentDelivery:"https://gcp-na-cdn.contentstack.com",contentManagement:"https://gcp-na-api.contentstack.com",auth:"https://gcp-na-auth-api.contentstack.com",graphqlDelivery:"https://gcp-na-graphql.contentstack.com",preview:"https://gcp-na-rest-preview.contentstack.com",graphqlPreview:"https://gcp-na-graphql-preview.contentstack.com",images:"https://gcp-na-images.contentstack.com",assets:"https://gcp-na-assets.contentstack.com",automate:"https://gcp-na-automations-api.contentstack.com",launch:"https://gcp-na-launch-api.contentstack.com",developerHub:"https://gcp-na-developerhub-api.contentstack.com",brandKit:"https://gcp-na-brand-kits-api.contentstack.com",genAI:"https://gcp-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-na-personalize-api.contentstack.com",personalizeEdge:"https://gcp-na-personalize-edge.contentstack.com"}},{id:"gcp-eu",name:"GCP Europe",cloudProvider:"GCP",location:"Europe",alias:["gcp-eu","gcp_eu","GCP-EU","GCP_EU"],isDefault:!1,endpoints:{application:"https://gcp-eu-app.contentstack.com",contentDelivery:"https://gcp-eu-cdn.contentstack.com",contentManagement:"https://gcp-eu-api.contentstack.com",auth:"https://gcp-eu-auth-api.contentstack.com",graphqlDelivery:"https://gcp-eu-graphql.contentstack.com",preview:"https://gcp-eu-rest-preview.contentstack.com",graphqlPreview:"https://gcp-eu-graphql-preview.contentstack.com",images:"https://gcp-eu-images.contentstack.com",assets:"https://gcp-eu-assets.contentstack.com",automate:"https://gcp-eu-automations-api.contentstack.com",launch:"https://gcp-eu-launch-api.contentstack.com",developerHub:"https://gcp-eu-developerhub-api.contentstack.com",brandKit:"https://gcp-eu-brand-kits-api.contentstack.com",genAI:"https://gcp-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-eu-personalize-api.contentstack.com",personalizeEdge:"https://gcp-eu-personalize-edge.contentstack.com"}}]};function O(t){if("string"==typeof t)return t.replace(/^https?:\/\//,"");var e={};for(var r in t)e[r]=O(t[r]);return e}e.bx=function(t,e,r){if(void 0===t&&(t="us"),void 0===e&&(e=""),void 0===r&&(r=!1),""===t)throw new Error("Empty region provided. Please put valid region.");var n=k,o=t.toLowerCase().trim()||"us";if(!Array.isArray(n.regions))throw new Error("Invalid Regions file. Please install the SDK again to fix this issue.");var a=function(t,e){var r=t.find(function(t){return t.id===e});return r||((r=t.find(function(t){return t.alias.some(function(t){return t.toLowerCase()===e.toLowerCase()})}))||null)}(n.regions,o);if(!a)throw new Error("Invalid region: ".concat(t));if(e){var i=a.endpoints[e];if(!i)throw new Error('Service "'.concat(e,'" not found for region "').concat(a.id,'"'));return r?O(i):i}return r?O(a.endpoints):a.endpoints}},218:t=>{"use strict";t.exports=SyntaxError},343:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},363:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},385:(t,e,r)=>{var n=r(9529)(Object.getPrototypeOf,Object);t.exports=n},386:t=>{"use strict";t.exports=Math.pow},565:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6277),o=r(9359),a=r(9793),i=new a.HOTP({createDigest:n.createDigest}),c=new a.TOTP({createDigest:n.createDigest}),s=new a.Authenticator({createDigest:n.createDigest,createRandomBytes:n.createRandomBytes,keyDecoder:o.keyDecoder,keyEncoder:o.keyEncoder});e.authenticator=s,e.hotp=i,e.totp=c},663:(t,e,r)=>{var n=r(5201),o=r(3583);t.exports=function(t,e,r,a,i){return new o(n().w(t,e,r,a),i||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},677:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},704:(t,e,r)=>{var n=r(7209),o=r(9874);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},755:(t,e,r)=>{var n=r(5514).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},897:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&a&&"function"==typeof a.get?a.get:null,c=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"==typeof u.get?u.get:null,p=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,b=Object.prototype.toString,v=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,w=String.prototype.replace,k=String.prototype.toUpperCase,O=String.prototype.toLowerCase,x=RegExp.prototype.test,j=Array.prototype.concat,S=Array.prototype.join,P=Array.prototype.slice,_=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,H="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"===n(Symbol.iterator),T="function"==typeof Symbol&&Symbol.toStringTag&&(n(Symbol.toStringTag),1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function C(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||x.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-_(-t):_(t);if(n!==t){var o=String(n),a=g.call(e,o.length+1);return w.call(o,r,"$&_")+"."+w.call(w.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,r,"$&_")}var U=r(2634),N=U.custom,z=K(N)?N:null,L={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function M(t,e,r){var n=r.quoteStyle||e,o=L[n];return o+t+o}function B(t){return w.call(String(t),/"/g,""")}function q(t){return!T||!("object"===n(t)&&(T in t||void 0!==t[T]))}function W(t){return"[object Array]"===J(t)&&q(t)}function G(t){return"[object RegExp]"===J(t)&&q(t)}function K(t){if(D)return t&&"object"===n(t)&&t instanceof Symbol;if("symbol"===n(t))return!0;if(!t||"object"!==n(t)||!H)return!1;try{return H.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,a,s){var u=o||{};if($(u,"quoteStyle")&&!$(L,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!$(u,"customInspect")||u.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var k=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return X(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var x=String(e);return k?C(e,x):x}if("bigint"==typeof e){var _=String(e)+"n";return k?C(e,_):_}var A=void 0===u.depth?5:u.depth;if(void 0===a&&(a=0),a>=A&&A>0&&"object"===n(e))return W(e)?"[Array]":"[Object]";var N,F=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=S.call(Array(t.indent+1)," ")}return{base:r,prev:S.call(Array(e+1),r)}}(u,a);if(void 0===s)s=[];else if(Q(s,e)>=0)return"[Circular]";function V(e,r,n){if(r&&(s=P.call(s)).push(r),n){var o={depth:u.depth};return $(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),t(e,o,a+1,s)}return t(e,u,a+1,s)}if("function"==typeof e&&!G(e)){var Y=function(t){if(t.name)return t.name;var e=m.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=nt(e,V);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ot.length>0?" { "+S.call(ot,", ")+" }":"")}if(K(e)){var at=D?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(e);return"object"!==n(e)||D?at:Z(at)}if((N=e)&&"object"===n(N)&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var it="<"+O.call(String(e.nodeName)),ct=e.attributes||[],st=0;st<ct.length;st++)it+=" "+ct[st].name+"="+M(B(ct[st].value),"double",u);return it+=">",e.childNodes&&e.childNodes.length&&(it+="..."),it+"</"+O.call(String(e.nodeName))+">"}if(W(e)){if(0===e.length)return"[]";var ut=nt(e,V);return F&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(ut)?"["+rt(ut,F)+"]":"[ "+S.call(ut,", ")+" ]"}if(function(t){return"[object Error]"===J(t)&&q(t)}(e)){var lt=nt(e,V);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===lt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+S.call(lt,", ")+" }":"{ ["+String(e)+"] "+S.call(j.call("[cause]: "+V(e.cause),lt),", ")+" }"}if("object"===n(e)&&b){if(z&&"function"==typeof e[z]&&U)return U(e,{depth:A-a});if("symbol"!==b&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!==n(t))return!1;try{i.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var pt=[];return c&&c.call(e,function(t,r){pt.push(V(r,e,!0)+" => "+V(t,e))}),et("Map",i.call(e),pt,F)}if(function(t){if(!l||!t||"object"!==n(t))return!1;try{l.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ft=[];return p&&p.call(e,function(t){ft.push(V(t,e))}),et("Set",l.call(e),ft,F)}if(function(t){if(!f||!t||"object"!==n(t))return!1;try{f.call(t,f);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return tt("WeakMap");if(function(t){if(!h||!t||"object"!==n(t))return!1;try{h.call(t,h);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return tt("WeakSet");if(function(t){if(!d||!t||"object"!==n(t))return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return tt("WeakRef");if(function(t){return"[object Number]"===J(t)&&q(t)}(e))return Z(V(Number(e)));if(function(t){if(!t||"object"!==n(t)||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}(e))return Z(V(E.call(e)));if(function(t){return"[object Boolean]"===J(t)&&q(t)}(e))return Z(y.call(e));if(function(t){return"[object String]"===J(t)&&q(t)}(e))return Z(V(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===J(t)&&q(t)}(e)&&!G(e)){var ht=nt(e,V),dt=I?I(e)===Object.prototype:e instanceof Object||e.constructor===Object,yt=e instanceof Object?"":"null prototype",bt=!dt&&T&&Object(e)===e&&T in e?g.call(J(e),8,-1):yt?"Object":"",vt=(dt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(bt||yt?"["+S.call(j.call([],bt||[],yt||[]),": ")+"] ":"");return 0===ht.length?vt+"{}":F?vt+"{"+rt(ht,F)+"}":vt+"{ "+S.call(ht,", ")+" }"}return String(e)};var V=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return V.call(t,e)}function J(t){return b.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function X(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return X(g.call(t,0,e.maxStringLength),e)+n}var o=F[e.quoteStyle||"single"];return o.lastIndex=0,M(w.call(w.call(t,o,"\\$1"),/[\x00-\x1f]/g,Y),"single",e)}function Y(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+k.call(e.toString(16))}function Z(t){return"Object("+t+")"}function tt(t){return t+" { ? }"}function et(t,e,r,n){return t+" ("+e+") {"+(n?rt(r,n):S.call(r,", "))+"}"}function rt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+S.call(t,","+r)+"\n"+e.prev}function nt(t,e){var r=W(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var a,i="function"==typeof A?A(t):[];if(D){a={};for(var c=0;c<i.length;c++)a["$"+i[c]]=i[c]}for(var s in t)$(t,s)&&(r&&String(Number(s))===s&&s<t.length||D&&a["$"+s]instanceof Symbol||(x.call(/[^\w$]/,s)?n.push(e(s,t)+": "+e(t[s],t)):n.push(s+": "+e(t[s],t))));if("function"==typeof A)for(var u=0;u<i.length;u++)R.call(t,i[u])&&n.push("["+e(i[u])+"]: "+e(t[i[u]],t));return n}},925:t=>{t.exports=function(){return!1}},1007:(t,e)=>{"use strict";var r=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];e.encode=function(t){Buffer.isBuffer(t)||(t=new Buffer(t));for(var e,r,n=0,o=0,a=0,i=0,c=new Buffer(8*(e=t,r=Math.floor(e.length/5),e.length%5==0?r:r+1));n<t.length;){var s=t[n];a>3?(i=(i=s&255>>a)<<(a=(a+5)%8)|(n+1<t.length?t[n+1]:0)>>8-a,n++):(i=s>>8-(a+5)&31,0==(a=(a+5)%8)&&n++),c[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(i),o++}for(n=o;n<c.length;n++)c[n]=61;return c},e.decode=function(t){var e,n=0,o=0,a=0;Buffer.isBuffer(t)||(t=new Buffer(t));for(var i=new Buffer(Math.ceil(5*t.length/8)),c=0;c<t.length&&61!==t[c];c++){var s=t[c]-48;if(!(s<r.length))throw new Error("Invalid input - it is not base32 encoded string");o=r[s],n<=3?0==(n=(n+5)%8)?(e|=o,i[a]=e,a++,e=0):e|=255&o<<8-n:(e|=255&o>>>(n=(n+5)%8),i[a]=e,a++,e=255&o<<8-n)}return i.slice(0,a)}},1008:(t,e,r)=>{var n=r(1765),o=r(2054),a=r(7560);t.exports=function(t){return n(t,a,o)}},1020:(t,e,r)=>{var n=r(704)(Object,"create");t.exports=n},1031:(t,e,r)=>{"use strict";var n=r(1225);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},1059:(t,e,r)=>{var n=r(1937),o=r(3906),a=r(4708),i=r(8951),c=r(4011),s=r(2707);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=c,u.prototype.set=s,t.exports=u},1103:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},1225:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},1258:(t,e,r)=>{"use strict";var n=r(9561),o=r(6796),a=r(3102),i=r(8581);t.exports=i||n.call(a,o)},1297:(t,e,r)=>{var n=r(7282),o=r(385),a=r(2054),i=r(2567),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=c},1339:(t,e,r)=>{var n=r(2177);t.exports=function(t){return n(this,t).get(t)}},1380:(t,e,r)=>{var n=r(9529)(Object.keys,Object);t.exports=n},1530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1564:(t,e,r)=>{var n=r(4868),o=r(2156);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},1573:(t,e,r)=>{var n=r(3361),o=r(2054);t.exports=function(t,e){return n(t,o(t),e)}},1587:(t,e,r)=>{var n=r(4530);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},1750:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o,a=r(4736),i=r(7581);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!==n(t)||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var c=!!o&&i&&i(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=c&&"function"==typeof c.get?a([c.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},1765:(t,e,r)=>{var n=r(7282),o=r(7107);t.exports=function(t,e,r){var a=e(t);return o(t)?a:n(a,r(t))}},1770:(t,e,r)=>{var n=r(1815),o=r(3977),a=r(5532),i=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):a(t)}},1815:(t,e,r)=>{var n=r(7891).Symbol;t.exports=n},1937:(t,e,r)=>{var n=r(7356),o=r(8522),a=r(5429),i=r(6121),c=r(6401);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=c,t.exports=s},2054:(t,e,r)=>{var n=r(8440),o=r(2567),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(t){return null==t?[]:(t=Object(t),n(i(t),function(e){return a.call(t,e)}))}:o;t.exports=c},2119:(t,e,r)=>{var n=r(7649),o=r(3405),a=r(1564);t.exports=function(t){return a(t)?n(t,!0):o(t)}},2130:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},2151:(t,e,r)=>{var n=r(9678),o=r(7917),a=r(4094),i=r(8219),c=r(5461),s=r(1770),u=r(343),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",y=u(n),b=u(o),v=u(a),m=u(i),g=u(c),w=s;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=l||a&&w(a.resolve())!=p||i&&w(new i)!=f||c&&w(new c)!=h)&&(w=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case y:return d;case b:return l;case v:return p;case m:return f;case g:return h}return e}),t.exports=w},2156:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},2177:(t,e,r)=>{var n=r(6452);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},2196:(t,e,r)=>{var n=r(2151),o=r(7132);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},2219:(t,e,r)=>{var n=r(3610),o=r(4732),a=r(5855),i=r(6451),c=r(5739);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=c,t.exports=s},2247:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},2357:(t,e,r)=>{"use strict";var n=r(897),o=r(8241),a=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return a(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=a(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!a(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=a(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},2398:(t,e,r)=>{var n=r(1007);e.encode=n.encode,e.decode=n.decode},2441:()=>{},2524:t=>{"use strict";t.exports=ReferenceError},2567:t=>{t.exports=function(){return[]}},2634:()=>{},2707:(t,e,r)=>{var n=r(1937),o=r(7917),a=r(5735);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},2712:(t,e,r)=>{var n=r(2177);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},2804:(t,e,r)=>{var n=r(3361),o=r(2119);t.exports=function(t,e){return t&&n(e,o(e),t)}},2916:t=>{t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},2978:(t,e,r)=>{var n=r(5953);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},3093:t=>{t.exports=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},3102:t=>{"use strict";t.exports=Function.prototype.call},3163:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o,a=r(6358),i=r(3933),c=r(4159),s=r(3880),u=r(2524),l=r(218),p=r(8241),f=r(8679),h=r(5228),d=r(7962),y=r(4638),b=r(8416),v=r(386),m=r(9804),g=r(1031),w=Function,k=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(t){}},O=r(7581),x=r(6249),j=function(){throw new p},S=O?function(){try{return j}catch(t){try{return O(arguments,"callee").get}catch(t){return j}}}():j,P=r(6329)(),_=r(5746),E=r(3318),A=r(6694),H=r(6796),D=r(3102),T={},R="undefined"!=typeof Uint8Array&&_?_(Uint8Array):o,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&_?_([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&_?_(_([][Symbol.iterator]())):o,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":n(JSON))?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&_?_((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&_?_((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&_?_(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":R,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":H,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":y,"%Math.min%":b,"%Math.pow%":v,"%Math.round%":m,"%Math.sign%":g,"%Reflect.getPrototypeOf%":A};if(_)try{null.error}catch(t){var C=_(_(t));I["%Error.prototype%"]=C}var U=function t(e){var r;if("%AsyncFunction%"===e)r=k("async function () {}");else if("%GeneratorFunction%"===e)r=k("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=k("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return I[e]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},z=r(9561),L=r(3999),F=z.call(D,Array.prototype.concat),M=z.call(H,Array.prototype.splice),B=z.call(D,String.prototype.replace),q=z.call(D,String.prototype.slice),W=z.call(D,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,V=function(t,e){var r,n=t;if(L(N,n)&&(n="%"+(r=N[n])[0]+"%"),L(I,n)){var o=I[n];if(o===T&&(o=U(n)),void 0===o&&!e)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new p('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but